/* Compass Compass 1.1.0, copied by sync.mjs. Then the guides' own styles. */
/* Compass fonts. Self hosted, variable, OFL (licences beside this file).
 *
 * Fraunces      the voice: headlines, the one italic phrase, a family's name.
 *               Built from google/fonts with SOFT and WONK pinned to 0, so the
 *               shapes stay calm and upright. Optical size 9 to 144, weight 300 to 700.
 * Lexend Deca   every sentence and control. Weight 200 to 700.
 * Space Grotesk every number, time, rupee figure, case number and id. Weight 300 to 700.
 *
 * Each face covers Latin, Latin Extended A and B, Vietnamese and the rupee sign.
 * The "... Fallback" faces are local system fonts stretched to the same width,
 * so text does not jump when the real face arrives. Rebuild with tools/build-fonts.py.
 */

@font-face {
  font-family: "Compass Fraunces";
  src: url(/assets/fonts/fraunces-roman.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Compass Fraunces";
  src: url(/assets/fonts/fraunces-italic.woff2) format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Compass Lexend";
  src: url(/assets/fonts/lexend-deca.woff2) format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Compass Grotesk";
  src: url(/assets/fonts/space-grotesk.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* Fallbacks measured against the real faces (tools/build-fonts.py prints these). */
@font-face {
  font-family: "Compass Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 112.94%;
  ascent-override: 86.6%;
  descent-override: 22.58%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Compass Lexend Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 110.59%;
  ascent-override: 90.42%;
  descent-override: 22.61%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Compass Grotesk Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 110.93%;
  ascent-override: 88.7%;
  descent-override: 26.32%;
  line-gap-override: 0%;
}

/* ==========================================================================
 * Compass tokens. The one source for iTour, the companion, i-Navigate,
 * move.report and the city guides.
 *
 * Colours come from the IKAN brand book (Nov 2023, pages 33 to 36). One change
 * from the book, by the owner's later word: paper is white and the ground is a
 * faint sky tint. Never cream.
 *
 * Every text pair below is measured with the WCAG 2 formula by
 * tools/check-contrast.mjs, which reads this file. Numbers in the comments are
 * that tool's output. Nothing under 4.5:1 is allowed as text, except raw coral
 * at 24px or larger (large text, 3:1).
 *
 * Registers: set data-register on <html> or any wrapper.
 *   home   (default) the family: i-Navigate, the city guides, every share page
 *   field  the consultant: iTour desk and the companion. data-theme="dark" or
 *          "system" for night, data-contrast="more" for outdoor sun
 *   record documents: itinerary PDF, arrival pack, condition report
 * All names start with --cp- so nothing clashes with an app's older tokens
 * while it moves across.
 * ========================================================================== */

:root {
  color-scheme: light;

  /* ── brand, from the book ─────────────────────────────────────────────── */
  --cp-midnight: #134550;        /* chrome, headings, covers. white on it 10.53 */
  --cp-midnight-deep: #0c323a;   /* the darkest band. white on it 13.3 */
  --cp-sky: #acd8d5;             /* calm fills, selection. ink on it 11.89 */
  --cp-sky-soft: #d6ecea;        /* selected rows, chips */
  --cp-sky-wash: #eaf4f3;        /* section bands */
  --cp-coral: #f1593f;           /* the brand coral: focus ring, dots, active marker,
                                    the italic phrase at 24px and up. 3.36 on paper */
  --cp-coral-action: #c63822;    /* the one action. white text on it 5.26 */
  --cp-coral-action-hover: #b03418;
  --cp-coral-action-press: #9a2c14;
  --cp-coral-text: #b03418;      /* coral as small text. 6.27 on paper, 5.75 on ground */
  --cp-coral-soft: #fdebe7;

  /* ── paper and ink ────────────────────────────────────────────────────── */
  --cp-paper: #ffffff;           /* anything you read */
  --cp-ground: #f1f6f6;          /* the app ground, a breath of sky */
  --cp-sunken: #e6efef;          /* wells, tracks, skeletons */
  --cp-line: #dce6e6;            /* hairlines between rows */
  --cp-line-strong: #c3d2d3;     /* card edges */
  --cp-line-control: #6f8488;    /* input edges, 3.94 on paper (3:1 needed) */
  --cp-ink: #10141c;             /* the book's ink. 18.44 on paper, 16.91 on ground */
  --cp-ink-2: #3d4f55;           /* secondary text. 7.86 on ground */
  --cp-ink-3: #5b6d73;           /* meta and captions. 5.41 paper, 4.96 ground, 4.93 sky wash */
  --cp-steel: #809dac;           /* decoration only, 2.86. never text */
  --cp-heading-color: var(--cp-midnight); /* headlines and big figures. 9.84 on ground */
  --cp-on-dark: #ffffff;
  --cp-on-dark-2: #cfe2e0;       /* secondary text on midnight. 7.9 */
  --cp-scrim: rgb(12 50 58 / 0.44); /* behind a sheet, never on a photograph */

  /* ── status, from the book's secondaries. fill, text shade, soft tint ── */
  --cp-ok: #109648;      --cp-ok-text: #0c7136;     --cp-ok-soft: #e3f3e9;     /* 5.32 on soft */
  --cp-wait: #ffc40b;    --cp-wait-text: #7a5800;   --cp-wait-soft: #fff4d1;   /* 5.93 */
  --cp-stop: #e02b3d;    --cp-stop-text: #a8202e;   --cp-stop-soft: #fce7e9;   /* 6.10 */
  --cp-info: #15aa98;    --cp-info-text: #0e6b60;   --cp-info-soft: #e1f3f0;   /* 5.56 */
  --cp-sealed: #910c48;  --cp-sealed-text: #910c48; --cp-sealed-soft: #f6e4ec; /* 8.94 on paper */
  --cp-olive: #bcc906;   /* charts only */
  --cp-plum: #910c48;

  /* ── the one action and the focus ring ───────────────────────────────── */
  --cp-action: var(--cp-coral-action);
  --cp-action-hover: var(--cp-coral-action-hover);
  --cp-action-press: var(--cp-coral-action-press);
  --cp-on-action: #ffffff;
  --cp-focus-color: var(--cp-coral);
  --cp-focus-width: 2px;
  --cp-focus-offset: 2px;
  --cp-focus-ring: 0 0 0 var(--cp-focus-offset) var(--cp-paper),
    0 0 0 calc(var(--cp-focus-offset) + var(--cp-focus-width)) var(--cp-focus-color);

  /* ── type ──────────────────────────────────────────────────────────────── */
  --cp-font-voice: "Compass Fraunces", "Compass Fraunces Fallback", Georgia, "Times New Roman", serif;
  --cp-font-body: "Compass Lexend", "Compass Lexend Fallback", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --cp-font-figure: "Compass Grotesk", "Compass Grotesk Fallback", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --cp-figure-features: "tnum" 1, "lnum" 1;           /* money, counts, times */
  --cp-id-features: "tnum" 1, "lnum" 1, "zero" 1;     /* case numbers and codes: slashed zero */

  /* fluid scale, 360px to 1440px wide */
  --cp-step--2: clamp(0.75rem, 0.7396rem + 0.0463vw, 0.7813rem);   /* 12 to 12.5 */
  --cp-step--1: clamp(0.8438rem, 0.8333rem + 0.0463vw, 0.875rem);  /* 13.5 to 14 */
  --cp-step-0: clamp(1rem, 0.9792rem + 0.0926vw, 1.0625rem);       /* 16 to 17 */
  --cp-step-1: clamp(1.125rem, 1.0833rem + 0.1852vw, 1.25rem);     /* 18 to 20 */
  --cp-step-2: clamp(1.25rem, 1.1667rem + 0.3704vw, 1.5rem);       /* 20 to 24 */
  --cp-step-3: clamp(1.5rem, 1.375rem + 0.5556vw, 1.875rem);       /* 24 to 30 */
  --cp-step-4: clamp(1.75rem, 1.5417rem + 0.9259vw, 2.375rem);     /* 28 to 38 */
  --cp-step-5: clamp(2.125rem, 1.8333rem + 1.2963vw, 3rem);        /* 34 to 48 */
  --cp-step-6: clamp(2.5rem, 2rem + 2.2222vw, 4rem);               /* 40 to 64 */
  --cp-step-7: clamp(3.25rem, 2.3333rem + 4.0741vw, 6rem);         /* 52 to 96, the big stat */

  /* roles. Each register decides which face leads. Home is the default. */
  --cp-display-font: var(--cp-font-voice);
  --cp-display-weight: 460;
  --cp-display-size: var(--cp-step-6);
  --cp-display-leading: 1.04;
  --cp-display-tracking: -0.02em;
  --cp-heading-font: var(--cp-font-voice);
  --cp-heading-weight: 500;
  --cp-heading-size: var(--cp-step-3);
  --cp-heading-leading: 1.15;
  --cp-heading-tracking: -0.01em;
  --cp-body-size: 1.0625rem;     /* 17px, families read in a second language */
  --cp-body-weight: 350;
  --cp-body-leading: 1.6;
  --cp-small-size: 0.9375rem;    /* 15px */
  --cp-label-font: var(--cp-font-body);
  --cp-label-size: 0.8125rem;    /* 13px, sentence case */
  --cp-label-weight: 500;
  --cp-measure: 62ch;

  /* ── space, a 4px base ─────────────────────────────────────────────────── */
  --cp-space-1: 4px;
  --cp-space-2: 8px;
  --cp-space-3: 12px;
  --cp-space-4: 16px;
  --cp-space-5: 20px;
  --cp-space-6: 24px;
  --cp-space-7: 32px;
  --cp-space-8: 40px;
  --cp-space-9: 56px;
  --cp-space-10: 80px;
  --cp-gutter: clamp(16px, 3.2vw, 40px);        /* page side margin, 16 on a phone */
  --cp-section: clamp(40px, 6vw, 96px);         /* between sections */
  --cp-row-height: 56px;                        /* list row on a phone */
  --cp-target: 44px;                            /* the smallest thing a finger presses */

  /* ── shape ─────────────────────────────────────────────────────────────── */
  --cp-radius-xs: 4px;           /* chips inside a figure, map keys */
  --cp-radius-control: 10px;     /* buttons, inputs */
  --cp-radius-card: 14px;        /* cards and plates, the ceiling is 16 */
  --cp-radius-sheet: 22px;       /* the top corners of a bottom sheet */
  --cp-radius-pill: 999px;       /* status chips and the sync pill only */
  /* the book's signature: one large quarter round corner on an otherwise
     square block. Covers, the move pass, the empty state tile. Nowhere else. */
  --cp-radius-quarter: 4px 44px 4px 4px;
  --cp-radius-quarter-lg: 4px 88px 4px 4px;
  /* portraits sit in an arch, from "Meet your captains" in the book */
  --cp-radius-arch: 999px 999px 12px 12px;

  /* ── elevation. A border or a shadow, never both at full strength ─────── */
  --cp-shadow-1: 0 1px 2px rgb(19 69 80 / 0.07);
  --cp-shadow-2: 0 1px 2px rgb(19 69 80 / 0.06), 0 8px 24px -8px rgb(19 69 80 / 0.18);
  --cp-shadow-3: 0 2px 6px rgb(16 20 28 / 0.08), 0 24px 56px -20px rgb(16 20 28 / 0.32);
  --cp-shadow-action: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 1px 2px rgb(154 44 20 / 0.28);

  /* ── motion ────────────────────────────────────────────────────────────── */
  --cp-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);     /* things arriving, ease out expo */
  --cp-ease-exit: cubic-bezier(0.4, 0, 1, 1);         /* things leaving, quicker */
  --cp-ease-move: cubic-bezier(0.2, 0, 0, 1);         /* things changing place */
  --cp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);/* arrival and success only */
  --cp-dur-instant: 100ms;
  --cp-dur-quick: 160ms;       /* press, hover, a chip changing */
  --cp-dur-base: 280ms;        /* a sheet, a toast, a card opening */
  --cp-dur-slow: 480ms;        /* the pass arriving, a stamp */
  --cp-dur-count: 900ms;       /* a number counting up */
  --cp-motion-distance: 1;     /* multiplies every travel. 0 under reduced motion */
  --cp-press-scale: 0.97;

  /* ── layers ────────────────────────────────────────────────────────────── */
  --cp-z-sticky: 20;
  --cp-z-sheet: 50;
  --cp-z-toast: 60;
}

/* ── Field: the consultant's tool. Light by default, dense, Space Grotesk leads ─ */
[data-register="field"] {
  --cp-display-font: var(--cp-font-figure);
  --cp-display-weight: 500;
  --cp-display-size: var(--cp-step-5);
  --cp-display-leading: 1.08;
  --cp-display-tracking: -0.015em;
  --cp-heading-font: var(--cp-font-figure);
  --cp-heading-weight: 600;
  --cp-heading-size: var(--cp-step-1);
  --cp-heading-leading: 1.25;
  --cp-heading-tracking: -0.005em;
  --cp-body-size: 1rem;          /* 16 on phones, never smaller on a control */
  --cp-body-weight: 400;
  --cp-body-leading: 1.5;
  --cp-small-size: 0.875rem;
  --cp-label-font: var(--cp-font-figure);
  --cp-label-size: 0.8125rem;
  --cp-row-height: 52px;
  --cp-measure: 70ch;
}

/* Field at night: near black, never the teal field the owner rejected. */
[data-register="field"][data-theme="dark"] {
  color-scheme: dark;
  --cp-paper: #151c1f;
  --cp-ground: #0d1214;
  --cp-sunken: #0a0e10;
  --cp-line: rgb(255 255 255 / 0.08);
  --cp-line-strong: rgb(255 255 255 / 0.14);
  --cp-line-control: #6b7c7e;    /* 3.6 on paper */
  --cp-ink: #f2f4f3;             /* 17.07 */
  --cp-ink-2: #b3c0c0;           /* 9.21 on paper */
  --cp-ink-3: #8c9c9d;           /* 6.04 on paper */
  --cp-heading-color: #f2f4f3;
  --cp-sky-soft: #1d3236;
  --cp-sky-wash: #142326;
  --cp-coral-text: #f56e56;      /* 6.51 on ground */
  --cp-coral-soft: #3a1b15;
  --cp-ok-text: #4cc47f;   --cp-ok-soft: #10281b;
  --cp-wait-text: #ffd257; --cp-wait-soft: #2d2408;
  --cp-stop-text: #ff7a86; --cp-stop-soft: #34151a;
  --cp-info-text: #4fd1bf; --cp-info-soft: #0f2a27;
  --cp-sealed-text: #f08cb8; --cp-sealed-soft: #2e1220;
  --cp-scrim: rgb(0 0 0 / 0.6);
  --cp-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --cp-shadow-2: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.6);
  --cp-shadow-3: 0 24px 56px -20px rgb(0 0 0 / 0.8);
  /* the usual coral, even when the phone asks for more contrast: the darker
     one sinks into the night ground (2.69) */
  --cp-action: var(--cp-coral-action);   /* 3.58 on the night ground */
  --cp-action-hover: var(--cp-coral-action-hover);
  --cp-action-press: var(--cp-coral-action-press);
}
@media (prefers-color-scheme: dark) {
  [data-register="field"][data-theme="system"] {
    color-scheme: dark;
    --cp-paper: #151c1f;
    --cp-ground: #0d1214;
    --cp-sunken: #0a0e10;
    --cp-line: rgb(255 255 255 / 0.08);
    --cp-line-strong: rgb(255 255 255 / 0.14);
    --cp-line-control: #6b7c7e;
    --cp-ink: #f2f4f3;
    --cp-ink-2: #b3c0c0;
    --cp-ink-3: #8c9c9d;
    --cp-heading-color: #f2f4f3;
    --cp-sky-soft: #1d3236;
    --cp-sky-wash: #142326;
    --cp-coral-text: #f56e56;
    --cp-coral-soft: #3a1b15;
    --cp-ok-text: #4cc47f;   --cp-ok-soft: #10281b;
    --cp-wait-text: #ffd257; --cp-wait-soft: #2d2408;
    --cp-stop-text: #ff7a86; --cp-stop-soft: #34151a;
    --cp-info-text: #4fd1bf; --cp-info-soft: #0f2a27;
    --cp-sealed-text: #f08cb8; --cp-sealed-soft: #2e1220;
    --cp-scrim: rgb(0 0 0 / 0.6);
    --cp-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --cp-shadow-2: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.6);
    --cp-shadow-3: 0 24px 56px -20px rgb(0 0 0 / 0.8);
    --cp-action: var(--cp-coral-action);
    --cp-action-hover: var(--cp-coral-action-hover);
    --cp-action-press: var(--cp-coral-action-press);
  }
}

/* Field outdoors, in Indian sun: solid everything, black ink, heavier lines,
   no glass, a darker action. Outdoor always wins over night: it is a full
   light theme, so a phone in dark mode that turns on outdoor gets white paper
   and black ink, never black ink on the night paper. It sets every colour the
   night theme sets (tools/check-contrast.mjs checks that). A phone that asks
   for more contrast gets the milder block after this one. */
[data-register="field"][data-contrast="more"] {
  color-scheme: light;
  --cp-paper: #ffffff;
  --cp-ground: #ffffff;
  --cp-sunken: #e6efef;
  --cp-sky-soft: #d6ecea;
  --cp-sky-wash: #eaf4f3;
  --cp-coral-text: #b03418;
  --cp-coral-soft: #fdebe7;
  --cp-ok-text: #0c7136;   --cp-ok-soft: #e3f3e9;
  --cp-wait-text: #7a5800; --cp-wait-soft: #fff4d1;
  --cp-stop-text: #a8202e; --cp-stop-soft: #fce7e9;
  --cp-info-text: #0e6b60; --cp-info-soft: #e1f3f0;
  --cp-sealed-text: #910c48; --cp-sealed-soft: #f6e4ec;
  --cp-scrim: rgb(12 50 58 / 0.44);
  --cp-shadow-3: 0 0 0 1px #10141c;
  --cp-ink: #000000;
  --cp-ink-2: #1a2022;           /* 16.49 */
  --cp-ink-3: #3a4448;           /* 10.0 */
  --cp-heading-color: #000000;
  --cp-line: #9aa9ab;
  --cp-line-strong: #6f8488;
  --cp-line-control: #10141c;
  --cp-action: #a52d1b;          /* white on it 7.02 */
  --cp-action-hover: #8e2616;
  --cp-action-press: #7a2012;
  --cp-focus-width: 3px;
  --cp-shadow-1: none;
  --cp-shadow-2: 0 0 0 1px #10141c;
  --cp-body-weight: 450;
}
@media (prefers-contrast: more) {
  :root {
    --cp-ink-2: #1a2022;
    --cp-ink-3: #3a4448;
    --cp-line: #9aa9ab;
    --cp-line-strong: #6f8488;
    --cp-line-control: #10141c;
    --cp-action: #a52d1b;
    --cp-focus-width: 3px;
  }
}

/* ── Record: documents. Print sizes, Fraunces covers, Space Grotesk figures ─ */
[data-register="record"] {
  --cp-ground: #ffffff;
  --cp-display-font: var(--cp-font-voice);
  --cp-display-weight: 560;
  --cp-display-size: 40pt;
  --cp-display-leading: 1.04;
  --cp-heading-font: var(--cp-font-voice);
  --cp-heading-weight: 600;
  --cp-heading-size: 15pt;
  --cp-body-size: 10.5pt;
  --cp-body-weight: 330;
  --cp-body-leading: 1.55;
  --cp-small-size: 8.5pt;
  --cp-label-font: var(--cp-font-figure);
  --cp-label-size: 8pt;
  --cp-measure: 68ch;
}

/* ── Reduced motion: things fade instead of travel, nothing bounces ────── */
@media (prefers-reduced-motion: reduce) {
  :root {
    --cp-motion-distance: 0;
    --cp-press-scale: 1;
    --cp-ease-spring: var(--cp-ease-enter);
    --cp-dur-base: 180ms;
    --cp-dur-slow: 200ms;
    --cp-dur-count: 0ms;
  }
}
/* the in app switch, for when the phone setting is off but the person wants calm */
[data-motion="reduce"] {
  --cp-motion-distance: 0;
  --cp-press-scale: 1;
  --cp-ease-spring: var(--cp-ease-enter);
  --cp-dur-base: 180ms;
  --cp-dur-slow: 200ms;
  --cp-dur-count: 0ms;
}

/* compass.plain.css. Made from compass.css by tools/build-plain.mjs. Edit compass.css, not this.
 * The same components outside any cascade layer, for pages with no Tailwind (the city guides,
 * a plain share page). With Tailwind, use compass.css through tailwind/v4.css instead. */
/* ==========================================================================
 * Compass components. Plain classes on top of tokens.css.
 *
 * Works the same in plain HTML, Tailwind v3 and Tailwind v4. Load order:
 *   fonts/fonts.css, tokens.css, compass.css
 * Every rule sits in the "components" cascade layer, so a Tailwind utility on
 * the same element always wins. In Tailwind v3, add the Compass folder to
 * `content` so the classes are kept (see README.md).
 *
 * Names: .cp-thing for the part, .cp-thing--kind for a kind, .cp-thing__part
 * for a piece inside it. States come from ARIA and data attributes, never
 * from a class a script has to remember to remove.
 * ========================================================================== */


/* ── sizing: every Compass part measures its border, so width 100% fits ─── */
.cp, .cp *, .cp *::before, .cp *::after,
[class^="cp-"], [class*=" cp-"], [class^="cp-"]::before, [class*=" cp-"]::before,
[class^="cp-"]::after, [class*=" cp-"]::after { box-sizing: border-box; }

/* ── the page ─────────────────────────────────────────────────────────────── */
.cp {
  font-family: var(--cp-font-body);
  font-size: var(--cp-body-size);
  font-weight: var(--cp-body-weight);
  line-height: var(--cp-body-leading);
  color: var(--cp-ink);
  background: var(--cp-ground);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.cp-paper { background: var(--cp-paper); }
.cp-band { background: var(--cp-sky-wash); }
.cp-band--midnight { background: var(--cp-midnight); color: var(--cp-on-dark); }

/* ── type ─────────────────────────────────────────────────────────────────── */
.cp-display {
  font-family: var(--cp-display-font);
  font-weight: var(--cp-display-weight);
  font-size: var(--cp-display-size);
  line-height: var(--cp-display-leading);
  letter-spacing: var(--cp-display-tracking);
  color: var(--cp-heading-color);
  text-wrap: balance;
  margin: 0;
}
.cp-heading {
  font-family: var(--cp-heading-font);
  font-weight: var(--cp-heading-weight);
  font-size: var(--cp-heading-size);
  line-height: var(--cp-heading-leading);
  letter-spacing: var(--cp-heading-tracking);
  color: var(--cp-heading-color);
  text-wrap: balance;
  margin: 0;
}
.cp-title {
  font-family: var(--cp-heading-font);
  font-weight: var(--cp-heading-weight);
  font-size: var(--cp-step-1);
  line-height: 1.25;
  color: var(--cp-heading-color);
  margin: 0;
}
/* the one coral italic phrase from the brand book. 24px and up only */
.cp-phrase {
  font-family: var(--cp-font-voice);
  font-style: italic;
  font-weight: inherit;
  color: var(--cp-coral-text);
}
.cp-display .cp-phrase { color: var(--cp-coral); }
.cp-lede {
  font-size: var(--cp-step-1);
  line-height: 1.5;
  color: var(--cp-ink-2);
  max-width: var(--cp-measure);
  text-wrap: pretty;
  margin: 0;
}
.cp-text { max-width: var(--cp-measure); text-wrap: pretty; }
.cp-small { font-size: var(--cp-small-size); line-height: 1.5; color: var(--cp-ink-2); }
.cp-meta { font-size: var(--cp-step--1); line-height: 1.45; color: var(--cp-ink-3); }
.cp-label {
  font-family: var(--cp-label-font);
  font-size: var(--cp-label-size);
  font-weight: var(--cp-label-weight);
  line-height: 1.3;
  color: var(--cp-ink-3);
  letter-spacing: 0.005em;
}
/* every number, time, rupee figure and id */
.cp-figure {
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-figure-features);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}
.cp-id {
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-id-features);
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: 0.02em;
}
.cp-link {
  color: var(--cp-midnight);
  text-decoration: underline;
  text-decoration-color: var(--cp-sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  border-radius: 2px;
  transition: text-decoration-color var(--cp-dur-quick) var(--cp-ease-move);
}
.cp-link:hover { text-decoration-color: var(--cp-coral); }
.cp-link:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }

/* ── lockup: the ikan wordmark, a hairline, the product name ─────────────── */
.cp-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--cp-midnight);
  text-decoration: none;
  font-size: 1rem;
}
.cp-lockup__mark {
  display: block;
  width: 3.2em;
  height: 1.25em;
  background: currentColor;
  -webkit-mask: var(--cp-mask-wordmark) left center / contain no-repeat;
  mask: var(--cp-mask-wordmark) left center / contain no-repeat;
}
.cp-lockup__rule { width: 1px; height: 1.2em; background: currentColor; opacity: 0.28; }
.cp-lockup__name {
  font-family: var(--cp-font-figure);
  font-weight: 500;
  font-size: 1.02em;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--cp-ink);
}
.cp-mark-k {
  display: inline-block;
  width: 1em;
  height: 1.2em;
  background: currentColor;
  -webkit-mask: var(--cp-mask-k) center / contain no-repeat;
  mask: var(--cp-mask-k) center / contain no-repeat;
}

