/* Cascade layer order (GIG_16 §5). Every later file adds rules to one of these layers. */
@layer reset, tokens, base, layout, components, utilities;

/* Minimal reset. Everything visual comes from tokens (20) and base (40). */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%; /* stylelint-disable-line property-no-vendor-prefix -- still needed by iOS Safari */
    text-size-adjust: 100%;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol,
  dl,
  dd,
  figure,
  blockquote,
  fieldset {
    margin: 0;
  }

  fieldset {
    padding: 0;
    border: 0;
    min-inline-size: 0;
  }

  ul[class],
  ol[class] {
    padding: 0;
    list-style: none;
  }

  img,
  svg,
  picture {
    display: block;
    max-inline-size: 100%;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
    color: inherit;
  }

  button {
    cursor: pointer;
  }

  [hidden] {
    display: none !important; /* stylelint-disable-line declaration-no-important -- the hidden attribute must always win */
  }
}

/*
  Design tokens from GIG_12 v1.0 (approved 2026-11-12, D-018). Components use these only (GIG_16 §5).
  Contrast figures are in GIG_12 B1 and checked by tests/staging/tokens.spec.ts.
*/
@layer tokens {
  :root {
    /* Colour — B1 */
    --color-ink: #0f2747; /* Laut: text, headings, links, focus on light */
    --color-accent: #ffc83d; /* Kuning Siap: fills only, never text on white */
    --color-accent-strong: #f2b705; /* Kuning tua: hover/pressed yellow fills */
    --color-page: #fff; /* Kertas */
    --color-surface: #f2f5f9; /* Kabut: banner, preview fields, panels, footer */
    --color-text-muted: #4a5b73; /* Batu: secondary text on white/Kabut only */
    --color-border: #d5dce5; /* Garis: decorative dividers */
    --color-border-control: #76849a; /* Garis kontrol: input borders (3.79:1) */
    --color-success: #0e7a4b; /* Hijau: system success only */
    --color-danger: #b3261e; /* Merah: errors */
    --color-star: #b97a00; /* Bintang: star graphic beside the number */
    --color-on-ink: #fff;
    --color-link: var(--color-ink);
    --color-focus: var(--color-ink);
    --color-focus-on-dark: var(--color-accent);
    --color-tint: #eaf1fa; /* Langit (v1.1): alternate sections and page heads. Laut 13.17:1, Batu 6.08:1 on it */
    --color-on-ink-muted: #c9d3e1; /* secondary text on navy, 9.91:1 */
    --color-border-on-ink: rgb(255 255 255 / 22%); /* decorative rules on navy */

    /* Category colours (v1.1, D-033). base: edges and bars (graphics, >= 3:1 on white); tint: backgrounds;
       deep: icons and text on white or tint (>= 5:1). Checked by the dataviz palette validator and tokens.spec.ts. */
    --cat-ac: #0f9a93;
    --cat-ac-tint: #e3f5f4;
    --cat-ac-deep: #0b6b66;
    --cat-ledeng: #2152c4;
    --cat-ledeng-tint: #e8eefb;
    --cat-ledeng-deep: #1a44a6;
    --cat-listrik: #e0702a;
    --cat-listrik-tint: #fdede3;
    --cat-listrik-deep: #a8471a;
    --cat-bersih: #9e3790;
    --cat-bersih-tint: #f6e8f3;
    --cat-bersih-deep: #7f2a73;

    /* Typography — B2 */
    --font-sans:
      "Plus Jakarta Sans", "Plus Jakarta Sans Fallback Arial", "Plus Jakarta Sans Fallback Roboto", system-ui,
      -apple-system, "Segoe UI", roboto, sans-serif;
    --text-display: clamp(2.5rem, 1.75rem + 3.2vw, 4.5rem);
    --text-h1: clamp(2rem, 1.62rem + 1.6vw, 3rem);
    --text-h2: clamp(1.5rem, 1.31rem + 0.8vw, 2rem);
    --text-h3: clamp(1.25rem, 1.2rem + 0.2vw, 1.375rem);
    --text-body-lg: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
    --text-body: 1rem;
    --text-small: 0.875rem;
    --leading-display: 1.05;
    --leading-h1: 1.12;
    --leading-h2: 1.2;
    --leading-h3: 1.3;
    --leading-body-lg: 1.55;
    --leading-body: 1.6;
    --leading-small: 1.5;
    --tracking-display: -0.03em;
    --tracking-h1: -0.025em;
    --tracking-h2: -0.02em;
    --tracking-logo: -0.035em;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-heavy: 800;
    --measure: 65ch;

    /* Spacing — B3 (4 px base) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* Layout — B3. Breakpoints (used literally in media queries): 30rem 480, 48rem 768, 64rem 1024, 80rem 1280 */
    --container-max: 70rem; /* 1120 px */
    --gutter: var(--space-4); /* 16 px mobile; 24 px ≥ 768; 32 px ≥ 1024 (set in 50-layout.css) */
    --section-space: var(--space-8);
    --header-height: 3.5rem; /* 56 px max at 360 (D-016), including its bottom rule */
    --header-height-wide: 4.5rem; /* 72 px from 1024 */
    --header-offset: var(--header-height); /* what the sticky header covers; anchors and focus scroll clear it */
    --target-min: 2.75rem; /* 44 px touch target */
    --control-height: 3rem; /* 48 px buttons and inputs */

    /* Shape and elevation — B3 */
    --radius-control: 0.5rem;
    --radius-card: 0.75rem;
    --radius-pill: 999px;
    --border-width: 1px;
    --border-width-control: 1.5px;
    --shadow-raised: 0 1px 2px rgb(15 39 71 / 8%), 0 4px 12px rgb(15 39 71 / 6%);
    --focus-width: 3px;
    --focus-offset: 2px;

    /* Layers — B3 */
    --z-header: 100;
    --z-dropdown: 200;
    --z-backdrop: 300;
    --z-modal: 310;
    --z-toast: 400;
    --z-skip: 500;

    /* Motion — B4 */
    --duration-press: 120ms;
    --duration-open: 200ms;
    --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  @media (width >= 64rem) {
    :root {
      --header-offset: var(--header-height-wide);
    }
  }
}

/*
  Plus Jakarta Sans (SIL OFL 1.1, licence at /assets/fonts/OFL.txt), variable 200–800, Latin subset, self-hosted.
  The two fallback faces are metric-matched (GIG_16 §7) so the swap does not shift layout. Values were measured with
  fontTools against Liberation Sans (Arial metrics) and Roboto on 12 Nov 2026 using Indonesian sample text.
*/
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin.153fc85b.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans Fallback Arial";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 103.88%;
  ascent-override: 99.93%;
  descent-override: 21.37%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Plus Jakarta Sans Fallback Roboto";
  src: local("Roboto");
  size-adjust: 104.72%;
  ascent-override: 99.12%;
  descent-override: 21.2%;
  line-gap-override: 0%;
}

