/* Long-form content below tools and on guide pages */
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.content { max-width: 760px; margin: 56px auto 0; }
.content section { margin: 0 0 48px; }
.content h2 { margin-top: 0; }
.content h3 { margin: 1.4em 0 .4em; }
.content p, .content li { max-width: 68ch; }
.content code { font-size: .92em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.answer-box { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--magenta); border-radius: 14px; padding: 20px 22px; }
.answer-box p { margin: 0; }
.steps-list { padding-left: 1.4em; }
.steps-list li { margin-bottom: 12px; }
.steps-list h3 { margin-top: .2em; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.content table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .97rem; }
.content th, .content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.content th { font-family: var(--head); background: var(--bg); }
.content tr:last-child td { border-bottom: 0; }
.idea-links { padding-left: 1.2em; }
.idea-links li { margin-bottom: 6px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 16px; min-height: 48px; list-style-position: inside; }
.faq .faq-answer { padding: 0 16px 6px; }

/* Content pages */
.page-main { padding-top: 24px; }
.content-page { margin-top: 12px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.byline { color: var(--muted); font-size: .95rem; margin-top: -6px; }
.key-facts { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.key-facts h2 { font-size: 1.2rem; margin-bottom: .4em; }
.key-facts ul { margin: 0; padding-left: 1.2em; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; }
.toc h2 { font-size: 1.05rem; margin: 0 0 .3em; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 260px; }
.patterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin: 18px 0; }
.pattern { margin: 0; text-align: center; font-size: .9rem; }
.pgrid { display: grid; gap: 3px; width: 120px; margin: 0 auto 8px; padding: 6px; background: #fff; border: 2px solid #1D1B3A; border-radius: 8px; }
.pgrid span { aspect-ratio: 1; border-radius: 3px; background: #E9EAF4; }
.pgrid span.on { background: #D6246E; }
.pgrid span.free { outline: 2px solid #FFC53D; outline-offset: -2px; }
.pgrid span.free:not(.on) { background: #FFF1C9; }
.callout { background: var(--surface); border-left: 5px solid var(--blue); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0; }
.sources { font-size: .92rem; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.cta-box { background: var(--surface); border: 2px solid var(--magenta); border-radius: 16px; padding: 18px 22px; margin: 28px 0; }
.cta-box p { margin: 0 0 12px; }
.post-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.post-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.post-list h2 { font-size: 1.25rem; margin: 0 0 .3em; }
.post-list p { margin: 0; }
.placeholder { background: #FFF1C9; color: #1D1B3A; padding: 0 4px; border-radius: 4px; }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.list-card h3 { margin-top: 0; }
.list-meta { font-size: .9rem; color: var(--muted); font-weight: 700; margin: -4px 0 8px; }
.word-chips { list-style: none; padding: 0; margin: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.word-chips li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: .9rem; max-width: 100%; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.hub-group { margin-bottom: 36px; }
.pic-theme { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 14px 0; }
.pic-theme h3 { margin-top: 0; }
.pic-sample { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.pic-sample li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .8rem; color: var(--muted); }
.pic-sample img { width: 44px; height: 44px; }

/* Occasion tiles (homepage) */
.occ-tiles { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.occ-tiles a { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: start; padding: 12px 14px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; height: 100%; }
.occ-tiles a:hover, .occ-tiles a:focus-visible { border-color: var(--magenta); }
.occ-tiles .occ-dot { width: 26px; height: 26px; border-radius: 50%; grid-row: span 2; margin-top: 2px; }
.occ-tiles strong { font-family: var(--head); }
.occ-tiles span:last-child { font-size: .88rem; color: var(--muted); line-height: 1.35; }
/* Easier occasion pages */
.use-steps { list-style: none; counter-reset: u; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.use-steps li { counter-increment: u; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 52px; position: relative; font-size: .95rem; }
.use-steps li::before { content: counter(u); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 91, 234, .45); color: #fff; font-weight: 800; font-family: var(--head); }
.use-steps strong { display: block; font-family: var(--head); }
.content-page > section { padding-top: 6px; }
.content-page > section + section { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; }
.more-words summary { cursor: pointer; font-weight: 700; color: var(--blue); min-height: 40px; display: inline-flex; align-items: center; }
.more-words[open] summary { margin-bottom: 4px; }

/* ===== Content page layout: header band + sidebar ===== */
.page-main { padding-top: 0; }
.page-hero { position: relative; isolation: isolate; padding: 22px 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #FCE7F0 0%, #EEF2FF 55%, #E6F4EF 100%); }
:root[data-theme="dark"] .page-hero::before { background: linear-gradient(120deg, #2A1830 0%, #1E2240 55%, #15332B 100%); }
.page-hero h1 { max-width: 22ch; margin-bottom: .35em; }
.page-hero .lede { color: var(--ink); opacity: .85; max-width: 70ch; }
.page-hero .hero-cta { margin-bottom: 0; }
.page-hero .crumbs { margin-bottom: 10px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .page-grid { grid-template-columns: 1fr; } .page-aside { display: none; } }
.page-grid .content { max-width: 780px; margin: 0; }
.page-aside { position: sticky; top: 90px; }
.aside-card { background: var(--surface); border: 2px solid var(--line); border-top: 6px solid var(--magenta); border-radius: 18px; padding: 16px; box-shadow: 0 8px 24px rgba(29, 27, 58, .07); display: grid; gap: 8px; }
.aside-kicker { margin: 0; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--green); }
.aside-title { margin: 0 0 4px; font-size: 1.25rem; }
.aside-btn { width: 100%; }
.aside-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.aside-list li::before { content: "✓ "; color: var(--green); font-weight: 800; }

.page-hero { border-bottom: 2px solid var(--band-edge); }

/* Keep reading */
.keep-reading { margin-top: 36px; }
.related-cards { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.related-card { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); border-top: 5px solid var(--blue); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 6px 16px rgba(29, 27, 58, .06); }
.related-card:hover, .related-card:focus-visible { border-color: var(--blue); }
.related-card strong { font-family: var(--head); font-size: 1.05rem; }
.related-card span { color: var(--muted); font-size: .92rem; }
.related-cards li:nth-child(2) .related-card { border-top-color: var(--magenta); }
.related-cards li:nth-child(3) .related-card { border-top-color: var(--green); }

/* 90-ball ticket generator */
.ticket-tool { background: var(--surface); border: 2px solid var(--line); border-top: 6px solid var(--magenta); border-radius: 18px; padding: 16px 18px; margin: 8px 0 28px; box-shadow: 0 8px 24px rgba(29, 27, 58, .07); }
.ticket-tool h2 { margin-top: 0; }
.tk-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; align-items: start; }
.tk-form input[type="text"], .tk-form input[type="number"], .tk-form select { width: 100%; min-height: 44px; }
.tk-form fieldset { border: 0; padding: 0; margin: 0; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.btn-secondary-green { background: linear-gradient(135deg, #0D735B, #08533F); color: #fff; border: 0; }
.tk-status { font-weight: 700; min-height: 1.4em; margin: 6px 0; }
.tk-more { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tk-preview-h { margin: 14px 0 6px; font-size: 1rem; }
.tk-ticket { --tk: #D6246E; --tk-tint: #FCE7F0; max-width: 560px; }
.tk-ticket.tk-blue { --tk: #2146C7; --tk-tint: #E8EDFF; }
.tk-ticket.tk-green { --tk: #0B6B54; --tk-tint: #E3F4EE; }
.tk-ticket.tk-mono { --tk: #1D1B3A; --tk-tint: #EDEDF2; }
.tk-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; font-size: .85rem; margin-bottom: 4px; }
.tk-head span:last-child { color: var(--tk); }
:root[data-theme="dark"] .tk-head span:last-child { color: var(--ink); }
.tk-grid { display: grid; grid-template-columns: repeat(9, 1fr); border: 3px solid var(--tk); background: #fff; }
.tk-grid span { aspect-ratio: 1.15; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: clamp(.8rem, 2.6vw, 1.15rem); color: #1D1B3A; border-right: 1px solid var(--tk); border-bottom: 1px solid var(--tk); }
.tk-grid span:nth-child(9n) { border-right: 0; }
.tk-grid span:nth-last-child(-n+9) { border-bottom: 0; }
.tk-grid span.blank { background: var(--tk-tint); }

.glossary { display: grid; grid-template-columns: minmax(160px, 28%) 1fr; gap: 10px 20px; margin: 12px 0; }
.glossary dt { font-family: var(--head); font-weight: 800; }
.glossary dd { margin: 0; }
@media (max-width: 600px) { .glossary { grid-template-columns: 1fr; gap: 2px; } .glossary dd { margin-bottom: 10px; } }