/* ── button: one coral action per view ───────────────────────────────────── */
.cp-button {
  --_bg: var(--cp-action);
  --_fg: var(--cp-on-action);
  --_edge: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--cp-target);
  padding: 0 1.25em;
  border: 1px solid var(--_edge);
  border-radius: var(--cp-radius-control);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--cp-font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: var(--cp-shadow-action);
  transition:
    background-color var(--cp-dur-quick) var(--cp-ease-move),
    border-color var(--cp-dur-quick) var(--cp-ease-move),
    transform var(--cp-dur-quick) var(--cp-ease-enter),
    box-shadow var(--cp-dur-quick) var(--cp-ease-move);
}
.cp-button:hover { --_bg: var(--cp-action-hover); }
.cp-button:active { --_bg: var(--cp-action-press); transform: scale(var(--cp-press-scale)); }
.cp-button:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }
.cp-button svg { width: 1.2em; height: 1.2em; flex: none; stroke-width: 1.9; }
.cp-button--lg { min-height: 52px; padding: 0 1.5em; font-size: 1.0625rem; }
.cp-button--block { display: flex; width: 100%; padding-block: 0.625em; white-space: normal; text-wrap: balance; text-align: center; } /* a long label wraps, never pushes the card wider */
.cp-button--quiet {
  --_bg: var(--cp-paper);
  --_fg: var(--cp-ink);
  --_edge: var(--cp-line-strong);
  box-shadow: var(--cp-shadow-1);
}
.cp-button--quiet:hover { --_bg: var(--cp-sky-wash); --_edge: var(--cp-line-control); }
.cp-button--quiet:active { --_bg: var(--cp-sky-soft); }
.cp-button--ghost { --_bg: transparent; --_fg: var(--cp-midnight); box-shadow: none; }
.cp-button--ghost:hover { --_bg: var(--cp-sky-wash); }
.cp-button--ghost:active { --_bg: var(--cp-sky-soft); }
[data-theme="dark"] .cp-button--ghost,
[data-theme="dark"].cp-button--ghost { --_fg: var(--cp-sky); }
.cp-button--on-dark { --_bg: var(--cp-paper); --_fg: var(--cp-midnight); box-shadow: none; }
.cp-button--on-dark:hover { --_bg: var(--cp-sky-wash); }
.cp-button--icon { width: var(--cp-target); padding: 0; }
.cp-button:disabled,
.cp-button[aria-disabled="true"] {
  --_bg: var(--cp-sunken);
  --_fg: var(--cp-ink-3);
  --_edge: transparent;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
/* busy: the label stays, three dots breathe beside it */
.cp-button--ghost:disabled,
.cp-button--ghost[aria-disabled="true"] { --_bg: transparent; }
.cp-button[aria-busy="true"] { cursor: progress; }
.cp-button[aria-busy="true"]::after {
  content: "";
  width: 1.4em;
  height: 0.36em;
  background:
    radial-gradient(circle closest-side, currentColor 90%, transparent) 0 50% / 0.36em 0.36em no-repeat,
    radial-gradient(circle closest-side, currentColor 90%, transparent) 50% 50% / 0.36em 0.36em no-repeat,
    radial-gradient(circle closest-side, currentColor 90%, transparent) 100% 50% / 0.36em 0.36em no-repeat;
  animation: cp-breathe 1.1s var(--cp-ease-move) infinite;
}

/* ── field ────────────────────────────────────────────────────────────────── */
.cp-field { display: grid; gap: 6px; }
.cp-field__label { font-size: 0.9375rem; font-weight: 500; color: var(--cp-ink); line-height: 1.3; }
.cp-field__hint { font-size: var(--cp-step--1); color: var(--cp-ink-3); line-height: 1.45; }
.cp-field__error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: var(--cp-step--1);
  color: var(--cp-stop-text);
  line-height: 1.45;
}
.cp-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--cp-line-control);
  border-radius: var(--cp-radius-control);
  background: var(--cp-paper);
  color: var(--cp-ink);
  font-family: var(--cp-font-body);
  font-size: 1rem;              /* never under 16px, or iPhone zooms in */
  font-weight: 400;
  line-height: 1.4;
  transition: border-color var(--cp-dur-quick) var(--cp-ease-move), box-shadow var(--cp-dur-quick) var(--cp-ease-move);
  -webkit-appearance: none;
  appearance: none;
}
textarea.cp-input { padding: 12px 14px; min-height: 104px; resize: vertical; }
.cp-input::placeholder { color: var(--cp-ink-3); opacity: 1; }
.cp-input:hover { border-color: var(--cp-ink-2); }
.cp-input:focus-visible,
.cp-input:focus { outline: none; border-color: var(--cp-midnight); box-shadow: 0 0 0 3px var(--cp-sky-soft); }
.cp-input[aria-invalid="true"] { border-color: var(--cp-stop); }
.cp-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--cp-stop-soft); }
.cp-input:disabled { background: var(--cp-sunken); color: var(--cp-ink-3); }

/* ── code input: six boxes over one real input, so paste and autofill work ─ */
.cp-code {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 10px repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 400px;
}
.cp-code__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  font-size: 16px;
  color: transparent;
  caret-color: transparent;
  background: transparent;
  z-index: 1;
  cursor: text;
}
.cp-code__cell {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 6;
  min-height: 52px;
  border: 1px solid var(--cp-line-control);
  border-radius: var(--cp-radius-control);
  background: var(--cp-paper);
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-id-features);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.875rem);
  font-weight: 500;
  color: var(--cp-ink);
  transition: border-color var(--cp-dur-quick) var(--cp-ease-move), box-shadow var(--cp-dur-quick) var(--cp-ease-move), background-color var(--cp-dur-quick);
}
.cp-code__gap { align-self: center; height: 2px; background: var(--cp-line-strong); border-radius: 2px; }
.cp-code__cell[data-filled="true"] { border-color: var(--cp-ink-2); }
.cp-code__cell[data-active="true"] { border-color: var(--cp-midnight); box-shadow: 0 0 0 3px var(--cp-sky-soft); }
.cp-code__cell[data-active="true"]:empty::after {
  content: "";
  width: 2px;
  height: 45%;
  border-radius: 2px;
  background: var(--cp-coral);
  animation: cp-caret 1.1s steps(1) infinite;
}
.cp-code[data-state="error"] .cp-code__cell { border-color: var(--cp-stop); background: var(--cp-stop-soft); }
.cp-code[data-state="error"] { animation: cp-shake 360ms var(--cp-ease-move); }
.cp-code[data-state="done"] .cp-code__cell { border-color: var(--cp-ok); background: var(--cp-ok-soft); color: var(--cp-ok-text); }
.cp-code[data-state="checking"] .cp-code__cell { background: var(--cp-sky-wash); }

/* ── card and photo plate ─────────────────────────────────────────────────── */
.cp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cp-paper);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card);
  box-shadow: var(--cp-shadow-1);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
a.cp-card, button.cp-card { cursor: pointer; text-align: left; font: inherit; padding: 0; transition: transform var(--cp-dur-quick) var(--cp-ease-enter), box-shadow var(--cp-dur-base) var(--cp-ease-move); }
a.cp-card:hover, button.cp-card:hover { box-shadow: var(--cp-shadow-2); }
a.cp-card:active, button.cp-card:active { transform: scale(0.985); }
a.cp-card:focus-visible, button.cp-card:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }
.cp-card__body { display: grid; gap: 10px; padding: 16px 18px 18px; }
.cp-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--cp-line);
}
.cp-card--quarter { border-radius: var(--cp-radius-quarter); }
.cp-card--flat { box-shadow: none; }

/* a photograph as a plate: contained, never under type, caption and credit beside it */
.cp-plate { margin: 0; display: grid; gap: 8px; }
.cp-plate__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--cp-radius-card);
  background: var(--cp-sunken);
  aspect-ratio: var(--cp-plate-ratio, 3 / 2);
}
.cp-card > .cp-plate > .cp-plate__frame,
.cp-card > .cp-plate__frame { border-radius: 0; }
.cp-plate__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cp-plate-focus, 50% 50%);
  transition: opacity var(--cp-dur-slow) var(--cp-ease-enter);
}
.cp-plate__frame img[data-loaded="false"] { opacity: 0; }
.cp-plate__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75em;
  row-gap: 2px;
  font-size: var(--cp-step--1);
  line-height: 1.45;
  color: var(--cp-ink-2);
}
.cp-plate__credit { font-size: var(--cp-step--2); color: var(--cp-ink-3); }
.cp-plate__credit a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-decoration-color: var(--cp-line-strong); text-underline-offset: 0.18em; }  /* 44px to tap */
.cp-card .cp-plate__caption { padding: 0 18px; }
/* beside: caption in its own column on wide screens */
@media (min-width: 720px) {
  .cp-plate--beside { grid-template-columns: minmax(0, 1fr) minmax(160px, 15rem); align-items: end; gap: 20px; }
  .cp-plate--beside .cp-plate__caption { flex-direction: column; gap: 6px; }
}
.cp-plate--quarter .cp-plate__frame { border-radius: var(--cp-radius-quarter-lg); }
.cp-plate__index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

/* ── list row ─────────────────────────────────────────────────────────────── */
.cp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--cp-paper);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card);
  overflow: hidden;
}
.cp-list > li + li { border-top: 1px solid var(--cp-line); }
.cp-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: var(--cp-row-height);
  padding: 10px 16px;
  color: inherit;
  text-decoration: none;
  background: transparent;
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
}
a.cp-row, button.cp-row { cursor: pointer; transition: background-color var(--cp-dur-quick) var(--cp-ease-move); }
a.cp-row:hover, button.cp-row:hover { background: var(--cp-sky-wash); }
a.cp-row:active, button.cp-row:active { background: var(--cp-sky-soft); }
a.cp-row:focus-visible, button.cp-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--cp-coral); }
.cp-row[aria-current="true"], .cp-row[aria-selected="true"] { background: var(--cp-sky-soft); }
.cp-row__lead {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cp-sky-wash);
  color: var(--cp-midnight);
}
.cp-row__lead svg { width: 20px; height: 20px; stroke-width: 1.75; }
.cp-row__lead--time {
  width: auto;
  min-width: 52px;
  height: auto;
  background: none;
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-figure-features);
  font-weight: 500;
  font-size: 1rem;
  color: var(--cp-ink);
  place-items: start;
}
.cp-row__main { display: grid; gap: 2px; min-width: 0; }
.cp-row__title {
  font-weight: 500;
  color: var(--cp-ink);
  line-height: 1.3;
  overflow-wrap: anywhere;   /* wraps, never cut off with dots */
}
.cp-row__meta { font-size: var(--cp-step--1); color: var(--cp-ink-3); line-height: 1.35; overflow-wrap: anywhere; }
.cp-row__end { display: flex; align-items: center; gap: 10px; color: var(--cp-ink-3); }
.cp-row__end svg { width: 18px; height: 18px; }
.cp-row__value {
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-figure-features);
  font-weight: 500;
  color: var(--cp-ink);
}

/* ── tabs: a sliding marker. Set --cp-tab-x and --cp-tab-w from script, or
      let the ::after under [aria-selected] do it with no script ─────────── */
.cp-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: calc(var(--cp-radius-control) + 4px);
  background: var(--cp-sunken);
  overflow-x: auto;
  scrollbar-width: none;
}
.cp-tabs::-webkit-scrollbar { display: none; }
.cp-tab {
  position: relative;
  flex: 1 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--cp-radius-control);
  background: transparent;
  color: var(--cp-ink-2);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--cp-dur-quick) var(--cp-ease-move), background-color var(--cp-dur-base) var(--cp-ease-enter), box-shadow var(--cp-dur-base) var(--cp-ease-enter);
}
.cp-tab:hover { color: var(--cp-ink); }
.cp-tab[aria-selected="true"] { background: var(--cp-paper); color: var(--cp-ink); box-shadow: var(--cp-shadow-1); }
.cp-tab:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }
.cp-tab__count {
  margin-left: 6px;
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-figure-features);
  color: var(--cp-ink-3);
}
/* underline tabs, for a page header */
.cp-tabs--line { background: none; padding: 0; gap: 20px; border-bottom: 1px solid var(--cp-line); border-radius: 0; }
.cp-tabs--line .cp-tab { flex: none; padding: 0 2px; border-radius: 0; min-height: 44px; box-shadow: none; background: none; }
.cp-tabs--line .cp-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;                 /* inside the tab, so a scrolling tab list never clips it */
  height: 2px;
  border-radius: 2px;
  background: var(--cp-coral);
  transform: scaleX(0);
  transition: transform var(--cp-dur-base) var(--cp-ease-enter);
}
.cp-tabs--line .cp-tab[aria-selected="true"]::after { transform: scaleX(1); }

/* the phone's bottom bar */
.cp-tabbar {
  position: sticky;
  bottom: 0;
  z-index: var(--cp-z-sticky);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--cp-paper);
  border-top: 1px solid var(--cp-line);
}
.cp-tabbar__item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 52px;
  padding: 6px 4px 2px;
  border: 0;
  background: none;
  color: var(--cp-ink-3);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--cp-radius-control);
}
.cp-tabbar__item svg { width: 24px; height: 24px; stroke-width: 1.75; transition: transform var(--cp-dur-base) var(--cp-ease-spring); }
.cp-tabbar__item[aria-current="page"] { color: var(--cp-midnight); }
.cp-tabbar__item[aria-current="page"] svg { transform: translateY(-1px); }
.cp-tabbar__item[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -7px;
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--cp-coral);
}
.cp-tabbar__item:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }

/* ── sheet: a bottom sheet on a phone, a dialog on a desk ─────────────────── */
.cp-sheet {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--cp-z-sheet);
  width: 100%;
  max-width: 100%;
  max-height: min(88dvh, 100% - 24px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--cp-radius-sheet) var(--cp-radius-sheet) 0 0;
  background: var(--cp-paper);
  color: var(--cp-ink);
  box-shadow: var(--cp-shadow-3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateY(0);
  transition: transform var(--cp-dur-base) var(--cp-ease-enter), opacity var(--cp-dur-base) var(--cp-ease-enter);
}
dialog.cp-sheet:not([open]) { display: none; }
.cp-sheet[data-state="closing"] { transform: translateY(calc(100% * var(--cp-motion-distance))); opacity: 0; transition-duration: var(--cp-dur-quick); transition-timing-function: var(--cp-ease-exit); }
dialog.cp-sheet[open] { animation: cp-sheet-in var(--cp-dur-base) var(--cp-ease-enter); }
dialog.cp-sheet::backdrop { background: var(--cp-scrim); animation: cp-fade var(--cp-dur-base) var(--cp-ease-enter); }
.cp-scrim { position: fixed; inset: 0; z-index: calc(var(--cp-z-sheet) - 1); background: var(--cp-scrim); animation: cp-fade var(--cp-dur-base) var(--cp-ease-enter); }
.cp-sheet__grab {
  display: grid;
  place-items: center;
  flex: none;
  height: 22px;
  cursor: grab;
  touch-action: none;
  border: 0;
  background: none;
  width: 100%;
}
.cp-sheet__grab::before { content: ""; width: 40px; height: 5px; border-radius: 5px; background: var(--cp-line-strong); }
.cp-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 4px 20px 12px; }
.cp-sheet__title { font-family: var(--cp-heading-font); font-weight: var(--cp-heading-weight); font-size: var(--cp-step-2); line-height: 1.2; color: var(--cp-heading-color); margin: 0; }
.cp-sheet__text { margin: 4px 0 0; font-size: var(--cp-step--1); color: var(--cp-ink-3); line-height: 1.45; }
.cp-sheet__body { flex: 1 1 auto; overflow: auto; padding: 0 20px 16px; -webkit-overflow-scrolling: touch; }
.cp-sheet__foot { flex: none; display: grid; gap: 10px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--cp-line); background: var(--cp-paper); }
@media (min-width: 720px) {
  .cp-sheet {
    inset: 0;
    margin: auto;
    width: min(520px, 100% - 48px);
    height: fit-content;
    max-height: min(80dvh, 720px);
    border-radius: 18px;
  }
  .cp-sheet__grab { display: none; }
  .cp-sheet__head { padding-top: 20px; }
  .cp-sheet[data-state="closing"] { transform: translateY(calc(12px * var(--cp-motion-distance))) scale(0.98); }
  dialog.cp-sheet[open] { animation-name: cp-dialog-in; }
}
/* the sheet drawn in place, for a specimen or a static page */
.cp-sheet--inline { position: relative; inset: auto; z-index: auto; max-height: none; animation: none; }

/* ── toast ────────────────────────────────────────────────────────────────── */
/* Toasts sit above the bottom tab bar, never on it. The bar is 64px plus the
   safe area; an app with a taller bar sets --cp-toast-offset itself. */
:root:has(.cp-tabbar) { --cp-toast-offset: 72px; }
.cp-toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--cp-toast-offset, 16px) + env(safe-area-inset-bottom));
  z-index: var(--cp-z-toast);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}
.cp-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, 100%);
  min-height: 52px;
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: var(--cp-midnight-deep);
  color: var(--cp-on-dark);
  box-shadow: var(--cp-shadow-3);
  font-size: 0.9375rem;
  line-height: 1.35;
  animation: cp-toast-in var(--cp-dur-base) var(--cp-ease-spring);
}
.cp-toast[data-state="leaving"] { animation: cp-toast-out var(--cp-dur-quick) var(--cp-ease-exit) forwards; }
.cp-toast__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / 0.1); color: var(--cp-sky); }
.cp-toast__icon svg { width: 16px; height: 16px; stroke-width: 2.2; }
.cp-toast--ok .cp-toast__icon { background: var(--cp-ok); color: #fff; }
.cp-toast--stop .cp-toast__icon { background: var(--cp-stop); color: #fff; }
.cp-toast__text { flex: 1; min-width: 0; }
.cp-toast__action {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.cp-toast__action:hover { background: rgb(255 255 255 / 0.2); }
.cp-toast__action:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--cp-coral); }
.cp-toast--inline { animation: none; }
/* inside an open sheet: in the flow, just above the buttons */
.cp-toasts--slot { position: static; flex: none; padding: 0 16px 12px; }
.cp-toasts--slot:empty { display: none; }

/* ── status chip. Never coral for a status ───────────────────────────────── */
.cp-chip {
  --_fg: var(--cp-ink-2);
  --_bg: var(--cp-sunken);
  --_dot: var(--cp-steel);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px 0 8px;
  border-radius: var(--cp-radius-pill);
  background: var(--_bg);
  color: var(--_fg);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.cp-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--_dot); flex: none; }
.cp-chip--plain::before { display: none; }
.cp-chip--plain { padding: 0 10px; }
.cp-chip--ok { --_fg: var(--cp-ok-text); --_bg: var(--cp-ok-soft); --_dot: var(--cp-ok); }
.cp-chip--wait { --_fg: var(--cp-wait-text); --_bg: var(--cp-wait-soft); --_dot: var(--cp-wait); }
.cp-chip--stop { --_fg: var(--cp-stop-text); --_bg: var(--cp-stop-soft); --_dot: var(--cp-stop); }
.cp-chip--info { --_fg: var(--cp-info-text); --_bg: var(--cp-info-soft); --_dot: var(--cp-info); }
.cp-chip--sealed { --_fg: var(--cp-sealed-text); --_bg: var(--cp-sealed-soft); --_dot: var(--cp-sealed); }
.cp-chip--sky { --_fg: var(--cp-midnight); --_bg: var(--cp-sky-soft); --_dot: var(--cp-midnight); }
.cp-chip--live::before { animation: cp-pulse 1.8s var(--cp-ease-move) infinite; }
/* a case number or code you can tap to copy */
.cp-case {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--cp-line-strong);
  border-radius: 8px;
  background: var(--cp-paper);
  color: var(--cp-ink);
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-id-features);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
button.cp-case { cursor: copy; min-height: 44px; padding: 0 12px; border-radius: var(--cp-radius-control); font-size: 0.9375rem; }
button.cp-case:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }

/* ── sync pill: says where your work is, in place, never a banner ────────── */
.cp-sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px 0 10px;
  border-radius: var(--cp-radius-pill);
  background: var(--cp-paper);
  border: 1px solid var(--cp-line);
  color: var(--cp-ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--cp-dur-base) var(--cp-ease-move), color var(--cp-dur-base) var(--cp-ease-move), border-color var(--cp-dur-base);
}
.cp-sync__icon { position: relative; width: 14px; height: 14px; flex: none; display: grid; place-items: center; }
.cp-sync__icon svg { width: 14px; height: 14px; stroke-width: 2.2; }
.cp-sync[data-state="synced"] { color: var(--cp-ok-text); background: var(--cp-ok-soft); border-color: transparent; }
.cp-sync[data-state="local"] { color: var(--cp-midnight); background: var(--cp-sky-wash); border-color: var(--cp-sky-soft); }
.cp-sync[data-state="syncing"] { color: var(--cp-midnight); }
.cp-sync[data-state="syncing"] .cp-sync__icon svg { animation: cp-spin 1.2s linear infinite; }
.cp-sync[data-state="offline"] { color: var(--cp-wait-text); background: var(--cp-wait-soft); border-color: transparent; }
.cp-sync[data-state="failed"] { color: var(--cp-stop-text); background: var(--cp-stop-soft); border-color: transparent; }
button.cp-sync { cursor: pointer; font: inherit; font-size: 0.8125rem; font-weight: 500; }
button.cp-sync:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }

/* ── empty state, with the brand's quarter round tile pattern ────────────── */
.cp-empty {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px 24px 24px;
  border-radius: var(--cp-radius-quarter-lg);
  background: var(--cp-sky-wash);
  overflow: hidden;
  isolation: isolate;
}
.cp-empty::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -18%;
  width: min(62%, 320px);
  aspect-ratio: 1;
  z-index: -1;
  background: var(--cp-sky);
  opacity: 0.9;
  -webkit-mask: var(--cp-mask-pattern) center / contain no-repeat;
  mask: var(--cp-mask-pattern) center / contain no-repeat;
}
.cp-empty__title { font-family: var(--cp-heading-font); font-weight: var(--cp-heading-weight); font-size: var(--cp-step-2); line-height: 1.2; color: var(--cp-heading-color); margin: 0; max-width: 22ch; }
.cp-empty__text { margin: 0; color: var(--cp-ink-2); max-width: 38ch; }
.cp-empty .cp-button { margin-top: 6px; }

/* ── avatar and the arch portrait ─────────────────────────────────────────── */
.cp-avatar {
  display: inline-grid;
  place-items: center;
  width: var(--cp-avatar-size, 40px);
  height: var(--cp-avatar-size, 40px);
  flex: none;
  border-radius: 50%;
  background: var(--cp-sky);
  color: var(--cp-midnight);
  font-family: var(--cp-font-figure);
  font-weight: 600;
  font-size: calc(var(--cp-avatar-size, 40px) * 0.38);
  overflow: hidden;
}
.cp-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* portraits sit in an arch, from "Meet your captains" in the brand book */
.cp-portrait {
  position: relative;
  display: inline-grid;
  place-items: end center;
  width: var(--cp-portrait-size, 72px);
  aspect-ratio: 4 / 5;
  flex: none;
  border-radius: var(--cp-radius-arch);
  background: var(--cp-sky);
  color: var(--cp-midnight);
  overflow: hidden;
  font-family: var(--cp-font-voice);
  font-size: calc(var(--cp-portrait-size, 72px) * 0.42);
  font-weight: 500;
}
.cp-portrait > span { align-self: center; }
.cp-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

/* ── stat: a big number that opens its work ──────────────────────────────── */
.cp-stat { display: grid; gap: 4px; align-content: start; color: inherit; text-decoration: none; }
.cp-stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-figure-features);
  font-weight: 500;
  font-size: var(--cp-stat-size, var(--cp-step-6));
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--cp-heading-color);
}
.cp-stat__unit { font-size: 0.42em; font-weight: 500; letter-spacing: -0.01em; color: var(--cp-ink-3); }
.cp-stat__label { font-size: var(--cp-small-size); color: var(--cp-ink-2); line-height: 1.35; }
.cp-stat__note { font-size: var(--cp-step--1); color: var(--cp-ink-3); }
.cp-stat--sm { --cp-stat-size: var(--cp-step-4); }
.cp-stat--lg { --cp-stat-size: var(--cp-step-7); }
a.cp-stat, button.cp-stat {
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color var(--cp-dur-quick) var(--cp-ease-move);
}
a.cp-stat:hover, button.cp-stat:hover { background: var(--cp-sky-wash); }
a.cp-stat:focus-visible, button.cp-stat:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }
a.cp-stat .cp-stat__label::after, button.cp-stat .cp-stat__label::after { content: " \2192"; color: var(--cp-coral-text); }

/* ── money: a rupee figure with its unit ─────────────────────────────────── */
.cp-money {
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-figure-features);
  font-weight: 500;
  font-size: var(--cp-step-3);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cp-heading-color);
}
.cp-money small { font-family: var(--cp-font-body); font-size: 0.5em; font-weight: 400; letter-spacing: 0; color: var(--cp-ink-3); margin-left: 0.3em; }

/* ── map pin. Homes are numbered circles, offices are lettered squares ──── */
.cp-pin {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cp-coral-action);
  color: #fff;
  font-family: var(--cp-font-figure);
  font-feature-settings: var(--cp-figure-features);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgb(16 20 28 / 0.25), 0 4px 10px -2px rgb(16 20 28 / 0.25);
  transform-origin: 50% 100%;
}
.cp-pin--office { border-radius: 7px; background: var(--cp-midnight); }
.cp-pin--stay { background: var(--cp-midnight); }
.cp-pin--you { width: 18px; height: 18px; background: #2f7de1; border-width: 3px; box-shadow: 0 0 0 6px rgb(47 125 225 / 0.18); }
.cp-pin--done { background: var(--cp-ok); }
.cp-pin[data-drop] { animation: cp-pin-drop var(--cp-dur-slow) var(--cp-ease-spring) both; animation-delay: calc(var(--cp-drop-i, 0) * 36ms); }
.cp-pin-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--cp-midnight);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--cp-shadow-2);
}
/* drive time chip: A and B are the two offices */
.cp-drive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  background: var(--cp-sky-wash);
  color: var(--cp-ink);
  font-size: 0.8125rem;
  line-height: 1.2;
}
.cp-drive b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--cp-midnight);
  color: #fff;
  font-family: var(--cp-font-figure);
  font-size: 0.75rem;
  font-weight: 600;
}
.cp-drive span { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; }