@layer base {
  html {
    color-scheme: light;
    scroll-padding-top: calc(var(--header-offset) + var(--space-4));
    -webkit-tap-highlight-color: rgb(15 39 71 / 12%);
    touch-action: manipulation;
  }

  body {
    background: var(--color-page);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    line-height: var(--leading-body);
    overflow-wrap: anywhere; /* long pasted strings must wrap, also inside grids (GIG_16 §10) */
    text-rendering: optimizelegibility;
  }

  h1,
  h2,
  h3,
  h4 {
    text-wrap: balance;
  }

  h1 {
    font-size: var(--text-h1);
    font-weight: var(--weight-heavy);
    line-height: var(--leading-h1);
    letter-spacing: var(--tracking-h1);
  }

  h2 {
    font-size: var(--text-h2);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h2);
    letter-spacing: var(--tracking-h2);
  }

  h3 {
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h3);
  }

  /* Line length limit for running text only; component lists (rows, nav, footer) are not capped. */
  p {
    max-inline-size: var(--measure);
    text-wrap: pretty;
  }

  ul:not([class]) > li,
  ol:not([class]) > li {
    max-inline-size: var(--measure);
  }

  a {
    color: var(--color-link);
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.2em;
  }

  a:hover {
    text-decoration-thickness: 2.5px;
  }

  :focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  /* Skip link (GIG_14 §3): the first focusable element; shown as a Laut block over the header when focused. */
  .skip-link {
    position: absolute;
    inset-block-start: var(--space-2);
    inset-inline-start: var(--space-2);
    z-index: var(--z-skip);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-control);
    background: var(--color-ink);
    color: var(--color-on-ink);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    translate: 0 calc(-100% - var(--space-4));
  }

  .skip-link:focus {
    translate: none;
    outline: var(--focus-width) solid var(--color-focus-on-dark);
    outline-offset: 0;
  }

  /* <main> is only a skip-link target (tabindex="-1"); it is never reached with Tab, so no ring. */
  main:focus {
    outline: none;
  }

  strong,
  b {
    font-weight: var(--weight-bold);
  }

  small {
    font-size: var(--text-small);
  }

  ::selection {
    background: var(--color-accent);
    color: var(--color-ink);
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important; /* stylelint-disable-line declaration-no-important -- global reduced-motion override (GIG_16 §5) */
      animation-iteration-count: 1 !important; /* stylelint-disable-line declaration-no-important */
      transition-duration: 0.01ms !important; /* stylelint-disable-line declaration-no-important */
      scroll-behavior: auto !important; /* stylelint-disable-line declaration-no-important */
    }
  }

  @media print {
    body {
      font-size: 11pt;
      color: #000;
    }

    a {
      color: inherit;
    }
  }
}

@layer layout {
  .container {
    inline-size: 100%;
    max-inline-size: calc(var(--container-max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  }

  .section {
    padding-block: var(--section-space);
  }

  .section + .section {
    border-block-start: var(--border-width) solid var(--color-border);
  }

  .stack {
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap, var(--space-4));
  }

  .stack--tight {
    --stack-gap: var(--space-2);
  }

  .stack--loose {
    --stack-gap: var(--space-6);
  }

  .cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--cluster-gap, var(--space-3));
  }

  .lead {
    font-size: var(--text-body-lg);
    line-height: var(--leading-body-lg);
  }

  @media (width >= 48rem) {
    :root {
      --gutter: var(--space-5);
    }
  }

  @media (width >= 64rem) {
    :root {
      --gutter: var(--space-6);
      --section-space: var(--space-9);
    }
  }
}

/* Inner-page building blocks (GIG_14 §4, GIG_12 A7): page head, split sections with rules, statements, the lakukan /
   tidak lakukan panel, the navy band, callouts, ruled lists, the pre-launch closing and the part B pieces (provider
   interest, majors table, sourced figures, contact address, FAQ group links). Beranda uses the same sections. */
