/* ── Pusat Kurma Theme: "Comprehensive Hub / Directory" ──────────────────────
   Palette: dusty rose / mauve  (pusatkurma.co.id from skins.json)
   Fonts: Lora (serif) + Source Sans 3 (sans)
   Design: authoritative one-stop directory aesthetic — tidy tiles, calm palette,
   organised breadth vs specialist/single-focus themes.
──────────────────────────────────────────────────────────────────────────── */

:root {
  /* Skin tokens — overridden at runtime by skins.json inline vars */
  --ink:     #2a1c18;
  --ink-2:   #504441;
  --gold:    #b07a6a;
  --gold-d:  #895f52;
  --gold-l:  #c69f93;
  --brown:   #9a6b5d;
  --brown-2: #b07a6a;
  --cream:   #F8F0EC;
  --cream-2: #e6dfdb;
  --line:    #d7d0cd;
  --green:   #b07a6a;
  --muted:   #837b79;

  /* Theme internals */
  --wa:      #1faf54;
  --wa-d:    #178a43;
  --card:    #fff;
  --serif:   'Lora', Georgia, serif;
  --sans:    'Source Sans 3', system-ui, -apple-system, sans-serif;
  --shadow:  0 4px 18px rgba(42,28,24,.08);
  --shadow-lg: 0 16px 48px rgba(42,28,24,.14);
  --radius:  12px;
  --radius-sm: 8px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 16.5px; max-width: 100%; overflow-x: clip }
img  { max-width: 100%; display: block }
a    { color: var(--brown-2); text-decoration: none }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em }
h1 { font-size: clamp(2rem, 4.8vw, 3.6rem) }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem) }
h3 { font-size: 1.2rem }
p  { margin: 0 0 1em }

.wrap    { max-width: 1180px; margin: 0 auto; padding: 0 22px }
.muted   { color: var(--muted) }
.section { padding: 80px 0 }
.section-sm { padding: 52px 0 }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 700; color: var(--gold-d); margin: 0 0 .75em }
.lead    { font-size: 1.15rem; color: var(--ink-2) }
.center  { text-align: center }
.sec-head { max-width: 680px; margin: 0 auto 48px }
.skip-link { position: absolute; left: -999px }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 200 }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: var(--radius-sm); font-family: var(--sans); font-weight: 600; font-size: .96rem; border: 1.5px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap }
.btn:hover { transform: translateY(-2px); text-decoration: none }
.btn-lg  { padding: 15px 32px; font-size: 1.02rem }
.btn-sm  { padding: 8px 16px; font-size: .88rem }
.btn-wa  { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31,175,84,.28) }
.btn-wa:hover { background: var(--wa-d); color: #fff }
.btn-rose { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(176,122,106,.3) }
.btn-rose:hover { background: var(--gold-d); color: #fff }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold-d) }
.btn-outline:hover { background: var(--gold); color: #fff }
.btn-cta-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.9) }
.btn-cta-ghost:hover { border-color: #fff; color: #fff }
.wa-ic { font-size: 1.05em }

/* ── Top utility bar ── */
.hub-topbar { background: var(--ink); color: #d8cdb8; font-size: .8rem; overflow: hidden }
.hub-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 14px; min-width: 0 }
.hub-topbar-badge { font-weight: 600; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0 }
.hub-topbar-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0 }
.hub-topbar-right span { white-space: nowrap }
@media(max-width:640px) {
  .hub-topbar-badge { display: none }
  .hub-topbar-right span { display: none }
}

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(248,240,236,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line) }
.hub-header-inner { display: flex; align-items: center; gap: 18px; height: 72px; min-width: 0 }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0 }
.brand:hover { text-decoration: none }
.brand-logo { width: 44px; height: auto; display: block; flex: none }
.site-footer .brand-logo { width: 38px }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1; display: flex; flex-direction: column }
.brand-text small { font-family: var(--sans); font-weight: 400; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px }