/* ── stamp: the seal on a signed record ──────────────────────────────────── */
.cp-stamp {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--cp-stamp-size, 132px);
  aspect-ratio: 1;
  color: var(--cp-sealed);
  transform: rotate(-8deg);
}
.cp-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cp-stamp__ring { font-family: var(--cp-font-figure); font-size: 7.4px; font-weight: 600; letter-spacing: 0.16em; }
.cp-stamp__center { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; }
.cp-stamp__word { font-family: var(--cp-font-figure); font-weight: 700; font-size: calc(var(--cp-stamp-size, 132px) * 0.082); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; margin-bottom: 2px; }
.cp-stamp__time { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-id-features); font-size: calc(var(--cp-stamp-size, 132px) * 0.07); line-height: 1.25; }
.cp-stamp[data-animate] { animation: cp-stamp var(--cp-dur-slow) var(--cp-ease-spring) both; }

/* ── the move pass: a family's move on one card ──────────────────────────── */
.cp-pass {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--cp-radius-quarter-lg);
  background: var(--cp-midnight);
  color: var(--cp-on-dark);
  box-shadow: var(--cp-shadow-3);
  isolation: isolate;
}
.cp-pass[data-animate] { animation: cp-pass-in var(--cp-dur-slow) var(--cp-ease-spring) both; }
.cp-pass__photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cp-midnight-deep); }
.cp-pass__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-pass__credit { padding: 6px 20px 0; font-size: 0.6875rem; color: var(--cp-on-dark-2); opacity: 0.85; }
.cp-pass__body { display: grid; gap: 14px; padding: 16px 20px 20px; }
.cp-pass__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.cp-pass__route { font-size: 0.875rem; color: var(--cp-on-dark-2); }
.cp-pass__case { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-id-features); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--cp-on-dark-2); white-space: nowrap; }
.cp-pass__name { font-family: var(--cp-font-voice); font-weight: 460; font-size: var(--cp-step-4); line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: #fff; }
.cp-pass__name em { font-style: italic; color: var(--cp-sky); }
.cp-pass__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid rgb(172 216 213 / 0.22); }
.cp-pass__fact { display: grid; gap: 3px; }
.cp-pass__fact dt { font-size: 0.75rem; color: var(--cp-on-dark-2); }
.cp-pass__fact dd { margin: 0; font-family: var(--cp-font-figure); font-feature-settings: var(--cp-id-features); font-weight: 500; font-size: 1rem; color: #fff; }
.cp-pass__person { display: flex; align-items: center; gap: 12px; }
.cp-pass__person .cp-portrait { --cp-portrait-size: 48px; }
.cp-pass__person b { display: block; font-weight: 500; color: #fff; }
.cp-pass__person > div > span { font-size: 0.8125rem; color: var(--cp-on-dark-2); }
.cp-pass__actions { display: grid; gap: 8px; }

/* ── door: one sentence, one button, one quiet second way ────────────────── */
.cp-door {
  display: grid;
  align-content: center;
  gap: 20px;
  min-height: 100%;
  padding: 32px var(--cp-gutter);
  max-width: 440px;
  margin: 0 auto;
}
.cp-door__mark { color: var(--cp-midnight); font-size: 44px; }
.cp-door__head { display: grid; gap: 10px; }
.cp-door__title { font-family: var(--cp-font-voice); font-weight: 460; font-size: var(--cp-step-5); line-height: 1.05; letter-spacing: -0.02em; color: var(--cp-heading-color); margin: 0; text-wrap: balance; }
.cp-door__text { margin: 0; color: var(--cp-ink-2); font-size: var(--cp-body-size); line-height: 1.55; max-width: 34ch; }
.cp-door__form { display: grid; gap: 12px; }
.cp-door__second { justify-self: center; }
.cp-door__help { font-size: var(--cp-step--1); color: var(--cp-ink-3); text-align: center; margin: 0; }

/* ── callout: plain words and one action ─────────────────────────────────── */
.cp-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--cp-sky-wash);
  color: var(--cp-ink);
}
.cp-callout > svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 2px; color: var(--cp-midnight); stroke-width: 1.9; }
.cp-callout__title { font-weight: 500; margin: 0; }
.cp-callout__text { margin: 0; color: var(--cp-ink-2); font-size: var(--cp-small-size); }
.cp-callout--wait { background: var(--cp-wait-soft); }
.cp-callout--wait > svg { color: var(--cp-wait-text); }
.cp-callout--stop { background: var(--cp-stop-soft); }
.cp-callout--stop > svg { color: var(--cp-stop-text); }

/* ── skeleton: shows after 200ms, stays 300ms ────────────────────────────── */
.cp-skeleton {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--cp-sunken) 0%, var(--cp-sky-wash) 50%, var(--cp-sunken) 100%) 0 0 / 200% 100%;
  animation: cp-shimmer 1.6s var(--cp-ease-move) infinite, cp-fade var(--cp-dur-base) 200ms both;
  min-height: 1em;
}

/* ── ledger: facts in two columns, for documents and detail screens ─────── */
.cp-ledger { display: grid; grid-template-columns: minmax(8em, max-content) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--cp-line); }
.cp-ledger > dt, .cp-ledger > dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--cp-line); }
.cp-ledger > dt { color: var(--cp-ink-3); font-size: var(--cp-small-size); padding-right: 16px; }
.cp-ledger > dd { color: var(--cp-ink); }

/* ── Record: an A4 sheet that is the same on screen and on paper ─────────── */
.cp-a4 {
  position: relative;
  width: 100%;
  background: var(--cp-paper);
  color: var(--cp-ink);
  overflow: hidden;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
@media (min-width: 820px) {
  .cp-a4 { width: 210mm; min-height: 297mm; box-shadow: var(--cp-shadow-2); }
}
@media print {
  .cp-a4 { width: 210mm; height: 297mm; box-shadow: none; break-after: page; }
}

/* ── one focus ring for anything else that can be focused ────────────────── */
.cp-focus:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }

/* read aloud, never seen */
.cp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* ── brand marks as masks, so they take any colour ───────────────────────── */
:root {
  --cp-mask-wordmark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22154.5 154 970.25 378.5%22 fill=%22%23000%22%3E%3Cpath d=%22m666.08,532.3c-18.72,0-35.4-3.18-50.05-9.53-14.66-6.36-26.32-15.71-34.96-28.07-8.65-12.35-12.97-27.36-12.97-45.02s4.32-32.92,12.97-44.75c8.65-11.83,20.48-20.74,35.49-26.75,15-6,32.04-9,51.11-9h79.44v-16.95c0-15.18-4.59-27.36-13.78-36.54-9.19-9.18-23.3-13.77-42.37-13.77s-33.02,4.42-42.9,13.24c-9.89,8.83-16.42,20.31-19.59,34.43l-50.84-16.42c4.23-14.12,11.03-26.92,20.39-38.4,9.35-11.47,21.8-20.74,37.33-27.81,15.54-7.06,34.25-10.59,56.15-10.59,33.89,0,60.55,8.66,79.97,25.95,19.42,17.3,29.13,41.84,29.13,73.62v107.51c0,10.59,4.93,15.89,14.82,15.89h22.25v30.46c0,8.33-6.76,15.09-15.09,15.09h-25.7c-12.36,0-22.43-3.18-30.18-9.53-7.77-6.36-11.65-15-11.65-25.95v-1.59h-7.94c-2.83,5.3-7.08,11.48-12.71,18.54-5.66,7.07-13.95,13.16-24.9,18.27-10.94,5.11-25.42,7.68-43.43,7.68Zm7.94-45.02c21.89,0,39.54-6.26,52.96-18.8,13.42-12.53,20.13-29.74,20.13-51.64v-5.3h-76.27c-14.48,0-26.14,3.1-34.95,9.27-8.83,6.18-13.24,15.28-13.24,27.28s4.58,21.54,13.77,28.6c9.18,7.07,21.71,10.59,37.6,10.59Z%22/%3E%3Cpath d=%22m877.4,509.8v-246.01h53.49v39.19h8.47c4.94-10.59,13.78-20.47,26.48-29.66,12.71-9.18,31.6-13.77,56.68-13.77,19.77,0,37.33,4.42,52.69,13.24,15.36,8.83,27.45,21.28,36.28,37.34,8.82,16.07,13.24,35.4,13.24,57.99v156.77h-39.45c-8.33,0-15.09-6.76-15.09-15.09v-137.44c0-22.59-5.66-39.28-16.95-50.05-11.3-10.77-26.83-16.15-46.6-16.15-22.6,0-40.7,7.41-54.29,22.24-13.6,14.83-20.39,36.37-20.39,64.62v131.88h-39.46c-8.33,0-15.09-6.76-15.09-15.09Z%22/%3E%3Cpath d=%22m154.69,204.78v-50.63h59.18v50.63h-59.18Zm2.03,305.01v-245.88h54.62v260.97h-39.53c-8.33,0-15.09-6.76-15.09-15.09Z%22/%3E%3Crect x=%22300.11%22 y=%22154.2%22 width=%2254.56%22 height=%22211.32%22/%3E%3Cpath d=%22m315.2,524.94h39.47v-108.57h-54.56s0,93.48,0,93.48c0,8.33,6.76,15.09,15.09,15.09Z%22/%3E%3Cpath d=%22m418.64,390.42l131.87-126.58h-72.55l-102.75,101.69h-20.55v50.84h20.55l98.33,99.29c5.88,5.94,13.9,9.28,22.25,9.28h58.96l-136.11-134.52Z%22/%3E%3Cpath d=%22m245.51,380.61v35.75h54.6s0-50.84,0-50.84h-39.5c-8.33,0-15.09,6.76-15.09,15.09Z%22/%3E%3C/svg%3E");
  --cp-mask-k: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22216 213.75 856.75 1027%22 fill=%22%23000%22%3E%3Crect x=%22367.43%22 y=%22213.8%22 width=%22151.11%22 height=%22585.31%22/%3E%3Cpath d=%22m409.23,1240.67h109.31v-300.73h-151.11s0,258.92,0,258.92c0,23.09,18.71,41.8,41.8,41.8Z%22/%3E%3Cpath d=%22m695.76,868.07l365.25-350.6h-200.96l-284.59,281.65h-56.91v140.83h56.91l272.35,275.02c16.29,16.45,38.49,25.71,61.64,25.71h163.32l-377-372.6Z%22/%3E%3Cpath d=%22m216.21,840.92v99.03h151.22s0-140.83,0-140.83h-109.42c-23.09,0-41.8,18.71-41.8,41.8Z%22/%3E%3C/svg%3E");
  --cp-mask-pattern: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1081 1074.28%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223.5%22%3E%3Cpath d=%22m926.21,215.11c-34.28-1.3-61.67-29.3-61.67-63.66V.51h38.71s115.57.04,115.57.04c34.28,1.3,61.68,29.3,61.68,63.66v150.94h-38.66s-115.62-.04-115.62-.04Z%22/%3E%3Cpath d=%22m152.78.52h-44.3s-44.3,0-44.3,0C28.97.78.5,29.19.5,64.23v150.88l107.98.04,107.98-.04V64.23c0-35.03-28.47-63.45-63.68-63.71Z%22/%3E%3Crect x=%22432.42%22 y=%22.55%22 width=%22216.05%22 height=%22214.56%22/%3E%3Cpath d=%22m370.74.55l-45.85-.02-46.76.02c-34.28,1.3-61.67,29.3-61.67,63.66v87.24c0,34.36,27.39,62.36,61.67,63.66l46.76.02,45.85-.02c34.28-1.3,61.68-29.3,61.68-63.66v-87.24c0-34.37-27.4-62.36-61.68-63.66Z%22/%3E%3Cpath d=%22m776.33.59c-69.57,0-126.14,55.17-127.85,123.85v90.63h216.06V.6h-88.21Z%22/%3E%3Cpath d=%22m710.25,429.77c-34.28-1.3-61.67-29.3-61.67-63.66v-150.94h38.71s115.57.04,115.57.04c34.28,1.3,61.68,29.3,61.68,63.66v150.94h-38.66s-115.62-.04-115.62-.04Z%22/%3E%3Crect x=%22216.46%22 y=%22215.2%22 width=%22216.05%22 height=%22214.56%22/%3E%3Cpath d=%22m154.78,215.2l-45.85-.02-46.76.02c-34.28,1.3-61.67,29.3-61.67,63.66v87.24c0,34.36,27.39,62.36,61.67,63.66l46.76.02,45.85-.02c34.28-1.3,61.68-29.3,61.68-63.66v-87.24c0-34.37-27.4-62.36-61.68-63.66Z%22/%3E%3Cpath d=%22m560.36,215.24c-69.57,0-126.14,55.17-127.85,123.85v90.63h216.06v-214.47h-88.21Z%22/%3E%3Cpath d=%22m1016.82,215.17h-44.3s-44.3,0-44.3,0c-35.21.26-63.68,28.68-63.68,63.71v150.88l107.98.04,107.98-.04v-150.88c0-35.03-28.47-63.45-63.68-63.71Z%22/%3E%3Cpath d=%22m494.29,644.42c-34.28-1.3-61.67-29.3-61.67-63.66v-150.94h38.71s115.57.04,115.57.04c34.28,1.3,61.68,29.3,61.68,63.66v150.94h-38.66s-115.62-.04-115.62-.04Z%22/%3E%3Crect x=%22.5%22 y=%22429.86%22 width=%22216.05%22 height=%22214.56%22/%3E%3Cpath d=%22m344.4,429.9c-69.57,0-126.14,55.17-127.85,123.85v90.63h216.06v-214.47h-88.21Z%22/%3E%3Cpath d=%22m800.86,429.83h-44.3s-44.3,0-44.3,0c-35.21.26-63.68,28.68-63.68,63.71v150.88l107.98.04,107.98-.04v-150.88c0-35.03-28.47-63.45-63.68-63.71Z%22/%3E%3Cpath d=%22m1018.82,429.86l-45.85-.02-46.76.02c-34.28,1.3-61.67,29.3-61.67,63.66v87.24c0,34.36,27.39,62.36,61.67,63.66l46.76.02,45.85-.02c34.28-1.3,61.68-29.3,61.68-63.66v-87.24c0-34.37-27.4-62.36-61.68-63.66Z%22/%3E%3Cpath d=%22m278.24,859.08c-34.28-1.3-61.67-29.3-61.67-63.66v-150.94h38.71s115.57.04,115.57.04c34.28,1.3,61.68,29.3,61.68,63.66v150.94h-38.66s-115.62-.04-115.62-.04Z%22/%3E%3Cpath d=%22m128.35,644.56c-69.57,0-126.14,55.17-127.85,123.85v90.63h216.06v-214.47h-88.21Z%22/%3E%3Cpath d=%22m584.81,644.48h-44.3s-44.3,0-44.3,0c-35.21.26-63.68,28.68-63.68,63.71v150.88l107.98.04,107.98-.04v-150.88c0-35.03-28.47-63.45-63.68-63.71Z%22/%3E%3Crect x=%22864.45%22 y=%22644.52%22 width=%22216.05%22 height=%22214.56%22/%3E%3Cpath d=%22m802.77,644.51l-45.85-.02-46.76.02c-34.28,1.3-61.67,29.3-61.67,63.66v87.24c0,34.36,27.39,62.36,61.67,63.66l46.76.02,45.85-.02c34.28-1.3,61.68-29.3,61.68-63.66v-87.24c0-34.37-27.4-62.36-61.68-63.66Z%22/%3E%3Cpath d=%22m62.17,1073.73c-34.28-1.3-61.67-29.3-61.67-63.66v-150.94h38.71s115.57.04,115.57.04c34.28,1.3,61.68,29.3,61.68,63.66v150.94h-38.66s-115.62-.04-115.62-.04Z%22/%3E%3Cpath d=%22m368.74,859.14h-44.3s-44.3,0-44.3,0c-35.21.26-63.68,28.68-63.68,63.71v150.88l107.98.04,107.98-.04v-150.88c0-35.03-28.47-63.45-63.68-63.71Z%22/%3E%3Crect x=%22648.39%22 y=%22859.17%22 width=%22216.05%22 height=%22214.56%22/%3E%3Cpath d=%22m586.71,859.17l-45.85-.02-46.76.02c-34.28,1.3-61.67,29.3-61.67,63.66v87.24c0,34.36,27.39,62.36,61.67,63.66l46.76.02,45.85-.02c34.28-1.3,61.68-29.3,61.68-63.66v-87.24c0-34.37-27.4-62.36-61.68-63.66Z%22/%3E%3Cpath d=%22m992.29,859.21c-69.57,0-126.14,55.17-127.85,123.85v90.63h216.06v-214.47h-88.21Z%22/%3E%3C/svg%3E");
}

/* ── motion ───────────────────────────────────────────────────────────────── */
@keyframes cp-fade { from { opacity: 0; } }
@keyframes cp-rise { from { opacity: 0; transform: translateY(calc(12px * var(--cp-motion-distance))); } }
@keyframes cp-sheet-in { from { transform: translateY(calc(100% * var(--cp-motion-distance))); opacity: 0.6; } }
@keyframes cp-dialog-in { from { transform: translateY(calc(16px * var(--cp-motion-distance))) scale(0.98); opacity: 0; } }
@keyframes cp-toast-in { from { transform: translateY(calc(18px * var(--cp-motion-distance))) scale(0.96); opacity: 0; } }
@keyframes cp-toast-out { to { transform: translateY(calc(8px * var(--cp-motion-distance))); opacity: 0; } }
@keyframes cp-pass-in { from { transform: translateY(calc(40px * var(--cp-motion-distance))) scale(0.98); opacity: 0; } }
@keyframes cp-pin-drop { from { transform: translateY(calc(-14px * var(--cp-motion-distance))) scale(0.6); opacity: 0; } }
@keyframes cp-stamp { 0% { transform: rotate(-8deg) scale(calc(1 + 0.5 * var(--cp-motion-distance))); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
@keyframes cp-shake { 20% { transform: translateX(calc(-6px * var(--cp-motion-distance))); } 40% { transform: translateX(calc(5px * var(--cp-motion-distance))); } 60% { transform: translateX(calc(-3px * var(--cp-motion-distance))); } 80% { transform: translateX(calc(2px * var(--cp-motion-distance))); } }
@keyframes cp-caret { 50% { opacity: 0; } }
@keyframes cp-pulse { 50% { opacity: 0.35; } }
@keyframes cp-breathe { 50% { opacity: 0.4; } }
@keyframes cp-spin { to { transform: rotate(360deg); } }
@keyframes cp-shimmer { to { background-position: -200% 0; } }

/* Reduced motion: nothing travels, grows or loops. Each entrance becomes a
   fade, so a change is still seen. The same answer for the in app switch. */
@keyframes cp-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cp-pass[data-animate], .cp-pin[data-drop], .cp-stamp[data-animate], .cp-toast,
  dialog.cp-sheet[open], dialog.cp-sheet::backdrop, .cp-scrim { animation-name: cp-fade; }
  .cp-toast[data-state="leaving"] { animation-name: cp-fade-out; }
  .cp-button, a.cp-card, button.cp-card, .cp-tabbar__item svg, .cp-tabs--line .cp-tab::after, .cp-sheet {
    transition-property: color, background-color, border-color, box-shadow, opacity;
  }
  .cp-code[data-state="error"],
  .cp-chip--live::before,
  .cp-sync[data-state="syncing"] .cp-sync__icon svg,
  .cp-skeleton,
  .cp-code__cell[data-active="true"]:empty::after { animation: none; }
  .cp-button[aria-busy="true"]::after { animation-duration: 2.4s; }
}
[data-motion="reduce"] .cp-pass[data-animate], [data-motion="reduce"] .cp-pin[data-drop],
[data-motion="reduce"] .cp-stamp[data-animate], [data-motion="reduce"] .cp-toast,
[data-motion="reduce"] dialog.cp-sheet[open] { animation-name: cp-fade; }
[data-motion="reduce"] .cp-toast[data-state="leaving"] { animation-name: cp-fade-out; }
[data-motion="reduce"] :is(.cp-button, a.cp-card, button.cp-card, .cp-tabbar__item svg, .cp-sheet) {
  transition-property: color, background-color, border-color, box-shadow, opacity;
}
[data-motion="reduce"] .cp-code[data-state="error"],
[data-motion="reduce"] .cp-chip--live::before,
[data-motion="reduce"] .cp-sync[data-state="syncing"] .cp-sync__icon svg,
[data-motion="reduce"] .cp-skeleton { animation: none; }

/* Forced colours (Windows high contrast): the system paints, so draw real edges. */
@media (forced-colors: active) {
  .cp-button, .cp-input, .cp-code__cell, .cp-card, .cp-list, .cp-chip, .cp-sync, .cp-toast, .cp-sheet, .cp-tab[aria-selected="true"] { border: 1px solid CanvasText; }
  .cp-button:focus-visible, .cp-input:focus-visible, .cp-tab:focus-visible, .cp-focus:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
  .cp-lockup__mark, .cp-mark-k { forced-color-adjust: none; background: CanvasText; }
}

/* Outdoor sun: every surface solid, every edge drawn. */
[data-contrast="more"] .cp-card,
[data-contrast="more"] .cp-list,
[data-contrast="more"] .cp-tabs { border: 1px solid var(--cp-line-strong); box-shadow: none; }
[data-contrast="more"] .cp-button--quiet { border-color: var(--cp-ink); }

/* ==========================================================================
 * IKAN city guides. Register B (client reader), Compass Home register.
 * Sits on compass/fonts.css, compass/tokens.css and compass/compass.plain.css.
 * White paper, sky wash bands, Fraunces for the voice, Lexend Deca to read,
 * Space Grotesk for every number. Real photographs as plates with credits.
 * Old guide classes (card, nb-card, cost-card, tbl ...) are styled here so the
 * moved content reads in the new system without rewriting its words.
 * ========================================================================== */

:root {
  --g-max: 1200px;
  --g-read: 760px;
  --g-rail: 232px;
  --g-top: 60px;
  --g-radius: var(--cp-radius-card);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--g-top) + 64px); -webkit-text-size-adjust: 100%; }
@media (min-width: 1000px) { html { scroll-padding-top: calc(var(--g-top) + 24px); } }
body { margin: 0; background: var(--cp-paper); }
body.cp { background: var(--cp-paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cp-midnight); text-decoration-color: var(--cp-sky); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--cp-coral); }
:focus-visible { outline: var(--cp-focus-width) solid var(--cp-focus-color); outline-offset: var(--cp-focus-offset); border-radius: 4px; }
strong, b { font-weight: 560; color: var(--cp-ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: 0.25em 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--cp-heading-color); }
.num, .figure { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--cp-paper); padding: 12px 16px; border-radius: 10px; box-shadow: var(--cp-shadow-2); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--g-max); margin: 0 auto; padding: 0 var(--cp-gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── the top bar ─────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: var(--cp-z-sticky); background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--cp-line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: var(--g-top); }
/* G-06: the city name is never cut. The lockup keeps its width, the name may
   wrap onto a second line, and the links give way on a narrow phone. */
.top .cp-lockup { min-height: 44px; font-size: 1.05rem; flex: 0 0 auto; max-width: 62%; }
.top .cp-lockup__name { white-space: normal; overflow: visible; line-height: 1.12; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--cp-ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 450; white-space: nowrap; }
.top nav a:hover { background: var(--cp-sky-wash); color: var(--cp-midnight); }
.top nav a[aria-current="page"] { color: var(--cp-midnight); }
.top nav .move { color: var(--cp-midnight); border: 1px solid var(--cp-line-strong); }
.top .for { font-size: 0.8125rem; color: var(--cp-ink-3); white-space: nowrap; }
@media (max-width: 560px) {
  .top .hide-sm, .top nav .hide-sm { display: none; }
  .top nav a { padding: 0 10px; }
  .top .for { display: none; }
}
/* a long city name (Coimbatore, Ahmedabad, Hyderabad) left no room for Your
   move at 390, so on a narrow phone All cities reads Cities */
.top nav .all__short { display: none; }
@media (max-width: 400px) {
  .top .wrap { gap: 8px; }
  .top nav { gap: 2px; }
  .top nav a { padding: 0 8px; font-size: 0.875rem; }
  .top nav .all__long { display: none; }
  .top nav .all__short { display: inline; }
}
/* at 360 a long name still left no room: the footer's All city guides is the way back */
@media (max-width: 380px) {
  .top nav .all { display: none; }
}
/* a client edition names itself on a phone, where the header has no room for it */
.edition { background: var(--cp-sky-wash); border-bottom: 1px solid var(--cp-line); color: var(--cp-ink-2); font-size: 0.9375rem; font-weight: 500; }
.edition .wrap { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.edition__logo { height: 20px; width: auto; }
@media (min-width: 561px) { .edition { display: none; } }

/* ── labels and the voice ───────────────────────────────────────────────── */
.kicker { font-family: var(--cp-font-body); font-size: 0.9375rem; font-weight: 500; color: var(--cp-ink-3); margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cp-line-control); }
.display { font-family: var(--cp-font-voice); font-weight: 460; font-size: clamp(3rem, 1.6rem + 6vw, 6.25rem); line-height: 0.98; letter-spacing: -0.03em; color: var(--cp-midnight); margin: 0; text-wrap: balance; }
.display em, .display .cp-phrase { font-style: italic; color: var(--cp-coral-text); font-weight: 420; }
.display-sub { display: block; font-size: 0.42em; line-height: 1.1; letter-spacing: -0.015em; margin-top: 0.3em; }
.lede { font-size: var(--cp-step-1); line-height: 1.55; color: var(--cp-ink-2); max-width: 60ch; margin: 18px 0 0; text-wrap: pretty; }
.h1 { font-family: var(--cp-font-voice); font-weight: 480; font-size: clamp(2.4rem, 1.7rem + 3vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; color: var(--cp-midnight); text-wrap: balance; }
.h1 em { font-style: italic; color: var(--cp-coral-text); font-weight: 440; }
.h2 { font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--cp-step-4); line-height: 1.12; letter-spacing: -0.015em; color: var(--cp-midnight); text-wrap: balance; }
.h2 em { font-style: italic; }