@layer components {
  /* ---- Page head: h1 + lead on the Langit tint (v1.1; the yellow papan is Beranda only, navy for Jadi Mitra).
     Category pages take their category's tint, colour edge and icon (D-033). ---- */
  .page-head {
    padding-block: var(--space-7) var(--space-6);
    background: var(--color-tint);
  }

  .page-head--tone {
    background: var(--tone-tint);
    border-block-end: 6px solid var(--tone);
  }

  .page-head__title-icon {
    display: flex;
    gap: var(--space-3);
    align-items: center;
  }

  .page-head__icon {
    --icon-size: 0.9em;

    color: var(--tone-deep);
  }

  .page-head__inner {
    display: grid;
    gap: var(--space-4);
  }

  .page-head h1 {
    max-inline-size: 20ch;
    text-wrap: balance;
  }

  .page-head__lead {
    max-inline-size: 40rem;
  }

  /* Category pages: the customer's problem is the lead, set large. */
  .page-head__lead--problem {
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h3);
    text-wrap: pretty;
  }

  @media (width >= 64rem) {
    .page-head {
      padding-block: var(--space-8) var(--space-7);
    }
  }

  /* ---- Page sections: white, separated by rules ---- */
  .page-section {
    padding-block: var(--section-space);
  }

  /* Rules between consecutive white sections, as wide as the text column (not after the papan, a band or the page head). */
  .page-section + .page-section {
    padding-block-start: 0;
  }

  .page-section + .page-section > .container {
    padding-block-start: var(--section-space);
    background: linear-gradient(var(--color-border), var(--color-border)) no-repeat center top /
      calc(100% - 2 * var(--gutter)) var(--border-width);
  }

  /* Inner pages have short sections: a tighter rhythm than Beranda's. */
  .page-head ~ .page-section {
    --section-space: var(--space-7);
  }

  .page-head + .page-section {
    padding-block-start: var(--section-space);
  }

  /* A Langit section (Beranda "Cara kerja", "Area"): full padding, and no rule above it or above the next section. */
  .page-section.surface-tint,
  .page-section.surface-tint + .page-section {
    padding-block-start: var(--section-space);
  }

  .page-section.surface-tint > .container,
  .page-section.surface-tint + .page-section > .container {
    padding-block-start: 0;
    background: none;
  }

  @media (width >= 64rem) {
    .page-head ~ .page-section {
      --section-space: var(--space-8);
    }
  }

  .split {
    container-type: inline-size;
    display: grid;
    gap: var(--space-5);
    align-items: start;
  }

  .split > h2 {
    max-inline-size: 18ch;
    text-wrap: balance;
  }

  @media (width >= 64rem) {
    .split {
      grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
      gap: var(--space-8);
    }

    .split > h2 {
      max-inline-size: none;
    }
  }

  /* ---- Statements: plain claims, no icons (Beranda "Kenapa AutoSiap", Jadi Mitra "Kenapa bergabung") ---- */
  .statements {
    display: grid;
    gap: var(--space-5) var(--space-6);
  }

  .statements__item {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding-block-start: var(--space-4);
    border-block-start: var(--border-width) solid var(--color-border);
  }

  .statements dt {
    font-size: var(--text-body-lg);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h3);
  }

  .statements dd {
    color: var(--color-text-muted);
  }

  @container (width >= 36rem) {
    .statements {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* Three statements (Jadi Mitra): one per row, the claim beside its explanation, so no half-empty grid row. */
  @container (width >= 36rem) {
    .statements--rows {
      grid-template-columns: minmax(0, 1fr);
    }

    .statements--rows .statements__item {
      grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
      gap: var(--space-5);
    }
  }

  /* ---- Lakukan / tidak lakukan: the trust panel (Beranda, Cara Kerja), the page's one Kabut panel ---- */
  .do-dont {
    display: grid;
    gap: var(--space-6);
    padding: var(--space-5);
    border-radius: var(--radius-card);
  }

  .do-dont__heading {
    margin-block-end: var(--space-3);
    font-size: var(--text-body-lg);
    line-height: var(--leading-h3);
  }

  .do-dont__list {
    display: grid;
    gap: var(--space-3);
  }

  .do-dont__list li {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: var(--space-3);
    align-items: start;
    font-size: var(--text-body-lg);
    line-height: var(--leading-body-lg);

    --icon-size: 1.25rem;
  }

  .do-dont__list .icon {
    margin-block-start: 0.2em;
  }

  .do-dont__list--dont .icon {
    color: var(--color-text-muted);
  }

  .do-dont__note {
    padding-block-start: var(--space-4);
    border-block-start: var(--border-width) solid var(--color-border-control);
    font-weight: var(--weight-semibold);
  }

  @media (width >= 48rem) {
    .do-dont {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      padding: var(--space-6);
    }

    .do-dont__note {
      grid-column: 1 / -1;
    }
  }

  /* ---- The one navy band per page ---- */
  .band {
    padding-block: var(--section-space);
  }

  .band__body {
    max-inline-size: 36rem;
  }

  /* ---- Callout: Keselamatan, tips. Icon + heading + text, never colour alone. ---- */
  .callout {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: var(--space-2) var(--space-3);
    padding: var(--space-4) var(--space-5);
    border: var(--border-width-control) solid var(--color-border-control);
    border-inline-start-width: 4px;
    border-radius: var(--radius-control);

    --icon-size: 1.5rem;
  }

  .callout--warning {
    border-color: var(--color-ink);
  }

  .callout__heading {
    font-size: var(--text-body-lg);
    line-height: var(--leading-h3);
  }

  .callout__body {
    grid-column: 2;
    font-size: var(--text-body-lg);
    font-weight: var(--weight-medium);
    line-height: var(--leading-body-lg);
  }

  .callout > .icon {
    margin-block-start: 0.15em;
  }

  /* ---- Ruled list: plain items separated by rules (jobs, things to prepare) ---- */
  .ruled-list {
    border-block-start: var(--border-width) solid var(--color-border);
  }

  .ruled-list li {
    padding-block: var(--space-3);
    border-block-end: var(--border-width) solid var(--color-border);
    font-size: var(--text-body-lg);
    line-height: var(--leading-body-lg);
  }

  /* Large jobs list: two columns when there is room, first letter capitalised for display only. */
  .ruled-list--large li {
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h3);
  }

  /* Inside a category (D-033): square bullets in the category colour (a graphic, >= 3:1 on white). */
  .ruled-list--tone li {
    padding-inline-start: 1.25rem;
    background: linear-gradient(var(--tone), var(--tone)) no-repeat 0 calc(var(--space-3) + 0.5em) / 0.5rem 0.5rem;
  }

  .ruled-list li::first-letter {
    text-transform: uppercase;
  }

  @container (width >= 34rem) {
    .ruled-list--columns {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: var(--space-6);
      border-block-start: 0;
    }

    .ruled-list--columns li:nth-child(-n + 2) {
      border-block-start: var(--border-width) solid var(--color-border);
    }
  }

  /* ---- Pre-launch closing: the page's one yellow button, with the privacy line next to it (D-014) ---- */
  .closing {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
  }

  .closing__text {
    max-inline-size: 30ch;
    font-size: var(--text-h2);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h2);
    letter-spacing: var(--tracking-h2);
    text-wrap: balance;
  }

  .closing__privacy {
    max-inline-size: 40rem;
    font-size: var(--text-small);
    line-height: var(--leading-small);
    color: var(--color-text-muted);
  }

  .closing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  /* ---- Cara Kerja: the two sides of the marketplace, side by side from 1024 px ---- */
  .two-paths {
    display: grid;
    gap: var(--space-8);
  }

  .two-paths__path {
    display: grid;
    gap: var(--space-5);
    align-content: start;
    padding-block-start: var(--space-4);
    border-block-start: 3px solid var(--color-ink);
  }

  @media (width >= 64rem) {
    .two-paths {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* ---- Navy page head: Jadi Mitra (D-025) and Cara Kerja (D-026), the page's one navy band ---- */
  .page-head--ink {
    padding-block: var(--space-7) var(--space-8);
    background: var(--color-ink); /* over the Langit default above */
  }

  @media (width >= 64rem) {
    .page-head--ink {
      padding-block: var(--space-8) var(--space-9);
    }
  }

  .page-head__inner > .callout {
    justify-self: start;
    max-inline-size: 40rem;
  }

  /* ---- Provider interest: email button + provider privacy line (D-014) ---- */
  .interest {
    display: grid;
    gap: var(--space-3);
    justify-items: start;
  }

  .interest__privacy {
    max-inline-size: 40rem;
    font-size: var(--text-small);
    line-height: var(--leading-small);
    color: var(--color-text-muted);
  }

  .surface-ink .interest__privacy {
    color: var(--color-on-ink);
  }

  /* With no contact address (D-032): when registration opens, in place of the button. */
  .interest__status {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    max-inline-size: 40rem;
    font-weight: var(--weight-semibold);
  }

  .interest__status .icon {
    margin-block-start: 0.2em;
  }

  .page-head__inner > .interest {
    margin-block-start: var(--space-3);
  }

  /* ---- SMK majors and the services they lead to (Jadi Mitra) ---- */
  .pair-table {
    inline-size: 100%;
    border-collapse: collapse;
    text-align: start;
  }

  .pair-table caption {
    margin-block-end: var(--space-3);
    font-weight: var(--weight-bold);
    text-align: start;
  }

  .pair-table th,
  .pair-table td {
    padding: var(--space-3) var(--space-4) var(--space-3) 0;
    border-block-end: var(--border-width) solid var(--color-border);
    vertical-align: top;
    text-align: start;
  }

  .pair-table thead th {
    border-block-end: 2px solid var(--color-ink);
    font-size: var(--text-small);
    color: var(--color-text-muted);
  }

  .pair-table tbody th {
    font-size: var(--text-body-lg);
    line-height: var(--leading-body-lg);
  }

  /* English pages: the official Indonesian programme name, then an English gloss (D-028). */
  .pair-table__gloss {
    display: block;
    font-weight: var(--weight-regular);
    color: var(--color-text-muted);
  }

  .pair-table tbody td {
    font-size: var(--text-body-lg);
    line-height: var(--leading-body-lg);
  }

  /* Phones: body size, so "Bersih-Bersih Rumah" keeps to two lines beside the longest major. */
  @container (width < 36rem) {
    .pair-table tbody th,
    .pair-table tbody td {
      font-size: var(--text-body);
      line-height: var(--leading-body);
    }
  }

  /* ---- Sourced figures (Tentang Kami): each sentence exactly as in GIG_15, its source under it (GIG_02 display rule) ---- */
  .facts li {
    display: grid;
    gap: var(--space-1);
    align-content: start;
  }

  .facts__text {
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h3);
    font-variant-numeric: tabular-nums;
  }

  .facts__source {
    font-size: var(--text-small);
    line-height: var(--leading-small);
    color: var(--color-text-muted);
  }

  /* ---- Kontak: the address is the page's main content ---- */
  .contact-email {
    font-weight: var(--weight-bold);
    overflow-wrap: anywhere;
  }

  .contact-email--big {
    font-size: clamp(1.25rem, 0.6rem + 3.2vw, 2rem);
    line-height: var(--leading-h2);
    letter-spacing: var(--tracking-h2);
  }

  /* ---- FAQ page: links to the four groups under the h1 ---- */
  .jump-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
    font-size: var(--text-body-lg);
    font-weight: var(--weight-semibold);
  }

  .jump-list a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-min);
  }
}

/* Long-form legal pages (GIG_14 §4.9, D-027): contents list beside the text from 1024 px (sticky), numbered headings
   with the number hanging in the margin, a readable measure, and a print stylesheet without the site chrome. */
@layer components {
  .legal-updated {
    color: var(--color-text-muted);
  }

  .legal {
    display: grid;
    gap: var(--space-7);
    align-items: start;
  }

  .legal__toc {
    display: grid;
    gap: var(--space-3);
    padding-block: var(--space-4);
    border-block: var(--border-width) solid var(--color-border);
  }

  .legal__toc-heading {
    font-size: var(--text-body-lg);
    line-height: var(--leading-h3);
  }

  .legal__toc-list {
    display: grid;
    gap: var(--space-1);
  }

  .legal__toc-list a {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    padding-block: var(--space-2);
    text-decoration-thickness: 1px;
  }

  .legal__body {
    max-inline-size: 65ch;
  }

  .legal__section + .legal__section {
    margin-block-start: var(--space-7);
  }

  .legal__section > * + * {
    margin-block-start: var(--space-4);
  }

  .legal__heading {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    margin-block-end: var(--space-4);
    font-size: var(--text-h3);
    line-height: var(--leading-h3);
    text-wrap: balance;
  }

  .legal__num {
    font-variant-numeric: tabular-nums;
  }

  .legal__subheading {
    margin-block: var(--space-5) var(--space-2);
    font-size: var(--text-body-lg);
    line-height: var(--leading-h3);
  }

  .legal__list {
    display: grid;
    gap: var(--space-2);
    padding-inline-start: 1.25rem;
    list-style: disc;
  }

  @media (width >= 64rem) {
    .legal {
      grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
      gap: var(--space-8);
    }

    .legal__toc {
      position: sticky;
      inset-block-start: calc(var(--header-offset) + var(--space-4));
    }

    /* No contents list yet: the TODO sits in the text column, where the text will go. */
    .legal--empty .legal__body {
      grid-column: 2;
    }

    /* The section numbers hang in the margin so the heading text lines up with the paragraphs. */
    .legal__heading {
      margin-inline-start: -2.5rem;
    }
  }

  @media print {
    .skip-link,
    .site-header,
    .banner,
    .site-footer {
      display: none;
    }

    .legal {
      display: block;
    }

    .legal__toc {
      position: static;
      margin-block-end: 1.5rem;
    }

    .legal__heading {
      margin-inline-start: 0;
      break-after: avoid;
    }

    .legal__section {
      break-inside: auto;
    }
  }
}

