:root {
    /* Brand — Hana blue, used with discipline */
    --hana-blue:      #1283DD;
    --hana-blue-deep: #0E4A7C;
    --hana-blue-tint: #E8F1F9;
    --hana-band:      #F2F1EC;   /* warm surface, replaces blue wash */
    --hana-band-line: #E2E1DC;   /* warm hairline */

    /* Surface */
    --bg:        #FFFFFF;
    --surface:   #ECEEF2;
    --surface-2: #FFFFFF;
    --line:      #DDE1E6;
    --line-soft: #ECEEF2;

    /* Ink — slight warm bias, off-black */
    --ink:   #15171C;
    --ink-2: #4A4F58;
    --ink-3: #7A7F88;
    --ink-4: #A8ADB6;

    /* Spacing scale (4 px base) */
    --s-1:  4px;
    --s-2:  8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 80px;

    --max: 1180px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 132px; }
  body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--hana-blue-tint); }

  /* ──────────────────────────────────────────────
     Hero band — wraps subbar + hero over topo canvas
  ────────────────────────────────────────────── */
  .hero-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ebeef2 0%, #dce6f0 65%, #e4ecf6 100%);
  }
  #hero-topo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
      linear-gradient(to right, rgba(235,238,242,0.35) 0%, rgba(235,238,242,0.04) 55%, rgba(220,230,240,0.12) 100%),
      linear-gradient(to bottom, rgba(220,230,240,0.04) 0%, rgba(220,230,240,0.18) 100%);
  }

  /* Sub-bar: breadcrumb over the band */
  .subbar {
    position: relative;
    z-index: 2;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .subbar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--s-3) var(--s-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    font-size: 13px;
  }
  .subbar .crumbs {
    color: rgba(74,79,88,0.60);
    font-family: 'Inter', sans-serif;
  }
  .subbar .crumbs a { color: inherit; text-decoration: none; }
  .subbar .crumbs a:hover { color: rgba(74,79,88,0.90); }
  .subbar .crumbs .sep { margin: 0 var(--s-2); color: rgba(168,173,182,0.40); }
  .subbar .crumbs span:last-child { color: rgba(21,23,28,0.90); font-weight: 500; }
  .subbar .meta {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: rgba(74,79,88,0.55);
    letter-spacing: -0.005em;
  }
  .subbar .meta strong { color: rgba(21,23,28,0.80); font-weight: 500; }

  /* ──────────────────────────────────────────────
     Hero
  ────────────────────────────────────────────── */
  .hero {
    position: relative;
    z-index: 2;
    border-bottom: none;
  }
  .hero-inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--s-7) var(--s-6) var(--s-6);
  }
  .hero h1 {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: #15171C;
    margin: 0 0 var(--s-4);
    max-width: 22ch;
  }
  .hero .lede {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(74,79,88,0.75);
    max-width: 70ch;
    margin: 0;
  }

  /* ──────────────────────────────────────────────
     Two-column layout
  ────────────────────────────────────────────── */
  .layout-bg {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .layout {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--s-7) var(--s-6);
    display: block;
  }

  /* On-this-page horizontal bar */
  .onpage-bg {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    top: var(--topbar-h, 60px);
    z-index: 40;
  }

  /* On-this-page bar — horizontal */
  .sectionnav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--s-6);
    display: flex;
    align-items: stretch;
    gap: var(--s-5);
  }
  .sectionnav .label {
    display: flex;
    align-items: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    white-space: nowrap;
    border-right: 1px solid var(--line-soft);
    padding-right: var(--s-5);
  }
  .sectionnav ol {
    list-style: none; padding: 0; margin: 0;
    display: flex;
    align-items: stretch;
    gap: var(--s-5);
  }
  .sectionnav a {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4) 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
  }
  .sectionnav a:hover { color: var(--hana-blue-deep); }
  .sectionnav a.active {
    color: var(--ink);
    border-bottom-color: var(--hana-blue);
  }
  .sectionnav .num {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-4);
    letter-spacing: 0;
  }
  .sectionnav a.active .num { color: var(--hana-blue); }
  .sectionnav .footer-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: -0.005em;
    white-space: nowrap;
  }
  .sectionnav .footer-link a {
    color: var(--ink-2);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .sectionnav .footer-link a { display: inline; grid-template-columns: none; }
  .sectionnav .footer-link a:hover {
    color: var(--hana-blue-deep);
    border-bottom-color: var(--hana-blue);
  }

  /* ──────────────────────────────────────────────
     Content
  ────────────────────────────────────────────── */
  main.content { min-width: 0; }

  section.doc {
    padding: 0 0 var(--s-5);
    margin-bottom: var(--s-5);
    border-bottom: 1px solid var(--line);
  }
  section.doc:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: var(--s-4);
  }

  .section-head {
    margin-bottom: var(--s-5);
    max-width: 720px;
  }
  .section-head .section-label {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    margin-bottom: var(--s-3);
    display: flex;
    align-items: center;
    gap: var(--s-3);
  }
  .section-head .section-label .pip { color: var(--line); }
  .section-head h2 {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.018em;
    color: var(--ink);
    margin: 0 0 var(--s-3);
  }
  .section-head .intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 64ch;
    margin: 0;
  }

  /* ──────────────────────────────────────────────
     Designed block placeholder — group-structure diagram goes here
  ────────────────────────────────────────────── */
  .diagram-ph {
    margin-top: var(--s-2);
    min-height: 360px;
    border: 1px dashed var(--line);
    border-radius: 4px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--s-6);
  }
  .diagram-ph .dph-title {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    margin-bottom: var(--s-2);
  }
  .diagram-ph .dph-sub {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--ink-4);
    letter-spacing: -0.005em;
  }

  /* ──────────────────────────────────────────────
     Document index — a precise table
  ────────────────────────────────────────────── */
  .doctable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
  }
  .doctable col.c-doc    { width: auto; }
  .doctable col.c-date   { width: 150px; }
  .doctable col.c-act    { width: 130px; }

  .doctable thead th {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    text-align: left;
    padding: var(--s-3) var(--s-4) var(--s-3) 0;
    border-bottom: 1px solid var(--hana-blue-deep);
    background: transparent;
    vertical-align: bottom;
  }
  .doctable thead th.r { text-align: right; padding-right: 0; }

  .doctable tbody tr {
    transition: background 0.12s;
  }
  .doctable tbody tr:hover {
    background: #F5F6F8;
  }

  .doctable tbody td {
    padding: var(--s-4) var(--s-4) var(--s-4) 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.4;
  }
  /* No rule under the last row: the section divider (or the "See also" rule) below it
     already closes the table, and two lines read as a double divider. */
  .doctable tbody tr:last-child td {
    border-bottom: 0;
  }

  .doctable .c-doc {
    color: var(--ink);
    padding-left: var(--s-4);
  }
  .doctable .c-doc a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.005em;
  }
  .doctable .c-doc a:hover {
    color: var(--hana-blue-deep);
    text-decoration: underline;
  }
  .doctable .filetype {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    color: var(--ink-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: var(--s-2);
    display: inline-block;
    min-width: 22px;
  }
  /* Long file names: wrapped lines align with the first line, clear of the PDF tag */
  .doctable td.c-doc { padding-left: var(--s-4); }
  /* Title is its own block beside the tag, so every wrapped line shares one left edge */
  .doctable .c-doc a { display: inline-block; width: calc(100% - 30px); vertical-align: top; }


  .doctable .c-date {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
  }
  .doctable .c-act {
    text-align: right;
    padding-right: 0;
  }
  .doctable .c-act a {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--hana-blue-deep);
    text-decoration: none;
    letter-spacing: -0.005em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.75);
    transition: border-color 0.12s, color 0.12s, background 0.12s;
    white-space: nowrap;
  }
  .doctable .c-act a:hover {
    color: #fff;
    border-color: var(--hana-blue);
    background: var(--hana-blue);
  }
  .doctable .c-act a .arrow { font-size: 13px; line-height: 1; }

  /* See-also row */
  .related {
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line-soft);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-3);
    letter-spacing: -0.005em;
  }
  .related .lbl {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    margin-right: var(--s-2);
  }
  .related a {
    color: var(--ink-2);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1px;
  }
  .related a:hover {
    color: var(--hana-blue-deep);
    border-bottom-color: var(--hana-blue);
  }
  .related .sep { color: var(--line); }

  /* ──────────────────────────────────────────────
     Page end — IR contact over dark topo
  ────────────────────────────────────────────── */
  .page-end {
    position: relative;
    overflow: hidden;
    background: #0D3560;
  }
  #enquiries-topo {
    position: absolute; inset: 0;
    display: block; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
  }
  .enquiries-topo-overlay {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 1;
  }
  .page-end-inner {
    position: relative; z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--s-7) var(--s-6);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--s-5);
  }
  .page-end .ttl {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0 0 var(--s-1);
  }
  .page-end .desc {
    font-size: 14px;
    color: rgba(255,255,255,0.60);
    margin: 0;
  }
  .page-end .actions {
    display: flex;
    gap: var(--s-3);
  }
  .page-end a.btn {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    letter-spacing: -0.005em;
    padding: var(--s-3) var(--s-4);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 3px;
    background: rgba(255,255,255,0.07);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    transition: border-color 0.12s, color 0.12s, background 0.12s;
    white-space: nowrap;
  }
  .page-end a.btn:hover {
    border-color: rgba(255,255,255,0.55);
    color: #fff;
    background: rgba(255,255,255,0.14);
  }
  .page-end a.btn.primary {
    background: #ffffff;
    border-color: transparent;
    color: var(--hana-blue-deep);
  }
  .page-end a.btn.primary:hover {
    background: var(--hana-blue-tint);
    color: var(--hana-blue-deep);
  }

  /* URL hint + footer placeholder */
  .urlhint {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--s-4) var(--s-6) var(--s-5);
    color: var(--ink-3);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: -0.005em;
  }
  .footer-placeholder {
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: -0.005em;
    text-align: center;
    padding: var(--s-7) var(--s-6);
  }

  /* ──────────────────────────────────────────────
     Responsive
  ────────────────────────────────────────────── */
  @media (max-width: 960px) {
    .layout {
      padding: var(--s-5) var(--s-5) var(--s-7);
    }
    .sectionnav {
      flex-wrap: wrap;
      gap: var(--s-3) var(--s-4);
      padding: var(--s-3) var(--s-5);
    }
    .sectionnav .label { border-right: 0; padding-right: 0; }
    .sectionnav a { padding: var(--s-2) 0; }
    .hero h1 { font-size: 30px; }
    .doctable col.c-act { width: 110px; }
    .page-end-inner {
      grid-template-columns: 1fr;
      gap: var(--s-4);
    }
    .subbar-inner { flex-wrap: wrap; gap: var(--s-3); }
  }
  @media (max-width: 640px) {
    .doctable { font-size: 13px; }
    .doctable col.c-date { width: 110px; }
    .doctable col.c-act { width: 92px; }
    .doctable .c-act a { padding: 3px 6px; }
    .doctable .c-act a .arrow { display: none; }
    .topnav { display: none; }
    .diagram-ph { min-height: 240px; }
  }

  /* ──────────────────────────────────────────────
     Group-structure diagram (compact org chart)
  ────────────────────────────────────────────── */
  .gs {
    position: relative;
    margin-top: var(--s-2);
    border: 1px solid #0a2036;
    border-radius: 6px;
    background: #061a30;
    overflow: hidden;
  }
  .gs-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .gs-key {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-4);
  }
  .gs-key-item {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
  }
  .gs-sw {
    width: 22px; height: 13px;
    border-radius: 2px;
    background: var(--surface-2);
    flex: none;
  }
  .gs-sw.sub   { border: 1px solid rgba(255,255,255,0.35); box-shadow: inset 3px 0 0 var(--hana-blue); }
  .gs-sw.assoc { background: #DCEAF7; border: 1px dashed #4E9BDA; }
  .gs-legend-note {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10.5px;
    color: rgba(255,255,255,0.50);
    letter-spacing: -0.005em;
  }

  /* scale-to-fit wrapper */
  .gs-fit {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--s-5) var(--s-4) var(--s-4);
    overflow: hidden;
  }
  .gs-scale { transform-origin: top left; }
  .gs-canvas {
    position: relative;
    width: 1020px;
    height: 556px;
  }
  .gs-canvas > * { position: relative; z-index: 1; }
  .gs-conn {
    position: absolute; inset: 0;
    width: 1020px; height: 556px;
    z-index: 0 !important;
    pointer-events: none;
  }
  .gs-conn path { fill: none; stroke: #4E9BDA; stroke-width: 1.25; }
  .gs-conn path.assoc { stroke: #4E9BDA; stroke-dasharray: 4 3.5; opacity: 0.7; }

  /* node card */
  .gs-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 8px 9px;
    box-shadow: inset 3px 0 0 var(--hana-blue);
  }
  .gs-node.assoc { background: #DCEAF7; border-style: dashed; border-color: #4E9BDA; box-shadow: none; }
  .gs-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
  }
  .gs-pct {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px; font-weight: 500;
    color: var(--hana-blue);
    letter-spacing: -0.01em;
  }
  .gs-cur {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px; font-weight: 500;
    color: var(--ink-3);
  }
  .gs-nm {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.16;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 3px 0;
    text-wrap: balance;
  }
  .gs-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 8.5px;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .gs-meta .loc { color: var(--ink-2); text-align: right; white-space: nowrap; }

  /* root */
  .gs-node.root {
    background: var(--hana-blue-deep);
    border-color: var(--hana-blue-deep);
    box-shadow: none;
    justify-content: center;
    gap: 4px;
  }
  .gs-node.root { padding: 8px 18px; }
  .gs-node.root .gs-nm  { color: #fff; font-size: 13px; margin: 0; white-space: nowrap; }
  .gs-node.root .gs-pct { color: #fff; }
  .gs-node.root .gs-cur { color: rgba(255,255,255,0.6); }

  /* edge ownership tag */
  .gs-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 9.5px; font-weight: 500;
    color: var(--hana-blue-deep);
    background: var(--surface-2);
    padding: 0 4px;
    border: 1px solid var(--line);
    border-radius: 3px;
    z-index: 2;
  }
  /* notes under a card (Ayutthaya total interest, FT1 direct holding) */
  .gs-note {
    position: absolute;
    width: 180px;
    text-align: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 9.5px;
    line-height: 1.3;
    color: rgba(255,255,255,0.62);
    z-index: 2;
  }
  .gs-sw.parent { background: var(--hana-blue-deep); border: 1px solid rgba(255,255,255,0.35); }

  /* Thai diagram (/th/investor-relations/structure): Thai font, no capitals, room to wrap */
  .gs-th .gs-key-item,
  .gs-th .gs-legend-note,
  .gs-th .gs-foot,
  .gs-th .gs-note { font-family: var(--font-thai); letter-spacing: 0; }
  .gs-th .gs-key-item { font-size: 12px; }
  .gs-th .gs-legend-note,
  .gs-th .gs-foot { font-size: 12px; }
  .gs-th .gs-note { font-size: 11px; line-height: 1.35; }
  .gs-th .gs-nm { font-family: var(--font-thai); font-size: 12px; line-height: 1.3; letter-spacing: 0; }
  .gs-th .gs-node.root .gs-nm { font-size: 14px; }
  .gs-th .gs-cur { font-family: var(--font-thai); font-size: 10.5px; }
  .gs-th .gs-meta { font-family: var(--font-thai); font-size: 10.5px; line-height: 1.25; letter-spacing: 0; text-transform: none; flex-wrap: wrap; gap: 0 6px; }
  .gs-th .gs-meta .loc { margin-left: auto; }

  .gs-foot {
    position: relative;
    z-index: 1;
    padding: var(--s-3) var(--s-5) var(--s-4);
    border-top: 1px solid rgba(255,255,255,0.10);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10.5px;
    color: rgba(255,255,255,0.55);
    letter-spacing: -0.005em;
  }

  /* mobile: chart scrolls sideways below the readable scale floor */
  @media (max-width: 760px){
    .gs{max-width:100%!important}
    .gs-fit{-webkit-overflow-scrolling:touch}
    .gs-head{flex-wrap:wrap;gap:10px}
    .gs-legend-note{margin-left:0!important;text-align:left}
  }

/* "See also" in the section menu: the label on its own line, then one link per line,
   all on the same left edge. The links reset the menu-link padding, borders and grid
   they would otherwise inherit. */
.sectionnav .footer-link,
.sidenav .footer-link { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-link .footer-link-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 2px;
}
:lang(th) .footer-link .footer-link-label { text-transform: none; letter-spacing: 0; font-size: 12px; }
.sectionnav .footer-link a,
.sidenav .footer-link a {
  display: inline; padding: 0; margin: 0; border: 0; background: none; line-height: 1.45;
  border-bottom: 1px solid var(--line); grid-template-columns: none; color: var(--ink-2);
}
.sectionnav .footer-link a:hover,
.sidenav .footer-link a:hover { color: var(--hana-blue-deep); border-bottom-color: var(--hana-blue); background: none; }
/* The section menu runs across the top here: label and links sit in one aligned row */
.sectionnav .footer-link { flex-direction: row; align-items: baseline; gap: 18px; align-self: center; white-space: nowrap; }

/* <figure> keeps the browser's 40px side margins unless reset: the chart sat 80px narrower
   than its column and the legend note was clipped on phones */
.gs { margin-left: 0; margin-right: 0; }

/* Even spacing around section dividers and the "See also" rule: about 40px of space
   above and below each line on the IR pages (2 Dec 2026). The h2 sits 14px into its
   section, so 26px of margin gives 40px below the divider. */
section.doc { padding-bottom: 40px; margin-bottom: 26px; }
section.doc:last-child { margin-bottom: 0; padding-bottom: var(--s-4); }
.related { margin-top: 40px; }
/* Closing panel: no grey rule above it, and the same space above and below (about 64px)
   on the IR pages (2 Dec 2026). The content area already ends with 64px of padding. */
.layout-bg { border-bottom: 0; }
.page-end { margin-top: 0; }
