/* Shared stylesheet for /guides/ — derived from the gift advertorial design
   system (Fraunces + Inter, warm cream palette) but styled as genuine
   editorial guides: no ad tag, real h2 headings, quick-answer box, FAQ
   accordions, related-guides cards. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-top: #faf8f4; --bg-bottom: #f3ece1;
    --ink: #2b2622; --secondary: #5f5950; --taupe: #8a7d6c;
    --warm-brown: #7a4a1f; --accent-gold: #f5c469; --amber: #d19433;
    --green: #2e7d4f; --card-border: rgba(214, 199, 178, 0.6);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6;
    -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
a { color: var(--warm-brown); }
img { max-width: 100%; }

.masthead { border-bottom: 1px solid var(--card-border); background: rgba(250,248,244,0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.masthead-inner { max-width: 680px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 9px; }
.masthead img { width: 28px; height: 28px; border-radius: 8px; }
.masthead b { font-weight: 800; font-size: 16px; letter-spacing: -0.3px; }
.masthead b a { color: var(--ink); text-decoration: none; }
.masthead span { font-size: 12px; color: var(--taupe); font-weight: 600; margin-left: auto; }
.masthead span a { color: var(--taupe); text-decoration: none; }

article { max-width: 660px; margin: 0 auto; padding: 28px 22px 8px; }
.crumbs { font-size: 12.5px; color: var(--taupe); margin-bottom: 14px; }
.crumbs a { color: var(--taupe); text-decoration: none; }
.crumbs a:hover { color: var(--warm-brown); }
h1 { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.16; letter-spacing: -0.5px; margin: 0 0 12px; }
.dek { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 19px; line-height: 1.45; color: var(--secondary); margin-bottom: 14px; }
.byline { font-size: 13px; color: var(--taupe); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--card-border); margin-bottom: 22px; }
.byline b { color: var(--ink); font-weight: 700; }

/* Direct answer up top — written for the person, useful to snippets too. */
.quick { background: linear-gradient(135deg, #fdf3dd, #fae7c2); border: 1px solid rgba(209,148,51,.4); border-radius: 16px; padding: 18px 20px; margin: 0 0 24px; }
.quick .ql { font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--warm-brown); margin-bottom: 7px; }
.quick p { font-size: 17px; line-height: 1.55; margin: 0; color: #3a2a0c; }

h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -0.3px; margin: 30px 0 12px; }
h3 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
p { font-size: 17.5px; margin-bottom: 16px; }
ul.plain, ol.plain { margin: 0 0 18px 22px; }
ul.plain li, ol.plain li { font-size: 17px; line-height: 1.55; margin-bottom: 9px; }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 52px; background: #fff; border: 1px solid var(--card-border); border-radius: 14px; font-size: 16.5px; line-height: 1.5; box-shadow: 0 6px 18px rgba(80,50,20,.05); }
.steps li::before { content: counter(step); position: absolute; left: 15px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: #fdf3dd; border: 1px solid rgba(209,148,51,.4); color: var(--warm-brown); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.steps li b { font-weight: 700; }

/* Option cards (comparison + alternatives) */
.opt { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; padding: 17px 19px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(80,50,20,.05); }
.opt h3 { margin: 0 0 6px; font-size: 17.5px; }
.opt .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.opt .tags span { background: #f4efe6; border-radius: 100px; padding: 4px 11px; font-size: 12px; font-weight: 700; color: var(--secondary); }
.opt p { font-size: 15.5px; margin-bottom: 6px; }
.opt .for { font-size: 14.5px; color: var(--secondary); }
.opt .for b { color: var(--ink); }
.opt.ours { border: 1.5px solid rgba(209,148,51,.55); background: linear-gradient(180deg, #fffdf8, #fdf6e8); }
.disclose { font-size: 13.5px; color: var(--taupe); background: #fff; border: 1px dashed var(--card-border); border-radius: 12px; padding: 12px 15px; margin: 0 0 18px; }

/* FAQ accordions — markup must stay <details><summary>…</summary><p>…</p>
   so scripts/seo-check.py can verify FAQPage schema parity. */
.faq details { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { font-size: 16.5px; font-weight: 700; padding: 15px 0; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 21px; color: var(--amber); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: 15.5px; color: var(--secondary); padding-bottom: 16px; margin: 0; }

.cta-box { text-align: center; background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 24px 20px; margin: 30px 0 10px; box-shadow: 0 10px 30px rgba(80,50,20,.07); }
.cta-box h2 { margin: 0 0 8px; font-size: 22px; }
.cta-box p { font-size: 15.5px; color: var(--secondary); margin-bottom: 16px; }
.cta { display: inline-block; width: 100%; max-width: 360px; background: linear-gradient(135deg, var(--accent-gold), var(--amber)); color: #3a2a0c; font-size: 17px; font-weight: 800; border-radius: 100px; padding: 16px 28px; text-decoration: none; box-shadow: 0 12px 26px rgba(209,148,51,0.32); transition: transform 0.12s ease; }
.cta:active { transform: scale(0.985); }
.cta-sub { font-size: 13px; color: var(--taupe); margin-top: 10px; }
.cta-alt { font-size: 14.5px; margin-top: 12px; }

.related { margin: 30px 0 6px; }
.related h2 { font-size: 20px; margin-top: 0; }
.related a { display: block; background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 14px 17px; margin-bottom: 9px; font-size: 15.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.related a span { display: block; font-size: 13.5px; font-weight: 500; color: var(--taupe); margin-top: 3px; }
.related a:hover { border-color: rgba(209,148,51,.5); }

.disclaimer { font-size: 12px; color: var(--taupe); line-height: 1.55; background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 14px 16px; margin-top: 26px; }
.disclaimer b { color: var(--secondary); }
footer { text-align: center; padding: 28px 22px calc(28px + env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--taupe); }
footer a { text-decoration: none; }

/* Hub page cards */
.hub-list { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 24px; }
.hub-list a { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; padding: 18px 20px; text-decoration: none; box-shadow: 0 6px 18px rgba(80,50,20,.05); }
.hub-list a b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.3; margin-bottom: 5px; }
.hub-list a span { font-size: 14.5px; color: var(--secondary); }
.hub-list a:hover { border-color: rgba(209,148,51,.5); }

@media (max-width: 420px) { h1 { font-size: 28px; } .dek { font-size: 17.5px; } p { font-size: 16.5px; } h2 { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
