/* FridgeDocs: colour tokens and the few components the car site does not have.
   Loaded after site.css (the 4x4manuals.com design system). */
:root {
  --accent: #1769aa;
  --accent-ink: #12578d;
  --accent-soft: #e4f0fa;
  --dark: #14303f;
  --dark-2: #1c3d4f;
  --dark-line: #2f5468;
  --bg: #eef3f7;
  --soft: #eef3f7;
}
a:hover { color: #0d4470; }

/* Type filters on brand and category pages */
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; }
.type-chip:hover { border-color: var(--accent); text-decoration: none; }
.type-chip[aria-current="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }

/* Model numbers covered by a manual */
.model-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.model-chips small { flex: 0 0 100%; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.model-chip { padding: 3px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--mono); font-size: 13px; font-weight: 600; }

/* Appliance-type cards on the home page reuse .make-card; the logo box shows an icon */
.type-card .make-card-logo .icon { width: 60px; height: 60px; stroke-width: 1.3; color: var(--accent); }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
.pager a { min-width: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-align: center; font-weight: 600; }
.pager a[aria-current="page"] { color: #fff; background: var(--accent); border-color: var(--accent); }

/* All brands A–Z */
.az-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 20px 0 40px; }
.az-group { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.az-group h2 { margin-bottom: 8px; font-family: var(--display); font-size: 26px; color: var(--accent-ink); }
.az-list { margin: 0; padding: 0; list-style: none; }
.az-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.az-list small { color: var(--muted); font-family: var(--mono); }

/* FAQ under the reader */
.faq-list { display: grid; gap: 10px; margin-top: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq-item summary { padding: 14px 18px; cursor: pointer; font-weight: 700; }
.faq-answer { padding: 0 18px 16px; }
.faq-answer p + p { margin-top: 8px; }
.faq-source { color: var(--muted); font-size: 14px; }

/* Info pages */
.info-card { max-width: 860px; margin: 24px auto 48px; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose p { margin: 14px 0 0; font-size: 17px; line-height: 1.65; }
.prose .home-search { margin-top: 18px; }

/* Manual page content: FAQ with formatted answers, key numbers, model data, comparisons */
.faq-list-single { grid-template-columns: minmax(0, 1fr); }
.faq-item > summary { font-weight: 650; line-height: 1.35; }
.faq-item > .faq-answer { margin-top: 0; padding: 0 18px 16px 41px; }
.faq-answer > * + * { margin-top: 8px; }
.faq-answer ol, .faq-answer ul { display: grid; gap: 4px; padding-left: 20px; }
.faq-table thead th { width: auto; padding: 8px 12px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
.faq-table tbody th { padding: 8px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.faq-compare { padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.faq-compare > span { color: var(--accent-ink); font-weight: 600; }
.faq-compare-all { margin-left: 6px; font-weight: 600; white-space: nowrap; }
.faq-source { color: var(--muted); font-size: 13px; }
.table-note { margin: -2px 0 10px; color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; }
.plain-table small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.fact-table tbody th { width: 34%; padding-right: 12px; }
.fact-table td { color: var(--ink); }
.fact-value { display: block; }
.fact-value + .fact-value { margin-top: 6px; }
.fact-table td.fact-page { width: 1%; white-space: nowrap; text-align: right; font-size: 13px; }
.spec-table td, .spec-table th { padding-right: 14px; }
.spec-models { max-width: 300px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 24px; }
.related-topic h3 { margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.related-topic ul { display: grid; gap: 10px; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
.related-topic small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.topic-card { grid-template-rows: auto; }
.topic-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.topic-page { display: flex; flex-direction: column; gap: 18px; }
.hub-answer { padding: 16px 18px; }
.hub-answer h3 { font-size: 16px; line-height: 1.35; }
.hub-source { margin-top: 2px; color: var(--muted); font-size: 13px; }
.hub-answer .faq-answer { margin-top: 8px; }
@media (max-width: 760px) {
  .faq-item > .faq-answer { padding: 0 14px 14px 14px; }
  .fact-table tbody th { width: 40%; }
}
.topic-page .make-hero .display-title { max-width: 900px; font-size: clamp(30px, 4vw, 46px); }
.topic-page .make-hero .lede { color: var(--dark-muted, #b9c7d2); }
@media (max-width: 760px) {
  .fact-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--soft); }
  .fact-table tr:last-child { border-bottom: 0; }
  .fact-table tbody th, .fact-table td { width: auto; padding: 0; border: 0; }
  .fact-table tbody th { grid-column: 1 / -1; }
  .stack-table thead { display: none; }
  .stack-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--soft); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table tbody th, .stack-table td { padding: 0; border: 0; }
  .stack-table tbody th { grid-column: 1 / -1; max-width: none; }
  .stack-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
  .stack-table td:empty { display: none; }
}
.make-hero .lede { color: var(--dark-muted); }
.hub-answer > .faq-answer { padding: 0; }
/* Sister manuals, comparisons */
.rel-table tbody th small { margin-top: 2px; font-family: var(--mono); font-size: 12px; }
.rel-table td { white-space: nowrap; }
.sister-questions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--soft); }
.cmp-table thead th { vertical-align: bottom; }
.cmp-table thead th a { font-size: 13px; }
.cmp-table td.cmp-mine { color: var(--ink); font-weight: 600; background: var(--accent-soft); }
.cmp-table td, .cmp-table th { padding-right: 14px; }
@media (max-width: 760px) { .rel-table td { white-space: normal; } }
/* Error codes */
.code-table .code-cell { width: 1%; padding-right: 16px; font-family: var(--mono); font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--accent-ink); }
.code-table td { color: var(--ink); }
.cols-list { columns: 3 220px; column-gap: 28px; padding: 0; list-style: none; font-size: 14px; } .cols-list li { break-inside: avoid; margin-bottom: 10px; } .cols-list small { display: block; color: var(--muted); font-size: 12px; }
/* Typical values, energy peers, brand comparisons */
.fact-typical { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.fact-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.fact-below, .fact-above { background: #fff1d6; color: #7a4b00; }
.energy-peer { display: block; margin-top: 2px; font-size: 12px; }
.energy-good { color: #1f7a3a !important; }
.energy-bad { color: #9a3b12 !important; }
.muted { color: var(--muted); }
.cmp-brands td { color: var(--ink); }
.cmp-brands thead th a { font-size: 14px; }

/* Brand logos (Wikimedia Commons): tiles on the home page and the brand page header */
.make-card-logo.has-logo { background: #fff; border-bottom: 1px solid var(--line); }
.make-card-logo.has-logo img { width: auto; height: auto; max-width: 82%; max-height: 54px; object-fit: contain; }
.brand-hero-logo { display: inline-flex; align-items: center; margin-bottom: 14px; padding: 10px 16px; border-radius: 10px; background: #fff; }
.brand-hero-logo img { display: block; width: auto; height: auto; max-width: 200px; max-height: 44px; object-fit: contain; }
.info-card h2 { margin-top: 26px; }
.info-card details { margin: 10px 0 0; }
.info-card details summary { cursor: pointer; font-weight: 600; }
.info-card details ul { columns: 2 220px; margin-top: 10px; padding-left: 18px; font-size: 14px; }