/* Browse bar — the distinctive "directory" affordance in header */
.hub-browse-bar { flex: 1; max-width: 340px; background: var(--cream-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; cursor: default; min-width: 0 }
.hub-browse-icon { color: var(--gold-d); font-size: 1.05rem; flex-shrink: 0 }
.hub-browse-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

.main-nav { display: flex; gap: 22px; flex-shrink: 0 }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .9rem; position: relative; white-space: nowrap }
.main-nav a:hover { color: var(--gold-d); text-decoration: none }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--gold); transition: .2s }
.main-nav a:hover::after { width: 100% }
.header-wa { margin-left: 4px; flex-shrink: 0 }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 1.2rem; line-height: 1; padding: 7px 12px; cursor: pointer; color: var(--ink) }
.lang-toggle { font-weight: 700; font-size: .8rem; letter-spacing: .06em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px; color: var(--ink-2); transition: .15s; white-space: nowrap; flex-shrink: 0 }
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-d); text-decoration: none }

/* ── Hero ── */
.hub-hero { background: linear-gradient(135deg, var(--cream) 0%, #f0e5e0 50%, var(--cream-2) 100%); border-bottom: 1px solid var(--line); overflow: hidden }
.hub-hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; padding: 68px 22px 80px }
.hub-hero-copy h1 { margin-bottom: .2em }
.hub-hero-copy h1 .accent { color: var(--brown-2); font-style: italic }
.hub-hero-copy .lead { max-width: 500px }
.hub-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0 }

/* Variety Directory panel */
.hub-dir-panel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow) }
.hub-dir-label { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-d); margin-bottom: 16px }
.hub-dir-icon { font-size: 1rem }
.hub-dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.dir-tile { background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 2px; transition: .18s; color: var(--ink) }
.dir-tile:hover { border-color: var(--gold); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none }
.dir-tile-emoji { font-size: 1.3rem; line-height: 1 }
.dir-tile-name { font-family: var(--serif); font-weight: 700; font-size: .88rem; line-height: 1.2; color: var(--ink) }
.dir-tile-origin { font-size: .72rem; color: var(--muted); font-weight: 500 }
.dir-tile-more { border-style: dashed; background: transparent }
.dir-tile-more .dir-tile-emoji { font-size: 1.5rem; color: var(--gold-d); font-weight: 700; font-family: var(--sans) }

/* ── Authority band ── */
.hub-authority { background: var(--ink); color: #f0e5e0 }
.hub-authority-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08) }
.hub-auth-item { padding: 38px 24px; text-align: center; background: var(--ink) }
.hub-auth-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold-l); line-height: 1; margin-bottom: 6px }
.hub-auth-lbl { font-size: .88rem; color: #c6aba3; line-height: 1.4 }

/* ── Products grid ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 22px }
.pcard { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column; color: inherit }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none }
.pcard-media { aspect-ratio: 1; background: linear-gradient(135deg, #f0e2dc, #e6d5ce); overflow: hidden; position: relative }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: .4s }
.pcard:hover .pcard-media img { transform: scale(1.05) }
.pcard-tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #f4ebe7; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em }
.pcard-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1 }
.pcard-body h3 { font-size: 1.1rem; margin: 0 }
.pcard-origin { font-size: .78rem; color: var(--gold-d); font-weight: 700; text-transform: uppercase; letter-spacing: .08em }
.pcard-desc { font-size: .9rem; color: var(--muted); flex: 1 }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px }
.price { font-family: var(--serif); color: var(--brown-2); font-weight: 700; font-size: 1.2rem }
.price small { font-family: var(--sans); font-weight: 500; color: var(--muted); font-size: .7em }
.pcard-link { font-size: .84rem; font-weight: 700; color: var(--gold-d) }

/* ── Why Pusat Kurma ── */
.hub-why { background: var(--cream-2) }
.hub-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px }
.hub-why-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); transition: .2s }
.hub-why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) }
.hw-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, #f4e8e4, #e6d5ce); display: flex; align-items: center; justify-content: center; color: var(--gold-d); margin-bottom: 14px }
.hub-why-card h3 { font-size: 1.05rem; margin-bottom: .3em }
.hub-why-card p { font-size: .9rem; color: var(--muted); margin: 0 }

/* ── Sourcing section ── */
.hub-sourcing { background: var(--cream) }
.hub-sourcing-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center }
.hub-sourcing-media { position: relative }
.hub-sourcing-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100% }
.hub-sourcing-badge { position: absolute; bottom: -14px; right: -14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow) }
.hsb-label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px }
.hsb-origins { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--ink-2) }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px }
.ticks li { padding-left: 32px; position: relative; color: var(--ink-2); font-size: .95rem }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center }

