/* ADES theme: base, layout, header, hero. Extracted unchanged from the original ADES design system. */
/* =====================================================================
   ADES design system v2
   Brand: ADES navy + cyan (from the logo) with a standard blue accent.
   ===================================================================== */
:root {
  --navy: #08275C;          /* logo navy: text, dark sections, primary buttons */
  --navy-2: #0E3474;        /* raised navy surface (cards on navy) */
  --blue: #2563EB;          /* standard blue: links, icons, focus, accents (5.2:1 on white) */
  --blue-dark: #1D4ED8;     /* hover */
  --blue-50: #EEF3FE;       /* icon tiles, chips */
  --cyan: #01AADF;          /* logo cyan: small accents, text on navy only */
  --white: #FFFFFF;
  --surface: #F5F8FC;       /* alternate section background (navy-tinted) */
  --line: #DCE3EE;          /* hairlines and card borders (navy-tinted) */
  --muted: #4A5B7A;         /* secondary text (6.8:1 on white) */
  --on-navy-muted: #C9D5EA; /* secondary text on navy (9.7:1) */
  --veil: rgba(8, 39, 92, 0.72);
  --shadow: 0 1px 2px rgba(8, 39, 92, 0.06), 0 4px 16px rgba(8, 39, 92, 0.06);
  --shadow-hover: 0 2px 4px rgba(8, 39, 92, 0.06), 0 18px 40px rgba(8, 39, 92, 0.12);
  --r: 14px;
  --r-sm: 10px;
  --hh: 80px;
  --max: 1400px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}