/* ── photo plates ───────────────────────────────────────────────────────── */
.plate { margin: 0; display: grid; gap: 8px; min-width: 0; }
.plate__frame { position: relative; overflow: hidden; border-radius: var(--g-radius); background: var(--cp-sunken); aspect-ratio: var(--ratio, 3 / 2); }
.plate__frame img { width: 100%; height: 100%; object-fit: cover; }
.plate--quarter .plate__frame { border-radius: var(--cp-radius-quarter-lg); }
.plate figcaption { font-size: 0.875rem; line-height: 1.45; color: var(--cp-ink-2); }
.credit { display: block; font-size: 0.8125rem; line-height: 1.4; color: var(--cp-ink-3); margin-top: 2px; }
.credit a { color: var(--cp-ink-3); text-decoration-color: var(--cp-line-strong); text-decoration-thickness: 1px; display: inline-block; min-width: 44px; padding: 14px 6px; margin: -14px -6px; }
.credit a:hover { color: var(--cp-midnight); }

/* ── guide front page ───────────────────────────────────────────────────── */
.hero { padding: 28px 0 8px; }
.hero__grid { display: grid; gap: 24px; }
.hero__photo { order: -1; margin: 0 calc(var(--cp-gutter) * -1); }
.hero__photo .plate__frame { border-radius: 0; aspect-ratio: 4 / 3; }
.hero__photo figcaption { padding: 0 var(--cp-gutter); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero__meta li { margin: 0; }
.chipline { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--cp-radius-pill); background: var(--cp-sky-wash); color: var(--cp-ink-2); font-size: 0.9375rem; }
.chipline svg { width: 16px; height: 16px; stroke: var(--cp-midnight); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.swap { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px; font-weight: 500; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 24px; }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
  .hero__photo { order: 0; margin: 0; }
  .hero__photo .plate__frame { border-radius: var(--cp-radius-quarter-lg); aspect-ratio: 5 / 4; }
  .hero__photo figcaption { padding: 0; }
}

.band { background: var(--cp-sky-wash); }
.block { padding: var(--cp-section) 0; }
.block + .block { padding-top: 0; }
.band + .block, .block + .band { padding-top: var(--cp-section); }
.block__head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 62ch; }
.block__head p { color: var(--cp-ink-2); margin: 0; font-size: var(--cp-step-0); }

/* the numbers families ask first: the hero's own number row */
.asks-wrap { margin: 28px 0 0; }
.asks__h { font-family: var(--cp-font-body); font-size: 0.9375rem; font-weight: 500; color: var(--cp-ink-3); margin: 0 0 12px; }
.asks__note { margin: 12px 0 0; font-size: 0.9375rem; color: var(--cp-ink-3); max-width: 70ch; }
.asks { display: grid; gap: 1px; background: var(--cp-line); border: 1px solid var(--cp-line); border-radius: var(--g-radius); overflow: hidden; }
.ask { background: var(--cp-paper); display: grid; gap: 4px; align-content: start; padding: 16px 18px; color: inherit; text-decoration: none; min-height: 44px; transition: background var(--cp-dur-quick) var(--cp-ease-move); }
/* on a phone each number is one compact row: the label and where it goes on one line, the figure under it */
@media (max-width: 639px) {
  .ask { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .ask__label { grid-column: 1; }
  .ask__go { grid-column: 2; grid-row: 1; margin-top: 0; }
  .ask__value, .ask__note { grid-column: 1 / -1; }
}
@media (min-width: 640px) { .ask { gap: 6px; padding: 22px 20px 20px; } .asks-wrap { margin-top: 40px; } }
.ask:hover { background: var(--cp-sky-wash); }
.ask__label { font-size: 0.875rem; font-weight: 500; color: var(--cp-ink-3); }
.ask__value { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.25rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--cp-midnight); text-wrap: balance; }
.ask__value--long { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); }
.ask__note { font-size: 0.9375rem; color: var(--cp-ink-2); line-height: 1.45; }
.ask__go { margin-top: 6px; font-size: 0.875rem; font-weight: 500; color: var(--cp-coral-text); }
@media (min-width: 640px) { .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .asks--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .asks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the chapter index: numbered rows with a photograph, never a card grid */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cp-line); counter-reset: ch; }
.toc li { margin: 0; border-bottom: 1px solid var(--cp-line); }
.toc a { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 88px; gap: 14px; align-items: center; padding: 14px 0; min-height: 88px; text-decoration: none; color: inherit; }
.toc__n { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-size: 1rem; font-weight: 500; color: var(--cp-ink-3); align-self: start; padding-top: 4px; }
.toc__t { font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--cp-step-2); line-height: 1.15; color: var(--cp-midnight); letter-spacing: -0.01em; }
.toc__d { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--cp-ink-2); line-height: 1.45; }
.toc__m { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--cp-ink-3); }
.toc__img { width: 88px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cp-sunken); }
.toc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--cp-dur-slow) var(--cp-ease-enter); }
.toc a:hover .toc__t { text-decoration: underline; text-decoration-color: var(--cp-coral); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.toc a:hover .toc__img img { transform: scale(1.04); }
@media (min-width: 900px) {
  .toc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .toc li { border-bottom: 1px solid var(--cp-line); }
  .toc li:nth-child(-n+2) { border-top: 1px solid var(--cp-line); }
  .toc a { grid-template-columns: 2.6rem minmax(0, 1fr) 132px; padding: 20px 0; min-height: 132px; }
  .toc__img { width: 132px; aspect-ratio: 4 / 3; }
}

/* at a glance: a ledger */
.glance { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--cp-line); }
.glance div { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--cp-line); }
.glance dt { font-size: 0.875rem; font-weight: 500; color: var(--cp-ink-3); }
.glance dd { margin: 0; color: var(--cp-ink); max-width: 68ch; }
.glance dd strong { font-family: var(--cp-font-figure); font-weight: 500; color: var(--cp-midnight); }
@media (min-width: 760px) { .glance div { grid-template-columns: 14rem minmax(0, 1fr); gap: 24px; padding: 18px 0; } }

/* the closing words and the door into i-Navigate, side by side on a desk */
.closing { display: grid; gap: 32px; }
.closing .h2 { font-size: var(--cp-step-5); margin: 0 0 18px; }
.closing__words p { color: var(--cp-ink-2); max-width: 62ch; }
.closing__services { font-size: 0.9375rem; color: var(--cp-ink-3); margin-top: 4px; }
.closing__quote { margin: 0; }
.closing__quote p { font-family: var(--cp-font-voice); font-size: var(--cp-step-3); line-height: 1.3; color: var(--cp-midnight); max-width: 30ch; margin: 0; }
@media (min-width: 900px) { .closing { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; } .closing--solo { grid-template-columns: minmax(0, 1fr); } }
.contact { display: grid; gap: 10px; }
.contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.door { background: var(--cp-paper); border: 1px solid var(--cp-line-strong); border-radius: var(--cp-radius-quarter); padding: 24px; display: grid; gap: 12px; box-shadow: var(--cp-shadow-1); }
.door h2, .door h3 { font-family: var(--cp-font-voice); font-weight: 500; font-size: var(--cp-step-2); color: var(--cp-midnight); }
.door p { margin: 0; color: var(--cp-ink-2); font-size: 1rem; max-width: 62ch; }
.door .cp-button { justify-self: start; white-space: normal; text-align: center; }
.door small { color: var(--cp-ink-3); font-size: 0.9375rem; }
.door small a { display: inline-block; padding: 13px 0; margin: -13px 0; }

/* ── chapter pages ──────────────────────────────────────────────────────── */
.chead { padding: 28px 0 8px; }
.chead__grid { display: grid; gap: 20px; }
.chead .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.9375rem; color: var(--cp-ink-3); margin: 0 0 14px; }
.chead .crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cp-ink-2); }
.chead .lede { font-size: var(--cp-step-0); }
.chead__photo .plate__frame { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .chead { padding: 44px 0 16px; }
  .chead__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
  .chead__photo .plate__frame { aspect-ratio: 4 / 3; border-radius: var(--cp-radius-quarter); }
}

/* the section index: a strip on a phone, a rail on a desk */
.strip { position: sticky; top: var(--g-top); z-index: calc(var(--cp-z-sticky) - 1); background: rgb(255 255 255 / 0.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--cp-line); }
.strip ol { display: flex; gap: 6px; overflow-x: auto; margin: 0; padding: 8px var(--cp-gutter); list-style: none; scrollbar-width: none; scroll-snap-type: x proximity; }
.strip ol::-webkit-scrollbar { display: none; }
.strip li { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.strip a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--cp-sky-wash); color: var(--cp-ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 450; white-space: nowrap; }
.strip a[aria-current="true"] { background: var(--cp-midnight); color: #fff; }
.clayout { display: grid; gap: 0; }
.rail { display: none; }
@media (min-width: 1000px) {
  .strip { display: none; }
  .clayout { grid-template-columns: var(--g-rail) minmax(0, 1fr); gap: 56px; align-items: start; }
  .rail { display: block; position: sticky; top: calc(var(--g-top) + 24px); max-height: calc(100vh - var(--g-top) - 48px); overflow-y: auto; padding: 8px 0 24px; }
  .rail h2 { font-family: var(--cp-font-body); font-size: 0.8125rem; font-weight: 500; color: var(--cp-ink-3); margin: 0 0 6px; }
  .rail ol { list-style: none; margin: 0 0 22px; padding: 0; border-left: 1px solid var(--cp-line); }
  .rail li { margin: 0; }
  .rail a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--cp-ink-2); text-decoration: none; font-size: 0.9375rem; line-height: 1.3; }
  .rail a:hover { color: var(--cp-midnight); background: var(--cp-sky-wash); }
  .rail a[aria-current="true"], .rail a[aria-current="page"] { border-left-color: var(--cp-coral); color: var(--cp-midnight); font-weight: 500; }
  .rail .chapters a { font-size: 0.875rem; }
  .rail .chapters .n { font-family: var(--cp-font-figure); color: var(--cp-ink-3); width: 1.6em; flex: 0 0 auto; }
}

.cmain { min-width: 0; padding-bottom: 24px; }
.sec { padding: 44px 0 8px; scroll-margin-top: 120px; }
.sec + .sec { border-top: 1px solid var(--cp-line); }
.sec__name { font-size: 0.9375rem; font-weight: 500; color: var(--cp-ink-3); margin: 0 0 10px; }
.sec-title { font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--cp-step-4); line-height: 1.12; letter-spacing: -0.015em; color: var(--cp-midnight); margin: 0 0 14px; text-wrap: balance; }
.sec-title em { font-style: italic; }
.sec-sub, .sec-sub-lt, .ikanx-lead-sub { font-size: var(--cp-step-1); line-height: 1.55; color: var(--cp-ink-2); max-width: 62ch; margin: 0 0 28px; text-wrap: pretty; }
.sec h3 { font-family: var(--cp-font-voice); font-weight: 500; font-size: var(--cp-step-2); line-height: 1.2; color: var(--cp-midnight); margin: 32px 0 14px; }
.sec h4 { font-size: 1rem; font-weight: 560; color: var(--cp-ink); margin: 18px 0 8px; }
.sec p { max-width: 70ch; }
.sec > * + * { margin-top: 0; }
.sec .divider { height: 1px; background: var(--cp-line); margin: 28px 0; }

.next { margin: 40px 0 0; }
.next a { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--cp-line-strong); border-radius: var(--g-radius); text-decoration: none; color: inherit; min-height: 96px; }
.next a:hover { background: var(--cp-sky-wash); }
.next .l { font-size: 0.875rem; color: var(--cp-ink-3); }
.next .t { display: block; font-family: var(--cp-font-voice); font-size: var(--cp-step-3); font-weight: 480; color: var(--cp-midnight); line-height: 1.1; margin-top: 4px; }
.next .img { width: 96px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.next .img img { width: 100%; height: 100%; object-fit: cover; }
.chapnav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 24px 0 0; }
.chapnav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── the moved content: cards and grids ─────────────────────────────────── */
.g2, .g3, .g4, .life-grid, .cost-grid, .rf-grid, .info3, .xlink-grid, .stat-trio, .icon-stats-row, .metro-phase2-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 28px; }
@media (min-width: 700px) {
  .g2, .info3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .rf-grid, .xlink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4, .life-grid, .cost-grid, .stat-trio, .icon-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .g3, .info3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cost-grid, .life-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card, .info-card, .infobox, .emb { background: var(--cp-paper); border: 1px solid var(--cp-line-strong); border-radius: var(--g-radius); overflow: hidden; min-width: 0; margin: 0 0 16px; }
.g2 > .card, .g3 > .card, .g4 > .card, .info3 > .info-card { margin: 0; }
.card-sky, .card-green, .card-gold { background: var(--cp-sky-wash); border-color: transparent; }
.card-navy, .card-accent { background: var(--cp-paper); }
.card-body, .info-body, .infobox-body, .emb-body { padding: 20px; }
.card-img, .card-img-sm { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .credit, .nb-card .credit { padding: 6px 20px 0; }
.chip { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--cp-ink-2); margin: 0 0 10px; }
.chip svg.ic, .info-head svg.ic, .infobox-title svg.ic { width: 18px; height: 18px; }
.card-title, .card-title-lt, .info-head, .infobox-title, .emb-title { font-family: var(--cp-font-voice); font-weight: 500; font-size: var(--cp-step-1); line-height: 1.25; color: var(--cp-midnight); margin: 0 0 8px; }
.info-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 0; margin: 0; }
.card-desc, .card-desc-lt, .card-lead { color: var(--cp-ink-2); font-size: 1rem; line-height: 1.6; max-width: 72ch; }
.card-desc ul, .card-desc-lt ul, .info-body ul { padding-left: 0; list-style: none; margin: 0; }
.card-desc li, .card-desc-lt li, .info-body li { position: relative; padding-left: 18px; margin: 8px 0; }
.card-desc li::before, .card-desc-lt li::before, .info-body li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--cp-sky); }

/* icons from the sprite */
svg.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--cp-midnight); vertical-align: middle; }

/* neighbourhoods: one row each, photo and words, never a card grid */
.nbs { display: grid; gap: 0; margin: 0 0 28px; border-top: 1px solid var(--cp-line); }
.nb-card { display: grid; grid-template-rows: auto auto 1fr; background: var(--cp-paper); border: 1px solid var(--cp-line-strong); border-radius: var(--g-radius); overflow: hidden; min-width: 0; scroll-margin-top: 120px; }
.nbs > .nb-card { border: 0; border-bottom: 1px solid var(--cp-line); border-radius: 0; overflow: visible; padding: 24px 0; gap: 0; }
.nbs > .nb-card .cardphoto img { border-radius: var(--g-radius); }
.nbs > .nb-card .cardphoto .credit { padding: 6px 0 0; }
.nbs > .nb-card .nb-head { padding: 16px 0 0; }
.nbs > .nb-card .nb-body { padding: 10px 0 0; }
@media (min-width: 700px) {
  .nbs > .nb-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto 1fr; column-gap: 28px; padding: 28px 0; }
  .nbs > .nb-card > .cardphoto { grid-row: 1 / span 2; align-self: start; }
  .nbs > .nb-card .nb-head { padding: 0; }
}
.nb-desc--fold { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.nb-more { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: -6px 0 -4px; border: 0; background: none; color: var(--cp-midnight); font: inherit; font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--cp-sky); text-decoration-thickness: 2px; text-underline-offset: 0.18em; cursor: pointer; }
.nb-more:hover { text-decoration-color: var(--cp-coral); }
.nb-tags .nb-tag--more { display: none; }
.nb-card--open .nb-tags .nb-tag--more { display: inline-flex; }
.nb-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cp-sunken); }
.nb-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 18px 20px 0; }
.nb-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cp-coral-action); color: #fff; font-family: var(--cp-font-figure); font-weight: 600; font-size: 0.9375rem; }
.nb-name { font-family: var(--cp-font-voice); font-weight: 500; font-size: var(--cp-step-2); line-height: 1.15; color: var(--cp-midnight); }
.nb-vibe { font-size: 0.9375rem; color: var(--cp-ink-3); margin-top: 2px; }
.nb-body { padding: 12px 20px 20px; display: grid; gap: 12px; align-content: start; }
.nb-desc { color: var(--cp-ink-2); font-size: 1rem; line-height: 1.6; }
.nb-tags, .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-tag, .stag, .tbadge, .htag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--cp-sunken); color: var(--cp-ink-2); font-size: 0.8125rem; font-weight: 450; line-height: 1.2; }
.nb-best { font-size: 0.9375rem; color: var(--cp-ink); }
.nb-best__label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--cp-ink-3); margin-bottom: 2px; }
.onmap { justify-self: start; text-align: left; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); color: var(--cp-midnight); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.onmap:hover { background: var(--cp-sky-wash); }
.onmap svg { width: 18px; height: 18px; }

/* commutes */
.route-card { display: grid; gap: 2px; padding: 16px 18px; border-radius: 12px; background: var(--cp-sky-wash); margin: 0 0 10px; }
.route-from { font-size: 0.8125rem; font-weight: 500; color: var(--cp-ink-3); }
.route-to { font-size: 1rem; font-weight: 500; color: var(--cp-ink); }
.route-time { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: var(--cp-step-3); line-height: 1.1; color: var(--cp-midnight); letter-spacing: -0.02em; }
.route-mode { font-size: 0.875rem; color: var(--cp-ink-2); }
.routes { display: grid; gap: 10px; margin: 0 0 28px; }
@media (min-width: 700px) { .routes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .routes .route-card { margin: 0; } }

/* big numbers in the content */
.cost-card, .stat-tile, .istat { background: var(--cp-paper); border: 1px solid var(--cp-line-strong); border-radius: var(--g-radius); padding: 18px 20px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.cost-head { display: none; }
.cost-body { display: grid; gap: 4px; }
.cost-icon, .is-icon { display: none; }
.cost-item, .stat-label, .is-label { font-size: 0.9375rem; font-weight: 500; color: var(--cp-ink); }
.cost-price, .stat-val, .is-val, .rent-val, .hstat-v { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: var(--cp-step-4); line-height: 1.05; letter-spacing: -0.025em; color: var(--cp-midnight); order: -1; overflow-wrap: normal; }
.cost-price, .stat-val { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.25rem); }
.cost-body { display: flex; flex-direction: column; }
.cost-body .cost-price { order: 0; }
.cost-unit, .stat-sub { font-size: 0.875rem; color: var(--cp-ink-3); line-height: 1.4; }
.stat-tile { display: flex; flex-direction: column; }
.stat-tile .stat-val { order: 0; }
.rent-pair { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cp-line); }
.rent-label { color: var(--cp-ink-2); }
.rent-val { font-size: var(--cp-step-1); }

/* tables: a clean ledger on a desk, stacked rows on a phone */
.tbl-scroll, .tbl-wrap { margin: 0 0 28px; border: 1px solid var(--cp-line-strong); border-radius: var(--g-radius); overflow: hidden; }
table.tbl, table.info-tbl, table.city-compare, table.etbl, .sec table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.sec th { text-align: left; font-size: 0.8125rem; font-weight: 500; color: var(--cp-ink-3); padding: 12px 14px; background: var(--cp-sky-wash); border-bottom: 1px solid var(--cp-line-strong); vertical-align: bottom; }
.sec td { padding: 12px 14px; border-bottom: 1px solid var(--cp-line); vertical-align: top; color: var(--cp-ink-2); }
.sec tr:last-child td { border-bottom: 0; }
.sec td:first-child { color: var(--cp-ink); }
.sec td strong { color: var(--cp-ink); }
.cc-up { color: var(--cp-ok-text); font-weight: 500; }
.cc-down { color: var(--cp-stop-text); font-weight: 500; }
.cc-same { color: var(--cp-ink-3); }
@media (max-width: 699px) {
  .tbl-scroll, .tbl-wrap { border: 0; border-radius: 0; overflow: visible; }
  .sec table.stack, .sec table.stack tbody, .sec table.stack tr, .sec table.stack td { display: block; width: 100%; }
  .sec table.stack thead, .sec table.stack tr.head-row { display: none; }
  .sec table.stack tr { border: 1px solid var(--cp-line-strong); border-radius: 12px; padding: 6px 0; margin: 0 0 10px; background: var(--cp-paper); }
  .sec table.stack td { border: 0; padding: 6px 14px; }
  .sec table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 500; color: var(--cp-ink-3); }
  .sec table.stack td:first-child { font-weight: 500; font-size: 1.0625rem; }
  .sec table.stack td:first-child::before { display: none; }
}

/* steps, arrival sequences, settling in */
.steps { display: grid; gap: 0; margin: 0 0 28px; counter-reset: none; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--cp-line); }
.step:first-child { border-top: 1px solid var(--cp-line); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cp-sky-soft); color: var(--cp-midnight); font-family: var(--cp-font-figure); font-weight: 600; font-size: 1rem; }
.step-title { font-weight: 560; color: var(--cp-ink); font-size: 1.0625rem; line-height: 1.35; }
.step-desc { color: var(--cp-ink-2); margin-top: 4px; line-height: 1.6; }

/* definition rows: visa types, metro lines */
.visa-row { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--cp-line); }
.visa-row:first-of-type { border-top: 1px solid var(--cp-line); }
.visa-type { font-weight: 560; color: var(--cp-midnight); display: flex; align-items: center; gap: 8px; }
.visa-desc { color: var(--cp-ink-2); line-height: 1.6; }
.visa-desc svg.ic { width: 16px; height: 16px; }

/* callouts */
.tip, .callout-band, .ikanx-hint-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 18px; border-radius: 12px; background: var(--cp-sky-wash); color: var(--cp-ink); margin: 0 0 28px; }
.tip-icon svg.ic { width: 22px; height: 22px; }
.tip-text, .callout-band-text { line-height: 1.6; }
.callout-band { grid-template-columns: minmax(0, 1fr); }
.rf-section .rf-grid { margin-top: 8px; }
.rf-card { border-radius: 12px; background: var(--cp-wait-soft); padding: 18px 20px; margin: 0; }
.rf-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cp-wait-text); margin: 0 0 8px; line-height: 1.35; }
.rf-title svg.ic { color: var(--cp-wait-text); }
.rf-body { color: var(--cp-ink); line-height: 1.6; }
.rf-icon { display: none; }
.quote, .quote-block { margin: 0 0 28px; padding: 4px 0 4px 20px; border-left: 3px solid var(--cp-sky); }
.quote-text { font-family: var(--cp-font-voice); font-style: italic; font-size: var(--cp-step-2); line-height: 1.35; color: var(--cp-midnight); }
.quote-attr, .quote-body { font-size: 0.9375rem; color: var(--cp-ink-3); margin-top: 8px; }

/* features: life cards, icon rows */
.life-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-top: 1px solid var(--cp-line); }
.life-grid { gap: 0 28px; }
.life-icon { grid-row: span 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--cp-sky-wash); }
.life-title { font-weight: 560; color: var(--cp-ink); line-height: 1.35; }
.life-desc { color: var(--cp-ink-2); font-size: 0.9375rem; line-height: 1.55; }

/* the phrasebook */
.phrasebook { display: grid; gap: 0; margin: 0 0 28px; }
@media (min-width: 900px) { .phrasebook { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.phrase { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--cp-line); align-items: start; }
.phrase-native { font-family: "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Kannada", "Noto Sans Gujarati", "Kohinoor Devanagari", system-ui, sans-serif; font-size: 1.5rem; line-height: 1.3; color: var(--cp-midnight); }
.phrase-label { display: inline-block; font-size: 0.8125rem; font-weight: 500; color: var(--cp-ink-3); margin-bottom: 2px; }
.phrase-roman { font-weight: 560; color: var(--cp-ink); }
.phrase-mean { color: var(--cp-ink-2); font-size: 0.9375rem; line-height: 1.5; margin-top: 2px; }

/* climate: twelve months */
.cstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 24px; }
@media (min-width: 700px) { .cstrip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cstrip { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.cm { border-radius: 10px; padding: 10px 8px; background: var(--cp-sunken); text-align: center; min-width: 0; }
.cm.ideal { background: var(--cp-ok-soft); }
.cm.warm { background: var(--cp-wait-soft); }
.cm.hot { background: var(--cp-stop-soft); }
.cm.monsoon { background: var(--cp-info-soft); }
.cm.cold, .cm.c { background: var(--cp-sky-soft); }
.cmh { font-size: 0.8125rem; font-weight: 500; color: var(--cp-ink-2); }
.cmt { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: 1.375rem; color: var(--cp-midnight); line-height: 1.2; margin-top: 2px; }
.cml { font-size: 0.75rem; color: var(--cp-ink-2); line-height: 1.3; margin-top: 2px; }
.scs { display: grid; gap: 16px; margin: 0 0 28px; }
@media (min-width: 900px) { .scs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc2 { border: 1px solid var(--cp-line-strong); border-radius: var(--g-radius); padding: 20px; background: var(--cp-paper); min-width: 0; }
.scnm { font-family: var(--cp-font-voice); font-size: var(--cp-step-2); font-weight: 500; color: var(--cp-midnight); }
.scmo { font-size: 0.875rem; color: var(--cp-ink-3); margin-top: 2px; }
.bigt { font-family: var(--cp-font-figure); font-weight: 500; font-size: var(--cp-step-4); color: var(--cp-midnight); line-height: 1.1; margin: 10px 0 4px; }
.scdesc { color: var(--cp-ink-2); line-height: 1.6; }
.sctips { display: grid; gap: 6px; margin-top: 12px; }
.sctip { font-size: 0.9375rem; color: var(--cp-ink-2); padding-left: 16px; position: relative; }
.sctip::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cp-sky); }

/* apps */
.apcat, .phcat, .dir-cat { font-family: var(--cp-font-voice); font-size: var(--cp-step-1); font-weight: 500; color: var(--cp-midnight); margin: 24px 0 8px; }
.apct { font-size: 0.875rem; color: var(--cp-ink-3); }
.aplist, .aprows { display: grid; gap: 0; margin: 0 0 20px; }
.aprow { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--cp-line); align-items: start; }
.ai, .pic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--cp-sky-wash); }
.an { display: block; font-weight: 560; color: var(--cp-ink); }
.ad { display: block; color: var(--cp-ink-2); font-size: 0.9375rem; line-height: 1.55; margin-top: 2px; }
.phsec { margin: 0 0 20px; }
.ph, .phcl { display: flex; flex-wrap: wrap; gap: 8px; }
.pai { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 14px 4px 4px; border: 1px solid var(--cp-line-strong); border-radius: 12px; text-decoration: none; color: var(--cp-ink); background: var(--cp-paper); }
.pai:hover { background: var(--cp-sky-wash); }
.nm { font-weight: 500; font-size: 0.9375rem; }
.phn, .phs, .phst, .phag { font-size: 0.875rem; color: var(--cp-ink-3); }

