/* Plain Chalk — country and city guide pages (CG1).
   Paper reading surface: index cards for the package/visa facts, mono figures
   in the pay table, stamps carried from the global sheet. Tables scroll
   horizontally below the page gutter so they stay readable at 390 wide. */

.place-hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 24px;
}
.place-hero__foot .stamp {
  font-size: 0.85rem;
}
/* Phone fix (REVIEW-CG3B 6): a long button label must wrap inside the button
 * rather than widen the document; the mono money cells above already scroll
 * inside their .place-scroll wrappers. */
.place-hero__foot .btn,
.place-section .btn,
.place-more .btn {
  white-space: normal;
  text-align: left;
}

/* The hero copy and its chalk scene sit side by side on a wide board, and the
   scene sits above the heading on a phone (order set below). */
.place-hero__inner {
  display: grid;
  gap: 20px 36px;
  align-items: center;
}
.place-hero__copy {
  min-width: 0;
}
.place-hero__art {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}
.place-illustration {
  display: block;
  width: 100%;
  height: auto;
  color: var(--chalk);
}
/* The draw-on lives in css/motion.css. A dasharray here would override it. */
.place-illustration path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.place-illustration .place-illustration--soft {
  stroke: var(--chalk-3);
}
.place-illustration .place-illustration--dust {
  fill: var(--chalk-2);
  stroke: none;
  opacity: 0.45;
}

.place-body {
  padding-bottom: 28px;
}

/* A real photograph of the country, with its licence credit underneath on the
   paper, never on the image. Corners follow the material: cut 2px. */
.place-photo {
  margin: 0 0 28px;
}
.place-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.place-photo figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.place-photo figcaption a {
  color: var(--accent);
}
.place-section > p:not(.place-src):not(.place-cities) {
  max-width: var(--measure, 65ch);
}
.place-cities {
  color: var(--ink-2);
}