/* Surfaces: the navy band and footer, the yellow papan (home hero only, Phase 5), the Langit tint (v1.1) for
   alternate sections and page heads, and the category tones (D-033). */
@layer layout {
  .surface-ink {
    background: var(--color-ink);
    color: var(--color-on-ink);

    --color-link: var(--color-on-ink);
    --color-focus: var(--color-focus-on-dark);
    --color-text-muted: var(--color-on-ink-muted);
    --color-border: var(--color-border-on-ink);
  }

  .surface-tint {
    background: var(--color-tint);
  }

  /* A category's colour set; components read --tone, --tone-tint and --tone-deep. */
  .tone-ac {
    --tone: var(--cat-ac);
    --tone-tint: var(--cat-ac-tint);
    --tone-deep: var(--cat-ac-deep);
  }

  .tone-ledeng {
    --tone: var(--cat-ledeng);
    --tone-tint: var(--cat-ledeng-tint);
    --tone-deep: var(--cat-ledeng-deep);
  }

  .tone-listrik {
    --tone: var(--cat-listrik);
    --tone-tint: var(--cat-listrik-tint);
    --tone-deep: var(--cat-listrik-deep);
  }

  .tone-bersih {
    --tone: var(--cat-bersih);
    --tone-tint: var(--cat-bersih-tint);
    --tone-deep: var(--cat-bersih-deep);
  }

  .surface-muted {
    background: var(--color-surface);
  }

  .surface-accent {
    background: var(--color-accent);
    color: var(--color-ink);
  }
}

@layer components {
  .icon {
    flex: none;
    inline-size: var(--icon-size, 1.25em);
    block-size: var(--icon-size, 1.25em);
  }

  .icon--spin {
    animation: spin 0.9s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(1turn);
    }
  }

  /* Wordmark + tick (GIG_12 B5). Tick: navy on white and yellow, yellow on navy; never yellow on white. */
  .logo {
    display: inline-flex;
    align-items: flex-end;
    color: var(--color-ink);
    font-size: min(var(--logo-size, 1.375rem), 9vw); /* never wider than a 320 px screen, even at 200 % text */
    font-weight: var(--weight-heavy);
    letter-spacing: var(--tracking-logo);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .logo:hover {
    text-decoration: none;
  }

  /* A linked logo is a 44 px target (WCAG 2.5.8, GIG_09). The padding grows the hit area and the negative margin
     gives the space back, so the header and footer layouts don't move. */
  a.logo {
    --logo-pad: max(0px, calc((var(--target-min) - 1em) / 2));

    justify-self: start;
    padding-block: var(--logo-pad);
    margin-block: calc(var(--logo-pad) * -1);
  }

  .logo__tick {
    inline-size: 0.92em;
    block-size: 0.92em;
    margin-inline-start: 0.05em;
    margin-block-end: 0.02em;
  }

  .logo--on-ink {
    color: var(--color-on-ink);
  }

  .logo--on-ink .logo__tick {
    color: var(--color-accent);
  }
}

/* Button (GIG_12 Part C). Static previews: [data-state] mirrors the real pseudo-class in the same rule. */
@layer components {
  .button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-block-size: var(--control-height);
    padding-inline: var(--space-5);
    border: var(--border-width-control) solid transparent;
    border-radius: var(--radius-control);
    font-size: var(--text-body);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
      background-color var(--duration-press) var(--ease-out),
      border-color var(--duration-press) var(--ease-out),
      transform var(--duration-press) var(--ease-out);
  }

  .button:hover {
    text-decoration: none;
  }

  .button--primary {
    background: var(--color-accent);
    color: var(--color-ink);
  }

  .button--primary:hover,
  .button--primary[data-state="hover"] {
    background: var(--color-accent-strong);
  }

  .button--secondary {
    background: transparent;
    color: var(--color-ink);
    border-color: var(--color-ink);
  }

  .button--secondary:hover,
  .button--secondary[data-state="hover"] {
    background: var(--color-surface);
  }

  .button--quiet {
    padding-inline: var(--space-2);
    background: transparent;
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.2em;
  }

  .button--quiet:hover,
  .button--quiet[data-state="hover"] {
    text-decoration: underline;
    text-decoration-thickness: 2.5px;
  }

  .button:active,
  .button[data-state="active"] {
    transform: translateY(1px);
  }

  .button--primary:active,
  .button--primary[data-state="active"] {
    background: var(--color-accent-strong);
  }

  .button[data-state="focus"] {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  .button:disabled,
  .button[aria-disabled="true"]:not([aria-busy="true"]) {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
    transform: none;
  }

  .button--quiet:disabled {
    background: transparent;
    border-color: transparent;
    text-decoration: none;
  }

  /* Loading keeps the width: the label stays in place, invisible, under the spinner. */
  .button[aria-busy="true"] {
    cursor: progress;
  }

  /* opacity, not visibility: the label must stay in the accessibility tree as the button's name. */
  .button[aria-busy="true"] > :not(.button__spinner) {
    opacity: 0;
  }

  .button__spinner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
  }

  .button--block {
    inline-size: 100%;
  }

  .button--small {
    min-block-size: var(--target-min);
    padding-inline: var(--space-4);
  }

  /* On the navy band */
  .surface-ink .button--secondary {
    color: var(--color-on-ink);
    border-color: var(--color-on-ink);
  }

  .surface-ink .button--secondary:hover,
  .surface-ink .button--secondary[data-state="hover"] {
    background: rgb(255 255 255 / 10%);
  }
}

/* Standalone link (GIG_12 Part C "Link"): a link on its own line, e.g. "Lihat cara kerja selengkapnya". No arrow. */
@layer components {
  .link-standalone {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-min);
    font-weight: var(--weight-semibold);
    text-decoration-thickness: 2px;
  }
}

