/* PondLock shared design system — extracted from engineering-resources.html 2026-09-05 */
:root {
    --deep-navy: #081F32;
    --slate-blue: #4A6373;
    --warm-bronze: #e39144;
    --dark-copper: #c47a30;
    --light-silver: #DCE3E7;
    --dark-steel: #2B3D4D;
    --muted-blue: #778791;
    --mid-blue: #A0ADB6;
    --pale-steel: #C3CCD2;
    --bright-cyan: #0481C1;
    --ocean-blue: #07487E;
    --white: #FFFFFF;
    --off-white: #F4F6F8;
    --text-primary: #081F32;
    --text-secondary: #4A6373;
    --text-light: #5F6E78;
    --border-color: #DCE3E7;
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
/* anchor-offset-fix */
html { scroll-padding-top:190px; }
@media (min-width:768px){ html { scroll-padding-top:126px; } }

body { font-family:var(--font-body); color:var(--text-primary); background:var(--white); line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }

.container { max-width:1200px; margin:0 auto; padding:0 24px; }
.container--narrow { max-width:860px; margin:0 auto; padding:0 24px; }

.section-label {
    font-family:var(--font-heading); font-weight:700; font-size:0.78rem;
    letter-spacing:0.2em; text-transform:uppercase; color:#9b5f21; margin-bottom:8px;
    display:flex; align-items:center; gap:12px;
}
.section-label::before { content:''; display:block; width:36px; height:2px; background:var(--warm-bronze); }
/* Dark-section override: #9b5f21 is tuned for light panels (4.78:1 on off-white)
   but only reaches 2.16:1 on --dark-steel and 3.24:1 on --deep-navy.
   #F0C79A measures 7.11:1 on --dark-steel and 10.65:1 on --deep-navy. */
.why .section-label,
.cta .section-label,
.content-section--dark .section-label,
.footer .section-label { color:#F0C79A; }
.section-title {
    font-family:var(--font-heading); font-weight:800; font-size:clamp(1.7rem,3.2vw,2.4rem);
    line-height:1.1; color:var(--deep-navy); margin-bottom:10px;
}

/* ---- Navigation ---- */
.nav {
    position:fixed; top:0; left:0; right:0; z-index:1000;
    background:rgba(8,31,50,0.95); backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,0.06);
}
.nav__inner { display:flex; align-items:center; justify-content:space-between; height:56px; max-width:1400px; margin:0 auto; padding:0 24px; }
.nav__logo { display:flex; align-items:center; gap:10px; }
.nav__logo img { height:38px; width:auto; }
.nav__logo-text { font-family:var(--font-heading); font-weight:800; font-size:1.1rem; color:var(--white); letter-spacing:0.05em; }
.nav__logo-text span { color:var(--warm-bronze); }
.nav__links { display:flex; align-items:center; gap:0; list-style:none; }
.nav__links a {
    font-family:var(--font-heading); font-weight:600; font-size:0.78rem;
    letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.7);
    padding:8px 14px; transition:color 0.3s ease;
}
.nav__links a:hover { color:var(--warm-bronze); }
.nav__links a.active { color:var(--warm-bronze); }
.nav__cta {
    color:var(--deep-navy)!important; background:var(--warm-bronze);
    padding:8px 18px!important; transition:all 0.3s ease!important;
}
.nav__cta:hover { background:var(--dark-copper)!important; color:var(--deep-navy)!important; }
.nav__mobile-toggle { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:8px; border:none; background:transparent; }
.nav__mobile-toggle span { display:block; width:24px; height:2px; background:var(--white); }

