/* English-only layout (the page in English: :root[lang="en"], set by src/UI/i18n/runtime.js). Every rule is scoped to it,
   so the Chinese page is unchanged. Short labels (i18n/en-short.json) do most of the fitting; these rules make room
   where a label cannot be shortened well. */

/* Top bar titles Date · Total pop · Trade vol. on one line (human: "title should inside a line") */
:root[lang="en"] .world-stats span {
  white-space: nowrap;
  letter-spacing: 0;
}

/* The English brand line is wider, so at 1280px the three columns are narrower: less side padding keeps the date
   "0000.01.00" inside its column. */
:root[lang="en"] .world-stats > div {
  padding-left: 6px;
  padding-right: 2px;
}

/* The three side tabs (Overview · Region · Route): no side padding and slightly tighter letters (the labels are centred). */
:root[lang="en"] .inspector-tabs > button[data-inspector] {
  padding-inline: 0;
  letter-spacing: -0.03em;
}

/* Song-style headings: SimSun's Latin letters are fixed-width (the jobs table header read "ShareFull-day income"),
   so English takes a proportional serif first; Chinese names inside still fall back to Songti/SimSun. */
:root[lang="en"] :is(
  .class-row-split .class-head,
  .good-row-split .good-head,
  .technology-head,
  .section-title h3,
  .panel-heading h1,
  .panel-heading h2,
  .scenario-summary strong,
  .overview-sequence b,
  dialog h2,
  .inspector-hero h2,
  #inspector-default .inspector-hero h2,
  .route-hero h2,
  .city-label b,
  .good-icon
) {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  letter-spacing: 0;
}

/* The small line over a city or route name ("Kingdom of Whitehart · Day 0", "4 days one-way · Land caravan") on one
   line: the letter spacing that suits Chinese wraps the longer English; the small size of the three (human 2026-11-03:
   "why didn't match my ui/font design rule?": 18px, 15px or 12px only). */
:root[lang="en"] :is(.inspector-hero, .route-hero) .eyebrow {
  font-size: var(--font-small);
  letter-spacing: 0;
}

/* The map brief's 60 px people row shows only the number ("91.7k"; "91.7k people" in its tooltip): the unit 人 is left
   out (human 2026-11-02: "the name and pop bar of 简报 should be halved") */
:root[lang="en"] .city-people-unit {
  display: none;
}

/* A job's two-letter icon ("We", "Ga") inside its 20px circle */
:root[lang="en"] .inspector .class-icon {
  font-size: var(--font-small);
  letter-spacing: 0;
}

/* Jobs table: only the job icon (its title names the job; human: "hide the job's name, show it when cursor is on Fa
   icon"); the four columns stay equal as in Chinese. */
:root[lang="en"] .class-row-split .class-info > b {
  display: none;
}

/* Overview tables (City, Route): narrower cell padding; a cut name shows in full on hover (its title), the route table
   keeps 2/5 for the route and 1/5 for each other column (human 2026-11-03: "商路 should be A... - B... if not able to show
   full route name in 2/5 table, other 3 columns 1/5 each"). */
:root[lang="en"] .world-summary .route-good-gap-table :is(th, td) {
  padding-inline: 2px;
}

/* English city names ("Sangchuan Ford") on the route page wrap at their spaces instead of being cut */
:root[lang="en"] .route-direction-table thead th {
  white-space: normal;
  overflow-wrap: break-word;
  text-overflow: clip;
}

/* the column heads in the small size of the three, not a fourth (was 11px; human 2026-11-03: "fontsize wrong … why didn't
   match my ui/font design rule?"): at 15px "Population" and "Worktime" break inside the word in a fifth of the table */
:root[lang="en"] .world-summary .route-good-gap-table thead th {
  font-size: var(--font-small);
}

/* (the city column 22%: "Population" whole in each of the other four; a long city name is cut, in full on hover) */
:root[lang="en"] .world-summary .route-good-gap-table thead th:first-child:nth-last-child(5) {
  width: 22%;
}

/* Route page: the directions table gives its row-head column ("Trade (units)") a third and the two directions
   ("Greenfield→Seasilk") the rest; a cell may wrap */
:root[lang="en"] .route-direction-table :is(th, td) {
  padding-inline: 4px;
}

:root[lang="en"] .route-direction-table thead th:first-child {
  width: 30%;
}

:root[lang="en"] .route-direction-table tbody td {
  white-space: normal;
}

/* a good's cell: the coins ("16.6m coins") under the units ("121k units"), the two too wide side by side */
:root[lang="en"] .route-direction-pair {
  grid-template-columns: minmax(0, 1fr);
}

/* Developer-mode dialog: "Enter password:" on one line */
:root[lang="en"] .explorer-password-field {
  grid-template-columns: auto minmax(0, 1fr);
}

:root[lang="en"] .explorer-password-field > span {
  white-space: nowrap;
}

/* Map editor (src/UI/map-editor.css): "Mountains", "Erase", "Territory" fit their third of the side panel */
:root[lang="en"] .map-editor-palette button {
  gap: 4px;
  padding: 0 4px;
}

/* Seeded-world panel, 水陆比例 (human 2026-11-03: "right to 随机种子, add 水陆比例"): the grey unit inside the box reads
   "land" in English, wider than 陆, so the box makes room for it; the default range placeholder (⅓—⅔) and "land" do not
   both fit a quarter at 1920 px, so in English the empty box shows only "land" (the range is in its hover title) */
:root[lang="en"] .seeded-world-land > input {
  padding: 0 2.6em 0 6px;
}

:root[lang="en"] .seeded-world-land > input::placeholder {
  color: transparent;
}
