/* Updates section + homepage FAQ. Extends style.css, sections.css and locations.css. Hand-authored. */

/* Preview / draft markers */
.preview-banner{background:#ffe9a8;color:#3d2c00;text-align:center;font-size:.8125rem;font-weight:700;padding:8px 16px;letter-spacing:.3px}
.draft-banner{display:inline-flex;gap:10px;align-items:center;background:#ffe9a8;color:#3d2c00;border-radius:6px;padding:8px 14px;font-size:.875rem;margin-bottom:22px}
.draft-flag{display:inline-block;background:#ffe9a8;color:#3d2c00;border-radius:4px;padding:2px 8px;font-size:.6875rem;font-weight:700;letter-spacing:.8px;text-transform:uppercase;margin-left:10px;vertical-align:middle}
.todo-note{background:#fff7dc;border:1px dashed #b88a00;color:#3d2c00;border-radius:8px;padding:14px 18px;margin:22px 0;font-size:.875rem;line-height:1.6}

/* Listing hero */
.updates-hero{background:var(--navy);color:white;padding:64px 0 56px;position:relative;overflow:hidden}
.updates-hero:after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,#006ba833,transparent 70%);pointer-events:none}
.updates-hero h1{font-size:clamp(2.6rem,5vw,4.2rem);line-height:1.08;letter-spacing:-2.4px;font-weight:750}
.updates-hero h1 em{font-style:normal;color:var(--green)}
.updates-intro{margin-top:22px;font-size:1.125rem;color:#e5edf3;max-width:640px}
.updates-intro strong{color:white}
.updates-list-section{background:var(--pale);padding-top:48px}

/* Filters and tags */
.update-filters ul{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.filter-pill{display:inline-block;border:1px solid var(--line);background:white;border-radius:999px;padding:9px 18px;font-size:.875rem;font-weight:600;color:var(--ink)}
.filter-pill:hover{border-color:var(--blue);color:var(--blue)}
.filter-pill[aria-current="page"]{background:var(--navy);border-color:var(--navy);color:white}
.tag-cloud{margin-top:22px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.tag-cloud-title{font-family:'DM Sans',Arial,sans-serif;font-size:.75rem;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.tag-list{display:flex;flex-wrap:wrap;gap:8px}
.tag-chip{display:inline-block;background:#e9f4fb;color:#00527f;border-radius:4px;padding:4px 10px;font-size:.8125rem;font-weight:600}
.tag-chip:hover{background:#d4eaf7;text-decoration:underline;text-underline-offset:3px}
.tag-chip[aria-current="page"]{background:var(--blue);color:white}

/* Cards */
.update-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:22px;list-style:none;margin:36px 0 0;padding:0}
.update-card article{height:100%;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:14px;transition:border-color .2s,transform .2s}
.update-card article:hover{border-color:#9fc3d8;transform:translateY(-2px)}
.update-card h2,.update-card h3{font-size:1.25rem;letter-spacing:-.5px;line-height:1.3}
.update-card h2 a:hover,.update-card h3 a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
.update-card p{color:var(--muted);font-size:.9375rem;flex:1}
.update-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:.8125rem;color:var(--muted)}
.update-meta.light{color:#c4d6e1}
.update-meta .draft-flag{margin-left:0}
.type-badge{display:inline-block;border-radius:4px;padding:3px 9px;font-size:.6875rem;font-weight:700;letter-spacing:.9px;text-transform:uppercase}
.type-fix{background:#e3f6d0;color:#285a00}
.type-faq{background:#e9f4fb;color:#00527f}
.type-best-practice{background:#ece8fb;color:#45338f}
.type-security-alert{background:#fde5e3;color:#9b1c13}
.empty-note{margin-top:36px;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:28px;color:var(--muted)}
.empty-note a,.inline-link{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.feed-link{margin-top:30px}

/* Post */
.post-header{background:var(--navy);color:white;padding:44px 0 50px}
.post-container{width:min(820px,calc(100% - 96px));margin:auto}
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 22px;padding:0;font-size:.8125rem;color:#c4d6e1}
.breadcrumbs li+li:before{content:"/";margin-right:6px;color:#7f9bb0}
.breadcrumbs a{color:#e5edf3;text-decoration:underline;text-underline-offset:3px}
.post-header h1{font-size:clamp(2.1rem,4.2vw,3.2rem);line-height:1.12;letter-spacing:-1.6px;margin-top:16px}
.post-dek{margin-top:18px;font-size:1.125rem;color:#e5edf3}
.post-content{padding:44px 0 70px}
.post-hero{margin:0 0 34px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--pale)}
.post-hero img{width:100%;height:auto}
.fix-toc{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;font-size:.875rem;padding:14px 18px;background:var(--pale);border-radius:8px;margin-bottom:30px}
.fix-toc span{font-weight:700}
.fix-toc a{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.post-body{font-size:1.0625rem;line-height:1.75}
.post-body p,.post-body ul,.post-body ol{margin:0 0 18px}
.post-body h2{font-size:1.6rem;letter-spacing:-.6px;margin:36px 0 14px}
.post-body h3{font-size:1.2rem;margin:26px 0 10px}
.post-body a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.post-body li{margin:6px 0}
.post-body img{border:1px solid var(--line);border-radius:8px;margin:12px 0;height:auto}
.post-body code{background:var(--pale);border-radius:4px;padding:1px 6px;font-size:.9em}
.post-body blockquote{margin:0 0 18px;border-left:4px solid var(--blue);padding:4px 0 4px 18px;color:var(--muted)}
.fix-section{border-top:1px solid var(--line);padding-top:8px;margin-top:26px}
.fix-section h2{display:flex;align-items:center;gap:12px;margin-top:22px}
.fix-icon{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;border-radius:8px;font-size:1rem;font-weight:800;background:#e9f4fb;color:var(--blue)}
.fix-symptoms .fix-icon{background:#fde5e3;color:#9b1c13}
.fix-fix .fix-icon{background:#e3f6d0;color:#285a00}
.fix-prevention .fix-icon{background:#ece8fb;color:#45338f}
.fix-fix ol{list-style:none;counter-reset:step;padding:0}
.fix-fix ol>li{counter-increment:step;position:relative;padding:14px 16px 14px 60px;margin:10px 0;background:var(--pale);border-radius:8px}
.fix-fix ol>li:before{content:counter(step);position:absolute;left:16px;top:13px;width:30px;height:30px;border-radius:50%;background:var(--navy);color:white;display:grid;place-items:center;font-size:.875rem;font-weight:700}
.help-cta{margin-top:42px;background:var(--navy);color:white;border-radius:var(--radius);padding:32px 34px}
.help-cta h2{font-size:1.75rem;letter-spacing:-.8px}
.help-cta p{margin-top:10px;color:#c4d6e1}
.help-cta-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:22px}
.help-cta .button{gap:14px}
.help-cta .button:not(.button-green){background:white;color:var(--navy)}
.help-cta .button:not(.button-green):hover{background:#e5edf3}
.post-footer{margin-top:32px;padding-top:22px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center}
.related-section{background:var(--pale)}
.related-section .update-grid{margin-top:26px}

/* Homepage FAQ (injected from content/faq.yml) */
.home-faq{background:white}
.home-faq-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:70px;align-items:start}
.home-faq .faq-list{margin-top:0;max-width:none}
.faq-details{padding:0}
.faq-details summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 0;cursor:pointer;list-style:none;font-family:Manrope,Arial,sans-serif;font-size:1.0625rem;font-weight:700;letter-spacing:-.3px;line-height:1.4}
.faq-details summary::-webkit-details-marker{display:none}
.faq-details summary:after{content:"+";flex:none;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;font-size:1.2rem;font-weight:500;color:var(--blue);margin-left:auto}
.faq-details[open] summary:after{content:"−"}
.faq-details summary:hover .faq-q{color:var(--blue)}
.faq-details summary .draft-flag{flex:none}
.faq-a{padding:0 48px 22px 0}
.faq-a p{font-size:.9375rem;color:var(--muted);line-height:1.65}
.faq-a p+p{margin-top:10px}

@media(max-width:800px){
  .post-container{width:calc(100% - 56px)}
  .home-faq-layout{grid-template-columns:1fr;gap:30px}
  .update-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .post-container{width:calc(100% - 40px)}
  .updates-hero{padding:46px 0 40px}
  .updates-hero h1{letter-spacing:-1.5px}
  .post-header h1{letter-spacing:-1px}
  .help-cta{padding:26px 22px}
  .help-cta .button{width:100%}
  .fix-fix ol>li{padding-left:56px}
  .faq-a{padding-right:0}
}
@media(prefers-reduced-motion:reduce){.update-card article{transition:none}}

/* In-page navs (breadcrumbs, filters, on-this-page) must not inherit the site header's global nav rules. */
.updates-main nav{display:block;position:static;padding:0;background:none;box-shadow:none;gap:0;font-size:inherit;font-weight:inherit}
.updates-main nav.fix-toc{display:flex;padding:14px 18px;background:var(--pale);font-size:.875rem}

/* Homepage FAQ tiers */
.faq-group+.faq-group{margin-top:34px}
.faq-group-title{font-family:'DM Sans',Arial,sans-serif;font-size:.75rem;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--blue);margin-bottom:6px}
.faq-more{margin-top:18px}
.help-cta-call{font-size:.9375rem}
.help-cta-call a{color:white;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.faq-a p a:not(.text-link){color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:3px}
/* Green "Need a hand" section on Updates pages: text first, then Calendly, then call */
.updates-main .contact-actions{align-items:stretch}
.updates-main .contact-actions .button{margin-bottom:0}
.button-outline{background:transparent;color:var(--navy);border-color:var(--navy)}
.button-outline:hover{background:#ffffff66}
.contact-call{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.updates-main .contact-actions>span{text-align:center}
@media(max-width:800px){.updates-main .contact-actions>span{text-align:left}}