/* Text input, textarea, select, checkbox, radio (GIG_12 Part C, GIG_14 §6). */
@layer components {
  .field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-inline-size: 0;
  }

  .field__label {
    font-weight: var(--weight-semibold);
    line-height: var(--leading-small);
  }

  .field__optional {
    font-weight: var(--weight-regular);
    color: var(--color-text-muted);
  }

  .field__helper {
    font-size: var(--text-small);
    line-height: var(--leading-small);
    color: var(--color-text-muted);
  }

  .field__error {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-small);
    color: var(--color-danger);

    --icon-size: 1.25rem;
  }

  .field__control {
    inline-size: 100%;
    min-block-size: var(--control-height);
    padding: var(--space-2) var(--space-3);
    border: var(--border-width-control) solid var(--color-border-control);
    border-radius: var(--radius-control);
    background: var(--color-page);
    color: var(--color-ink);
    font-size: var(--text-body); /* 16 px prevents iOS zoom */
    line-height: 1.4;
  }

  .field__control::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
  }

  .field__control:hover,
  .field__control[data-state="hover"] {
    border-color: var(--color-ink);
  }

  .field__control:focus-visible,
  .field__control[data-state="focus"] {
    border-color: var(--color-ink);
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  .field__control[aria-invalid="true"] {
    border-color: var(--color-danger);
    border-width: 2px;
  }

  .field__control:disabled {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
  }

  textarea.field__control {
    min-block-size: 7.5rem;
    resize: vertical;
  }

  .field__select {
    position: relative;
  }

  .field__select .field__control {
    appearance: none;
    padding-inline-end: var(--space-7);
  }

  .field__select .icon {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: var(--space-3);
    translate: 0 -50%;
    color: var(--color-ink);
    pointer-events: none;
  }

  .field__control:read-only:not(:disabled, select) {
    background: var(--color-surface);
    border-color: var(--color-border);
  }

  /* Checkbox and radio: 24 px control inside a 44 px target. */
  .choice {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    min-block-size: var(--target-min);
    padding-block: calc((var(--target-min) - 1.5rem) / 2);
    cursor: pointer;
  }

  .choice__input {
    flex: none;
    display: grid;
    place-content: center;
    inline-size: 1.5rem;
    block-size: 1.5rem;
    margin: 0;
    border: var(--border-width-control) solid var(--color-border-control);
    border-radius: 0.375rem;
    background: var(--color-page);
    appearance: none;
    cursor: pointer;
  }

  .choice__input[type="radio"] {
    border-radius: 50%;
  }

  .choice__input::before {
    content: "";
    inline-size: 0.75rem;
    block-size: 0.75rem;
    scale: 0;
    background: var(--color-on-ink);
    transition: scale var(--duration-press) var(--ease-out);
  }

  .choice__input[type="checkbox"]::before {
    clip-path: polygon(14% 44%, 0 65%, 43% 100%, 100% 22%, 84% 7%, 41% 70%);
    inline-size: 0.875rem;
    block-size: 0.875rem;
  }

  .choice__input[type="radio"]::before {
    border-radius: 50%;
    inline-size: 0.625rem;
    block-size: 0.625rem;
  }

  .choice__input:checked {
    background: var(--color-ink);
    border-color: var(--color-ink);
  }

  .choice__input:checked::before {
    scale: 1;
  }

  .choice__input:hover,
  .choice__input[data-state="hover"] {
    border-color: var(--color-ink);
  }

  .choice__input:focus-visible,
  .choice__input[data-state="focus"] {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  .choice__input[aria-invalid="true"] {
    border-color: var(--color-danger);
    border-width: 2px;
  }

  .choice__input:disabled {
    background: var(--color-surface);
    border-color: var(--color-border);
    cursor: not-allowed;
  }

  .choice__input:disabled:checked {
    background: var(--color-border-control);
  }

  .choice:has(.choice__input:disabled) {
    color: var(--color-text-muted);
    cursor: not-allowed;
  }

  .choice__text {
    padding-block-start: 0.05rem;
  }

  .fieldset {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .fieldset__legend {
    margin-block-end: var(--space-2);
    padding: 0;
    font-weight: var(--weight-semibold);
  }

  /* Date and time inputs: Chromium focuses a segment inside the control, so :focus-visible doesn't match the
     input itself; :focus-within draws the same ring (Phase 7). */
  .field__control:is([type="date"], [type="time"]):focus-within {
    border-color: var(--color-ink);
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }
}

/* Home search (pre-launch preview and live) and area picker (GIG_12 A5, Part C). */
@layer components {
  /* The panel's own width decides the layout, so the papan and the styleguide frame behave the same. */
  .search-panel {
    container-type: inline-size;
  }

  .search {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-card);
    background: var(--color-page);
    color: var(--color-ink);
  }

  /* Pre-launch preview: clearly not a control — dashed outline, Kabut fill, no cycling. */
  .search__preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-block-size: var(--control-height);
    padding-inline: var(--space-3);
    border: var(--border-width-control) dashed var(--color-border-control);
    border-radius: var(--radius-control);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-weight: var(--weight-medium);
  }

  .search__note {
    font-size: var(--text-small);
    line-height: var(--leading-small);
    color: var(--color-text-muted);
  }

  .search__area-link {
    display: inline-flex;
    gap: var(--space-2);
    align-items: center;
    min-block-size: var(--target-min);
    color: var(--color-ink);
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
  }

  .search__input-wrap {
    position: relative;
  }

  .search__input-wrap > .icon {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: var(--space-3);
    translate: 0 -50%;
    color: var(--color-text-muted);
    pointer-events: none;
  }

  .search__input-wrap .field__control {
    padding-inline-start: calc(var(--space-3) + 1.25rem + var(--space-2));
  }

  .search__suggestions {
    margin-block-start: var(--space-1);
    padding-block: var(--space-1);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-control);
    background: var(--color-page);
    box-shadow: var(--shadow-raised);
  }

  .search__option {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-3);
    cursor: pointer;
  }

  .search__option[aria-selected="true"] {
    background: var(--color-surface);
    box-shadow: inset 3px 0 0 var(--color-ink);
  }

  .search__option-problem {
    font-weight: var(--weight-semibold);
  }

  .search__option-category {
    font-size: var(--text-small);
    color: var(--color-text-muted);
  }

  .search__message {
    padding: var(--space-3);
    border-radius: var(--radius-control);
    background: var(--color-surface);
    font-size: var(--text-small);
    line-height: var(--leading-small);
  }

  /* Wide panel: the two fields side by side, the button on its own row; wider still, all three in one row. */
  @container (width >= 36rem) {
    .search--bar {
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      align-items: end;
      gap: var(--space-4) var(--space-3);
      padding: var(--space-5);
    }

    .search--bar > .button,
    .search--bar .search__note {
      grid-column: 1 / -1;
    }

    .search--bar .search__note + .search__note {
      margin-block-start: calc(-1 * var(--space-3));
    }
  }

  @container (width >= 50rem) {
    .search--bar {
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    }

    .search--bar > .button {
      grid-column: auto;
    }
  }

  /* Area picker */
  .area-picker {
    display: grid;
    gap: var(--space-2);
  }

  .area-picker__locate {
    justify-self: start;

    --icon-size: 1.25rem;
  }

  .area-picker__status {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    font-size: var(--text-small);
    line-height: var(--leading-small);

    --icon-size: 1.25rem;
  }

  .area-picker__status--error {
    color: var(--color-danger);
    font-weight: var(--weight-semibold);
  }

  .area-picker__status--info {
    color: var(--color-text-muted);
  }
}

/* Category rows: problems first, category second, whole row one link (GIG_12 A6, Part C). Rules, not cards.
   v1.1 (D-033): each row has its category's colour edge and icon; the category name is set in the deep shade. */
@layer components {
  /* The side-by-side layout depends on the list's own width, so a narrow column (the 404 page) keeps the stacked rows. */
  .category-list {
    container-type: inline-size;
    border-block-start: var(--border-width) solid var(--color-border);
  }

  .category-row {
    border-block-end: var(--border-width) solid var(--color-border);
  }

  .category-row__link {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-block: var(--space-4);
    padding-inline: var(--space-4) var(--space-2);
    border-inline-start: 4px solid var(--tone, var(--color-border));
    color: var(--color-ink);
    text-decoration: none;
    transition: background-color var(--duration-press) var(--ease-out);
  }

  .category-row__icon {
    --icon-size: 1.75rem;

    align-self: start;
    color: var(--tone-deep, var(--color-ink));
  }

  .category-row__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--space-1);
    min-inline-size: 0;
  }

  .category-row__problems {
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h3);
    letter-spacing: -0.01em;
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
    transition: text-decoration-color var(--duration-press) var(--ease-out);
  }

  .category-row__name {
    flex: none; /* never squeezed letter by letter */
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    color: var(--tone-deep, var(--color-text-muted));
  }

  /* Layanan overview: example jobs under the problems. */
  .category-row__jobs {
    font-size: var(--text-small);
    line-height: var(--leading-small);
    color: var(--color-text-muted);
  }

  .category-row__chevron {
    color: var(--color-text-muted);
  }

  .category-row__link:hover .category-row__problems,
  .category-row__link[data-state="hover"] .category-row__problems {
    text-decoration-color: currentcolor;
  }

  .category-row__link:hover .category-row__chevron,
  .category-row__link[data-state="hover"] .category-row__chevron {
    color: var(--tone-deep, var(--color-ink));
  }

  .category-row__link:hover,
  .category-row__link[data-state="hover"] {
    background: var(--tone-tint, var(--color-surface));
  }

  .category-row__link[data-state="focus"] {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  @container (width >= 40rem) {
    .category-row__link {
      gap: var(--space-5);
      padding-inline-start: var(--space-5);
    }

    .category-row__icon {
      --icon-size: 2rem;
    }

    .category-row__text {
      flex-direction: row;
      align-items: baseline;
      justify-content: space-between;
      gap: var(--space-5);
    }

    .category-row__name {
      font-size: var(--text-body);
      text-align: end;
    }
  }

  @container (width >= 40rem) {
    .category-row__text:has(.category-row__jobs) {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      row-gap: var(--space-1);
    }

    .category-row__jobs {
      grid-column: 1 / -1;
    }
  }
}

