/* AnswerDrill content pages (guides, practice-for pages), landing extras and the shared footer. */

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .875rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--border-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); }
.topnav a[aria-current="page"] { color: var(--text); }

/* Article */
.content-main { padding: 36px 0 64px; }
.article { overflow-wrap: break-word; }
.article-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.75rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.article-head .eyebrow { margin-bottom: 10px; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.article h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 2em 0 .6em; letter-spacing: -.015em; }
.article h3 { font-size: 1.08rem; margin: 1.4em 0 .4em; }
.article p, .article li { font-size: 1.04rem; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.article code { font: .9em var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border); }

.tldr { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; }
.tldr p { margin: 0; }
.tldr .tldr-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 6px; }

/* How-to steps */
.howto { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 12px; }
.howto li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px 14px 62px; margin: 0; scroll-margin-top: 80px; }
.howto li::before { content: counter(step); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; }
.howto h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.howto p { margin: 0; color: var(--muted); }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.table-wrap tr:last-child > * { border-bottom: 0; }
.table-wrap thead th { background: var(--surface-2); font-size: .85rem; }
.table-wrap tbody th { font-weight: 700; }
@media (max-width: 560px) { .table-wrap th, .table-wrap td { padding: 9px 10px; font-size: .9rem; } }

/* Worked examples */
.example { margin: 0 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.example figcaption { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.ex-pages { display: grid; gap: 10px; }
@media (min-width: 640px) { .ex-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ex-page { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 10px 12px; font: .85rem/1.5 var(--font-read); }
.ex-page p { margin: 0 0 4px; font-size: .85rem; }
.ex-label { font: 700 .72rem var(--font) !important; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ex-compare { display: grid; gap: 12px; }
@media (min-width: 640px) { .ex-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex-compare .example { margin: 0; }
.ex-sentences { margin: 0 !important; font: .92rem/1.55 var(--font-read); }
.ex-sentences li { font-size: .92rem; }
.ex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font: .92rem/1.5 var(--font-read); }
.ex-cols p { margin: 0; font-size: .92rem; }

/* CTA, FAQ, related, author */
.cta-box { margin: 36px 0 8px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow); }
.cta-box p { margin: 0 0 12px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.faq-list h3 { font-size: 1.05rem; margin: 1.3em 0 .35em; }
.faq-list p { color: var(--muted); }
.link-cards { list-style: none; padding: 0 !important; margin: 0 0 1em; display: grid; gap: 12px; }
@media (min-width: 640px) { .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .link-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.link-cards li { margin: 0; }
.link-cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .15s, transform .1s; }
.link-cards a:hover { border-color: var(--accent); color: var(--text); }
.link-cards strong { color: var(--accent); font-size: 1rem; }
.link-cards span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.related { margin-top: 36px; }
.author-box { margin-top: 36px; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: .95rem; }
.author-box p { margin: 0 0 6px; font-size: .95rem; }
.author-box p:last-child { margin: 0; }
#faq .author-box p { color: var(--text); }
.hub .link-cards { margin-bottom: 8px; }
.wrap.article.hub { max-width: 980px; }

/* Landing extras */
.center { text-align: center; }
.privacy-table td:first-child { font-weight: 600; }
#uses .link-cards, #guides .link-cards { max-width: 1040px; margin: 0 auto; }

/* Shared footer */
.site-footer { padding-top: 36px; }
.footer-cols { display: grid; gap: 22px; margin-bottom: 26px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-head { font-weight: 800; margin: 0 0 8px !important; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: .9rem; color: var(--muted); }
.footer-cols a { display: inline-block; min-height: 24px; padding: 3px 0; text-decoration: none; } /* 24px targets */
.footer-cols a:hover { text-decoration: underline; }
.site-footer .footer-inner { border-top: 1px solid var(--border); padding-top: 18px; }

/* Overrides that must follow the article list styles */
.article .crumbs ol, .crumbs ol { padding: 0; }
.crumbs li { margin: 0; font-size: .875rem; }
@media (max-width: 640px) {
  body.content .topnav { display: flex; gap: 16px; margin-left: auto; }
  body.content .topnav a { font-size: .9rem; }
  body.content .topnav a[href$="#pricing"] { display: none; }
}

/* AnswerDrill additions */
.article blockquote { margin: 0 0 1.2em; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.article blockquote p { margin: 0; font-family: var(--font-read); }
.q-list { display: grid; gap: 6px; }
.q-list li { padding-left: 4px; }
.ex-transcript { font: 1rem/1.8 var(--font-read); margin: 0; }
.ex-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ex-table th, .ex-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.ex-table tr:last-child td { border-bottom: 0; }
#example .example { background: var(--surface); }
#uses .link-cards { max-width: 980px; margin: 0 auto; }
@media (min-width: 640px) { .link-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.q-list.prep { list-style: decimal; display: grid; gap: 14px; }
.q-list.prep li p { margin: 0 0 4px; }
.q-list.prep .q-text strong { color: var(--text); }
.q-level { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