/* hospitals and directories */
.dir { display: grid; gap: 0; margin: 0 0 24px; }
.dir-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--cp-line); min-height: 56px; }
.dir-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cp-info); }
.dir-name { font-weight: 560; color: var(--cp-ink); }
.dir-meta { font-size: 0.875rem; color: var(--cp-ink-3); }
.dir-tail a, a.dir-tail { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--cp-sky-wash); text-decoration: none; font-family: var(--cp-font-figure); font-size: 0.9375rem; white-space: nowrap; }
.dir-tail-none { font-size: 0.8125rem; color: var(--cp-ink-3); text-align: right; max-width: 9rem; line-height: 1.3; }
.hosp-phone.hosp-phone-none { font-family: inherit; font-size: 0.8125rem; color: var(--cp-ink-3); font-weight: 400; }
.dir-checked { margin: 12px 0 0; font-size: 0.9375rem; color: var(--cp-ink-3); max-width: 62ch; }
.info-tbl td:first-child { font-weight: 500; }

/* links out to the Essentials guides */
.xlink-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 18px 20px; border: 1px solid var(--cp-line-strong); border-radius: var(--g-radius); text-decoration: none; color: inherit; background: var(--cp-paper); min-height: 44px; }
.xlink-card:hover { background: var(--cp-sky-wash); }
.xlink-card svg.ic { grid-row: span 3; margin-top: 2px; }
.xlink-t { font-weight: 560; color: var(--cp-midnight); }
.xlink-d { color: var(--cp-ink-2); font-size: 0.9375rem; line-height: 1.5; }
.xlink-go { font-size: 0.875rem; font-weight: 500; color: var(--cp-coral-text); }
.xlink-all { margin: 0 0 28px; }
.xlink-all a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* the IKAN method: fixed clocks and diagrams */
.ikanx-facts { display: grid; gap: 0; margin: 0 0 28px; border-top: 1px solid var(--cp-line); }
.ikanx-fact { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--cp-line); }
.ikanx-fact dt { font-size: 0.875rem; font-weight: 500; color: var(--cp-ink-3); }
.ikanx-fact dd { margin: 0; color: var(--cp-ink); }
@media (min-width: 760px) { .ikanx-fact { grid-template-columns: 13rem minmax(0, 1fr); gap: 24px; } }
.ikanx-flowgrid { display: grid; gap: 16px; margin: 0 0 20px; }
@media (min-width: 900px) { .ikanx-flowgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ikanx-flow, .ikanx-tree { border: 1px solid var(--cp-line-strong); border-radius: var(--g-radius); padding: 20px; background: var(--cp-paper); min-width: 0; }
.ikanx-flow:has(.ledger), .ikanx-tree:has(.decide) { border: 0; border-radius: 0; padding: 0; background: none; }
.ikanx-tree { margin: 0 0 28px; }
.ikanx-step { font-size: 0.9375rem; font-weight: 500; color: var(--cp-coral-text); margin: 0 0 4px; }
.ikanx-flow h3, .ikanx-tree h3 { margin: 0 0 6px; font-size: var(--cp-step-1); }
.ikanx-lead { color: var(--cp-ink-2); font-size: 0.9375rem; margin: 0 0 14px; }
.ikanx-svgwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
.ikanx-svgwrap svg { --bg: #ffffff; --fg: #10141c; --muted: #5b6d73; --line: #6f8488; --accent: #b03418; --surface: #eaf4f3; --border: #c3d2d3; display: block; height: auto; }
.ikanx-flow .ikanx-svgwrap svg { width: 100%; max-width: 300px; margin: 0 auto; }
.ikanx-tree .ikanx-svgwrap svg { min-width: 560px; width: 100%; max-width: 720px; margin: 0 auto; }
.ledger { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.ledger li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; margin: 0; border-top: 1px solid var(--cp-line); }
.ledger__n { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: 1.375rem; line-height: 1; color: var(--cp-coral-text); }
.ledger__t { font-size: 1.0625rem; line-height: 1.45; color: var(--cp-ink); }
.ledger .figure { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; color: var(--cp-midnight); }
.decide__q { font-weight: 500; color: var(--cp-ink-3); margin: 8px 0 8px; font-size: 0.9375rem; }
.decide ul { list-style: none; margin: 0; padding: 0; }
.decide li { display: grid; gap: 6px; padding: 16px 0; margin: 0; border-top: 1px solid var(--cp-line); }
.decide__k { display: block; font-family: var(--cp-font-body); font-size: 0.8125rem; font-weight: 500; color: var(--cp-ink-3); margin-bottom: 2px; }
.decide__if { font-family: var(--cp-font-voice); font-size: var(--cp-step-1); line-height: 1.3; color: var(--cp-midnight); }
.decide__then { font-size: 1.0625rem; line-height: 1.5; color: var(--cp-ink); }
.decide__then a { display: inline-block; padding: 10px 0; margin: -10px 0; }
@media (min-width: 760px) { .decide li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: baseline; } }
.ikanx-faq { display: grid; gap: 10px; margin: 0 0 28px; max-width: 820px; }
.ikanx-faq details { border: 1px solid var(--cp-line-strong); border-radius: 12px; background: var(--cp-paper); }
.ikanx-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 12px 18px; font-weight: 560; color: var(--cp-midnight); }
.ikanx-faq summary::-webkit-details-marker { display: none; }
.ikanx-faq summary::after { content: "+"; font-family: var(--cp-font-figure); font-size: 1.4rem; font-weight: 400; color: var(--cp-coral-text); flex: 0 0 auto; }
.ikanx-faq details[open] summary::after { content: "\2212"; }
.ikanx-a { padding: 0 18px 16px; color: var(--cp-ink-2); line-height: 1.65; }

/* photographs inside the content */
.photos { display: grid; gap: 16px; margin: 0 0 28px; }
@media (min-width: 700px) { .photos--2 { grid-template-columns: 1fr 1fr; } .photos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photos .plate__frame { aspect-ratio: 3 / 2; }
.sec > .plate { margin: 0 0 28px; }
.sec > .plate .plate__frame { aspect-ratio: 16 / 9; }

/* compare and metro details */
.metro-map-wrap { margin: 0 0 28px; }
.metro-map-title { font-family: var(--cp-font-voice); font-size: var(--cp-step-1); color: var(--cp-midnight); }
.metro-line { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--cp-line); }
.metro-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cp-info); flex: 0 0 auto; }
.metro-corridor { padding: 12px 0; border-top: 1px solid var(--cp-line); }
.metro-corridor-name { font-weight: 560; }
.metro-corridor-desc, .metro-note { color: var(--cp-ink-2); font-size: 0.9375rem; }
.voice-nat { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cp-sky-soft); font-family: var(--cp-font-figure); font-size: 0.8125rem; font-weight: 600; color: var(--cp-midnight); }
.ideal-for, .emb-title { font-weight: 560; }

/* ── the map ─────────────────────────────────────────────────────────────── */
.gmap { margin: 0 0 32px; }
.gmap__frame { position: relative; height: 420px; border-radius: var(--g-radius); overflow: hidden; background: var(--cp-ground); border: 1px solid var(--cp-line-strong); }
@media (max-width: 699px) { .gmap__frame { height: 380px; } }
.gmap .gmap__canvas, .gmap .gmap__canvas.maplibregl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.gmap__wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cp-ink-3); font-size: 0.9375rem; }
.gmap__keys { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.gmap__keys li { margin: 0; }
.gmap__keys button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); color: var(--cp-ink-2); font: inherit; font-size: 0.9375rem; cursor: pointer; }
.gmap__keys button[aria-pressed="true"] { background: var(--cp-sky-wash); color: var(--cp-midnight); border-color: var(--cp-sky); }
.gmap__keys i { width: 14px; height: 14px; border-radius: 50%; background: var(--k); flex: 0 0 auto; }
.gmap__keys button[aria-pressed="false"] i { opacity: 0.55; }
.gmap__guides { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.gmap__guides li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: 0 12px; padding: 4px 0; margin: 0; border-top: 1px solid var(--cp-line); }
.gmap__city { font-weight: 500; color: var(--cp-ink); padding-top: 12px; }
.gmap__links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.gmap__guides a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 760px) { .gmap__guides { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.gpin { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.gpin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--k, var(--cp-coral-action)); color: #fff; border: 2px solid #fff; font-family: var(--cp-font-figure); font-weight: 600; font-size: 0.875rem; line-height: 1; box-shadow: 0 1px 2px rgb(16 20 28 / 0.25), 0 4px 10px -2px rgb(16 20 28 / 0.3); transition: transform var(--cp-dur-quick) var(--cp-ease-move); }
.gpin--kind span { width: 24px; height: 24px; border-width: 1.5px; }
.gpin--kind svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gpin:hover span, .gpin:focus-visible span { transform: scale(1.12); }
.maplibregl-popup-content { font-family: var(--cp-font-body); border-radius: 12px !important; padding: 14px 16px !important; box-shadow: var(--cp-shadow-3) !important; max-width: 260px; }
.pop__cat { display: block; font-size: 0.75rem; font-weight: 500; color: var(--cp-ink-3); }
.pop__name { display: block; font-weight: 600; color: var(--cp-midnight); margin: 2px 0 4px; line-height: 1.3; }
.pop__text { display: block; font-size: 0.875rem; color: var(--cp-ink-2); line-height: 1.45; }
.pop__go { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 500; }
.maplibregl-popup-close-button { width: 44px; height: 44px; font-size: 20px; color: var(--cp-ink-3); }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib a { font-family: var(--cp-font-body); font-size: 12px; color: var(--cp-ink-2); }
.maplibregl-ctrl-attrib a { display: inline-block; padding: 6px 2px; min-height: 24px; }
@media (max-width: 699px) { .maplibregl-ctrl-attrib a { padding: 12px 2px; min-height: 44px; } }
.maplibregl-ctrl-attrib-button { width: 28px; height: 28px; }

/* ── hub ─────────────────────────────────────────────────────────────────── */
.hhero { padding: 28px 0 12px; }
.hhero__grid { display: grid; gap: 24px; }
.hhero__photo { order: -1; margin: 0 calc(var(--cp-gutter) * -1); }
.hhero__photo .plate__frame { border-radius: 0; aspect-ratio: 16 / 11; }
.hhero__photo figcaption { padding: 0 var(--cp-gutter); }
@media (min-width: 900px) {
  .hhero { padding: 64px 0 24px; }
  .hhero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
  .hhero__photo { order: 0; margin: 0; }
  .hhero__photo .plate__frame { border-radius: var(--cp-radius-quarter-lg); aspect-ratio: 5 / 4; }
  .hhero__photo figcaption { padding: 0; }
}
.cities { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cp-line); }
.city { display: grid; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--cp-line); margin: 0; }
.city__photo .plate__frame { aspect-ratio: 16 / 10; }
.city__n { font-family: var(--cp-font-figure); font-size: 0.9375rem; color: var(--cp-ink-3); }
.city__name { font-family: var(--cp-font-voice); font-weight: 480; font-size: clamp(2rem, 1.6rem + 1.8vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; color: var(--cp-midnight); margin: 4px 0 8px; }
.city__line { color: var(--cp-ink-2); font-size: var(--cp-step-0); max-width: 52ch; margin: 0 0 14px; }
.city__fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 16px; }
.city__fact .v { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: var(--cp-step-3); color: var(--cp-midnight); letter-spacing: -0.02em; }
.city__fact .l { font-size: 0.875rem; color: var(--cp-ink-3); }
.city__doors { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.city__doors a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--cp-line-strong); text-decoration: none; color: var(--cp-midnight); font-weight: 500; background: var(--cp-paper); }
.city__doors a:hover { background: var(--cp-sky-wash); border-color: var(--cp-sky); }
.city__doors small { color: var(--cp-ink-3); font-weight: 400; font-size: 0.8125rem; }
@media (min-width: 900px) {
  .city { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: center; padding: 32px 0; }
  .city:nth-child(even) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .city:nth-child(even) .city__photo { order: 2; }
  .city__photo .plate__frame { aspect-ratio: 4 / 3; }
  .city__doors { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(220px, max-content)); }
}
.country { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .country { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; } }
.switch { display: grid; gap: 12px; max-width: 560px; }
.switch form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.switch label { display: grid; gap: 6px; flex: 1 1 220px; font-size: 0.875rem; font-weight: 500; color: var(--cp-ink-2); }
.switch input { min-height: 48px; padding: 0 14px; font: inherit; font-size: 1rem; border: 1px solid var(--cp-line-control); border-radius: var(--cp-radius-control); background: var(--cp-paper); color: var(--cp-ink); }
.switch .note { font-size: 0.875rem; color: var(--cp-ink-3); }
.switch .miss { color: var(--cp-stop-text); font-size: 0.9375rem; }

/* ── credits page ───────────────────────────────────────────────────────── */
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.credits li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--cp-line); margin: 0; }
.credits img { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.credits .c { font-size: 0.9375rem; color: var(--cp-ink-2); line-height: 1.5; }
.credits .c strong { display: block; color: var(--cp-ink); font-weight: 500; }
.credits a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--cp-line); padding: 36px 0 48px; margin-top: 24px; color: var(--cp-ink-3); font-size: 0.9375rem; }
.foot .wrap { display: grid; gap: 20px; }
.foot p { margin: 0; max-width: 72ch; line-height: 1.6; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cp-ink-2); }
.foot .cp-lockup { color: var(--cp-midnight); }

/* ── less motion, print ─────────────────────────────────────────────────── */
/* less motion: nothing travels or grows, colour changes stay as the cue */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toc__img img, .gpin span { transition: none; }
  .toc a:hover .toc__img img, .gpin:hover span, .gpin:focus-visible span { transform: none; }
}
@media print {
  .top, .strip, .rail, .gmap, .door, .next, .chapnav, .onmap, .foot nav { display: none !important; }
  .clayout { display: block; }
  body { font-size: 11pt; }
  .sec { break-inside: auto; }
  .card, .nb-card, .cost-card { break-inside: avoid; }
}

.cardphoto { display: grid; }
.cardphoto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cp-sunken); }
.cuisine-zone .cardphoto { margin: -18px -20px 12px; }
.cardphoto .credit { padding: 6px 20px 0; }

/* touch and safe areas */
a, button, summary, input, .ask, .toc a { touch-action: manipulation; }
.top .wrap, .foot .wrap { padding-left: max(var(--cp-gutter), env(safe-area-inset-left)); padding-right: max(var(--cp-gutter), env(safe-area-inset-right)); }
.foot { padding-bottom: max(48px, env(safe-area-inset-bottom)); }
@media (forced-colors: active) {
  .gpin, .nb-num, .step-num { forced-color-adjust: none; }
  .ask, .toc a, .city__doors a, .onmap, .strip a { border: 1px solid CanvasText; }
}

/* the IKAN tagline and service line from the old pages */
.tagline { display: grid; gap: 6px; padding: 18px 0 0; border-top: 1px solid var(--cp-line); color: var(--cp-ink-2); font-size: 0.9375rem; }
.tagline .callout-band-text { font-family: var(--cp-font-voice); font-style: italic; font-size: var(--cp-step-2); line-height: 1.3; color: var(--cp-midnight); }
.tagline span { margin-right: 10px; }
.tagline .callout-band:empty { display: none; }

/* the India guide: journey menu, flag line, part headers, chapter leads */
.lede--small { font-size: var(--cp-step-0); margin-top: 10px; }
.flagline { margin: 18px 0 0; font-size: 0.9375rem; color: var(--cp-ink-2); max-width: 60ch; }
.journey .phase-nav-eyebrow { font-size: 0.875rem; font-weight: 500; color: var(--cp-ink-3); margin: 0 0 8px; }
.journey .phase-nav-title { display: block; margin: 0 0 8px; }
.journey .phase-nav-title em { font-style: italic; color: var(--cp-coral-text); }
.journey .phase-nav-sub { color: var(--cp-ink-2); max-width: 60ch; margin: 0 0 24px; }
.journey .phase-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .journey .phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .journey .phase-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.journey .phase-card { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--g-radius); background: var(--cp-paper); border: 1px solid var(--cp-line-strong); text-decoration: none; color: inherit; min-height: 44px; }
.journey .phase-card:hover { border-color: var(--cp-sky); box-shadow: var(--cp-shadow-2); }
.journey .phase-when { font-family: var(--cp-font-figure); font-size: 0.875rem; font-weight: 500; color: var(--cp-coral-text); }
.journey .phase-name { font-family: var(--cp-font-voice); font-size: var(--cp-step-2); font-weight: 500; color: var(--cp-midnight); }
.journey .phase-desc { font-size: 0.9375rem; color: var(--cp-ink-2); line-height: 1.5; }
.journey .phase-jumps { font-size: 0.8125rem; color: var(--cp-ink-3); line-height: 1.45; }
.sec-lead { font-family: var(--cp-font-voice); font-size: var(--cp-step-2); line-height: 1.25; color: var(--cp-midnight); margin: 0 0 18px; }
.sec-lead em { font-style: italic; }
.sec-lead__n { font-family: var(--cp-font-figure); font-size: 0.9375rem; color: var(--cp-ink-3); margin-right: 6px; }
.sec-lead__sub { display: block; font-family: var(--cp-font-body); font-size: 0.9375rem; color: var(--cp-ink-3); margin-top: 6px; }
.part { border-left: 3px solid var(--cp-coral); padding: 4px 0 4px 18px; margin: 0 0 28px; }
.part__name { font-size: 0.875rem; font-weight: 500; color: var(--cp-ink-3); margin: 0 0 4px; }
.part__title { font-family: var(--cp-font-voice); font-size: var(--cp-step-3); color: var(--cp-midnight); margin: 0 0 6px; line-height: 1.15; }
.part__text { color: var(--cp-ink-2); margin: 0; }

/* ── the India guide's own components, styled in families ─────────────── */
.app-grid, .hosp-grid, .dance-grid, .city-grid, .cuisine-grid, .fest-grid, .season-grid, .lang-grid, .rel-grid, .emg-grid, .do-grid, .cn-grid, .india-map-grid, .g5, .dishes, .regions, .pan-flow { display: grid; gap: 14px; margin: 0 0 28px; }
@media (min-width: 700px) {
  .app-grid, .hosp-grid, .dance-grid, .city-grid, .fest-grid, .season-grid, .lang-grid, .rel-grid, .emg-grid, .do-grid, .cn-grid, .g5, .dishes, .regions, .cuisine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .app-grid, .dance-grid, .city-grid, .fest-grid, .lang-grid, .rel-grid, .g5, .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .season-grid, .cn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.app-card, .hosp, .dish-card, .city-card, .dance-card, .fest, .season, .lang-pill, .rel-card, .cn-chip, .region, .pan-step, .brief, .foreword, .cuisine-zone, .emg-box, .cal-month, .card-midnight, .card-em, .do-col, .rf-hero { background: var(--cp-paper); border: 1px solid var(--cp-line-strong); border-radius: var(--g-radius); padding: 18px 20px; min-width: 0; overflow: hidden; }
.dish-card, .city-card, .dance-card { padding: 0; display: grid; grid-template-rows: auto 1fr; }
.dish-body, .city-body, .dance-body { padding: 14px 18px 18px; display: grid; gap: 6px; align-content: start; }
.dish-img, .city-img, .dance-art-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cp-sunken); }
.dish-card .credit, .city-card .credit, .dance-card .credit, .cuisine-zone .credit { padding: 6px 18px 0; }
.app-name, .hosp-name, .dish-name, .city-name, .dance-name, .fest-name, .season-name, .lang-pill-name, .rel-name, .cn-name, .region-name, .pan-title, .brief-h, .foreword-title, .cal-mname, .emg-h, .cn-title, .rf-hero-title, .app-cat-title, .t-display, .imap-head { font-family: var(--cp-font-voice); font-weight: 500; font-size: var(--cp-step-1); line-height: 1.25; color: var(--cp-midnight); }
.t-display { font-size: var(--cp-step-3); margin: 24px 0 12px; }
.t-script, .card-em, .foreword-sig { font-family: var(--cp-font-voice); font-style: italic; }
.app-desc, .hosp-meta, .dish-desc, .city-desc, .fest-desc, .season-desc, .rel-desc, .cn-meta, .region-desc, .pan-desc, .brief-text, .foreword-body, .cal-evt, .season-tip, .rf-hero-body, .rf-hero-note, .imap-note, .cuisine-body { color: var(--cp-ink-2); font-size: 0.9375rem; line-height: 1.55; }
.dish-region, .city-tag, .dance-region, .fest-when, .season-when, .lang-pill-script, .lang-pill-region, .region-states, .region-tag, .cn-region, .cn-tag, .cn-eyebrow, .rf-eyebrow, .rf-sub, .rf-tag, .rf-states, .foreword-eyebrow, .brief-h, .app-cat, .cal-day, .emg-label, .cal-mnum, .rf-hero-tag { font-size: 0.8125rem; font-weight: 500; color: var(--cp-ink-3); }
.rel-pct, .emg-num, .hosp-phone, .pan-num, .cal-mnum, .t-mono { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); color: var(--cp-midnight); font-weight: 500; }
.rel-pct { font-size: var(--cp-step-3); }
.emg-num { font-size: var(--cp-step-2); }
.emg-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cp-line); }
.hosp { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; align-items: start; }
/* the number sits under the name, in the text column; in the 10px dot column it printed one digit per line (wave 6, lane D) */
.hosp-phone { grid-column: 2; }
.hosp-dot { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--cp-info); }
.hosp-phone a, .emg-num a { display: inline-flex; align-items: center; min-height: 44px; }
.c-badge, .tbadge-sky, .tbadge-coral, .tbadge-green, .tbadge-gold, .tbadge-midnight, .tbadge-magenta, .lang-tab, .cn-chip .cn-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; margin: 2px 4px 2px 0; border-radius: 999px; background: var(--cp-sunken); color: var(--cp-ink-2); font-size: 0.8125rem; font-weight: 450; }
.city-rating { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.card-icon, .rf-emoji, .season-ico, .rel-icon, .app-icon, .t-ic { font-size: 1.25rem; line-height: 1; }
.app-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.app-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--cp-sky-wash); }
.app-body { display: grid; gap: 4px; }
.card-title .card-icon { margin-right: 8px; }
.card-midnight { background: var(--cp-sky-wash); border-color: transparent; }
.fest-ov { display: none; }
.fest { display: grid; gap: 6px; align-content: start; }
.phrase-grid { display: grid; gap: 0; margin: 0 0 28px; }
@media (min-width: 900px) { .phrase-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.phrase-grid > * { padding: 12px 0; border-top: 1px solid var(--cp-line); }
.phrase-hi { font-size: 1.25rem; color: var(--cp-midnight); font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", system-ui, sans-serif; }
.phrase-en { color: var(--cp-ink-2); font-size: 0.9375rem; }
.lang-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.lang-panel { margin: 0 0 20px; }
.region-row { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--cp-line); }
.region { display: grid; gap: 6px; }
.region-state { display: inline-block; margin: 2px 6px 2px 0; font-size: 0.8125rem; color: var(--cp-ink-2); }
.pan-flow { counter-reset: none; }
.pan-step { display: grid; gap: 6px; }
.pan-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cp-sky-soft); }
.pan-arrow { display: none; }
.cal-month { display: grid; gap: 8px; }
.cal-month-h { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--cp-line); padding-bottom: 6px; }
.warn { display: block; padding: 14px 16px; border-radius: 12px; background: var(--cp-wait-soft); color: var(--cp-ink); margin: 0 0 20px; line-height: 1.6; }
.do-col h4, .dos h4, .donts h4 { margin-top: 0; }
.foreword { background: var(--cp-sky-wash); border-color: transparent; padding: 28px; margin: 0 0 28px; }
.foreword-title { font-size: var(--cp-step-3); margin: 6px 0 12px; }
.brief { margin: 0 0 28px; }
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 28px; }
.mosaic .plate:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mosaic .plate:first-child { grid-column: span 2; grid-row: span 2; } .mosaic .plate:first-child .plate__frame { aspect-ratio: 1; } }
.cn-head, .rf-head { margin: 0 0 14px; }
.india-map-wrap:not(:has(img)) .map-container { display: none; }
.journey .phase-footnote { margin-top: 16px; color: var(--cp-ink-2); font-size: 0.9375rem; }
.sec-kicker { font-size: 0.9375rem; font-weight: 500; color: var(--cp-coral-text); margin: 0 0 6px; }
.tagline--wide { border: 0; padding: 0; font-family: var(--cp-font-voice); font-size: var(--cp-step-3); line-height: 1.3; color: var(--cp-midnight); max-width: 36ch; }
.tagline--wide em { font-style: italic; color: var(--cp-coral-text); }