/* ── Steps ── */
.hub-steps { display: flex; align-items: flex-start; gap: 0 }
.hub-step { flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow) }
.hs-arrow { flex-shrink: 0; font-size: 1.8rem; color: var(--gold-d); padding: 0 10px; margin-top: 32px; font-weight: 300 }
.hs-num { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px }
.hub-step h3 { font-size: 1.08rem; margin-bottom: .25em }
.hub-step p { font-size: .9rem }

/* ── Testimonials ── */
.hub-tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.hub-tst { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow) }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px }
.hub-tst p { font-size: .95rem; color: var(--ink-2); font-style: italic }
.who { display: flex; align-items: center; gap: 11px; margin-top: 14px }
.av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-l), var(--gold-d)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0 }
.who b { display: block; font-size: .9rem }
.who span { font-size: .78rem; color: var(--muted) }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto }
.faq details { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; padding: 2px 18px; box-shadow: var(--shadow) }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: .98rem }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-d); font-weight: 300 }
.faq details[open] summary::after { content: "–" }
.faq details p { margin: 0 0 14px; color: var(--muted); font-size: .95rem }

/* ── CTA band ── */
.hub-cta { background: linear-gradient(120deg, var(--ink) 0%, #3a2820 60%, var(--brown) 130%); color: #f4ebe7; position: relative; overflow: hidden }
.hub-cta::before { content: "◈"; position: absolute; right: -40px; top: -50px; font-size: 20rem; color: rgba(176,122,106,.1); pointer-events: none }
.hub-cta-inner { padding: 68px 22px; text-align: center; position: relative }
.hub-cta h2 { color: #fff; margin-bottom: .3em }
.hub-cta .lead { color: #d8c8c4; max-width: 540px; margin: 0 auto 26px }
.hub-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap }

/* ── Hub page head (products / blog / contact / page) ── */
.hub-page-head { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); padding: 52px 0 48px }
.hub-page-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap }
.hub-badge-row { display: flex; flex-wrap: wrap; gap: 8px }
.hub-badge { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 700; color: var(--gold-d); white-space: nowrap }

/* ── Catalogue note ── */
.hub-catalogue-note { margin-bottom: 24px; font-size: .92rem }
.hub-products-grid { margin-top: 0 }

/* ── Split feature ── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100% }

/* ── Prose ── */
.prose { max-width: 780px; font-size: 1.05rem; color: var(--ink-2) }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.5em }
.prose ul { padding-left: 1.3em }
.prose table, .article-body table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .95rem }
.prose th, .prose td, .article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top }
.prose th, .article-body th { background: var(--cream-2); font-weight: 700 }
.prose hr, .article-body hr { border: none; border-top: 1px solid var(--line); margin: 1.8em 0 }
.prose blockquote, .article-body blockquote { border-left: 4px solid var(--gold); padding: 2px 0 2px 16px; margin: 1.2em 0; font-style: italic; color: var(--ink-2) }
.prose li, .article-body li { margin-bottom: .45em }
.prose strong, .article-body strong { color: var(--ink) }

/* ── Article ── */
.article-wrap { max-width: 820px; margin: 0 auto }
.article-head h1 { margin: .1em 0 .3em }
.article-meta { font-size: .85rem; margin-top: 8px }
.article-hero { margin: 8px 0 28px }
.article-hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow) }
.article-hero figcaption { font-size: .76rem; margin-top: 8px; text-align: center }
.article-body { max-width: none; font-size: 1.07rem; line-height: 1.82 }
.article-body h2 { font-size: 1.5rem; margin: 1.6em 0 .5em }
.article-body h3 { font-size: 1.18rem; margin: 1.3em 0 .35em }
.article-body p { margin: 0 0 1.1em }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.1em }
.article-faq { margin-top: 44px }
.article-faq h2 { margin-bottom: 16px }
.article-cta { margin-top: 36px; text-align: center }