/* Provider card: distance leads (GIG_12 A4, Part C). Border, no shadow, no hover lift. */
@layer components {
  .provider-card {
    position: relative;
    display: grid;
    gap: var(--space-3);
    align-content: start;
    min-inline-size: 0;
    padding: var(--space-5);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-page);
    transition: border-color var(--duration-press) var(--ease-out);
    container-type: inline-size;
  }

  .provider-card:hover,
  .provider-card[data-state="hover"] {
    border-color: var(--color-ink);
  }

  .provider-card[data-state="focus"] {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  .provider-card__distance {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2);
  }

  .provider-card__km {
    font-size: clamp(1.75rem, 1.6rem + 0.6vw, 2.25rem);
    font-weight: var(--weight-heavy);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
  }

  .provider-card__from {
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
  }

  .provider-card__name {
    font-size: var(--text-h3);
    line-height: var(--leading-h3);
    overflow-wrap: anywhere;
  }

  .provider-card__link {
    color: inherit;
    text-decoration: none;
  }

  /* The whole card is the link target; the focus ring is drawn around the card. */
  .provider-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }

  .provider-card__link:focus-visible {
    outline: none;
  }

  .provider-card__link:focus-visible::after {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  .provider-card__link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }

  .provider-card__facts {
    display: grid;
    gap: var(--space-2);
  }

  .provider-card__fact {
    display: grid;
    grid-template-columns: minmax(7.5rem, auto) 1fr;
    gap: var(--space-3);
    font-size: 0.9375rem;
  }

  .provider-card__fact dt {
    color: var(--color-text-muted);
  }

  .provider-card__fact dd {
    min-inline-size: 0;
    font-weight: var(--weight-semibold);
    overflow-wrap: anywhere;
  }

  /* Narrow cards (compact, phones, 200 % text): label above value instead of a squeezed two-column row. */
  @container (width < 22rem) {
    .provider-card__fact {
      grid-template-columns: 1fr;
      gap: 0;
    }
  }

  .provider-card--unavailable .provider-card__km,
  .provider-card--unavailable .provider-card__name {
    color: var(--color-text-muted);
  }

  .provider-card--compact {
    grid-template-columns: auto 1fr;
    column-gap: var(--space-5);
    padding: var(--space-4);
  }

  .provider-card--compact .provider-card__distance {
    flex-direction: column;
    gap: var(--space-1);
    grid-row: span 3;
  }

  .provider-card--compact .provider-card__km {
    font-size: 1.5rem;
  }

  .provider-card--compact .provider-card__name {
    font-size: 1.0625rem;
  }

  .provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    gap: var(--space-4);
  }
}

@layer components {
  /* Badges: text + icon, never colour alone. */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    max-inline-size: 100%;
    padding: 0.25rem 0.75rem 0.25rem 0.5rem;
    border: var(--border-width) solid var(--color-border-control);
    border-radius: var(--radius-pill);
    background: var(--color-page);
    color: var(--color-ink);
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    line-height: 1.4;

    --icon-size: 1rem;
  }

  .badge--verified {
    border-color: var(--color-ink);
    background: var(--color-ink);
    color: var(--color-on-ink);
  }

  .badge--verified .icon {
    color: var(--color-accent);
  }

  .badge--success {
    border-color: var(--color-success);
    color: var(--color-success);
  }

  .badge--danger {
    border-color: var(--color-danger);
    color: var(--color-danger);
  }

  .badge--muted {
    border-color: var(--color-border);
    color: var(--color-text-muted);
  }

  /* Rating: one star graphic beside the number, never a row of empty stars. */
  .rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-variant-numeric: tabular-nums;
  }

  .rating .icon {
    --icon-size: 1.125em;

    color: var(--color-star);
  }

  .rating--empty {
    color: var(--color-text-muted);
    font-weight: var(--weight-medium);
  }

  /* Rating input: five radios drawn as stars; filled up to the checked one. */
  .rating-input__stars {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
  }

  .rating-input__star {
    display: grid;
    place-content: center;
    inline-size: var(--target-min);
    block-size: var(--target-min);
    margin: 0;
    border-radius: var(--radius-control);
    appearance: none;
    cursor: pointer;
  }

  .rating-input__star::before {
    content: "";
    inline-size: 1.75rem;
    block-size: 1.75rem;
    background: var(--color-border-control);
    mask: url("/assets/icons/star.6d1ff0a9.svg") center / contain no-repeat;
  }

  .rating-input__star:checked::before,
  .rating-input__star:has(~ .rating-input__star:checked)::before {
    background: var(--color-star);
  }

  .rating-input__star:focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: 0;
  }
}

@layer components {
  /* Step list: numbered, only for real sequences (Cara kerja). */
  .steps {
    display: grid;
    gap: var(--space-5);
    counter-reset: step;
  }

  .steps__item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: var(--space-1) var(--space-4);
    counter-increment: step;
  }

  /* The number sits on a yellow marker (v1.1): navy on Kuning Siap, 9.69:1. */
  .steps__item::before {
    content: counter(step);
    grid-row: span 2;
    display: grid;
    place-items: center;
    inline-size: 2.5rem;
    block-size: 2.5rem;
    border-radius: var(--radius-control);
    background: var(--color-accent);
    color: var(--color-ink);
    font-size: var(--text-body-lg);
    font-weight: var(--weight-heavy);
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  .steps__title {
    padding-block-start: 0.45rem;
    font-size: var(--text-body-lg);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h3);
  }

  .steps__body {
    color: var(--color-text-muted);
  }

  .steps-frame {
    container-type: inline-size;
  }

  @container (width >= 34rem) {
    .steps--row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--space-6);
    }

    .steps--row .steps__item {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto 1fr;
    }

    .steps--row .steps__item::before {
      grid-row: auto;
      margin-block-end: var(--space-2);
    }

    .steps--row .steps__title {
      padding-block-start: 0;
    }
  }

  @container (width >= 56rem) {
    .steps--row {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  /* Stepper: "Langkah 2 dari 4" in text plus a segmented bar. */
  .stepper {
    display: grid;
    gap: var(--space-3);
  }

  .stepper__progress {
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
  }

  .stepper__list {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: var(--space-1);
  }

  .stepper__step {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-inline-size: 0;
    font-size: var(--text-small);
    color: var(--color-text-muted);
    overflow-wrap: anywhere;

    --icon-size: 1rem;
  }

  .stepper__step::before {
    content: "";
    block-size: 0.375rem;
    border-radius: var(--radius-pill);
    background: var(--color-border);
  }

  .stepper__step--done {
    color: var(--color-ink);
  }

  .stepper__step--done::before {
    background: var(--color-ink);
  }

  .stepper__step[aria-current="step"] {
    color: var(--color-ink);
    font-weight: var(--weight-bold);
  }

  .stepper__step[aria-current="step"]::before {
    background: var(--color-accent);
    box-shadow: inset 0 0 0 1.5px var(--color-ink);
  }

  .stepper__label {
    display: flex;
    gap: var(--space-1);
    align-items: center;
  }
}

/* FAQ item: native <details>; the chevron turns when it opens (motion answers the action). */
@layer components {
  .faq {
    border-block-end: var(--border-width) solid var(--color-border);
    scroll-margin-block-start: calc(var(--header-offset) + var(--space-4));
  }

  .faq:first-child {
    border-block-start: var(--border-width) solid var(--color-border);
  }

  .faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-block-size: var(--target-min);
    padding-block: var(--space-4);
    font-size: var(--text-body-lg);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h3);
    list-style: none;
    cursor: pointer;
  }

  .faq__question::-webkit-details-marker {
    display: none;
  }

  .faq__question .icon {
    color: var(--color-text-muted);
    transition: rotate var(--duration-open) var(--ease-out);
  }

  .faq[open] .faq__question .icon {
    rotate: 180deg;
  }

  .faq__question:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
  }

  .faq__question[data-state="focus"] {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  /* The summary's TODO marker only matters while closed; open, the answer shows its own. */
  .faq[open] .faq__question .todo {
    display: none;
  }

  .faq__answer {
    padding-block-end: var(--space-5);
  }

  /* A linked question (/faq/#…) is marked with a yellow edge so it can be found after the jump; it opens with a tap. */
  .faq:target {
    padding-inline-start: var(--space-4);
    background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat left / 4px 100%;
  }
}