.dish-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dish-list > * { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--cp-sunken); color: var(--cp-ink-2); font-size: 0.8125rem; }
.card:not(:has(> .card-body)) { padding-bottom: 20px; }
.card:not(:has(> .card-body)) > :not(.cardphoto):not(img) { margin-left: 20px; margin-right: 20px; }
/* a bare table in a card keeps inside the card's 20 px sides */
.card:not(:has(> .card-body)) > table { width: calc(100% - 40px); }
.card:not(:has(> .card-body)) > .card-title { margin-top: 16px; }
.city__doors a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 8px 16px; line-height: 1.3; }
.meta-line { font-size: 0.9375rem; color: var(--cp-ink-3); margin: 0; }
/* mail and phone links inside the guide text get a finger sized hit area */
.sec a[href^="mailto:"], .sec a[href^="tel:"] { display: inline-block; padding: 12px 0; margin: -12px 0; }
.credits .c { min-width: 0; overflow-wrap: anywhere; }
.sec, .glance dd, .foot p { overflow-wrap: break-word; }
.for-logo { display: block; height: 28px; width: auto; }
/* the India guide's city chips jump to each city's profile */
a.cn-chip { display: grid; gap: 2px; margin: 0 0 8px; padding: 12px 16px; text-decoration: none; color: inherit; min-height: 44px; }
a.cn-chip:hover { background: var(--cp-sky-wash); border-color: var(--cp-sky); }
a.cn-chip .cn-name { color: var(--cp-midnight); }
.city-card { scroll-margin-top: 120px; }
/* the India phrasebook's language tabs */
button.lang-tab { min-height: 44px; padding: 0 16px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); color: var(--cp-ink-2); font: inherit; font-size: 0.9375rem; cursor: pointer; }
button.lang-tab[aria-selected="true"] { background: var(--cp-midnight); border-color: var(--cp-midnight); color: #fff; }
button.lang-tab:hover { border-color: var(--cp-sky); }

/* ==========================================================================
 * v3, ATLAS. Register B. docs/v3/DIRECTION.md.
 * Loaded after guide.css. Adds scale, plates, instruments and chapter colour.
 * Never dark, never a gradient, never a word over a photograph.
 * ========================================================================== */

:root {
  --v3-display: clamp(4rem, 2.4rem + 6.6vw, 8rem);
  --v3-fig-xl: clamp(2.6rem, 2rem + 2.2vw, 4rem);
  --v3-fig-l: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  --v3-h1: clamp(2.5rem, 1.6rem + 3.3vw, 4rem);
  --v3-h2: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
  --v3-h3: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  --v3-label: 0.8125rem;
  --v3-gap: clamp(32px, 2vw + 24px, 48px);
  --v3-section: clamp(64px, 5vw + 44px, 112px);
  --v3-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --v3-wash: #eef5f4;
  --v3-muted: #5d6b6e;
  --tab: #134550;
}

/* labels: Space Grotesk caps */
.eyebrow { font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); margin: 0 0 12px; line-height: 1.3; }
.v3-head { display: grid; gap: 10px; margin: 0 0 var(--v3-gap); max-width: 62ch; }
.v3-head .eyebrow { margin: 0; }
.v3-head .h2 { font-size: var(--v3-h2); line-height: 1.1; }
.v3-head p { margin: 0; color: var(--cp-ink-2); font-size: 1.0625rem; }
.block { padding: var(--v3-section) 0; }
.block + .block { padding-top: 0; }

/* ── the hero ────────────────────────────────────────────────────────────── */
.v3-hero { padding: 0 0 clamp(40px, 4vw, 72px); }
.v3-hero .display { font-size: var(--v3-display); line-height: 0.94; letter-spacing: -0.035em; }
.v3-hero .display-sub { font-size: 0.34em; margin-top: 0.35em; letter-spacing: -0.01em; }
.v3-hero .kicker { font-size: var(--v3-label); }
.v3-hero .lede { font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); max-width: 54ch; }
.v3-hero .hero__photo .plate__frame { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .v3-hero { padding: clamp(40px, 4vw, 64px) 0 clamp(56px, 5vw, 88px); }
  .v3-hero .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 4vw, 72px); align-items: end; }
  .v3-hero .hero__photo .plate__frame { aspect-ratio: 4 / 5; max-height: 78vh; }
  .v3-hero .hero__text { padding-bottom: 48px; }
}

/* ── the numbers band ────────────────────────────────────────────────────── */
.nband { background: var(--v3-wash); padding: clamp(40px, 4vw, 72px) 0; }
.nband__h { margin: 0 0 20px; }
.nband__row { display: grid; gap: 0; border-top: 1px solid rgb(19 69 80 / 0.16); }
.nb { display: grid; gap: 8px; align-content: start; padding: 24px 0 28px; border-bottom: 1px solid rgb(19 69 80 / 0.16); color: inherit; text-decoration: none; min-height: 44px; }
.nb__label { font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); }
.nb__value { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums lining-nums; font-weight: 500; font-size: var(--v3-fig-xl); line-height: 1.02; letter-spacing: -0.035em; color: var(--cp-midnight); text-wrap: balance; }
.nb__value--long { font-size: calc(var(--v3-fig-xl) * 0.82); }
.nb__to { font-size: 0.5em; font-weight: 400; letter-spacing: 0; color: var(--v3-muted); vertical-align: 0.35em; }
.nb__note { font-size: 0.9375rem; line-height: 1.45; color: var(--cp-ink-2); max-width: 36ch; }
.nb__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.9375rem; font-weight: 500; color: var(--cp-coral-text); }
.nb__go svg { transition: transform 150ms var(--v3-ease); }
.nb:hover .nb__go svg { transform: translateX(3px); }
.nb:hover .nb__value { color: var(--cp-midnight-deep, #0d3640); }
.nband__note { margin: 20px 0 0; font-size: 0.9375rem; color: var(--v3-muted); max-width: 70ch; }
@media (min-width: 640px) { .nband__row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1000px) {
  .nband__row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nband__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb { padding: 28px 0 32px; border-bottom: 0; }
  .nband__row { border-top: 2px solid var(--cp-midnight); }
}

/* ── the twelve frames ───────────────────────────────────────────────────── */
.frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.frame { margin: 0; grid-column: span var(--pw, 1); display: grid; grid-template-rows: auto auto; gap: 8px; min-width: 0; }
.frame__open { display: block; position: relative; overflow: hidden; border-radius: 12px; background: var(--cp-sunken); aspect-ratio: 1 / 1; cursor: zoom-in; }
.frame[style*="--pw:2"] .frame__open { aspect-ratio: 3 / 2; }
.frame__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--v3-ease); }
.frame__open:hover img { transform: scale(1.03); }
.frame figcaption { display: grid; gap: 2px; font-size: 0.875rem; line-height: 1.4; color: var(--cp-ink-2); min-width: 0; }
.frame__cap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.frame .credit { font-size: 0.75rem; margin-top: 0; }
.frame__ch { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 -8px; font-size: 0.8125rem; font-weight: 500; color: var(--tab); text-decoration: none; }
.frame__ch::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--tab); }
.frame__ch:hover { text-decoration: underline; text-decoration-color: currentColor; }
@media (min-width: 900px) {
  .frames { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 40px; grid-auto-flow: dense; gap: 0 24px; }
  .frame { grid-column: span var(--w); grid-row: span var(--h); grid-template-rows: minmax(0, 1fr) auto; padding-bottom: 28px; }
  .frame__open, .frame[style*="--pw:2"] .frame__open { aspect-ratio: auto; height: 100%; border-radius: 14px; }
}

/* ── the contents spread ─────────────────────────────────────────────────── */
.spread { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--cp-line); }
.spread li { margin: 0; border-bottom: 1px solid var(--cp-line); }
.spread a { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; align-items: center; padding: 18px 0; color: inherit; text-decoration: none; min-height: 44px; }
.spread__img { order: 2; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--cp-sunken); }
.spread__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--v3-ease); }
.spread__text { display: grid; gap: 4px; align-content: start; }
.spread__n { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; color: var(--tab); display: flex; align-items: center; gap: 10px; }
.spread__n::after { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--tab); }
.spread__t { font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--v3-h3); line-height: 1.15; color: var(--cp-midnight); letter-spacing: -0.01em; margin-top: 6px; }
.spread__d { font-size: 0.9375rem; line-height: 1.45; color: var(--cp-ink-2); }
.spread__m { font-family: var(--cp-font-figure); font-size: var(--v3-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); margin-top: 4px; }
.spread a:hover .spread__t { text-decoration: underline; text-decoration-color: var(--tab); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.spread a:hover .spread__img img { transform: scale(1.04); }
@media (min-width: 900px) {
  .spread { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; border-top: 0; }
  .spread li { grid-column: span 6; border-bottom: 0; border-top: 3px solid var(--tab); }
  .spread li:nth-child(n+5) { grid-column: span 4; }
  .spread a { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 0 0; align-items: start; }
  .spread__img { order: 0; aspect-ratio: 16 / 9; border-radius: 14px; }
  .spread__n { font-size: var(--v3-fig-l); }
  .spread li:nth-child(n+5) .spread__img { aspect-ratio: 3 / 2; }
}

/* ── the weather, drawn ──────────────────────────────────────────────────── */
.wx { margin: 0 0 28px; --c-ideal: #134550; --c-warm: #C9A227; --c-hot: #b03418; --c-monsoon: #0e6b60; --c-cold: #2a6f97; --c-cool: #2a6f97; }
.wx--ideal { --kc: var(--c-ideal); } .wx--warm { --kc: var(--c-warm); } .wx--hot { --kc: var(--c-hot); }
.wx--monsoon { --kc: var(--c-monsoon); } .wx--cold, .wx--cool { --kc: var(--c-cold); }
.wx__months { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--cp-line); }
/* a phone: one row a month, the bar runs across */
.wx__m { margin: 0; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 4.4rem; grid-template-areas: "name bar t" "name label label"; column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cp-line); }
.wx__name { grid-area: name; font-family: var(--cp-font-figure); font-weight: 500; font-size: 0.9375rem; color: var(--cp-ink); align-self: start; padding-top: 2px; }
.wx__bar { grid-area: bar; position: relative; height: 10px; border-radius: 5px; background: var(--cp-sunken); overflow: hidden; }
.wx__bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--b); width: var(--h); border-radius: 5px; background: var(--kc); }
.wx__t { grid-area: t; text-align: right; font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: 1rem; color: var(--cp-midnight); white-space: nowrap; }
.wx__label { grid-area: label; font-size: 0.875rem; line-height: 1.35; color: var(--cp-ink-2); }
.wx figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 16px; font-size: 0.9375rem; color: var(--cp-ink-2); }
.wx__key { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.wx__k { display: inline-flex; align-items: center; gap: 8px; }
.wx__k i { width: 12px; height: 12px; border-radius: 3px; background: var(--kc); }
.wx__best { font-weight: 500; color: var(--cp-midnight); }
/* a desk: twelve columns, the bar rises */
@media (min-width: 760px) {
  .wx__months { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 8px; border-top: 0; align-items: end; }
  .wx__m { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "bar" "name" "label"; grid-template-rows: auto clamp(160px, 16vw, 240px) auto auto; row-gap: 8px; padding: 0; border-bottom: 0; text-align: center; }
  .wx__bar { height: 100%; width: 100%; max-width: 44px; justify-self: center; border-radius: 8px; background: var(--v3-wash); }
  .wx__bar::after { left: 0; right: 0; width: auto; top: auto; bottom: var(--b); height: var(--h); border-radius: 8px; }
  .wx__t { text-align: center; font-size: 1.0625rem; }
  .wx__name { padding-top: 6px; border-top: 2px solid var(--kc); }
  .wx__label { font-size: 0.8125rem; color: var(--v3-muted); hyphens: auto; }
}

/* ── chapters: the tab, the rule, the numerals, the progress line ───────── */
.chap .chead { border-top: 3px solid var(--tab); }
.ctab { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--cp-font-figure); }
.ctab__n { font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: var(--v3-fig-l); line-height: 1; letter-spacing: -0.03em; color: var(--tab); }
.ctab__sq { width: 14px; height: 14px; border-radius: 3px; background: var(--tab); }
.ctab__of { font-size: var(--v3-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); }
.chap .h1 { font-size: var(--v3-h1); }
.cprog { position: fixed; left: 0; right: 0; top: var(--g-top); height: 3px; z-index: var(--cp-z-sticky); pointer-events: none; }
.cprog span { display: block; height: 100%; background: var(--tab); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 999px) { .cprog { top: calc(var(--g-top) + 60px); } }
.chap .strip a[aria-current="true"] { background: var(--tab); }
@media (min-width: 1000px) {
  .chap .rail a[aria-current="true"], .chap .rail a[aria-current="page"] { border-left-color: var(--tab); }
  .chap .chead__photo .plate__frame { aspect-ratio: 4 / 5; max-height: 62vh; }
}
.sec { padding-top: clamp(56px, 4vw + 32px, 96px); }
.sec__name { display: flex; align-items: center; gap: 14px; font-family: var(--cp-font-figure); font-size: var(--v3-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); }
.sec__n { font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: var(--v3-fig-l); line-height: 1; letter-spacing: -0.03em; color: var(--tab); text-transform: none; }
.sec-title { font-size: var(--v3-h2); line-height: 1.1; }

/* the next chapter: a plate, not a thin bar */
.nextp { margin: 56px 0 0; border-top: 3px solid var(--tab, var(--cp-midnight)); }
.nextp a { display: grid; gap: 18px; padding: 18px 0 8px; color: inherit; text-decoration: none; }
.nextp__img { display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--cp-sunken); }
.nextp__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--v3-ease); }
.nextp__text { display: grid; gap: 6px; align-content: center; }
.nextp__text .eyebrow { margin: 0; }
.nextp__n { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: var(--v3-fig-l); line-height: 1; color: var(--tab); }
.nextp__t { font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--v3-h2); line-height: 1.08; color: var(--cp-midnight); letter-spacing: -0.015em; }
.nextp__d { font-size: 0.9375rem; color: var(--cp-ink-2); }
.nextp a:hover .nextp__t { text-decoration: underline; text-decoration-color: var(--tab); text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.nextp a:hover .nextp__img img { transform: scale(1.03); }
@media (min-width: 760px) { .nextp a { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: center; } }

/* ── the photograph dialog ───────────────────────────────────────────────── */
.lb { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: #0b1416; color: #fff; }
.lb::backdrop { background: rgb(8 14 16 / 0.92); }
.lb__inner { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
.lb__fig { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 16px 16px 0; min-height: 0; }
.lb__img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lb__cap { font-size: 0.9375rem; line-height: 1.45; color: #dfe9e7; max-width: 80ch; margin: 0 auto; text-align: center; }
.lb__cap .credit, .lb__cap .credit a { color: #b9c9c6; }
.lb__bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.lb__btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.28); background: transparent; color: #fff; cursor: pointer; }
.lb__btn:hover { background: rgb(255 255 255 / 0.1); }
.lb__btn:focus-visible { outline: 2px solid #F1593F; outline-offset: 3px; }
.lb__close { margin-left: 16px; }
.lb__count { min-width: 5ch; text-align: center; font-family: var(--cp-font-figure); font-size: 0.9375rem; color: #dfe9e7; }

/* ── motion: rise once, only below the fold, only with a script ─────────── */
.rv { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--v3-ease), transform 400ms var(--v3-ease); }
.rv.in { opacity: 1; transform: none; }
html.calm .rv, html.calm .frame__open img, html.calm .spread__img img, html.calm .nextp__img img { transition: none; transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .frame__open img, .spread__img img, .nextp__img img, .nb__go svg { transition: none; }
}

/* ── print: the one sheet ───────────────────────────────────────────────── */
@media print {
  .nband { background: none; padding: 12pt 0; }
  .frames-block, .lb, .cprog, .gmap { display: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .v3-hero .display { font-size: 48pt; }
  .nb__value { font-size: 22pt; }
  .spread li { break-inside: avoid; }
  .wx__bar::after { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* the Less motion switch in the footer */
.calm-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); color: var(--cp-ink-2); font: inherit; font-size: 0.9375rem; cursor: pointer; }
.calm-btn:hover { background: var(--v3-wash); color: var(--cp-midnight); }
.wx__s { display: block; font-family: var(--cp-font-figure); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); margin-top: 2px; }

/* ── where families live: the map and the list ──────────────────────────── */
.lives .gmap { margin: 0; }
.lives .gmap__keys { display: none; }
.lives__grid { display: grid; gap: 24px; }
.lives__map .gmap__frame { height: 340px; border-radius: 14px; overflow: hidden; }
.lives__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cp-line); counter-reset: none; }
.live { display: grid; grid-template-columns: 28px 72px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0; padding: 16px 0 16px 10px; border-bottom: 1px solid var(--cp-line); border-left: 3px solid transparent; transition: border-color 200ms var(--v3-ease), background 200ms var(--v3-ease); }
.live--on { border-left-color: var(--cp-coral); background: var(--v3-wash); }
.live__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cp-coral-action, #c63822); color: #fff; font-family: var(--cp-font-figure); font-weight: 600; font-size: 0.875rem; margin-top: 2px; }
.live__img { display: block; width: 72px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cp-sunken); }
.live__img img { width: 100%; height: 100%; object-fit: cover; }
.live__body { display: grid; gap: 4px; min-width: 0; }
.live__name { font-family: var(--cp-font-voice); font-weight: 500; font-size: var(--v3-h3); line-height: 1.15; color: var(--cp-midnight); }
.live__vibe { font-size: 0.9375rem; color: var(--cp-ink-2); line-height: 1.4; }
.live__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 0.9375rem; color: var(--cp-ink-2); }
.live__fact b { font-family: var(--cp-font-figure); font-weight: 500; color: var(--cp-midnight); }
.live__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; }
.live__pin.onmap { min-height: 44px; padding: 0 12px; }
.live__go { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 500; }
.lives__more { margin: 28px 0 0; }
@media (min-width: 1000px) {
  .lives__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
  .lives__map { position: sticky; top: calc(var(--g-top) + 24px); }
  .lives__map .gmap__frame { height: min(640px, calc(100vh - var(--g-top) - 80px)); }
}
@media print { .lives__map, .live__acts { display: none; } }

/* ── the hub ─────────────────────────────────────────────────────────────── */
.v3-hhero .display { font-size: clamp(3.25rem, 1.9rem + 5.6vw, 7rem); line-height: 0.95; letter-spacing: -0.035em; }
.v3-hhero .kicker { font-size: var(--v3-label); }
@media (min-width: 900px) { .v3-hhero .hhero__grid { align-items: end; } .v3-hhero .hhero__photo .plate__frame { aspect-ratio: 4 / 5; max-height: 76vh; } }
.city { padding: 32px 0; }
.city__n { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: var(--v3-fig-l); line-height: 1; letter-spacing: -0.03em; color: var(--cp-coral-text); }
.city__name { font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4.5rem); line-height: 0.98; letter-spacing: -0.03em; margin: 10px 0 10px; }
.city__fact .v { font-size: var(--v3-fig-l); letter-spacing: -0.03em; }
.city__doors { grid-auto-flow: row; gap: 0; border-top: 1px solid var(--cp-line); }
.city__doors a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t go" "s go"; align-items: center; column-gap: 12px; min-height: 64px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--cp-line); border-radius: 0; background: none; }
.city__door-t { grid-area: t; font-family: var(--cp-font-voice); font-size: 1.25rem; font-weight: 500; color: var(--cp-midnight); }
.city__doors small { grid-area: s; }
.city__doors svg { grid-area: go; color: var(--cp-coral-text); transition: transform 150ms var(--v3-ease); }
.city__doors a:hover { background: none; }
.city__doors a:hover .city__door-t { text-decoration: underline; text-decoration-color: var(--cp-coral); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.city__doors a:hover svg { transform: translateX(3px); }
@media (min-width: 900px) {
  .city { padding: 48px 0; gap: 64px; }
  .city__photo .plate__frame { aspect-ratio: 3 / 2; }
  .city__doors { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; max-width: 560px; }
}

/* side by side: the map and the comparison */
.hcmp__aud { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 20px; border-radius: 12px; background: var(--v3-wash); }
.hcmp__btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--cp-ink-2); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background 150ms var(--v3-ease), color 150ms var(--v3-ease); }
.hcmp__btn[aria-pressed="true"] { background: var(--cp-paper); color: var(--cp-midnight); box-shadow: 0 1px 2px rgb(19 69 80 / 0.12); }
.hcmp__grid { display: grid; gap: 24px; }
.hcmp__map .gmap { margin: 0; }
.hcmp__map .gmap__keys { display: none; }
.hcmp__map .gmap__frame { height: 420px; border-radius: 14px; overflow: hidden; }
.hcmp__map .gmap__guides { display: none; }
.cmp__t { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cmp__t th, .cmp__t td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--cp-line); vertical-align: top; }
.cmp__t thead th { font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); border-bottom: 2px solid var(--cp-midnight); padding: 10px 12px; vertical-align: bottom; }
.cmp__t tbody th { font-family: var(--cp-font-voice); font-weight: 500; font-size: 1.125rem; }
.cmp__t tbody th a { color: var(--cp-midnight); }
.cmp__v { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums lining-nums; font-weight: 500; color: var(--cp-midnight); white-space: nowrap; }
.cmp__none { color: var(--v3-muted); font-size: 0.875rem; }
.cmp__sort { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; text-align: left; }
.cmp__sort:hover { color: var(--cp-midnight); }
th[aria-sort="ascending"] .cmp__sort, th[aria-sort="descending"] .cmp__sort { color: var(--cp-midnight); }
.cmp__t tr.cmp--hi td, .cmp__t tr.cmp--hi th { background: var(--v3-wash); }
@media (max-width: 699px) {
  .cmp__t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp__t, .cmp__t tbody, .cmp__t tr, .cmp__t td, .cmp__t tbody th { display: block; width: 100%; }
  .cmp__t tr { padding: 12px 0; border-bottom: 1px solid var(--cp-line); }
  .cmp__t td, .cmp__t tbody th { border: 0; padding: 4px 0; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 8px; }
  .cmp__t tbody th { display: block; font-size: 1.375rem; padding-bottom: 6px; }
  .cmp__t td::before { content: attr(data-label); font-size: 0.875rem; color: var(--v3-muted); }
  .cmp__v { white-space: normal; }
  .hcmp__sortbar { display: flex; }
}
@media (min-width: 1100px) {
  .hcmp__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: start; }
  .hcmp__map { position: sticky; top: calc(var(--g-top) + 24px); }
  .hcmp__map .gmap__frame { height: min(620px, calc(100vh - var(--g-top) - 80px)); }
}
.cmp__t tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
.hcmp + .band, .band + .block { padding-top: var(--v3-section); }
.cmp__note { display: block; margin-top: 4px; font-size: 0.8125rem; line-height: 1.35; color: var(--v3-muted); max-width: 22ch; }
.cmp__t td[data-label="Best months"] { white-space: nowrap; }
@media (max-width: 699px) { .cmp__note { max-width: none; } .cmp__t td[data-label="Best months"] { white-space: normal; } }
@media (max-width: 699px) { .cmp__t td > .cmp__v, .cmp__t td > .cmp__note, .cmp__t td > .cmp__none { grid-column: 2; } }
/* the city name fills its column and never runs under the photograph: the longest
   word sets the size (Coimbatore, Discovering) */
.v3-hero .hero__text { container-type: inline-size; min-width: 0; }
.v3-hero .display { font-size: min(var(--v3-display), calc(100cqi / (var(--len, 8) * 0.56))); }

/* every link a finger meets has a 44px hit area, without moving the words */
.top nav a.find { min-width: 44px; justify-content: center; }
.glance dd a, .v3-head p a, .nband__note a { display: inline-block; padding: 11px 0; margin: -11px 0; }
.decide__then a { min-width: 44px; text-align: center; }
/* an inline link inside the moved content keeps its line but gets a 44px tall hit area */
.sec p a:not([class]), .sec li a:not([class]), .sec td a:not([class]), .glance dd a:not([class]) { padding-block: 12px; }
.sec .cost__dep { max-width: 56ch; }
@media (prefers-reduced-motion: reduce) { .city__doors svg, .hcmp__btn, .live { transition: none; } .city__doors a:hover svg { transform: none; } }
html.calm .city__doors svg, html.calm .nb__go svg { transition: none; transform: none; }
/* a credit is a person's name or a file name, and either can be one long word */
.frame figcaption, .plate figcaption, .credit, .credit a { overflow-wrap: anywhere; }
/* the narrowest phones: the long city names (Coimbatore, Ahmedabad) keep the bar on one line */
@media (max-width: 360px) {
  .top .wrap { gap: 4px; }
  .top nav { gap: 0; }
  .top nav a { padding: 0 6px; }
  .top nav .move { padding: 0 8px; font-size: 0.8125rem; }
}
.foot p a { display: inline-block; padding-block: 12px; margin-block: -12px; }
@media (max-width: 340px) { .top .cp-lockup { font-size: 0.98rem; } .top nav .move { padding: 0 6px; } }
.sec dd a:not([class]), .sec div > a:not([class]), .sec span > a:not([class]) { padding-block: 12px; }