/* ── Product detail ── */
.pd-top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start }
.pd-media img, .pd-ph { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg) }
.pd-ph { aspect-ratio: 1; background: linear-gradient(135deg, #f0e2dc, #e6d5ce); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--gold-l) }
.pd-price { font-family: var(--serif); font-size: 2rem; color: var(--brown-2); font-weight: 700; margin: .2em 0 }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { background: var(--cream-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 15px; font-weight: 600; font-size: .9rem }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px }
.contact-list { list-style: none; padding: 0; line-height: 2.1 }
.contact-form { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg) }
.contact-form label { display: block; font-weight: 600; margin: 14px 0 5px; font-size: .92rem }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--cream) }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold) }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0 }
.alert-ok { background: #e9f7ef; border: 1px solid #b6e2c4; color: #176b38; padding: 13px 15px; border-radius: var(--radius-sm); margin-bottom: 8px }
.err { color: #b3261e; font-size: .85rem }

/* ── Breadcrumbs ── */
.crumbs { padding: 16px 0; color: var(--muted); font-size: .86rem }
.crumbs a { color: var(--muted) }
.crumbs a:hover { color: var(--gold-d) }

/* ── Footer ── */
.site-footer { background: var(--ink); color: #c6aba3; padding: 58px 0 24px; margin-top: 10px; overflow: hidden }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px }
.site-footer .brand-text { color: #f4ebe7; font-size: 1.2rem }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px }
.site-footer a { color: #c6aba3 }
.site-footer a:hover { color: #fff }
.foot-nav { display: flex; flex-direction: column; gap: 9px }
.f-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px }
.pill { background: #3a2820; border: 1px solid #4f3a32; color: #e3d0cc; font-size: .76rem; padding: 4px 11px; border-radius: 999px }
.copyright { border-top: 1px solid #3a2820; margin-top: 32px; padding-top: 18px; font-size: .84rem }
.email-link { color: inherit }

/* ── Floating WA ── */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 9px; background: var(--wa); color: #fff; padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 28px rgba(31,175,84,.5); font-weight: 600 }
.wa-float:hover { background: var(--wa-d); color: #fff; text-decoration: none }
.wa-glyph { width: 24px; height: 24px; display: block; flex: none }

/* ── Responsive: 920px ── */
@media(max-width: 920px) {
  .hub-hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 52px 22px 64px }
  .hub-dir-panel { order: -1 }
  .hub-authority-grid { grid-template-columns: repeat(2, 1fr) }
  .hub-auth-item:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.1) }
  .hub-why-grid { grid-template-columns: repeat(2, 1fr) }
  .hub-sourcing-inner, .feature, .pd-top, .contact-grid { grid-template-columns: 1fr; gap: 30px }
  .hub-sourcing-badge { position: static; margin-top: 14px; display: inline-block }
  .hub-tst-grid { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px }
  .hub-steps { flex-direction: column; gap: 12px }
  .hs-arrow { transform: rotate(90deg); margin: 0 auto }
  /* Mobile nav */
  .hub-header-inner { position: relative }
  .hub-browse-bar { display: none }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 6px 22px 14px; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow) }
  .hub-header-inner.nav-open .main-nav { display: flex }
  .main-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 1.02rem }
  .main-nav a::after { display: none }
  .header-wa { display: none }
  .nav-toggle { display: block }
  .lang-toggle { margin-left: auto }
  .section { padding: 56px 0 }
  .hub-page-head-inner { flex-direction: column; align-items: flex-start }
}

/* ── Responsive: 640px ── */
@media(max-width: 640px) {
  .hub-why-grid { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr; gap: 22px }
  .hub-authority-grid { grid-template-columns: repeat(2, 1fr) }
  .dir-tile-origin { display: none }
}

/* ── Responsive: 540px ── */
@media(max-width: 540px) {
  .wa-float { padding: 0; width: 60px; height: 60px; justify-content: center; border-radius: 50%; right: 14px; bottom: 14px; gap: 0 }
  .wa-float .wa-text { display: none }
  .wa-float .wa-glyph { width: 40px; height: 40px }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px }
  .hub-dir-grid { grid-template-columns: repeat(3, 1fr) }
  h1 { font-size: 1.9rem }
  .btn { white-space: normal }
  .prose table, .article-body table { display: block; overflow-x: auto; max-width: 100% }
  .wrap { padding: 0 14px }
  .hub-auth-num { font-size: 1.5rem }
  .hub-cta-actions { flex-direction: column; align-items: center }
}

/* ── Global overflow safety ── */
html, body { max-width: 100%; overflow-x: clip }
