/* 博翔科技｜TÜV AUSTRIA 台灣合作夥伴
   Design system. Palette follows en.tuv.at: signal red on charcoal.
   Reading area and header share one 1400px container; nothing in the
   navigation spans the full viewport. */

:root {
  --red: #c51415;
  --red-dark: #a10f10;
  --red-soft: #fbe9e9;
  --red-tint: #fdf4f4;
  --ink: #2c2d33;
  --ink-2: #45474f;
  --muted: #666a73;
  --line: #e4e5e8;
  --line-2: #d3d5da;
  --soft: #f5f5f6;
  --bg: #ffffff;
  --wrap: 1400px;
  --gutter: 24px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(20, 20, 26, .06), 0 8px 24px rgba(20, 20, 26, .06);
  --shadow-lg: 0 18px 48px rgba(20, 20, 26, .14);
  --header-h: 84px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(23px, 2.2vw, 31px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d7d8dc; font-size: 13.5px; line-height: 1; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffb3b3; }
.topbar-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-note { opacity: .85; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 64px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.brand-sub { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.brand:hover { color: var(--ink); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: 6px;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  padding: 0 14px; height: var(--header-h); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.menu > li > a:hover, .menu > li > button:hover,
.menu > li > a[aria-current="page"], .menu > li.is-current > button { color: var(--red); border-bottom-color: var(--red); }
.caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.nav-cta { margin-left: 10px; }

/* Mega menu: anchored to the 1400px header container, never the viewport. */
.has-mega { position: static; }
.mega {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 100%;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px 32px 30px; display: none; z-index: 90;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.mega-col h3 { font-size: 15px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega-col h3 a { color: var(--ink); text-decoration: none; }
.mega-col h3 a:hover { color: var(--red); }
.mega-col h3 small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .05em; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.5; }
.mega-col li a:hover { color: var(--red); }
.mega-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14.5px; color: var(--muted); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--ink); color: #fff; }
.arrow::after { content: "→"; font-weight: 400; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,29,34,.92) 0%, rgba(28,29,34,.78) 42%, rgba(28,29,34,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-home .wrap { padding-top: 108px; padding-bottom: 116px; }
.hero-body { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffb3b3; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); }
.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.22; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #ff5a5b; }
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); color: #e6e7ea; max-width: 680px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero .wrap { padding-top: 56px; padding-bottom: 60px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; max-width: 900px; }
.page-hero .hero-lead { margin-bottom: 0; max-width: 860px; }

.crumbs { font-size: 14px; margin-bottom: 18px; color: #c9cad0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* ---------- Partner strip ---------- */
.partner-strip { border-bottom: 1px solid var(--line); background: #fff; }
.partner-strip .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.partner-strip img { width: 120px; }
.partner-strip p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.partner-strip strong { color: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--soft); }
.section-dark { background: var(--ink); color: #e6e7ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.section-head > div { max-width: 820px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17.5px; }
.section-dark .section-head p { color: #c9cad0; }
.kicker { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: .16em; color: var(--red); text-transform: uppercase; margin-bottom: 10px; }
.section-dark .kicker { color: #ff7a7b; }

.g2, .g3, .g4 { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Category tiles */
.cat-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--ink); }
.cat-media { position: relative; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.cat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cat-body small { font-size: 12.5px; letter-spacing: .12em; color: var(--red); font-weight: 700; text-transform: uppercase; }
.cat-body h3 { margin: 6px 0 10px; font-size: 21px; }
.cat-body p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.cat-body .more { margin-top: auto; font-weight: 700; color: var(--red); font-size: 15px; }

/* Service cards */
.svc-card { display: flex; flex-direction: column; padding: 26px 26px 24px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.svc-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.svc-card small { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.svc-card h3 { font-size: 19px; margin: 6px 0 8px; }
.svc-card p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.svc-card .more { margin-top: auto; font-weight: 700; color: var(--red); font-size: 15px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { display: block; font-size: clamp(30px, 3vw, 42px); font-weight: 800; color: var(--red); line-height: 1.1; margin-bottom: 8px; }
.stat-label { display: block; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.stat-src { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.section-dark .stats { background: transparent; border-color: rgba(255,255,255,.14); }
.section-dark .stat { border-color: rgba(255,255,255,.14); }
.section-dark .stat-label { color: #e6e7ea; }
.section-dark .stat-src { color: #a9abb3; }
.section-dark .stat-value { color: #ff5a5b; }

/* Role split: who does what */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; }
.role h3 { display: flex; align-items: center; gap: 12px; }
.role h3 img { width: 44px; }
.role ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.role li { margin-bottom: 6px; }
.role-tuv { border-top: 4px solid var(--red); }
.role-ps { border-top: 4px solid var(--ink); }

/* Process */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.process li { position: relative; padding: 26px 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.process li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: 30px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 12px; }
.process h3 { font-size: 17.5px; margin-bottom: 6px; }
.process p { font-size: 15px; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 52px; padding-bottom: 52px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #ffe3e3; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* ---------- Content layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; padding-top: 64px; padding-bottom: 88px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 22px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; background: #fff; }
.side-box h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: .04em; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 8px 0; color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.55; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--red); font-weight: 700; font-size: 13px; }
.toc a:hover, .toc a.is-active { color: var(--red); }
.side-contact { background: var(--ink); color: #e6e7ea; border: 0; }
.side-contact h2 { color: #fff; }
.side-contact p { font-size: 15px; margin-bottom: 14px; }
.side-contact .btn { width: 100%; }
.side-contact dl { margin: 14px 0 0; font-size: 14.5px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
.side-contact dt { color: #a9abb3; }
.side-contact dd { margin: 0; }
.side-contact a { color: #fff; }
.side-links ul { list-style: none; margin: 0; padding: 0; }
.side-links li a { display: block; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 15px; }
.side-links li:first-child a { border-top: 0; }
.side-links li a:hover { color: var(--red); }

/* ---------- Prose ---------- */
.prose { font-size: 17.5px; }
.prose > .lead { font-size: 19px; line-height: 1.85; color: var(--ink); padding: 22px 26px; background: var(--red-tint); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 36px; }
.prose h2 { margin: 56px 0 18px; padding-top: 6px; position: relative; padding-left: 18px; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .32em; bottom: .32em; width: 5px; background: var(--red); border-radius: 2px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose a { font-weight: 500; }

.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 40px; background: #fff; }
.glance div { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.glance div:nth-child(odd) { border-right: 1px solid var(--line); }
.glance div:nth-last-child(-n+2) { border-bottom: 0; }
.glance dt { font-size: 13px; color: var(--muted); letter-spacing: .06em; margin-bottom: 2px; }
.glance dd { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.55; }

.takeaways { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 24px 28px 14px; margin: 0 0 40px; background: #fff; }
.takeaways h2 { font-size: 18px; margin: 0 0 12px; padding: 0; }
.takeaways h2::before { display: none; }
.takeaways ul { margin: 0 0 8px; }

.steps { list-style: none; padding: 0 !important; margin: 0 0 1.6em; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 64px; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.steps li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 4px; font-size: 18.5px; }
.steps p { margin: 0; color: var(--ink-2); }

.checklist { list-style: none; padding: 20px 24px !important; margin: 0 0 1.6em; background: var(--soft); border-radius: var(--radius); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.checklist li { position: relative; padding-left: 30px; margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 16px; height: 16px; border-radius: 3px; background: var(--red); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: calc(.42em + 3px); width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 1.6em; }
.cards .card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.cards .card h3 { font-size: 17.5px; margin: 0 0 6px; }
.cards .card p { margin: 0; color: var(--ink-2); font-size: 16px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--red); color: inherit; }
a.card h3 { color: var(--red); }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); }
.tuv-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
.tuv-table caption { caption-side: top; text-align: left; font-weight: 700; padding: 14px 16px 10px; color: var(--ink); font-size: 15px; }
.tuv-table th, .tuv-table td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tuv-table thead th { background: var(--ink); color: #fff; font-weight: 700; border-top: 0; white-space: nowrap; }
.tuv-table tbody tr:nth-child(even) td { background: #fafafa; }

.callout { border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.6em; border: 1px solid; }
.callout-title { display: block; font-weight: 800; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout-info { background: #f3f5f8; border-color: #dfe3ea; }
.callout-warn { background: var(--red-tint); border-color: #f2c4c4; }
.callout-warn .callout-title { color: var(--red-dark); }
.callout-tip { background: #f4f8f4; border-color: #d5e5d5; }

.quote { margin: 0 0 1.6em; padding: 6px 0 6px 24px; border-left: 4px solid var(--line-2); color: var(--ink-2); font-size: 18px; }
.quote cite { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 6px; }

.figure { margin: 8px 0 2em; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.figure svg { width: 100%; height: auto; }
.figure figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); text-align: center; }

.stats-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0 0 1.6em; }
.stats-inline .stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* FAQ */
.faq { margin-top: 56px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; font-size: 17px; line-height: 1.55; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 16px 22px 18px; color: var(--ink-2); }
.faq .answer p { margin: 0; }

.sources { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.sources h2 { font-size: 16px; padding: 0; margin: 0 0 10px; }
.sources h2::before { display: none; }
.sources ol { padding-left: 1.3em; margin: 0; }
.sources li { margin-bottom: 4px; word-break: break-word; }

.related { margin-top: 56px; }
.related h2 { margin-top: 0; }

/* Article */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #c9cad0; font-size: 14.5px; margin-top: 18px; }
.article-cover { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; position: relative; background: var(--soft); }
.article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.byline { display: flex; gap: 16px; align-items: center; margin-top: 44px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); font-size: 15px; color: var(--ink-2); }
.byline img { width: 56px; flex: none; }
.byline p { margin: 0; }

.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .2s; }
.post-card:hover { box-shadow: var(--shadow-lg); color: var(--ink); }
.post-media { position: relative; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body small { color: var(--muted); font-size: 13.5px; }
.post-body h3 { font-size: 19px; margin: 6px 0 8px; line-height: 1.5; }
.post-body p { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }
.post-body .more { margin-top: auto; color: var(--red); font-weight: 700; font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list span { color: var(--muted); font-size: 15px; }
.contact-list strong, .contact-list a { font-size: 17px; }
.map-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--soft); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1f2024; color: #b9bbc2; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand img { width: 96px; background: #fff; padding: 8px; border-radius: 4px; margin-bottom: 18px; }
.footer-brand p { margin: 0 0 8px; }
.site-footer h2 { font-size: 15px; color: #fff; letter-spacing: .08em; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d9dbe0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 26px; font-size: 13.5px; color: #8d9098; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; max-width: 900px; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .code { font-size: 96px; font-weight: 800; color: var(--red); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .menu > li > a, .menu > li > button { padding: 0 10px; font-size: 15.5px; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 22px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-open .nav { display: flex; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li > a, .menu > li > button { height: auto; padding: 14px 4px; width: 100%; justify-content: space-between; border-bottom: 0; }
  .mega { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 12px 8px; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: none; }
  .has-mega.is-open .mega { display: block; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mega-foot { display: none; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .side-box.toc { display: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .section { padding: 64px 0; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .topbar-note { display: none; }
  .partner-strip .wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar { display: none; }
  .brand img { width: 50px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 11.5px; }
  .g2, .g3, .g4, .cards, .checklist, .glance { grid-template-columns: minmax(0, 1fr); }
  .glance div:nth-child(odd) { border-right: 0; }
  .glance div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .process { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .hero-home .wrap { padding-top: 64px; padding-bottom: 72px; }
  .page-hero .wrap { padding-top: 40px; padding-bottom: 44px; }
  .prose { font-size: 17px; }
  .prose > .lead { font-size: 17.5px; padding: 18px 18px; }
  .figure { padding: 14px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .topbar, .site-header, .sidebar, .cta-band, .site-footer { display: none; }
  .layout { display: block; padding: 0; }
}
.layout-narrow { max-width: 1000px; }
.site-footer strong { color: #fff; }
.section-dark strong { color: #fff; }
@media (max-width: 640px) { .partner-strip img { width: 84px; } .partner-strip p { font-size: 15.5px; } }