/* The ADES palette is fixed: identical in light and dark viewer themes. */
:root[data-theme="dark"] { color-scheme: light; }
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 140px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--font); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 16px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.navy :focus-visible, .mobile-menu :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }
/* ===== type ===== */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: 56px; }
h2 { font-size: 38px; letter-spacing: -0.022em; }
h3 { font-size: 21px; letter-spacing: -0.012em; line-height: 1.28; }
h4 { font-size: 17px; letter-spacing: -0.005em; line-height: 1.3; }
.lead { font-size: 20px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.navy .lead { color: var(--on-navy-muted); }
.small { font-size: 15px; }
.xs { font-size: 13px; }
.muted { color: var(--muted); }
.navy .muted { color: var(--on-navy-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; color: var(--blue); }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }
.navy .eyebrow { color: var(--cyan); }
.center .eyebrow, .eyebrow.center { justify-content: center; }
/* ===== layout ===== */
.container { max-width: calc(var(--max) + 48px); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--surface); }
.navy { background: var(--navy); color: var(--white); }
.navy.grid-bg { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; }
.center { text-align: center; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head .lead { margin-top: 16px; margin-bottom: 0; }
.grid { display: grid; gap: 24px; }
.grid > *, .split > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.split-7-5 { grid-template-columns: 7fr 5fr; }
.split-4-8 { grid-template-columns: 5fr 7fr; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin: 24px 0 10px; }
.mt32 { margin-top: 32px; aspect-ratio:unset !important;}
/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; border: 1.5px solid var(--navy); border-radius: var(--r-sm); font-size: 16px; font-weight: 700; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; transition: transform .18s; }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--navy); }
.navy .btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.navy .btn-primary:hover { background: var(--cyan); border-color: var(--cyan); }
.navy .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.navy .btn-secondary:hover { border-color: var(--white); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row, .btn-row.center { justify-content: center; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); text-decoration: none; font-size: 16px; }
.link .ic { width: 18px; height: 18px; transition: transform .18s; }
.link:hover { color: var(--blue-dark); }
.link:hover .ic, a.card:hover .link .ic, button.card:hover .link .ic { transform: translateX(4px); }
.navy .link { color: var(--cyan); }
.text-link { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.navy .text-link { color: var(--cyan); }
/* ===== icons ===== */
.ic { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-blue { color: var(--blue); }
.navy .ic-blue { color: var(--cyan); }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); flex: none; }
.icon-tile .ic { width: 24px; height: 24px; }
.navy .icon-tile { background: rgba(1, 170, 223, .14); color: var(--cyan); }
/* ===== cards ===== */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; text-decoration: none; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; height:100%; }
a.card:hover, button.card:hover, .card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(37, 99, 235, .35); }
.card h3, .card h4 { margin: 0 0 8px; }
.card p { font-size: 15.5px; line-height: 1.6; margin: 0; color: var(--muted); }
.card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.card .card-foot { margin-top: auto; padding-top: 22px; }
.card .card-foot.ruled { border-top: 1px solid var(--line); margin-top: auto; padding-top: 18px; }
.card :is(p, .best, h3):has(+ .card-foot) { margin-bottom: 22px; }
.card .best { margin-top: 16px; }
.section.alt .card { box-shadow: var(--shadow); height:100%; }
.navy .card { background: var(--navy-2); color: var(--white); border-color: rgba(255,255,255,.12); box-shadow: none; }
.navy .card p { color: var(--on-navy-muted); }
.navy a.card:hover { border-color: var(--cyan); box-shadow: none; }
button.card { text-align: left; width: 100%; cursor: pointer; font: inherit; }
.card-media { margin: -28px -28px 24px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; aspect-ratio: 16 / 9; position: relative; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .card-media img, button.card:hover .card-media img { transform: scale(1.04); }
.card-media .ph { border: 0; border-radius: 0; height: 100%; min-height: 0; }
.card-media .media-tag { position: absolute; left: 14px; top: 14px; }
.num { font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.navy .num { color: var(--cyan); }
.card.compact { padding: 22px; }
.card.compact h3 { font-size: 17px; margin: 10px 0 6px; }
.card.compact p { font-size: 14.5px; }
/* ===== tags & badges ===== */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .01em; border: 1px solid var(--line); color: var(--navy); background: var(--white); text-decoration: none; line-height: 1.35; }
a.tag:hover { border-color: var(--blue); color: var(--blue); }
.tag .ic { width: 16px; height: 16px; }
.tag-soft { background: var(--blue-50); border-color: transparent; color: var(--blue-dark); }
.tag-cyan { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.tag-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.navy .tag { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.navy .tag-cyan { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; justify-content: center; min-width: 90px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; line-height: 1.45; }
.b-pass, .b-closed { background: var(--cyan); color: var(--navy); }
.b-fail, .b-critical { background: var(--navy); color: var(--white); }
.b-open, .b-recheck { background: var(--white); color: var(--navy); border-color: var(--blue); }
.b-na { background: var(--white); color: var(--navy); border: 1px dashed var(--navy); }
.b-exception, .b-major { background: var(--blue); color: var(--white); }
.b-minor { background: var(--white); color: var(--navy); border-color: var(--cyan); }
/* ===== info panel ===== */
.info { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--r-sm); padding: 16px 20px; font-size: 15px; line-height: 1.55; background: var(--white); color: var(--navy); }
.info .ic { color: var(--blue); width: 22px; height: 22px; margin-top: 1px; }
.info p { margin: 0; }
.section.alt .info { background: var(--white); }
.navy .info { background: var(--navy-2); color: var(--white); border-color: rgba(255,255,255,.12); border-left-color: var(--cyan); }
.navy .info .ic { color: var(--cyan); }
.info.narrow { max-width: 880px; margin-left: auto; margin-right: auto; }
.info.alert { border-left-color: var(--navy); }
.sample-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
/* ===== placeholders & media ===== */
.ph { display: grid; place-items: center; text-align: center; border: 1.5px dashed #A9B9D3; border-radius: var(--r); background: var(--surface); color: var(--muted); padding: 20px; min-height: 160px; font-size: 14px; }
.ph strong { display: block; font-size: 11px; letter-spacing: .12em; margin-bottom: 6px; color: var(--blue); }
.navy .ph { background: var(--navy-2); border-color: rgba(255,255,255,.3); color: var(--on-navy-muted); }
.navy .ph strong { color: var(--cyan); }
.ph-tall { min-height: 360px; }
.ph-fill { height: 100%; min-height: 0; }
.media { border-radius: var(--r); overflow: hidden; position: relative; background: var(--surface); box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.navy .media { box-shadow: none; outline: 1px solid rgba(255,255,255,.12); }
.illus { font-size: 13px; color: var(--muted); margin-top: 10px; }
.navy .illus { color: var(--on-navy-muted); }
/* ===== header ===== */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 999; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(8,39,92,.06); --hh: 66px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--hh); transition: height .2s; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; transition: height .2s; }
.site-header.scrolled .brand img { height: 36px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { position: relative; padding: 9px 13px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy); transition: color .15s, background .15s; }
.main-nav a:hover { background: var(--surface); }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px; background: var(--blue); border-radius: 2px; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.menu-btn { display: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); width: 46px; height: 46px; place-items: center; cursor: pointer; color: var(--navy); }
.back-link { font-weight: 700; color: var(--navy); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.back-link:hover { background: var(--surface); }
.mobile-menu { position: fixed; inset: 0; z-index: 100; background: var(--navy); color: var(--white); display: none; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 18px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px); overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .mm-top img { height: 38px; width: auto; }
.mobile-menu .mm-close { background: none; border: 1px solid rgba(255,255,255,.4); color: var(--white); border-radius: var(--r-sm); width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; }
.mobile-menu nav { margin: 32px 0; display: flex; flex-direction: column; }
.mobile-menu nav a { color: var(--white); text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu nav a.active { color: var(--cyan); }
.mobile-menu .mm-cta { margin-top: auto; display: grid; gap: 12px; }
/* ===== breadcrumb ===== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 24px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { opacity: .6; }
.crumbs span[aria-current] { color: var(--navy); font-weight: 600; }
.navy .crumbs, .navy .crumbs a { color: var(--on-navy-muted); }
.navy .crumbs span[aria-current] { color: var(--white); }
/* ===== hero ===== */
.hero { padding: 80px 0; background: linear-gradient(180deg, var(--white) 0%, var(--white) 55%, var(--surface) 100%); overflow: hidden; }
.hero h1 { margin-bottom: 24px; font-size: clamp(36px, 3.8vw, 54px); }
.hero .split { grid-template-columns: 1.15fr 1fr; }
.hero .lead { max-width: 560px; margin-bottom: 36px; }
.hero-tags { margin-top: 32px; }
.hero-visual { position: relative; }
.hero-visual .media { aspect-ratio: 1 / 1.05; }
.hero-card { position: absolute; left: -36px; bottom: 32px; width: min(340px, 86%); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-hover); }
.hero-card .hc-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.hero-card .hc-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.hero-card .hc-steps span { height: 6px; border-radius: 4px; background: var(--blue); }
.hero-card .hc-steps span.hl { background: var(--cyan); }
.hero-card .hc-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.hero-card .hc-qc { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.hero-card .hc-qc .ic { color: var(--cyan); width: 20px; height: 20px; }
.page-hero { padding: 80px 0; background: linear-gradient(180deg, var(--white), var(--surface)); }
.page-hero h1 { max-width: 880px; margin-bottom: 20px; }
.page-hero .lead { max-width: 680px; margin-bottom: 20px; }
.page-hero .btn-row { margin-top: 36px; }
.page-hero .media {  }
.page-hero.navy { background: var(--navy); }
/* ===== section menu ===== */
.secmenu { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hh-live, 80px)); z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.secmenu .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.secmenu .container::-webkit-scrollbar { display: none; }
.secmenu button { background: none; border: 0; padding: 16px 12px 14px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.secmenu button:hover { color: var(--navy); }
.secmenu button.active { border-bottom-color: var(--blue); color: var(--navy); font-weight: 700; }
@media(max-width:1024px){.section{padding:60px 0;} .page-hero{padding:60px 0}}
@media(max-width:767px){.page-hero{padding:50px 0;}}





.hero-card[data-href] {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card[data-href]:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 39, 87, 0.15);
}

.hero-card[data-href]:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
}