/* ============================================================
   Kronoshop Retail — inner-page components
   Loaded after site.css. Inherits the same light/dark tokens.
   ============================================================ */

/* breadcrumb */
.breadcrumb { border-bottom: 1px solid var(--border); background: var(--surface); }
.breadcrumb ol { display: flex; align-items: center; gap: 9px; height: 46px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--amber-deep); }
.breadcrumb li + li::before { content: "chevron_right"; font-family: 'Material Symbols Outlined'; font-size: 16px; margin-right: 9px; color: var(--faint); vertical-align: -3px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* inner page hero */
.phero { padding: 60px 0 52px; }
.phero h1 { font: 800 clamp(34px, 4.6vw, 56px)/1.05 var(--font-ui); letter-spacing: -.028em; max-width: 22ch; text-wrap: balance; margin-bottom: 20px; }
.phero h1 em { font-style: normal; color: var(--amber-deep); }
.phero__sub { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; margin-bottom: 28px; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.phero--center { text-align: center; }
.phero--center h1, .phero--center .phero__sub { margin-left: auto; margin-right: auto; }
.phero--center .phero__cta { justify-content: center; }

/* prose */
.prose { max-width: 72ch; }
.prose p { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 10px; color: var(--ink); }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.prose li::before { content: ""; position: absolute; left: 5px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.prose li ul { margin: 10px 0 0; }
.prose a { color: var(--amber-deep); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose em { color: var(--muted); }

/* data tables */
.dtable { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.dtable th, .dtable td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: top; }
.dtable thead th { background: var(--bg-2); font: 900 11px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable td:first-child { font-weight: 600; color: var(--ink); }
.dtable td { color: var(--ink-2); }
.dtable .tier4 td { background: var(--amber-tint); }
.tier-name { font-weight: 700; color: var(--ink); }
.tier-sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.dtable--stats td:first-child { color: var(--amber-deep); font-weight: 700; font-size: 16px; white-space: nowrap; }

.tablewrap { overflow-x: auto; }

/* callout */
.callout { border: 1px solid var(--border-2); border-left: 3px solid var(--amber); background: var(--amber-tint); border-radius: var(--r-md); padding: 18px 20px; font-size: 14.5px; color: var(--ink-2); margin: 22px 0; line-height: 1.6; }
.callout strong { color: var(--ink); }
.callout .ms { color: var(--amber-deep); vertical-align: -4px; margin-right: 4px; }
.callout ul { margin: 10px 0 0; padding: 0; list-style: none; }
.callout li { padding-left: 20px; position: relative; margin-bottom: 7px; }
.callout li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color .15s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 15.5px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "add"; font-family: 'Material Symbols Outlined'; color: var(--amber-deep); font-size: 22px; flex: 0 0 auto; transition: transform .2s; }
.faq details[open] summary::after { content: "remove"; }
.faq__a { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.68; }
.faq__a ul { margin: 8px 0 0; padding: 0; list-style: none; }
.faq__a li { padding-left: 20px; position: relative; margin-bottom: 6px; }
.faq__a li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.faq__a a { color: var(--amber-deep); font-weight: 600; }
.faq__a strong { color: var(--ink); }

/* text cards (repair scope) */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.tcard h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.tcard h3 .ms { color: var(--amber-deep); font-size: 22px; }
.tcard p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 8px; }
.tcard p:last-child { margin-bottom: 0; }
.tcard .muted { color: var(--muted); font-size: 12.5px; }
@media (max-width: 920px){ .tcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .tcards { grid-template-columns: 1fr; } }

/* two-path steps */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.path--national { border-color: var(--amber-line); background: var(--amber-tint); }
.path > h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 9px; }
.path > h3 .ms { color: var(--amber-deep); }
.pstep { display: flex; gap: 14px; margin-bottom: 18px; }
.pstep:last-child { margin-bottom: 0; }
.pnum { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #1c1714; font: 800 14px/1 var(--font-ui); display: grid; place-items: center; }
.pbody h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.pbody p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.pbody a { color: var(--amber-deep); font-weight: 600; }
@media (max-width: 820px){ .paths { grid-template-columns: 1fr; } }

/* routing / marketplace tiles grid */
.rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 16px; }
.mk3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 700px){ .mk3 { grid-template-columns: 1fr; } }

/* enquiry form */
.form { max-width: 740px; display: grid; gap: 18px; }
.form .field { display: flex; flex-direction: column; gap: 7px; }
.form label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form label .req { color: var(--amber-deep); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--border-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); transition: border-color .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--amber); }
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form textarea { min-height: 120px; resize: vertical; }
.form .help { font-size: 12.5px; color: var(--muted); }
.form .help a { color: var(--amber-deep); font-weight: 600; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.form .consent label { font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
.honeypot { position: absolute; left: -9999px; }
@media (max-width: 600px){ .form .row2 { grid-template-columns: 1fr; } }

/* team filter + staff cards */
.filterbar { display: flex; flex-wrap: wrap; gap: 24px 32px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 32px; }
.filtergroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flabel { font: 900 10px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-right: 4px; }
.chip { font: 600 13px/1 var(--font-ui); padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--border-2); background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1c1714; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.staff { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s; }
.staff:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.staff__media { aspect-ratio: 4/5; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.staff__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.staff__body h3 { font-size: 19px; font-weight: 700; }
.staff__role { color: var(--amber-deep); font-size: 13.5px; font-weight: 600; margin: 4px 0 14px; }
.staff__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.staff__tag { font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-2); }
.staff__tag--branch { background: var(--amber-tint); color: var(--amber-deep); }
.staff__meta { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin-bottom: 16px; }
.staff__meta strong { color: var(--ink); }
.staff__meta > div { margin-bottom: 5px; }
.staff .btn { margin-top: auto; }
.is-hidden { display: none !important; }
@media (max-width: 920px){ .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .staff-grid { grid-template-columns: 1fr; } }

/* two-col + gallery */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.twocol--narrow { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 820px){ .twocol, .twocol--narrow { grid-template-columns: 1fr; } }
.gallery2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery2 .ph { aspect-ratio: 16/11; }

/* branch info panel */
.binfo { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-2); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.binfo__col { padding: 26px 28px; }
.binfo__col + .binfo__col { border-left: 1px solid var(--border); }
.binfo h4 { font: 900 10px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 14px; }
.binfo .row { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; font-size: 14px; color: var(--ink-2); }
.binfo .row:last-child { margin-bottom: 0; }
.binfo .row .ms { color: var(--amber-deep); font-size: 19px; flex: 0 0 auto; }
.binfo .row a { color: var(--ink); font-weight: 600; }
.binfo .row a:hover { color: var(--amber-deep); }
.paychips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px){ .binfo { grid-template-columns: 1fr; } .binfo__col + .binfo__col { border-left: 0; border-top: 1px solid var(--border); } }

/* map placeholder */
.mapph { width: 100%; aspect-ratio: 21/9; margin-bottom: 28px; }
@media (max-width: 760px){ .mapph { aspect-ratio: 4/3; } }

/* section intro centered helper */
.sec-head--center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.sec-head--center p { margin-left: auto; margin-right: auto; }

/* pdpa / fine print */
.fineprint { font-size: 12.5px; color: var(--muted); max-width: 80ch; line-height: 1.6; }
.fineprint a { color: var(--amber-deep); }

.breadcrumb { display: none; }
.form-status { display: block; padding: 12px; border-radius: var(--r-md); font-size: 14.5px; font-weight: 500; line-height: 1.4; margin-top: 18px; }
.form-status--ok { background: #d1fae5; border: 1px solid #10b981; color: #065f46; }
.form-status--error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* ---- Malaysia map · scoped to site tokens ---- */
.mapwrap__inner{ display:flex; gap:32px; align-items:center; flex-wrap:wrap; }
.mapwrap__inner > .mmapfig{ flex:1 1 420px; min-width:300px; }
.mmap{ width:100%; height:auto; display:block; }

/* base land */
.hs-state{ fill:var(--bg-2); stroke:var(--border-2); stroke-width:.7; transition:fill .2s ease; }
.hs-pahang{ fill:var(--amber-tint); stroke:var(--amber); stroke-width:1; }

/* courier arcs — the reach story, in brand amber */
.spoke{ fill:none; stroke:var(--amber-deep); stroke-width:1.3; opacity:.55; stroke-dasharray:5 6; stroke-linecap:round; animation:flow 1.6s linear infinite; }
@keyframes flow{ to{ stroke-dashoffset:-22; } }

/* destination cities */
.city{ fill:var(--ink-2); stroke:var(--surface); stroke-width:1.1; }
.city-lbl{ fill:var(--ink-2); font:600 9px/1 var(--font-ui); }

/* Pahang hub */
.hub-dot{ fill:var(--amber); stroke:var(--surface); stroke-width:1.6; }
.hub-lbl{ fill:var(--amber-deep); font-weight:800; }
.mmap__plabel{ fill:var(--ink); font:800 8.5px/1 var(--font-ui); letter-spacing:.12em; pointer-events:none; }

/* Pahang detail card (breakdown box) */
.inset-panel{ flex:0 1 330px; min-width:260px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:22px; box-shadow:var(--shadow-sm); }
.inset-panel h4{ font:700 16px/1.25 var(--font-ui); letter-spacing:-.01em; color:var(--ink); margin:0 0 6px; }
.inset-panel p{ margin:0 0 16px; color:var(--muted); font-size:13px; line-height:1.5; }
.ins{ width:100%; height:auto; }
.ins__bg{ fill:var(--bg-2); stroke:var(--border-2); stroke-width:1; }
.ins__wm{ fill:var(--faint); font:800 10px/1 var(--font-ui); letter-spacing:.12em; }
.ins__road{ stroke:var(--muted); stroke-width:2; stroke-linecap:round; stroke-dasharray:1 5; fill:none; opacity:.7; }
.ins__pin circle{ stroke:var(--surface); stroke-width:1.6; }
.ins__pin--t circle{ fill:var(--amber); }
.ins__pin--m circle{ fill:var(--amber-deep); }
.ins__pin--w rect{ fill:var(--ink-2); stroke:var(--surface); stroke-width:1.6; }
.ins__lbl{ fill:var(--ink); font:600 11px/1 var(--font-ui); }
.ins__lbl--w{ fill:var(--muted); font-weight:500; }

/* legend */
.map-legend{ display:flex; flex-wrap:wrap; gap:16px 28px; margin-top:30px; padding-top:24px; border-top:1px solid var(--border); }
.map-legend__item{ display:flex; gap:11px; align-items:flex-start; max-width:30ch; }
.map-legend__sw{ flex:none; width:18px; height:18px; border-radius:5px; margin-top:2px; }
.sw-ph{ background:var(--amber-tint); border:1px solid var(--amber); }
.sw-nat{ background:var(--bg-2); border:1px solid var(--border-2); }
.sw-pin{ background:var(--amber); border-radius:999px; width:14px; height:14px; margin:3px 2px 0; }

.map-legend__t b{ display:block; font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:1px; }
.map-legend__t span{ font-size:13px; color:var(--muted); line-height:1.4; }
.mapfig-frame{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-md); padding:32px; }

@media (max-width:760px){
  .mapfig-frame{ padding:22px; }
  .inset-panel{ flex:1 1 100%; max-width:none; }
}