/* ── v3 review fixes ─────────────────────────────────────────────────────── */
.hero__acts { margin: 14px 0 0; }
.share-btn, .live__share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); color: var(--cp-midnight); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.share-btn:hover, .live__share:hover { background: var(--v3-wash); }
.live__share { padding: 0 10px; border-color: transparent; }
.live__nopin { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; color: var(--v3-muted); }
.lives__grid--list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .lives__grid--list .lives__list { columns: 2; column-gap: 40px; } .lives__grid--list .live { break-inside: avoid; } }
/* the neighbourhood cards in the chapter open with their rent and a commute */
.nb-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: 0.9375rem; color: var(--cp-ink-2); }
.nbs > .nb-card .nb-facts { grid-column: 2; }
@media (max-width: 699px) { .nbs > .nb-card .nb-facts { grid-column: auto; } }
/* a phone shows eight frames; all twelve open in the dialog */
@media (max-width: 899px) { .frame:nth-child(n+9) { display: none; } .frame__ch { display: none; } }
/* a chapter on a phone: one sticky row while reading */
@media (max-width: 999px) {
  .top, .chap .strip, .cprog { transition: transform 200ms var(--v3-ease), top 200ms var(--v3-ease); }
  html.bar-up .top { transform: translateY(-100%); }
  html.bar-up .chap .strip { top: 0; }
  html.bar-up .cprog { top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .top, .chap .strip, .cprog { transition: none; } }
/* search: a 16px field a finger can use, so a phone never zooms in */
.find-row input, #find-q { font-size: 1rem; min-height: 48px; padding: 0 14px; }
/* the weather: every caption has the same room, and this month is marked */
@media (min-width: 760px) { .wx__label { min-height: 3.2em; } .wx__m { grid-template-rows: auto clamp(160px, 16vw, 240px) auto 3.6em; } }
.wx--now .wx__name { color: var(--cp-coral-text); font-weight: 700; }
.wx--now .wx__name::after { content: " now"; font-family: var(--cp-font-figure); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* the hub: every city one tap away */
.hchips { margin: 28px 0 0; }
.hchips ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hchips li { margin: 0; }
.hchips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--v3-wash); color: var(--cp-midnight); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.hchips a:hover { background: var(--cp-sky, #ACD8D5); }
.hchips .hchips__cmp { background: var(--cp-paper); border: 1px solid var(--cp-line-strong); }
.city { scroll-margin-top: calc(var(--g-top) + 16px); }
@media (max-width: 699px) { .hcmp__sorthint { display: none; } }
.live__name { text-decoration: none; }
a.live__name:hover { text-decoration: underline; text-decoration-color: var(--cp-coral); text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
a.live__name { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 -6px; }
.live__acts { flex-wrap: nowrap; gap: 8px; }
.live__share { width: 44px; justify-content: center; padding: 0; border-color: var(--cp-line-strong); }

/* ── the old content blocks, in the atlas register (direction section 10) ── */
/* tips: a ruled note, not a boxed callout with an icon */
.tip, .ikanx-hint-box { display: block; background: none; border-radius: 0; border-left: 3px solid var(--tab, var(--cp-coral)); padding: 4px 0 4px 18px; margin: 0 0 28px; }
.tip .tip-icon { display: none; }
.tip-text { color: var(--cp-ink); max-width: 62ch; }
/* red flags: numbered rows with big coral numerals */
.rf-grid { display: block; counter-reset: rf; border-top: 1px solid var(--cp-line); }
.rf-card { counter-increment: rf; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; background: none; border-radius: 0; padding: 20px 0; border-bottom: 1px solid var(--cp-line); }
.rf-card::before { content: counter(rf, decimal-leading-zero); grid-row: span 2; font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: 2.25rem; line-height: 1; letter-spacing: -0.03em; color: var(--cp-coral-text); }
.rf-title { color: var(--cp-midnight); font-family: var(--cp-font-voice); font-weight: 500; font-size: var(--v3-h3); margin: 0 0 6px; }
.rf-title svg.ic { display: none; }
.rf-body { color: var(--cp-ink-2); max-width: 64ch; }
/* stat tiles: a quiet ledger of figure and label */
.stat-trio, .icon-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 2px solid var(--cp-midnight); }
.stat-tile, .istat { border: 0; border-radius: 0; border-bottom: 1px solid var(--cp-line); padding: 14px 16px 14px 0; background: none; }
.stat-tile .stat-val, .istat .is-val { font-size: var(--v3-fig-l); }
.is-icon, .stat-icon { display: none; }
/* the Essentials links: rows with an arrow, not a card grid */
.xlink-grid { display: block; border-top: 1px solid var(--cp-line); }
.xlink-card { border: 0; border-radius: 0; border-bottom: 1px solid var(--cp-line); padding: 18px 0; background: none; grid-template-columns: minmax(0, 1fr) auto; }
.xlink-card svg.ic { display: none; }
.xlink-card:hover { background: none; }
.xlink-card:hover .xlink-t { text-decoration: underline; text-decoration-color: var(--cp-coral); text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.xlink-t { font-family: var(--cp-font-voice); font-weight: 500; font-size: var(--v3-h3); color: var(--cp-midnight); }
.xlink-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--cp-coral-text); font-weight: 500; }
/* the apps: a plain list by kind, no drawn phone */
.phsec, .ph, .phs { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; width: auto; max-width: none; }
.phcl { display: block; font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); margin: 20px 0 10px; }
.sec .credit a, .plate .credit a { padding-block: 14px; }
.sec .credit a:not([class]), .credit a:not([class]) { padding-block: 14px; }
/* the source link in a checked-on note sits in smaller type, so it takes the credit links' padding to reach 44px */
.sec .dir-checked a:not([class]) { padding-block: 14px; }

/* ── print: a front page on one or two sheets ───────────────────────────── */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { background: #fff !important; font-size: 10pt; }
  .top, .edition, .skip, .share-btn, .hero__acts, .swap, .frames-block, .lives__map, .live__acts, .live__img, .lives__more, .spread__img, #tools, .door, .calm-btn, .foot nav, .strip, .rail, .cprog, .nextp__img, .chapnav, .onmap, .gmap, .lb { display: none !important; }
  .v3-hero { padding: 0 0 8pt; }
  .v3-hero .hero__grid { display: grid; grid-template-columns: 1fr 34%; gap: 10mm; align-items: start; }
  .v3-hero .hero__photo { order: 0; margin: 0; }
  .v3-hero .hero__photo .plate__frame { aspect-ratio: 4 / 3; max-height: 60mm; border-radius: 6px; }
  .v3-hero .display { font-size: 40pt !important; }
  .v3-hero .lede { font-size: 10.5pt; }
  .nband { background: none !important; padding: 6pt 0; }
  .nband__row { grid-template-columns: repeat(4, 1fr) !important; border-top: 1.5pt solid #134550; }
  .nb { padding: 6pt 6pt 6pt 0; border: 0; }
  .nb__value { font-size: 18pt !important; }
  .nb__go, .nband__note { display: none; }
  .block { padding: 10pt 0 !important; }
  .v3-head { margin-bottom: 6pt; }
  .v3-head .h2 { font-size: 15pt; }
  .v3-head p { display: none; }
  .spread { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 8mm !important; border-top: 1pt solid #dde6e3; }
  .spread li { grid-column: auto !important; border-top: 0 !important; border-bottom: 1pt solid #dde6e3 !important; }
  .spread a { padding: 4pt 0 !important; display: block; }
  .spread__n { font-size: 11pt !important; display: inline; margin-right: 6pt; }
  .spread__n::after { display: none; }
  .spread__t { display: inline; font-size: 11pt; }
  .spread__d { display: block; font-size: 8.5pt; }
  .spread__m { display: none; }
  .lives__grid { display: block; }
  .lives__list { columns: 2; column-gap: 8mm; }
  .live { break-inside: avoid; grid-template-columns: 18pt 1fr; padding: 3pt 0; border-left: 0; }
  .live__n { width: 14pt; height: 14pt; font-size: 7pt; }
  .live__name { font-size: 10.5pt; min-height: 0; margin: 0; }
  .live__vibe { display: none; }
  .wx__bar { max-width: 24px !important; }
  .closing { display: block; }
  .closing .h2 { font-size: 14pt; }
  .foot { border-top: 1pt solid #dde6e3; padding-top: 6pt; font-size: 8pt; }
  a { color: inherit !important; text-decoration: none !important; }
}
/* a credit link's hit area comes from padding, so a short name ("Shri") leaves no gap before its comma */
.credit a, .credit a:not([class]) { min-width: 0; padding: 14px 12px; margin: -14px -12px; }
/* a range ("16 to 28°") wraps onto two lines where the columns are narrow */
@media (min-width: 760px) and (max-width: 1199px) { .wx__t { white-space: normal; font-size: 0.9375rem; line-height: 1.15; } }
@media print { .wx__t { white-space: normal; font-size: 8pt; line-height: 1.1; } .wx__label { font-size: 7pt; } .v3-head { break-after: avoid; } .closing__words p { display: none; } .lives { break-before: auto; } }
@media print { #move { display: none !important; } .foot { break-inside: avoid; } }
@media print { .wx__m { grid-template-rows: auto 30mm auto auto !important; } .wx figcaption { margin-top: 6pt; } .foot p:not(:first-of-type) { display: none; } }
@media print { .lives__list { columns: auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 8mm; } .wx { break-inside: avoid; } }

/* ── the shortlist ───────────────────────────────────────────────────────── */
.save-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); color: var(--cp-midnight); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.save-btn:hover { background: var(--v3-wash); }
.save-btn[aria-pressed="true"] { background: var(--cp-midnight); border-color: var(--cp-midnight); color: #fff; }
.save-btn[aria-pressed="true"] path { fill: currentColor; }
.nb-body .save-btn { justify-self: start; }
.sf__row .save-btn { margin-top: 8px; }
.sl { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: calc(var(--cp-z-sticky) + 1); }
.sl__open { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--cp-midnight); color: #fff; font: inherit; font-weight: 500; cursor: pointer; box-shadow: 0 6px 20px rgb(13 54 64 / 0.28); }
.sl__n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--cp-coral-action, #c63822); font-family: var(--cp-font-figure); font-size: 0.8125rem; }
.sld { width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0; border: 0; border-radius: 16px; background: var(--cp-paper); color: var(--cp-ink); box-shadow: 0 24px 64px rgb(13 54 64 / 0.3); }
.sld::backdrop { background: rgb(13 54 64 / 0.45); }
.sld__in { padding: 24px; display: grid; gap: 12px; }
.sld__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sld__x { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--cp-ink-2); cursor: pointer; }
.sld__x:hover { background: var(--v3-wash); }
.sld__note { margin: 0; font-size: 0.9375rem; color: var(--v3-muted); }
.sld__k { font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); margin: 12px 0 4px; }
.sld__ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cp-line); }
.sld__ol li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cp-line); margin: 0; }
.sld__t { font-family: var(--cp-font-voice); font-weight: 500; font-size: 1.125rem; color: var(--cp-midnight); }
.sld__line { grid-column: 1; font-size: 0.875rem; color: var(--cp-ink-2); }
.sld__rm { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--cp-ink-2); font: inherit; font-size: 0.875rem; text-decoration: underline; cursor: pointer; }
.sld__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sld__clear { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--cp-ink-2); font: inherit; text-decoration: underline; cursor: pointer; }
@media print {
  .sl, .save-btn { display: none !important; }
  html.print-sl body > *:not(.sld) { display: none !important; }
  html.print-sl .sld { display: block !important; position: static; width: auto; max-height: none; box-shadow: none; }
  html.print-sl .sld__x, html.print-sl .sld__acts, html.print-sl .sld__rm { display: none !important; }
}
/* the row's buttons never shrink below their 44px; on a narrow phone they wrap */
.live__acts { flex-wrap: wrap; }
.live__acts > * { flex: 0 0 auto; }
.live__share { min-width: 44px; }

/* ── v4: In short, three points under every section heading ────────────── */
.inshort { margin: 6px 0 24px; padding: 16px 18px 14px; border-radius: 14px; background: var(--v3-wash); border-left: 4px solid var(--tab, var(--cp-midnight)); max-width: 64ch; }
.inshort__h { margin: 0 0 8px; font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tab, var(--cp-midnight)); }
.inshort ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inshort li { position: relative; margin: 0; padding-left: 22px; font-size: 1.0625rem; line-height: 1.45; color: var(--cp-ink); }
.inshort li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; border-radius: 3px; background: var(--tab, var(--cp-midnight)); }
@media print { .inshort { background: none; border: 1pt solid #dde6e3; border-left: 3pt solid #134550; } }

/* ── v4: the fold (INFORMATION-DESIGN.md 3.2) ─────────────────────────────
   A long paragraph keeps its first sentence; guide.js adds .fold--on and a More
   button. Without the script, and on paper, every word shows. ─────────────── */
.fold--on > .fold__rest { display: none; }
.fold__figs { display: none; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fold--on > .fold__figs { display: flex; }
.fold__fig { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 6px; background: var(--v3-wash); font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums; font-size: 0.875rem; font-weight: 500; color: var(--cp-midnight); line-height: 1.2; }
.fold-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; margin: -6px 0 0; border: 0; background: none; color: var(--cp-midnight); font: inherit; font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--cp-sky); text-decoration-thickness: 2px; text-underline-offset: 0.18em; cursor: pointer; touch-action: manipulation; }
.fold-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--v3-ease); }
.fold-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.fold-btn:hover { text-decoration-color: var(--cp-coral); }
p + .fold-btn, .sec > .fold-btn { margin: -14px 0 24px; }
.sec-rest { color: var(--cp-ink-2); max-width: 62ch; margin: -16px 0 28px; }
.sec-sub + .sec-rest, .sec-sub-lt + .sec-rest { margin-top: -16px; }
/* a desk shows a paragraph of up to 90 words whole */
@media (min-width: 1000px) {
  .fold--short.fold--on > .fold__rest { display: inline; }
  .fold--short > .fold__figs, .fold--short + .fold-btn, .fold--short > .fold-btn { display: none; }
}
/* the explorer row: the first sentence, three chips, More about the place */
.nb-body > .fold-btn { justify-self: start; margin: -6px 0 -4px; }
html.calm .fold-btn::after { transition: none; }
@media (prefers-reduced-motion: reduce) { .fold-btn::after { transition: none; } }
@media (prefers-contrast: more) { .fold-btn { text-decoration-color: currentColor; } .fold__fig { border: 1px solid var(--cp-ink); } }
@media print {
  .fold--on > .fold__rest { display: inline !important; }
  .fold__figs, .fold-btn { display: none !important; }
  .fold__rest br { display: block; }
}

/* ── v4: ledger rows (3.2): a bold-lead bullet is a label, a value and More ──── */
.lrows { list-style: none !important; margin: 0 0 8px !important; padding: 0 !important; border-top: 1px solid var(--cp-line); max-width: none; }
.lrows > .lrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; padding: 12px 0 !important; margin: 0 !important; border-bottom: 1px solid var(--cp-line); }
.lrows > .lrow::before { display: none !important; }
.lrow__k { font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); line-height: 1.4; }
.lrow__k strong, .lrow__k b { font: inherit; color: inherit; }
.lrow__v { color: var(--cp-ink); font-size: 1rem; line-height: 1.5; }
.lrow__v .figure { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 1.0625rem; color: var(--cp-midnight); white-space: nowrap; }
.lrow .fold-btn { margin: -12px 0 -12px 10px; vertical-align: baseline; }
@media (min-width: 700px) {
  .lrows > .lrow { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
  .lrows > .lrow .fold-btn { grid-column: 2; }
  .lrows > .lrow--plain .lrow__v { grid-column: 1 / -1; }
}
/* a list over six items shows six; guide.js adds "Show all N" */
.list-cap--on > .list-cap__hid { display: none !important; }
.list-cap + .fold-btn { margin: -8px 0 24px; }
.lrows + .fold-btn { margin: 0 0 24px; }
@media print { .list-cap--on > .list-cap__hid { display: list-item !important; } .lrows.list-cap--on > .list-cap__hid { display: grid !important; } }

/* visa types: one ledger, the type as the label (3.3) */
.vrows .visa-row { grid-template-columns: minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; }
.vrows .visa-type { font-family: var(--cp-font-voice); font-size: 1.125rem; font-weight: 500; }
.vrows .visa-row > .fold-btn { margin: 0; justify-self: start; }
.g2:has(.vrows) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .vrows .visa-row { grid-template-columns: 12rem minmax(0, 1fr); align-items: start; }
  .vrows .visa-row > .fold-btn { grid-column: 2; }
}
/* stat tiles: a figure ledger; a tile whose value is a word reads as a plain line */
.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.facts .stat-tile--fig { display: grid; gap: 2px; padding: 14px 0 12px; }
.facts .stat-tile--fig .stat-val { font-size: var(--v3-fig-l); letter-spacing: -0.03em; }
.facts .stat-label { font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); line-height: 1.35; }
.facts .stat-sub { font-size: 0.875rem; color: var(--cp-ink-2); line-height: 1.4; }
.facts .stat-tile--word { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 0; }
.facts .stat-tile--word .stat-val { order: 0; font-family: var(--cp-font-body); font-size: 1rem; font-weight: 560; letter-spacing: 0; line-height: 1.4; }
.facts .stat-tile--word .stat-label { font-family: var(--cp-font-body); font-size: 0.9375rem; text-transform: none; letter-spacing: 0; color: var(--cp-ink-2); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts.stat-trio:has(.stat-tile--fig:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* life cards: a two column fact ledger, a title and one line, no icons */
.life-icon { display: none; }
.life-grid { grid-template-columns: minmax(0, 1fr); gap: 0 32px; border-top: 1px solid var(--cp-line); }
.life-card { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--cp-line); }
.life-title { font-family: var(--cp-font-voice); font-size: 1.0625rem; font-weight: 500; color: var(--cp-midnight); }
.life-card .fold-btn { margin: 0; justify-self: start; }
@media (min-width: 700px) { .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── v4: steps in the kit shape (3.3): title, one line, a date tile, an owner pill ── */
.step--kit .step-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title when" "who when" "desc desc" "more more"; column-gap: 14px; row-gap: 2px; align-items: start; min-width: 0; }
.step--kit .step-title { grid-area: title; }
.step--kit .step-desc { grid-area: desc; margin-top: 2px; }
.step--kit .step-content > .fold-btn { grid-area: more; justify-self: start; margin: -4px 0 -6px; }
.step-who { grid-area: who; justify-self: start; display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: var(--v3-wash); color: var(--cp-midnight); font-family: var(--cp-font-figure); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; margin: 4px 0 2px; }
.step-who--ikan { background: var(--cp-midnight); color: #fff; }
.step-who--employer, .step-who--landlord { background: var(--cp-paper); border: 1px solid var(--cp-line-strong); color: var(--cp-ink-2); }
.step-when { grid-area: when; display: grid; justify-items: center; align-content: center; gap: 1px; min-width: 64px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); text-align: center; }
.step-when__l { font-family: var(--cp-font-figure); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v3-muted); line-height: 1.2; }
.step-when__n { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; color: var(--tab, var(--cp-midnight)); line-height: 1.15; white-space: nowrap; }
.step--kit .step-title { font-family: var(--cp-font-voice); font-weight: 500; font-size: 1.125rem; line-height: 1.25; color: var(--cp-midnight); }
@media (forced-colors: active) { .step-who, .step-when { border: 1px solid CanvasText; } .step-who--ikan { forced-color-adjust: none; background: Highlight; } }
@media print { .step-when { border-color: #000; } .step-who--ikan { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

/* ── v4: navigation (3.4): a map of every long page ───────────────────────── */
/* the section index: the h3s of a long section as jump chips under the lead */
.secidx { margin: -8px 0 28px; }
.secidx ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.secidx li { margin: 0; }
.secidx a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); color: var(--cp-midnight); text-decoration: none; font-size: 0.9375rem; font-weight: 500; line-height: 1.2; }
.secidx a:hover { background: var(--v3-wash); }
.sec h3, .sec [id] { scroll-margin-top: calc(var(--g-top) + 72px); }
@media (min-width: 1000px) { .sec h3, .sec [id] { scroll-margin-top: calc(var(--g-top) + 24px); } }
/* reading time beside each section name */
.nav__min { font-family: var(--cp-font-figure); font-size: 0.8125rem; font-weight: 400; color: var(--v3-muted); white-space: nowrap; }
.strip .nav__min { margin-left: 0.3em; }
.nav__min::before { content: "· "; }
.strip a[aria-current="true"] .nav__min { color: #fff; }
.rail .insec .nav__min { margin-left: auto; padding-left: 10px; }
.rail .insec .nav__min::before { content: ""; }
/* the strip again at the foot of the chapter on a phone */
.strip--foot { position: static; margin: 40px 0 0; border-top: 1px solid var(--cp-line); border-bottom: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.strip--foot ol { padding-left: 0; padding-right: 0; }
.chap .strip--foot { transition: none; }
/* previous beside next at the foot */
.chapnav--v4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--cp-line); }
.chapnav--v4 a { display: grid; gap: 2px; min-height: 44px; align-content: center; padding: 8px 0; color: var(--cp-midnight); text-decoration: none; font-weight: 500; }
.chapnav--v4 a:hover { text-decoration: underline; text-decoration-color: var(--cp-coral); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.chapnav__k { font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); }
.chapnav__all { font-size: 0.9375rem; }
@media (min-width: 700px) {
  .chapnav--v4 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; }
  .chapnav__next { text-align: right; justify-self: end; }
  .chapnav__all { justify-self: center; }
}
/* back to the top, bottom right, after one screen */
.totop { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: calc(var(--cp-z-sticky) + 1); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--cp-line-strong); background: rgb(255 255 255 / 0.96); color: var(--cp-midnight); font: inherit; font-size: 0.9375rem; font-weight: 500; box-shadow: 0 6px 20px rgb(13 54 64 / 0.18); cursor: pointer; touch-action: manipulation; opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden; transition: opacity 200ms var(--v3-ease), transform 200ms var(--v3-ease), visibility 0s linear 200ms; }
/* hidden means out of the tab order too, so a keyboard never lands on it unseen */
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.totop:hover { background: var(--v3-wash); }
body:has(.sl:not([hidden])) .totop { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 60px); }
html.calm .totop { transition: none; }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; transform: none; } }
@media (forced-colors: active) { .totop, .secidx a { border: 1px solid CanvasText; } }
@media print { .totop, .strip--foot, .secidx, .chapnav--v4 { display: none !important; } }

/* ── v4: the More sits inline after the first sentence (3.2) ──────────────────
   A 44px target that adds no line: the negative margins keep the line box at its
   text height. A neighbourhood row keeps its own button under the words. */
.fold--inline > .fold-btn, .life-card .fold--inline > .fold-btn, .vrows .fold--inline > .fold-btn { margin: -12px 0 -12px 0.45em; vertical-align: baseline; }
.fold--inline > .fold__figs { margin-top: 6px; }

/* ── v4: a wide table on a phone (3.2): the name, two figures, More ──────────── */
@media (max-width: 699px) {
  .sec table.stack tr { border: 0; border-bottom: 1px solid var(--cp-line); border-radius: 0; background: none; padding: 10px 0 12px; margin: 0; }
  .sec table.stack tbody tr:first-child, .sec table.stack tr.head-row + tr { border-top: 1px solid var(--cp-line-strong); }
  .sec table.stack td { padding: 3px 0; }
  /* the name and its More share the first line; the two figures sit side by side under
     it; an opened row lists the rest below them */
  .sec table.tcap tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; column-gap: 16px; }
  .sec table.tcap td { width: auto; }
  .sec table.tcap td.tcol--key { grid-row: 1; grid-column: 1 / 3; }
  .sec table.tcap td.tcell-more { grid-row: 1; grid-column: 3; align-self: start; }
  .sec table.tcap td:is(.tcol--fig, .tcol--keep) { order: 1; grid-column: 1; }
  .sec table.tcap td:is(.tcol--fig, .tcol--keep) ~ td:is(.tcol--fig, .tcol--keep) { grid-column: 2 / 4; }
  .sec table.tcap td.tcol--more { order: 2; grid-column: 1 / -1; padding-top: 6px; }
  .sec table.tcap td.tcol--key { padding-bottom: 4px; font-family: var(--cp-font-voice); font-size: 1.125rem; color: var(--cp-midnight); line-height: 1.3; }
  .sec table.tcap td.tcol--fig { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums; font-size: 1.0625rem; font-weight: 500; color: var(--cp-midnight); line-height: 1.3; }
  .sec table.tcap td.tcol--fig[data-label]::before, .sec table.tcap td.tcol--keep[data-label]::before { font-family: var(--cp-font-body); font-size: 0.8125rem; font-weight: 450; color: var(--v3-muted); line-height: 1.35; margin-bottom: 1px; }
  .sec table.tcap--on tr:not(.trow--open) > td.tcol--more { display: none; }
  .sec table.tcap td.tcell-more { padding: 0; }
  .sec table.tcap td.tcell-more .fold-btn { margin: -8px 0 -8px; }
}
@media (min-width: 700px) { .sec table td.tcell-more { display: none; } }
@media print { .sec table td.tcell-more { display: none !important; } .sec table.tcap--on tr > td.tcol--more { display: table-cell !important; } }

/* ── v4: cards become rows (3.3): a rule between, never a box ──────────────────
   A box with an icon in its corner (.card, .info-card, .infobox) reads as a plain
   labelled row; the icon carried nothing, so it steps aside. */
.sec .g2, .sec .g3, .sec .g4, .sec .info3 { row-gap: 0; column-gap: 32px; }
.sec .card:not(.nb-card), .sec .info-card, .sec .card-midnight { background: none; border: 0; border-top: 1px solid var(--cp-line); border-radius: 0; overflow: visible; }
.sec .card:not(.nb-card) > .card-body { padding: 16px 0 20px; }
.sec .card:not(.nb-card):not(:has(> .card-body)) { padding: 0 0 18px; }
.sec .card:not(.nb-card):not(:has(> .card-body)) > :not(.cardphoto):not(img) { margin-left: 0; margin-right: 0; }
.sec .card:not(.nb-card):not(:has(> .card-body)) > table { width: 100%; }
.sec .card:not(.nb-card) > .cardphoto { margin-top: 16px; }
.sec .card:not(.nb-card) .cardphoto img, .sec .card:not(.nb-card) > img.card-img { border-radius: 12px; }
.sec .card:not(.nb-card) .credit { padding: 6px 0 0; }
.sec .card .chip svg.ic, .sec .card-icon, .sec .info-head svg.ic, .sec .infobox-title svg.ic { display: none; }
.sec .card .chip { font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); margin: 0 0 6px; gap: 0; }
.sec .info-head { padding: 16px 0 0; }
.sec .info-card > .info-body { padding: 8px 0 18px; }
/* a single box under a heading: a labelled row with a rule down its side */
.sec .infobox { background: none; border: 0; border-left: 3px solid var(--tab, var(--cp-midnight)); border-radius: 0; overflow: visible; padding: 2px 0 2px 18px; margin: 0 0 28px; }
.sec .infobox-title { font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tab, var(--cp-midnight)); margin: 0 0 6px; }
.sec .infobox > .infobox-body { padding: 0; }
@media print { .sec .card:not(.nb-card), .sec .info-card { break-inside: avoid; } }

/* ── v4: a neighbourhood on a desk: the plate left, every word right (the pattern
   library's "Options"). The facts line had pushed the words under the plate. ──── */
@media (min-width: 700px) {
  .nbs > .nb-card { grid-template-rows: auto auto 1fr; }
  .nbs > .nb-card > .cardphoto { grid-row: 1 / span 3; }
  .nbs > .nb-card > .nb-body { grid-column: 2; }
}
/* a section chip's words wrap on the narrowest phones instead of pushing the page sideways */
.secidx li { max-width: 100%; }
.secidx a { max-width: 100%; white-space: normal; padding-block: 8px; }
dl.ikanx-facts, .ikanx-facts { margin: 0; }
.stat-trio, .icon-stats-row { grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)); }
/* a stat tile never holds its column wider than the page: its words may wrap */
.facts > *, .stat-trio > *, .icon-stats-row > * { min-width: 0; }
.facts .is-val, .facts .is-label, .facts .stat-val, .facts .stat-label { overflow-wrap: anywhere; }