/* ---- Page Hero ---- */
.page-hero { background:var(--deep-navy); padding:56px 0 0; position:relative; overflow:hidden; }
.page-hero__bg {
    position:absolute; inset:0; opacity:0.12;
    background: radial-gradient(ellipse at 20% 80%, var(--ocean-blue) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, var(--dark-copper) 0%, transparent 40%);
}
.page-hero__pattern { position:absolute; inset:0; opacity:0.04; background-image:repeating-linear-gradient(-45deg,transparent,transparent 40px,rgba(255,255,255,1) 40px,rgba(255,255,255,1) 41px); }
.page-hero__content { position:relative; z-index:2; padding:52px 0 44px; }
.page-hero__breadcrumb { font-size:0.82rem; color:var(--mid-blue); margin-bottom:16px; }
.page-hero__breadcrumb a { color:var(--warm-bronze); transition:color 0.3s; }
.page-hero__breadcrumb a:hover { color:var(--white); }
.page-hero__title { font-family:var(--font-heading); font-weight:800; font-size:clamp(2rem,4vw,3rem); line-height:1; color:var(--white); margin-bottom:14px; }
.page-hero__title em { font-style:normal; color:var(--warm-bronze); }
.page-hero__desc { font-size:1rem; line-height:1.7; color:var(--mid-blue); max-width:640px; }