/* Paper cards: the package and the visa requirements. */
.place-items {
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 14px;
}
.place-items li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}
.place-items li > :last-child {
  margin-bottom: 0;
}
.place-items li > strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 6px;
}
.place-quote {
  border-left: 3px solid var(--mark);
  padding-left: 16px;
  margin: 10px 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.place-src {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: 10px;
}
.place-src a {
  color: var(--accent);
}

/* One benefit = one plain line, with the source's own words tucked behind a
   small details so the reading surface stays a single idea. */
.place-benefit__note {
  margin: 4px 0 0;
  color: var(--ink-2);
  max-width: var(--measure, 65ch);
}
.place-words {
  margin-top: 10px;
  font-size: 0.92rem;
}
.place-words > summary {
  cursor: pointer;
  color: var(--accent);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.place-words > summary:focus-visible {
  outline: 2px solid var(--focus, var(--accent));
  outline-offset: 2px;
  border-radius: 2px;
}
.place-words > .place-quote {
  margin-top: 8px;
  font-size: 0.95rem;
}
.place-words > .place-src {
  margin-top: 6px;
}

.place-visa__summary {
  max-width: var(--measure, 65ch);
}

/* Pay table and month table scroll within the paper wrapper. */
.place-scroll table {
  min-width: 560px;
}
.place-bands td.place-pay,
td.place-pay {
  text-align: right;
  white-space: nowrap;
}
.place-pay__fig {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.place-pay__unit {
  color: var(--ink-3);
  font-size: 0.85rem;
}
.place-basis {
  color: var(--ink-3);
}
.place-role {
  color: var(--ink);
}
.place-role__title,
.place-role__byline {
  display: block;
}
.place-role__byline {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.place-role__byline:hover {
  color: var(--ink);
}
.place-months td {
  color: var(--ink-2);
}
.place-months th[scope="row"] {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}

/* The programmes: a definition list of named scheme rows. */
.place-programmes {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
}
.place-programmes dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
}
.place-programmes dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}
.place-programmes dd.place-programme__pay {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.place-programmes dd.place-src {
  margin-top: 6px;
}

/* The sources list. */
.place-sources {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.place-sources li {
  color: var(--ink-2);
  font-size: 0.92rem;
}
.place-sources a {
  color: var(--accent);
}

/* The hub fact sheet (injected above a country hub's listings). */
.hub-factsheet {
  margin-bottom: 22px;
}
.place-factsheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 18px 20px;
}
.place-factsheet h2 {
  margin: 0 0 10px;
}
.place-factsheet__answer {
  color: var(--ink-2);
  max-width: 65ch;
}
.place-factsheet__h {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 16px 0 4px;
}
.place-factsheet__note {
  color: var(--ink-3);
  font-size: 0.88rem;
  margin: 6px 0 0;
}
.place-factbands__unit {
  color: var(--ink-3);
  font-size: 0.85rem;
  font-family: var(--font-ui);
}
.place-fact-bands {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.place-fact-bands li {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.place-factsheet__line {
  color: var(--ink-2);
  max-width: 65ch;
  margin: 6px 0;
}
.place-factsheet__links {
  margin: 14px 0 0;
}

/* Hero layout: the chalk scene sits beside the heading on a wide board and
   above the heading on the phone column. */
@media (min-width: 900px) {
  .place-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  }
  .place-hero__art {
    max-width: 380px;
  }
}
@media (max-width: 899px) {
  .place-hero__inner {
    grid-template-columns: 1fr;
  }
  .place-hero__art {
    order: -1;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .place-items li,
  .place-factsheet {
    padding: 12px 14px;
  }
  .place-hero__foot {
    gap: 12px 14px;
  }
}

/* The hero and live-jobs calls to action carry long labels (for example
   "Teach English in Thailand: in-person jobs"), so on a narrow board they
   wrap to stay inside the gutter instead of clipping past it. */
@media (max-width: 640px) {
  .place-hero__foot .btn,
  .place-body .place-section .btn {
    white-space: normal;
    text-align: left;
    height: auto;
  }
}

/* ------------------------------------------------------------------ */
/*  The guide template (ruling 8.9). Shared by country and city pages. */
/*  --scene-accent is the abroad coral: the place drawing's only accent. */
/* ------------------------------------------------------------------ */

.guide-page { --scene-accent: var(--track-inperson); }

.guide-page .guide-hero {
  margin-bottom: 0 !important;
  background-color: var(--board);
  color: var(--chalk);
}
.guide-page .guide-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  column-gap: 32px;
}
.guide-page .guide-hero__inner > .crumbs { grid-column: 1 / -1; margin-bottom: 14px; }
.guide-page .guide-hero__copy { min-width: 0; }
.guide-page .guide-hero h1 {
  font-family: var(--font-display);
  font-weight: 720;
  font-stretch: 92%;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18em;
  margin: 0 0 12px;
  color: var(--chalk);
}
.guide-page .guide-hero .lede {
  margin: 0;
  max-width: 42em;
  font-size: 18px;
  line-height: 1.5;
  color: var(--chalk-2);
}
.guide-page .guide-hero__art { justify-self: center; width: min(100%, 320px); margin-top: 18px; }
.guide-page .chalk-scene { display: block; width: 100%; height: auto; overflow: visible; }
.guide-page .chalk-scene .halo { stroke: rgba(243, 241, 232, .16); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.guide-page .chalk-scene .ink { stroke: var(--chalk); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.guide-page .chalk-scene .ink--thin { stroke-width: 1.8; }
.guide-page .chalk-scene .ink--thick { stroke-width: 3.4; }
.guide-page .chalk-scene .accent { stroke: var(--scene-accent, var(--track-inperson)); }
.guide-page .chalk-scene .hatch { stroke: rgba(243, 241, 232, .34); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.guide-page .chalk-scene .wash { fill: rgba(243, 241, 232, .07); stroke: none; }

@media (min-width: 900px) {
  .guide-page .guide-hero h1 { font-size: 48px; }
}
@media (min-width: 1000px) {
  .guide-page .guide-hero__inner:has(.guide-hero__art) {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .guide-page .guide-hero__art { width: 360px; max-width: 360px; margin-top: 0; justify-self: end; }
  .guide-page .guide-hero__art .chalk-scene { width: 360px; height: 240px; }
}

/* The photograph sits on the tray lip. Rights live on solid paper so they
   stay readable without darkening the picture (owner review, 27 September). */
.guide-page .place-photo { margin: 0; background: var(--paper); }
.guide-page .place-photo img {
  display: block; width: 100%; height: auto; max-height: 260px;
  aspect-ratio: 4 / 3; object-fit: cover; border: 0; border-radius: 0;
}
.guide-page .place-photo__credit {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px 32px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto;
  padding: 12px 16px; font-family: var(--font-ui); font-size: 14px;
  line-height: 1.5; color: var(--ink); background: var(--paper); text-align: left;
}
.guide-page .place-photo__subject { flex: 1 1 240px; }
.guide-page .place-photo__rights { flex: 0 1 auto; }
.guide-page .place-photo__credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.guide-page .place-photo__credit a:hover { color: var(--accent); }
.guide-page .place-photo__changes { display: block; font-size: 12px; }
@media (min-width: 900px) {
  .guide-page .place-photo img { aspect-ratio: 16 / 7; max-height: 420px; }
}

.guide-page .guide-body { padding-top: 32px; padding-bottom: 48px; }
.guide-page .guide-section + .guide-section { margin-top: 32px; }
.guide-page .guide-section h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.guide-page .guide-section,
.guide-page .guide-section p,
.guide-page .guide-section li { font-size: 17px; line-height: 1.5; color: var(--ink); }
.guide-page .guide-section > p { max-width: 65ch; }
.guide-page .guide-more { margin: 18px 0 0; }
.guide-page .guide-more .btn { white-space: normal; text-align: left; }

@media (min-width: 900px) {
  .guide-page .guide-body { padding-top: 40px; }
  .guide-page .guide-section + .guide-section { margin-top: 40px; }
}
@media (max-width: 719px) {
  .guide-page .container { padding-inline: 16px; }
}

/* The chalk tick is drawn in chalk. On paper it is shown in ink so it reads. */
.guide-page .tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide-page .tick-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
}
.guide-page .tick-list .chalk-tick { width: 28px; height: auto; flex: none; margin-top: 2px; filter: brightness(0); opacity: .82; }

.guide-page .facts { margin: 0; display: grid; }
.guide-page .facts .fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 20px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.guide-page .facts .fact:first-child { border-top: 0; padding-top: 0; }
.guide-page .facts dt { font-weight: 600; color: var(--ink-2); font-size: 17px; }
.guide-page .facts dd { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.48; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .guide-page .facts .fact { grid-template-columns: 14rem minmax(0, 1fr); align-items: baseline; }
}

/* One column under 720, two from 720, three from 1100. jobs.css pins two
   columns from 1100 with !important; this page wins because it loads after. */
.guide-page .job-grid { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 720px) {
  .guide-page .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1100px) {
  .guide-page .job-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.guide-page .job-card { min-width: 0; }
.guide-page .job-card .pay-slot { min-width: 0; }