/* ==========================================================================
 * v3 instruments. Register B. The tools inside the chapters (engine/instruments.mjs,
 * engine/assets/tools.js): what a month costs, the school finder, the first days
 * checklist, the phrasebook's Listen and Copy, the weekends' how far diagram.
 * Loaded after v3.css. Every control 44px, every form text 16px, colour never the
 * only signal, nothing moves when the reader asks for less motion.
 * ========================================================================== */

/* a control that needs the script stays out of the way without it */
html:not(.tools) .needs-js { display: none !important; }
.cost__all { margin: 20px 0 0; }

/* ── the shell every tool shares ─────────────────────────────────────────── */
.tool { margin: var(--v3-gap) 0; padding: 28px 0 8px; border-top: 3px solid var(--tab, var(--cp-midnight)); }
.tool__head { display: grid; gap: 6px; margin: 0 0 24px; max-width: 62ch; }
.tool__head .eyebrow { margin: 0; font-size: 0.9375rem; letter-spacing: 0.06em; color: var(--tab, var(--v3-muted)); }
.sec .tool__t, .tool__t { margin: 0; font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--v3-h3); line-height: 1.25; letter-spacing: -0.01em; color: var(--cp-midnight); }
.tool__sub { margin: 0; color: var(--cp-ink-2); font-size: 1rem; line-height: 1.55; }
.tool__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); color: var(--cp-midnight); font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2; cursor: pointer; touch-action: manipulation; transition: background 150ms var(--v3-ease); }
.tool__btn:hover { background: var(--v3-wash); }
.tool__btn:active { background: var(--cp-sunken); }
.tool__btn--go { background: var(--cp-midnight); border-color: var(--cp-midnight); color: #fff; }
.tool__btn--go:hover { background: var(--cp-midnight-deep, #0d3640); }
.tool__go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--cp-coral-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; text-decoration-color: rgb(176 52 24 / 0.4); transition: text-decoration-color 150ms var(--v3-ease); }
.tool__go:hover { text-decoration-color: currentColor; }
.tool-fold { margin: 0 0 28px; }
.tool-fold > summary, .sf__more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; color: var(--cp-midnight); font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--cp-sky); text-decoration-thickness: 2px; text-underline-offset: 0.18em; touch-action: manipulation; }
.tool-fold > summary::-webkit-details-marker, .sf__more > summary::-webkit-details-marker { display: none; }
.tool-fold > summary::before, .sf__more > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--v3-ease); }
.tool-fold[open] > summary::before, .sf__more[open] > summary::before { transform: translateY(1px) rotate(225deg); }
.tool-fold[open] > summary, .sf__more[open] > summary { text-decoration-color: var(--cp-coral); }
.tool-fold[open] > summary { margin-bottom: 12px; }
.tool-fold .tbl-scroll, .tool-fold .tbl-wrap { margin-top: 0; }

/* ── 1. what a month costs ───────────────────────────────────────────────── */
.cost__form { display: grid; gap: 28px; margin: 0 0 28px; }
.cost__pick { display: grid; gap: 16px; }
@media (min-width: 700px) { .cost__pick { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.cost__field { display: grid; gap: 6px; min-width: 0; }
.cost__field--in { margin-top: 8px; }
.cost__lab { padding: 0; font-family: var(--cp-font-figure); font-size: var(--v3-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); }
.cost__sel { width: 100%; min-height: 44px; padding: 0 40px 0 14px; border-radius: 10px; border: 1px solid var(--cp-line-control); background: var(--cp-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23134550' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--cp-ink); font: inherit; font-size: 1rem; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.cost__sel:disabled { color: var(--cp-ink-3); background-color: var(--v3-wash); }
.cost__set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 0; }
.cost__set > legend { margin: 0 0 6px; }
.cost__tick { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; padding: 4px 0; border-bottom: 1px solid var(--cp-line); cursor: pointer; }
.cost__tick .ck__mark { justify-self: start; }
.cost__tl { font-size: 1rem; color: var(--cp-ink); line-height: 1.35; }
.cost__tv { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums; font-size: 0.9375rem; color: var(--cp-ink-2); white-space: nowrap; }
.cost__cur { border: 0; padding: 0; margin: 0; min-width: 0; }
.cost__cur > legend { margin: 0 0 8px; }
.cost__curs { display: flex; flex-wrap: wrap; gap: 8px; }
.cost__chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); font-family: var(--cp-font-figure); font-weight: 500; font-size: 0.9375rem; color: var(--cp-ink-2); cursor: pointer; transition: background 150ms var(--v3-ease), color 150ms var(--v3-ease); }
.cost__chip:hover { background: var(--v3-wash); }
.cost__chip input { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); opacity: 0; margin: 0; font-size: 1rem; cursor: pointer; }
.cost__chip.is-on, .cost__chip:has(input:checked) { background: var(--cp-midnight); border-color: var(--cp-midnight); color: #fff; }
.cost__chip:has(input:focus-visible) { outline: 2px solid var(--cp-coral); outline-offset: 3px; }
.cost__rates { margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--v3-muted); }
.cost__rates a { display: inline-block; padding: 11px 0; margin: -11px 0; }
.cost__out { padding: 24px 0; border-top: 1px solid var(--cp-line); border-bottom: 1px solid var(--cp-line); }
.cost__for { margin: 0 0 10px; font-size: 0.9375rem; letter-spacing: 0.06em; }
.cost__fig { margin: 0; font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums lining-nums; font-weight: 500; font-size: var(--v3-fig-xl); line-height: 1.02; letter-spacing: -0.035em; color: var(--cp-midnight); text-wrap: balance; overflow-wrap: anywhere; }
.cost__per { font-size: 0.4em; font-weight: 400; letter-spacing: 0; color: var(--v3-muted); white-space: nowrap; }
.cost__parts { list-style: none; margin: 18px 0 0; padding: 0; max-width: 56ch; }
.cost__parts li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--cp-line); font-size: 0.9375rem; line-height: 1.45; }
.cost__pl { color: var(--cp-ink-2); }
.cost__pv { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums; color: var(--cp-ink); white-space: nowrap; }
.cost__dep { margin: 14px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--cp-ink-2); max-width: 48ch; }
.cost__dep:empty { display: none; }
.cost__note { margin: 14px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--v3-muted); max-width: 60ch; }
.cost__all { margin: 20px 0 0; }
.cost__allt { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 560; color: var(--cp-ink); }
.cost__tbl { width: 100%; }
.cost__tbl td:last-child { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums; }
.cost__fig--teaser { margin: 4px 0 20px; }

/* the front page: the checklist and the cost teaser side by side at a desk */
.tools-home__grid { display: grid; gap: var(--v3-section); }
.tools-home .v3-head { margin-bottom: 24px; }
@media (min-width: 900px) {
  .tools-home__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .tools-home__grid--one { grid-template-columns: minmax(0, 7fr); }
}

/* ── 2. the school finder ────────────────────────────────────────────────── */
.sf__filters { display: grid; gap: 10px; margin: 0 0 16px; }
.sf__group-f { display: flex; flex-wrap: wrap; gap: 8px; }
.sf__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cp-line-strong); background: var(--cp-paper); color: var(--cp-ink-2); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; touch-action: manipulation; transition: background 150ms var(--v3-ease), color 150ms var(--v3-ease); }
.sf__chip:hover { background: var(--v3-wash); }
.sf__chip[aria-pressed="true"] { background: var(--cp-midnight); border-color: var(--cp-midnight); color: #fff; }
.sf__chip[aria-pressed="true"]::before { content: ""; width: 6px; height: 10px; margin-right: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-1px) rotate(45deg); }
.sf__count { margin: 0 0 4px; font-family: var(--cp-font-figure); font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); }
.sf__list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--cp-line); }
.sf__row { display: grid; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--cp-line); }
.sf__row[hidden] { display: none; }
.sec .sf__name, .sf__name { margin: 0; font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--v3-h3); line-height: 1.25; letter-spacing: -0.01em; color: var(--cp-midnight); }
.sf__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.9375rem; color: var(--cp-ink-2); }
.sf__group, .sf__board { color: var(--v3-muted); }
html.tools .sf__table { display: none; }
.sf__fee { margin: 4px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; justify-content: start; }
.sf__fig { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-variant-numeric: tabular-nums; font-weight: 500; font-size: var(--v3-fig-l); line-height: 1; letter-spacing: -0.03em; color: var(--cp-midnight); white-space: nowrap; }
.sf__per { font-size: 0.9375rem; color: var(--v3-muted); min-width: 0; }
.sf__bar { grid-column: 1 / -1; position: relative; width: 100%; max-width: 420px; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--cp-sunken); overflow: hidden; }
.sf__bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--lo, 0%); width: calc(var(--hi, 0%) - var(--lo, 0%)); min-width: 6px; border-radius: 3px; background: #C9A227; }
.sf__more p { margin: 2px 0 0; max-width: 62ch; color: var(--cp-ink-2); line-height: 1.55; }
@media (min-width: 760px) {
  .sf__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "name fee" "meta fee" "more fee"; column-gap: 32px; align-items: start; }
  .sf__name { grid-area: name; }
  .sf__meta { grid-area: meta; }
  .sf__fee { grid-area: fee; margin-top: 2px; }
  .sf__more { grid-area: more; }
}

/* ── 3. the first days checklist ─────────────────────────────────────────── */
.ck__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 0 0 14px; }
.ck__title { display: none; }
.ck__count { margin: 0; font-family: var(--cp-font-figure); font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); }
.ck__act { display: flex; flex-wrap: wrap; gap: 8px; }
.ck__ask { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 10px; background: var(--v3-wash); font-size: 0.9375rem; color: var(--cp-ink); }
.ck__ask[hidden] { display: none; }
.ck .step { grid-template-columns: 40px minmax(0, 1fr) 44px; }
.ck__box { position: relative; display: grid; place-items: center; width: 44px; height: 44px; justify-self: end; cursor: pointer; touch-action: manipulation; }
.ck__in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; font-size: 1rem; cursor: pointer; }
.ck__mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--cp-line-control); background: var(--cp-paper); transition: background 150ms var(--v3-ease), border-color 150ms var(--v3-ease); }
.ck__mark::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg) scale(0); transition: transform 200ms var(--v3-ease); }
.ck__in:checked ~ .ck__mark { background: var(--cp-midnight); border-color: var(--cp-midnight); }
.ck__in:checked ~ .ck__mark::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.ck__in:focus-visible ~ .ck__mark { outline: 2px solid var(--cp-coral); outline-offset: 3px; }
.step.is-done .step-title { color: var(--cp-ink-3); }
.step.is-done .step-num { background: var(--cp-midnight); color: #fff; }
.ck__teaser { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cp-line); }
.ck__teaser li { margin: 0; }
.ck__row { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 12px; align-items: center; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--cp-line); cursor: pointer; }
.ck__row:hover { background: linear-gradient(0deg, transparent, transparent); }
.ck__n { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; font-size: 1.375rem; line-height: 1; color: var(--tab, var(--cp-midnight)); }
.ck__tt { font-size: 1.0625rem; line-height: 1.35; color: var(--cp-ink); }
.ck__row.is-done .ck__tt { color: var(--cp-ink-3); }
.ck__row .ck__mark { justify-self: end; margin-right: 9px; }
.ck__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 12px 0 0; }
.ck__foot .ck__count { margin: 0; }

/* ── 4. the phrasebook's Listen and Copy ─────────────────────────────────── */
.pb .phrase { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 0; }
.pb .phrase-native { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.15; }
.pb__act { display: flex; flex-wrap: wrap; gap: 8px; align-self: start; }
@media (min-width: 700px) {
  .pb .phrase { grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.7fr) auto; gap: 8px 20px; align-items: start; }
}
.pb__listen[hidden] { display: none; }
.pb__listen.is-on { background: var(--v3-wash); border-color: var(--cp-midnight); }

/* ── 5. the weekends: how far ────────────────────────────────────────────── */
.wk { margin: var(--v3-gap) 0; }
.wk__fig { position: relative; display: grid; gap: 22px; }
.wk__city { display: none; }
.wk__rl { margin: 0 0 12px; padding: 0 0 6px; border-bottom: 1px solid var(--cp-line); font-family: var(--cp-font-figure); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); }
.wk__none { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wk__pts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 14px; }
.wk__pts:empty { display: none; }
.wk__pt { margin: 0; }
.wk__pt a, .wk__pt > span { display: grid; justify-items: center; gap: 5px; width: 104px; text-align: center; color: inherit; text-decoration: none; }
.wk__plate { margin: 0; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: var(--cp-sunken); box-shadow: 0 0 0 3px var(--cp-paper), 0 0 0 4px var(--cp-line-strong); transition: transform 200ms var(--v3-ease); }
.wk__plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk__dot { display: block; width: 100%; height: 100%; background: var(--v3-wash); }
.wk__nm { font-size: 0.875rem; font-weight: 500; line-height: 1.25; color: var(--cp-midnight); }
.wk__tm { font-family: var(--cp-font-figure); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--v3-muted); }
.wk__pt a:hover .wk__nm { text-decoration: underline; text-decoration-color: var(--cp-coral); text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.wk__pt a:hover .wk__plate { transform: scale(1.06); }
.wk__pt a:focus-visible { outline: 2px solid var(--cp-coral); outline-offset: 4px; border-radius: 8px; }
.wk { container-type: inline-size; }
/* rings need a length the points can read; container units give one, older browsers keep the bands */
@media (min-width: 900px) { @supports (width: 1cqw) {
  .wk:not(.wk--bands) .wk__fig { --size: min(720px, 100cqw); display: block; width: var(--size); aspect-ratio: 1; margin: 20px auto 40px; }
  .wk:not(.wk--bands) .wk__city { display: grid; place-items: center; position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 6px; border-radius: 50%; background: var(--cp-midnight); color: #fff; font-family: var(--cp-font-voice); font-size: 1rem; line-height: 1.1; text-align: center; }
  .wk:not(.wk--bands) .wk__ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--cp-line-strong); }
  .wk:not(.wk--bands) .wk__ring[data-ring="1"] { width: calc(var(--size) * 0.38); height: calc(var(--size) * 0.38); --rr: calc(var(--size) * 0.19); }
  .wk:not(.wk--bands) .wk__ring[data-ring="2"] { width: calc(var(--size) * 0.64); height: calc(var(--size) * 0.64); --rr: calc(var(--size) * 0.32); }
  .wk:not(.wk--bands) .wk__ring[data-ring="3"] { width: calc(var(--size) * 0.9); height: calc(var(--size) * 0.9); --rr: calc(var(--size) * 0.45); }
  .wk:not(.wk--bands) .wk__rl { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); margin: 0; padding: 2px 10px; border: 0; background: var(--cp-paper); white-space: nowrap; }
  .wk:not(.wk--bands) .wk__pts { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
  .wk:not(.wk--bands) .wk__pt { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; transform: rotate(var(--a)) translate(var(--rr)) rotate(calc(-1 * var(--a))); }
  .wk:not(.wk--bands) .wk__pt a, .wk:not(.wk--bands) .wk__pt > span { position: absolute; left: 0; top: 0; width: 104px; transform: translate(-50%, -40px); padding: 4px; border-radius: 8px; background: rgb(255 255 255 / 0.92); }
  .wk:not(.wk--bands) .wk__pt .wk__plate { width: 60px; height: 60px; }
} }

/* ── less motion ─────────────────────────────────────────────────────────── */
html.calm .tool__btn, html.calm .ck__mark, html.calm .ck__mark::after, html.calm .wk__plate, html.calm .sf__chip, html.calm .cost__chip, html.calm .tool-fold > summary::before, html.calm .sf__more > summary::before { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .tool__btn, .ck__mark, .ck__mark::after, .wk__plate, .sf__chip, .cost__chip, .tool-fold > summary::before, .sf__more > summary::before { transition: none; }
  .wk__pt a:hover .wk__plate { transform: none; }
}

/* ── more contrast, forced colours ───────────────────────────────────────── */
@media (prefers-contrast: more) {
  .tool__btn, .sf__chip, .cost__chip, .cost__sel { border-color: var(--cp-ink); }
  .ck__mark { border-color: var(--cp-ink); }
}
@media (forced-colors: active) {
  .ck__mark { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .ck__in:checked ~ .ck__mark { background: Highlight; border-color: Highlight; }
  .sf__bar::after { background: CanvasText; }
  .sf__chip[aria-pressed="true"], .cost__chip.is-on { border: 2px solid Highlight; }
}

/* ── print: what helps on paper ──────────────────────────────────────────── */
@media print {
  .tool__btn, .sf__filters, .pb__act, .ck__act, .ck__ask, .cost__form, .cost__all, .tool__go, .wk__city { display: none !important; }
  .tool { border-top-color: #000; margin: 18pt 0; padding-top: 12pt; }
  .tool__head .eyebrow, .sf__count, .ck__count, .wk__rl, .wk__tm { color: #000; }
  .tool, .sf__row, .step, .ck__row, .wk__ring { break-inside: avoid; }
  .cost__out { border-color: #000; }
  .cost__fig { font-size: 26pt; }
  .sf__bar::after, .ck__mark, .step.is-done .step-num { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .ck__mark { border-color: #000; }
  .tool-fold > summary::before, .sf__more > summary::before { display: none; }
  .wk__fig { display: block !important; width: auto !important; aspect-ratio: auto !important; margin: 0 !important; }
  .wk__ring { position: static !important; transform: none !important; width: auto !important; height: auto !important; border: 0 !important; border-radius: 0 !important; margin: 0 0 12pt; }
  .wk__rl { position: static !important; transform: none !important; padding: 0 0 4pt !important; border-bottom: 1px solid #000 !important; }
  .wk__pts { position: static !important; display: flex !important; flex-wrap: wrap; width: auto !important; height: auto !important; gap: 10pt; }
  .wk__pt { position: static !important; transform: none !important; width: auto !important; height: auto !important; }
  .wk__pt a, .wk__pt > span { position: static !important; transform: none !important; background: none !important; }
  .wk__plate { box-shadow: 0 0 0 1px #000; }
  /* the checklist alone, when its Print button asked for it */
  html.print-ck body > :not(.ck-print) { display: none !important; }
  .ck-print { font-size: 11pt; color: #000; }
  .ck-print .ck__title { display: block; font-family: var(--cp-font-voice); font-size: 20pt; line-height: 1.15; margin: 0 0 6pt; }
  .ck-print .ck__count { display: block; margin: 0 0 14pt; }
  .ck-print .step { grid-template-columns: 28pt minmax(0, 1fr) 24pt; }
  .ck-print .ck__box { width: 24pt; height: 24pt; }
}

/* ── a client edition's own block on the front page (content/clients/<id>/<city>/landing.html) ── */
.ed-land { border-top: 1px solid var(--cp-line); }
.ed-land .v3-head { max-width: 68ch; }
.ed-office { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 0 0 clamp(40px, 5vw, 72px); }
@media (min-width: 900px) { .ed-office { grid-template-columns: minmax(300px, 5fr) 7fr; gap: 28px; align-items: stretch; } }

/* the office, set like a pass */
.ed-pass { position: relative; overflow: hidden; background: var(--cp-midnight); color: #fff; border-radius: var(--cp-radius-quarter); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.ed-pass::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, 0.06); pointer-events: none; }
.ed-pass .eyebrow { color: var(--cp-sky); margin: 0; }
.ed-pass__name { font-family: var(--cp-font-voice); font-size: var(--cp-step-4); line-height: 1.1; letter-spacing: -0.015em; margin: 0; color: #fff; }
.ed-pass address { font-style: normal; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, 0.86); margin: 0; }
.ed-pass__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ed-pass__facts div { display: grid; gap: 2px; }
.ed-pass__facts dt { font-family: var(--cp-font-figure); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cp-sky); }
.ed-pass__facts dd { margin: 0; font-size: 0.9375rem; color: #fff; line-height: 1.4; }
.ed-pass__go { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.ed-pass__go a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--cp-radius-control); background: #fff; color: var(--cp-midnight); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.ed-pass__go a:hover { background: var(--cp-sky-soft); }
.ed-pass__go a.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.ed-pass__go a.ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* where to live, drawn as the drive to the office */
.ed-commute { margin: 0; background: var(--cp-paper); border: 1px solid var(--cp-line-strong); border-radius: var(--cp-radius-card); padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 6px; }
.ed-commute figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 8px; }
.ed-commute figcaption strong { font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--cp-step-3); color: var(--cp-midnight); line-height: 1.15; }
.ed-commute figcaption span { font-size: 0.9375rem; color: var(--cp-ink-3); }
.ed-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name time" "bar bar" "rent rent"; gap: 6px 12px; padding: 14px 0; border-top: 1px solid var(--cp-line); color: inherit; text-decoration: none; }
.ed-row:first-of-type { border-top: 0; }
a.ed-row:hover .ed-row__name { text-decoration: underline; text-underline-offset: 3px; }
.ed-row__name { grid-area: name; font-weight: 600; color: var(--cp-ink); font-size: 1.0625rem; }
.ed-row__time { grid-area: time; font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-size: 1.0625rem; color: var(--cp-midnight); white-space: nowrap; }
.ed-row__time small { font-family: var(--cp-font-body); font-size: 0.8125rem; color: var(--cp-ink-3); margin-left: 4px; }
.ed-row__bar { grid-area: bar; position: relative; height: 8px; border-radius: 4px; background: var(--cp-sunken); overflow: hidden; }
.ed-row__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); border-radius: 4px; background: linear-gradient(90deg, var(--cp-sky), var(--cp-midnight)); transform-origin: left; }
.ed-row__bar i.lo { opacity: 0.45; width: var(--lo, 0%); background: var(--cp-midnight); }
.ed-row__rent { grid-area: rent; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.9375rem; color: var(--cp-ink-2); }
.ed-row__rent b { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-weight: 500; color: var(--cp-ink); }
@media (min-width: 700px) {
  .ed-row { grid-template-columns: minmax(150px, 1.1fr) 2fr auto; grid-template-areas: "name bar time" "rent rent rent"; align-items: center; }
}
.ed-commute__note { margin: 10px 0 0; font-size: 0.9375rem; color: var(--cp-ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .ed-row__bar i:not(.lo) { animation: ed-grow 900ms var(--v3-ease, ease-out) both; }
  @keyframes ed-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* the IKAN days */
.ed-days { margin: 0 0 clamp(40px, 5vw, 72px); }
.ed-days__head { display: grid; gap: 8px; margin: 0 0 22px; max-width: 62ch; }
.ed-days__head h3 { font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--cp-step-4); line-height: 1.12; color: var(--cp-midnight); margin: 0; }
.ed-days__head p { margin: 0; color: var(--cp-ink-2); font-size: 1.0625rem; }
.ed-days__grid { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: day; }
@media (min-width: 760px) { .ed-days__grid { grid-template-columns: repeat(3, 1fr); } }
.ed-day { position: relative; background: var(--cp-paper); border: 1px solid var(--cp-line-strong); border-radius: var(--cp-radius-card); padding: 24px 22px 22px; display: grid; align-content: start; gap: 10px; }
.ed-day::before { counter-increment: day; content: "0" counter(day); font-family: var(--cp-font-figure); font-size: var(--cp-step-5); line-height: 1; color: var(--cp-coral); letter-spacing: -0.02em; }
.ed-day h4 { margin: 0; font-size: 1.1875rem; color: var(--cp-midnight); }
.ed-day p { margin: 0; color: var(--cp-ink-2); font-size: 0.9375rem; }
.ed-day ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ed-day li { position: relative; padding-left: 20px; font-size: 0.9375rem; color: var(--cp-ink); line-height: 1.45; }
.ed-day li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cp-sky); box-shadow: inset 0 0 0 2px var(--cp-midnight); }
.ed-days__foot { margin: 16px 0 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .ed-days__foot { grid-template-columns: 1fr 1fr; } }
.ed-days__foot p { margin: 0; padding: 14px 16px; background: var(--cp-sky-wash); border-radius: var(--cp-radius-control); font-size: 0.9375rem; color: var(--cp-ink-2); }
.ed-days__foot strong { color: var(--cp-ink); }

/* the four things to know before landing */
.ed-know { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ed-know { grid-template-columns: 1fr 1fr; } }
/* as many columns as there are cards (round 2 took the Fragomen card off, and the domestic edition has no vaccination card) */
@media (min-width: 1100px) { .ed-know { grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; } }
.ed-card { display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: var(--cp-radius-card); background: var(--cp-sky-wash); border: 1px solid transparent; }
.ed-card--ink { background: var(--cp-paper); border-color: var(--cp-line-strong); }
.ed-card .eyebrow { margin: 0; }
.ed-card h4 { margin: 0; font-family: var(--cp-font-voice); font-weight: 480; font-size: var(--cp-step-3); line-height: 1.15; color: var(--cp-midnight); }
.ed-card p { margin: 0; font-size: 0.9375rem; color: var(--cp-ink-2); line-height: 1.5; }
.ed-card ul { margin: 0; padding: 0 0 0 18px; font-size: 0.9375rem; color: var(--cp-ink-2); display: grid; gap: 4px; }
.ed-card a { color: var(--cp-midnight); font-weight: 600; text-underline-offset: 3px; }
.ed-card .ed-mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; word-break: break-all; }

/* the edition's sections */
.ed-norms { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 18px 0; }
@media (min-width: 700px) { .ed-norms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ed-norms { grid-template-columns: repeat(3, 1fr); } }
.ed-norm { padding: 18px 18px 16px; border: 1px solid var(--cp-line-strong); border-radius: var(--cp-radius-card); background: var(--cp-paper); display: grid; gap: 4px; align-content: start; }
.ed-norm__label { font-family: var(--cp-font-figure); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cp-ink-3); }
.ed-norm__val { font-family: var(--cp-font-figure); font-feature-settings: var(--cp-figure-features); font-size: var(--cp-step-3); line-height: 1.15; color: var(--cp-midnight); }
.ed-norm__note { font-size: 0.9375rem; color: var(--cp-ink-2); line-height: 1.45; }
.ed-src { font-size: 0.9375rem; color: var(--cp-ink-3); margin: 10px 0 0; }
.ed-src a { color: inherit; display: inline-flex; min-height: 44px; align-items: center; }
.ed-place { display: grid; gap: 2px; }
.ed-place a { font-weight: 600; }
html.calm .ed-row__bar i { animation: none; }