/* ---- TOC Bar ---- */
.toc-bar { background:var(--off-white); border-bottom:1px solid var(--border-color); padding:14px 0; position:sticky; top:56px; z-index:999; }
.toc-bar__inner { display:flex; gap:6px; flex-wrap:wrap; }
.toc-bar__link {
    font-family:var(--font-heading); font-weight:600; font-size:0.72rem;
    letter-spacing:0.08em; text-transform:uppercase; color:var(--text-secondary);
    padding:6px 14px; border:1px solid var(--border-color); background:var(--white);
    transition:all 0.3s ease;
}
.toc-bar__link:hover, .toc-bar__link.active { border-color:#8f5518; color:#8f5518; background:rgba(227,145,68,0.04); }

/* ---- Content Sections ---- */
.content-section { padding:48px 0; border-bottom:1px solid var(--border-color); }
.content-section:last-of-type { border-bottom:none; }
.content-section--alt { background:var(--off-white); }
.content-section--dark { background:var(--deep-navy); border-bottom-color:rgba(255,255,255,0.06); }

/* Dark sections invert every text colour that is otherwise navy or slate.
   Without these, .prose p / .prose strong / .section-title inherit their
   light-background colours and render illegibly (or invisibly) on navy. */
.content-section--dark .section-title,
.content-section--dark h2,
.content-section--dark .prose h3,
.content-section--dark .prose h4 { color:var(--white); }
.content-section--dark .prose p,
.content-section--dark .prose li,
.content-section--dark p,
.content-section--dark li { color:rgba(255,255,255,0.78); }
.content-section--dark .prose strong,
.content-section--dark strong { color:var(--white); }
.content-section--dark .prose a { color:var(--warm-bronze); }
.content-section--dark .prose a:hover { color:#f5b877; }
.content-section--dark .spec-table { background:rgba(255,255,255,0.03); }
.content-section--dark .spec-table th { color:var(--white); border-bottom-color:rgba(255,255,255,0.18); }
.content-section--dark .spec-table td { color:rgba(255,255,255,0.78); border-bottom-color:rgba(255,255,255,0.08); }
.content-section--dark .spec-table caption { color:rgba(255,255,255,0.6); }
.content-section--dark .callout { background:rgba(255,255,255,0.05); }
.content-section--dark .callout p { color:rgba(255,255,255,0.82); }
.content-section--dark .callout strong { color:var(--white); }
.content-section--dark .src { color:rgba(255,255,255,0.55); }

.prose { max-width:860px; }
.prose p { font-size:0.94rem; color:var(--text-secondary); line-height:1.8; margin-bottom:16px; }
.prose h3 {
    font-family:var(--font-heading); font-weight:700; font-size:1.25rem;
    color:var(--deep-navy); margin:32px 0 10px; line-height:1.2;
}
.prose h4 {
    font-family:var(--font-heading); font-weight:700; font-size:1.05rem;
    color:var(--deep-navy); margin:24px 0 8px; line-height:1.2;
}
.prose strong { color:var(--deep-navy); font-weight:600; }
.prose a { color:var(--ocean-blue); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.prose a:hover { color:#8f5518; }
.prose ul, .prose ol { margin:0 0 16px 20px; }
.prose li { font-size:0.94rem; color:var(--text-secondary); line-height:1.8; margin-bottom:4px; }

.callout {
    background:rgba(227,145,68,0.06); border-left:4px solid var(--warm-bronze);
    padding:18px 22px; margin:24px 0;
}
.callout p { margin-bottom:0; font-size:0.9rem; }
.callout strong { color:var(--deep-navy); }

.callout--warning {
    background:rgba(192,57,43,0.04); border-left-color:#c0392b;
}
.callout--warning strong { color:#c0392b; }

.callout--success {
    background:rgba(39,174,96,0.04); border-left-color:#27ae60;
}

/* ---- Spec Table ---- */
.spec-table { width:100%; border-collapse:collapse; margin:20px 0; font-size:0.88rem; }
.spec-table th {
    font-family:var(--font-heading); font-weight:700; font-size:0.72rem;
    letter-spacing:0.12em; text-transform:uppercase; color:var(--white);
    background:var(--deep-navy); padding:10px 14px; text-align:left;
}
.spec-table td { padding:10px 14px; border-bottom:1px solid var(--border-color); color:var(--text-secondary); }
.spec-table tr:nth-child(even) td { background:var(--off-white); }
.spec-table .pass { color:#197a3d; font-weight:600; }
.spec-table .fail { color:#c0392b; font-weight:600; }

/* ---- Download Cards ---- */
.downloads { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:14px; margin:28px 0; }
.download-card {
    border:1px solid var(--border-color); padding:18px; background:var(--white);
    display:flex; align-items:center; gap:14px; transition:all 0.3s ease;
}
.download-card:hover { border-color:var(--warm-bronze); transform:translateY(-2px); box-shadow:0 6px 18px rgba(8,31,50,0.08); }
.download-card__icon {
    flex-shrink:0; width:40px; height:40px;
    background:linear-gradient(135deg, var(--warm-bronze), var(--dark-copper));
    display:flex; align-items:center; justify-content:center;
}
.download-card__icon svg { width:18px; height:18px; stroke:var(--white); fill:none; stroke-width:2; }
.download-card__text { flex:1; }
.download-card__title { font-family:var(--font-heading); font-weight:700; font-size:0.88rem; color:var(--deep-navy); margin-bottom:2px; }
.download-card__meta { font-size:0.75rem; color:var(--text-light); }

/* ---- Comparison Visual ---- */
.comparison-visual {
    display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:28px 0;
}
.comparison-visual__col {
    padding:22px; border:2px solid var(--border-color);
}
.comparison-visual__col--bad {
    border-color:rgba(192,57,43,0.3); background:rgba(192,57,43,0.02);
}
.comparison-visual__col--good {
    border-color:rgba(39,174,96,0.3); background:rgba(39,174,96,0.02);
}
.comparison-visual__label {
    font-family:var(--font-heading); font-weight:700; font-size:0.68rem;
    letter-spacing:0.15em; text-transform:uppercase; margin-bottom:8px;
}
.comparison-visual__col--bad .comparison-visual__label { color:#c0392b; }
.comparison-visual__col--good .comparison-visual__label { color:#197a3d; }
.comparison-visual__title { font-family:var(--font-heading); font-weight:700; font-size:1.1rem; color:var(--deep-navy); margin-bottom:6px; }
.comparison-visual__text { font-size:0.86rem; color:var(--text-secondary); line-height:1.7; }

/* ---- CTA Banner ---- */
.cta-banner {
    background:var(--dark-steel); padding:36px; margin:36px 0;
    display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-banner__text { flex:1; min-width:280px; }
.cta-banner__title { font-family:var(--font-heading); font-weight:800; font-size:1.3rem; color:var(--white); margin-bottom:4px; }
.cta-banner__desc { font-size:0.88rem; color:var(--mid-blue); }
.btn {
    display:inline-flex; align-items:center; gap:10px; font-family:var(--font-heading);
    font-weight:700; font-size:0.85rem; letter-spacing:0.08em; text-transform:uppercase;
    padding:12px 24px; border:none; cursor:pointer; transition:all 0.3s ease;
}
.btn--primary { background:var(--warm-bronze); color:var(--deep-navy); }
.btn--primary:hover { background:var(--dark-copper); transform:translateY(-2px); box-shadow:0 8px 24px rgba(227,145,68,0.3); }

/* ---- Footer ---- */
.footer { background:var(--deep-navy); padding:36px 0 16px; border-top:1px solid rgba(255,255,255,0.06); }
.footer__grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; margin-bottom:28px; }
.footer__brand p { font-size:0.82rem; color:var(--mid-blue); line-height:1.7; margin-top:10px; max-width:280px; }
.footer__heading { font-family:var(--font-heading); font-weight:700; font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase; color:var(--warm-bronze); margin-bottom:12px; }
.footer__links { list-style:none; display:flex; flex-direction:column; gap:6px; }
.footer__links a { font-size:0.82rem; color:var(--mid-blue); transition:color 0.3s ease; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; text-decoration-color:rgba(160,173,182,0.6); }
.footer__links a:hover { color:var(--white); text-decoration-color:rgba(255,255,255,0.5); }
.footer__bottom { border-top:1px solid rgba(255,255,255,0.06); padding-top:14px; display:flex; justify-content:space-between; align-items:center; }
.footer__copyright { font-size:0.75rem; color:var(--mid-blue); }
.footer__copyright a { color:var(--warm-bronze); }
.footer__legal { display:flex; gap:16px; }
.footer__legal a { font-size:0.75rem; color:var(--mid-blue); transition:color 0.3s ease; }
.footer__legal a:hover { color:var(--white); }

/* ---- Animations ---- */
.fade-in { opacity:0; transform:translateY(14px); transition:opacity 0.5s ease, transform 0.5s ease; }
/* Safety net: .fade-in starts at opacity:0 and relies on JS adding .visible.
   If that JS ever fails to run, every fade-in block stays invisible forever.
   This keyframe forces a reveal at 4s with no JS involved. The observer
   normally reveals content long before then, so the animation is invisible
   in the healthy case and only acts as a floor. */
@keyframes fadeInSafetyReveal { to { opacity:1; transform:none; } }
.fade-in { animation:fadeInSafetyReveal 0.4s ease 4s forwards; }
@media (prefers-reduced-motion:reduce) {
    .fade-in { opacity:1; transform:none; transition:none; animation:none; }
}
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ---- Responsive ---- */
@media (max-width:1024px) {
    .footer__grid { grid-template-columns:1fr 1fr; gap:20px; }
    .comparison-visual { grid-template-columns:1fr; }
}
@media (max-width:768px) {
    .nav__links { display:none; }
    .nav__mobile-toggle { display:flex; }
    .toc-bar__inner { gap:4px; }
    .toc-bar__link { font-size:0.66rem; padding:5px 10px; }
    .downloads { grid-template-columns:1fr; }
    .cta-banner { flex-direction:column; text-align:center; }
    .footer__grid { grid-template-columns:1fr; gap:16px; }
    .footer__bottom { flex-direction:column; gap:8px; text-align:center; }
}
    
.spec-table caption {
    caption-side:top; text-align:left; font-family:var(--font-body); font-size:0.82rem;
    font-weight:500; line-height:1.55; color:var(--text-light);
    padding:0 0 10px; letter-spacing:0.01em;
}
    

/* Wide data tables get their own horizontal scroll box on narrow screens rather
   than compressing text columns to one word per line. */
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:0 0 8px; }
.table-scroll .spec-table { margin-bottom:0; }
@media (max-width:700px) {
    .table-scroll .spec-table { min-width:620px; }
    .table-scroll { border:1px solid var(--border-color); border-radius:2px; }
    .table-scroll::after { content:''; }
}