/* Site header (plain CSS sticky, D-016), desktop nav, mobile menu, language switch.
   Mobile/desktop switches on the header's own width (container query), so the styleguide can show the phone header at
   any viewport. The menu is <details> (works without JS); js/main/menu.js adds focus move, trap, Esc and inert (D-020).
   The drawer is position: absolute under the sticky header: container-type makes the header the containing block,
   so position: fixed would size the drawer to the header. */
@layer components {
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: var(--z-header);
    background: var(--color-page);
    border-block-end: var(--border-width) solid var(--color-border);
    container-type: inline-size;
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-block-size: calc(var(--header-height) - var(--border-width)); /* 56 px including the bottom rule (D-016) */
  }

  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .site-header__menu {
    --icon-size: 1.25rem;

    min-block-size: var(--target-min);
    padding-inline: var(--space-3);
    border: var(--border-width) solid var(--color-border-control);
    border-radius: var(--radius-control);
    background: var(--color-page);
    color: var(--color-ink);
    font-weight: var(--weight-semibold);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    user-select: none;
  }

  .site-header__menu::-webkit-details-marker {
    display: none;
  }

  .menu__when-closed,
  .menu__when-open {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }

  .menu:not([open]) .menu__when-open,
  .menu[open] .menu__when-closed {
    display: none;
  }

  /* Enlarged text on a narrow screen: keep the icon, hide the visible label (the name stays for assistive tech).
     17rem is 272 px at normal text, so "Menu" stays visible on a 320 px phone. */
  @container (width < 17rem) {
    .site-header__inner {
      gap: var(--space-2);
    }

    .site-header__menu {
      padding-inline: var(--space-2);
    }

    .menu__label {
      position: absolute;
      inline-size: 1px;
      block-size: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }

  .site-header__menu:hover,
  .site-header__menu[data-state="hover"] {
    border-color: var(--color-ink);
  }

  .menu[open] > .site-header__menu {
    border-color: var(--color-ink);
    background: var(--color-surface);
  }

  .nav__list {
    display: flex;
    gap: var(--space-5);
  }

  .nav__link {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-min);
    color: var(--color-ink);
    font-weight: var(--weight-semibold);
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2.5px;
    text-underline-offset: 0.35em;
  }

  .nav__link:hover,
  .nav__link[data-state="hover"] {
    text-decoration-color: currentcolor;
  }

  .nav__link[aria-current="page"] {
    font-weight: var(--weight-heavy);
    text-decoration-color: var(--color-ink);
  }

  .lang-switch {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--weight-semibold);
  }

  .lang-switch__link,
  .lang-switch__current {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-min);
  }

  /* Only the link needs a 44 px target; the current language is plain text. The target is widened by an invisible
     layer, not by the box, so "ID | EN" is spaced evenly and lines up with the nav in either language (D-028). */
  .lang-switch__link {
    position: relative;
    color: var(--color-text-muted);
    text-decoration: none;
  }

  .lang-switch__link::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline: min(0px, calc((100% - var(--target-min)) / 2));
  }

  .lang-switch__current {
    font-weight: var(--weight-heavy);
    text-decoration: underline;
    text-decoration-thickness: 2.5px;
    text-underline-offset: 0.35em;
  }

  .lang-switch abbr {
    text-decoration: none;
  }

  .lang-switch__link:hover {
    color: var(--color-ink);
    text-decoration: underline;
  }

  .lang-switch__sep {
    color: var(--color-border-control);
  }

  .surface-ink .lang-switch__link,
  .surface-muted .lang-switch__link {
    color: inherit;
  }

  @container (width >= 64rem) {
    .site-header__inner {
      --logo-size: 1.625rem;

      min-block-size: calc(var(--header-height-wide) - var(--border-width));
    }

    .menu {
      display: none;
    }

    .site-header__nav,
    .site-header__actions {
      display: flex;
      align-items: center;
      gap: var(--space-5);
    }

    .site-header__nav {
      margin-inline-start: auto;
    }
  }

  /* Mobile drawer: fills the screen under the header, which stays visible with the close button. */
  .drawer {
    position: absolute;
    inset-inline: 0;
    inset-block-start: calc(100% + var(--border-width)); /* below the header's bottom rule, which stays visible */
    block-size: calc(100vh - var(--header-height));
    block-size: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: 0 var(--gutter) var(--space-7);
    background: var(--color-page);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Styleguide previews: the open drawer keeps its overlay position and the header reserves room for it. */
  .menu--preview .drawer {
    block-size: 28rem;
  }

  /* Opening answers the tap: a short fade and 8 px drop (off under reduced motion). Live menu only. */
  .menu[data-menu][open] .drawer {
    animation: drawer-in 150ms var(--ease-out);
  }

  .site-header:has(.menu--preview[open]) {
    margin-block-end: 28rem;
  }

  /* The header's bottom border is the first rule of the list. */
  .drawer .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .drawer .nav__item {
    border-block-end: var(--border-width) solid var(--color-border);
  }

  .drawer .nav__link {
    inline-size: 100%;
    min-block-size: 3.5rem;
    font-size: 1.25rem;
    font-weight: var(--weight-bold);
  }

  .drawer .nav__link[aria-current="page"] {
    font-weight: var(--weight-heavy);
  }

  @keyframes drawer-in {
    from {
      opacity: 0;
      translate: 0 -0.5rem;
    }
  }
}

/* Without JS the open menu still covers the page; stop the page behind it from scrolling (phone widths only). */
@layer base {
  @media (width < 64rem) {
    html:has(.menu[data-menu][open]) {
      overflow: hidden;
    }
  }
}

@layer components {
  /* Navy (v1.1): the page ends on the brand colour. .surface-ink sets the link, focus, muted and rule colours. */
  .site-footer {
    padding-block: var(--space-8) var(--space-6);
  }

  /* The chrome's one statement: what AutoSiap is, on every page. */
  .site-footer__honesty {
    max-inline-size: 30ch;
    padding-block-end: var(--space-7);
    font-size: var(--text-h2);
    font-weight: var(--weight-bold);
    line-height: var(--leading-h2);
    letter-spacing: var(--tracking-h2);
    text-wrap: balance;
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-5);
    padding-block: var(--space-6);
    border-block-start: var(--border-width) solid var(--color-border);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    display: grid;
    gap: var(--space-3);
    align-content: start;
  }

  .site-footer__heading {
    margin-block-end: var(--space-2);
    font-size: var(--text-body);
    font-weight: var(--weight-bold);
  }

  .site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--target-min);
  }

  .site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
    align-items: center;
    padding-block-start: var(--space-5);
    border-block-start: var(--border-width) solid var(--color-border);
    font-size: var(--text-small);
  }

  @media (width >= 48rem) {
    .site-footer__grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (width >= 64rem) {
    .site-footer__grid {
      grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
    }

    .site-footer__brand {
      grid-column: auto;
    }
  }
}

