/* BidBoard content pages (guides, "for" pages), the free tools, landing extras and the shared footer. */

/* Breadcrumbs */
.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(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); }

/* 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; } }


/* 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; }
.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:hover { border-color: var(--accent); color: var(--ink); }
.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(--ink); }
.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: 6px; font-size: .9rem; color: var(--muted); }
.footer-cols a { text-decoration: none; }
.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; }
}

/* Examples and quotes */
.example-quote { margin: 0 0 1.2em; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; box-shadow: var(--shadow); }
.example-quote p { margin: 0 0 .7em; }
.example-quote p:last-child { margin: 0; }
.worked { margin: 0 0 1.2em; }

/* Free tools (fit checker, cost calculator): enhanced by assets/tools.js */
.tool { margin: 8px 0 28px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow); }
.tool h2 { margin: 0 0 4px !important; font-size: 1.25rem !important; }
.tool-intro { color: var(--muted); font-size: .95rem !important; }
.tool-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tool-result { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); margin-top: 4px; }
.tool-score { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.tool-score.low { color: var(--fit-low-fg); }
.tool-score.medium { color: var(--fit-medium-fg); }
.tool-score.high { color: var(--fit-high-fg); }
.tool-advice { margin: 0 !important; font-weight: 600; flex: 1 1 220px; }
.tool-checks { list-style: none; padding: 0 !important; margin: 12px 0 0 !important; display: grid; gap: 6px; }
.tool-checks li { display: flex; gap: 10px; align-items: baseline; margin: 0 !important; font-size: .95rem !important; }
.tool-checks .st { flex: none; width: 74px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tool-checks .pass .st { color: var(--ok); }
.tool-checks .fail .st { color: var(--danger); }
.tool-checks .unknown .st { color: var(--muted); }
.tool-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); width: 100%; }
.tool-stat { display: grid; }
.tool-stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.tool-stat strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.tool-note { margin: 10px 0 0 !important; font-size: .85rem !important; color: var(--muted); }