/* Dialog (native <dialog>) and toast. The only raised shadows on the site. */
@layer components {
  .dialog {
    inline-size: min(32rem, 100% - 2 * var(--gutter));
    padding: var(--space-6);
    border: 0;
    border-radius: var(--radius-card);
    background: var(--color-page);
    color: var(--color-ink);
    box-shadow: var(--shadow-raised);
  }

  .dialog[open] {
    animation: overlay-in var(--duration-open) var(--ease-out);
  }

  .dialog::backdrop {
    background: rgb(15 39 71 / 45%);
  }

  .dialog--static {
    position: static;
    display: block;
    margin: 0;
    max-inline-size: 100%;
  }

  /* Static previews of motion use movement only: lowered opacity would fail text contrast. */
  .dialog--static[data-state="closing"] {
    translate: 0 0.5rem;
    scale: 0.98;
  }

  .dialog__body {
    display: grid;
    gap: var(--space-5);
  }

  .dialog__title {
    font-size: var(--text-h3);
  }

  .dialog__actions {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: flex-end;
    gap: var(--space-3);
  }

  .toast {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    max-inline-size: 24rem;
    padding: var(--space-3) var(--space-4);
    border: var(--border-width-control) solid var(--color-ink);
    border-radius: var(--radius-control);
    background: var(--color-ink);
    color: var(--color-on-ink);
    font-weight: var(--weight-semibold);
    box-shadow: var(--shadow-raised);
    animation: overlay-in var(--duration-open) var(--ease-out);

    --icon-size: 1.25rem;
  }

  /* Success is a confirmation: it carries the brand tick (GIG_12 A4). */
  .toast--success .icon {
    color: var(--color-accent);
  }

  .toast--error {
    border-color: var(--color-danger);
    background: var(--color-page);
    color: var(--color-ink);
  }

  .toast--error .icon {
    color: var(--color-danger);
  }

  .toast[data-state="entering"] {
    translate: 0 0.5rem;
  }

  .toast[data-state="leaving"] {
    translate: 0 -0.25rem;
    scale: 0.98;
  }

  .toast-region {
    position: fixed;
    inset-block-end: max(var(--space-4), env(safe-area-inset-bottom));
    inset-inline: var(--gutter);
    z-index: var(--z-toast);
    display: grid;
    justify-items: center;
    gap: var(--space-2);
    pointer-events: none;
  }

  @keyframes overlay-in {
    from {
      opacity: 0;
      translate: 0 0.5rem;
    }
  }
}

/* Empty, error, skeleton, alert, banner, KPI, TODO(content) marker. */
@layer components {
  .empty {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
    padding: var(--space-6) var(--space-5);
    border: var(--border-width-control) dashed var(--color-border-control);
    border-radius: var(--radius-card);
  }

  .empty__text {
    font-size: var(--text-body-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-body-lg);
  }

  .alert {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3) var(--space-4);
    border: var(--border-width-control) solid var(--color-border-control);
    border-radius: var(--radius-control);
    background: var(--color-page);

    --icon-size: 1.25rem;
  }

  .alert--error {
    border-color: var(--color-danger);
  }

  .alert--error > .icon {
    color: var(--color-danger);
  }

  .alert--info {
    background: var(--color-surface);
    border-color: var(--color-surface);
  }

  .alert__title {
    font-weight: var(--weight-bold);
  }

  .alert__list {
    margin-block-start: var(--space-2);
    padding-inline-start: 1.1em;
  }

  .error-page {
    display: grid;
    gap: var(--space-5);
    justify-items: start;
    padding-block: var(--space-8);
  }

  .error-page__icon {
    --icon-size: 2.5rem;

    color: var(--color-text-muted);
  }

  .error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
  }

  .error-page__actions:has(.button) {
    align-items: center;
    gap: var(--space-4) var(--space-6);
  }

  /* 404: the statement is the page. Display size, broken into two short lines. */
  .error-page--display {
    padding-block: 0;
  }

  .error-page--display .error-page__title {
    max-inline-size: 11ch;
    font-size: var(--text-display);
    line-height: var(--leading-display);
    letter-spacing: var(--tracking-display);
  }

  .error-page--display .lead {
    max-inline-size: 34ch;
  }

  .not-found {
    display: grid;
    gap: var(--space-8);
    align-items: start;
  }

  .not-found__services h2 {
    margin-block-end: var(--space-4);
    font-size: var(--text-h3);
    line-height: var(--leading-h3);
  }

  @media (width >= 64rem) {
    .not-found {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--space-9);
    }

    /* Line the list up with the first line of the heading's cap height, not the top of its box. */
    .not-found__services {
      padding-block-start: var(--space-3);
    }
  }

  .skeleton {
    border-radius: var(--radius-control);
    background: var(--color-surface);
    animation: skeleton-pulse 1.6s ease-in-out infinite alternate;
  }

  .skeleton--text {
    block-size: 1em;
    margin-block: 0.3em;
  }

  .skeleton--km {
    inline-size: 6rem;
    block-size: 2.25rem;
  }

  .skeleton--title {
    inline-size: 75%;
    block-size: 1.375rem;
  }

  .skeleton--line {
    inline-size: 55%;
  }

  .skeleton--row {
    block-size: 3.5rem;
  }

  @keyframes skeleton-pulse {
    to {
      opacity: 0.55;
    }
  }

  .banner {
    padding-block: var(--space-2);
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-small);
  }

  .banner--prelaunch {
    background: var(--color-surface);
    color: var(--color-ink);
  }

  .banner--prototype {
    background: var(--color-ink);
    color: var(--color-on-ink);

    --icon-size: 1.125rem;
  }

  .banner__inner {
    display: flex;
    gap: var(--space-2);
    align-items: center;
  }

  .kpi {
    min-inline-size: 0;
    display: grid;
    gap: var(--space-2);
    align-content: start;
    padding: var(--space-5);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-card);
  }

  .kpi__label {
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
  }

  .kpi__value {
    font-size: clamp(2rem, 1.8rem + 0.8vw, 2.5rem);
    font-weight: var(--weight-heavy);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  .kpi__value--none {
    font-size: var(--text-body-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
  }

  /* Native <progress>: semantic, and needs no inline style (CSP). */
  .kpi__bar {
    inline-size: 100%;
    min-inline-size: 0; /* <progress> has a built-in 10em minimum */
    block-size: 0.375rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-border);
    color: var(--color-ink);
    appearance: none;
    overflow: hidden;
  }

  .kpi__bar::-webkit-progress-bar {
    background: var(--color-border);
  }

  .kpi__bar::-webkit-progress-value {
    background: var(--color-ink);
  }

  .kpi__bar::-moz-progress-bar {
    background: var(--color-ink);
  }

  .kpi__target {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
  }

  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    gap: var(--space-4);
  }

  /* Visible on staging so unknowns can't be missed (GIG_15). */
  .todo {
    display: inline;
    padding: 0.05em 0.35em;
    border: var(--border-width-control) dashed var(--color-danger);
    border-radius: 0.25rem;
    background: var(--color-page);
    color: var(--color-danger);
    font-size: 0.875em;
    font-weight: var(--weight-semibold);
    box-decoration-break: clone;
  }

  .fictional {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: var(--weight-bold);
    color: var(--color-danger);
  }
}

/* Beranda (GIG_14 §4.1, GIG_12 A5/A7). The papan is the page's one memorable thing; everything after it is quiet.
   Section layout, statements, the lakukan / tidak lakukan panel and the navy band are shared with inner pages (52-page.css). */
@layer components {
  /* ---- Papan: the yellow signboard hero ---- */
  .papan {
    position: relative;
    overflow: hidden;
    padding-block: var(--space-7) var(--space-8);
  }

  .papan__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-5);
  }

  .papan__title {
    max-inline-size: 15em;
    font-size: var(--text-display);
    line-height: var(--leading-display);
    letter-spacing: var(--tracking-display);
    text-wrap: balance;
  }

  .papan__lead {
    max-inline-size: 38rem;
    font-size: var(--text-body-lg);
    line-height: var(--leading-body-lg);
    font-weight: var(--weight-medium);
  }

  .papan .search-panel {
    max-inline-size: 52rem;
    margin-block-start: var(--space-3);
  }

  /* The brand tick, painted large in Kuning tua and cropped by the sign's edge. Decorative only. */
  .papan__tick {
    display: none;
  }

  @media (width >= 48rem) {
    .papan {
      padding-block: var(--space-8) var(--space-9);
    }

    .papan__tick {
      --icon-size: clamp(22rem, 42vw, 40rem);

      display: block;
      position: absolute;
      inset-block-end: -18%;
      inset-inline-end: -9%;
      color: var(--color-accent-strong);
    }
  }

  /* ---- Area ---- */
  .area-list {
    max-inline-size: 36rem;
    font-weight: var(--weight-medium);
  }
}

@layer utilities {
  .visually-hidden:not(:focus, :active) {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .tabular {
    font-variant-numeric: tabular-nums;
  }

  .muted {
    color: var(--color-text-muted);
  }

  .small {
    font-size: var(--text-small);
    font-weight: var(--weight-medium);
    line-height: var(--leading-small);
  }
}
