/* Shared finishing layer for the portal, walkthroughs and PDF viewer. */
.components-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 1rem; line-height: 1.5; }
.components-table caption { text-align: left; font-family: 'EB Garamond', Georgia, serif; font-size: 1.75rem; color: var(--brown); margin-bottom: 16px; }
.components-table th, .components-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.components-table thead { background: var(--panel); color: var(--brown); }
.components-table tbody th { font-weight: 400; }
.components-table th:last-child, .components-table td { text-align: right; white-space: nowrap; width: 100px; font-variant-numeric: tabular-nums; }
.components-table + .hardware-note { font-size: .875rem; color: var(--muted); }
@media(max-width:480px) { .components-table th, .components-table td { padding: 11px 8px; } .components-table { font-size: .9375rem; } }
:root {
  --ui-duration: 160ms;
  --ui-ease: cubic-bezier(.2, .7, .3, 1);
  --ui-hover: #eee7dc;
  --ui-section-gap: 36px;
}

/* Keep short pages anchored, and give every heading the same clear rhythm. */
body.hub { display: flex; flex-direction: column; min-height: 100dvh; }
.hub main { width: 100%; flex: 1; }
.hub-header { gap: 24px; }
.hub h1, .hub h2, .guide-content h1, .guide-content h2 { text-wrap: balance; }
.page-head { margin-bottom: 28px; }
.page-intro { margin-top: 12px; }
.breadcrumb { gap: 10px; margin-bottom: 24px; }
.breadcrumb a { text-decoration-thickness: 1px; }
.breadcrumb a:hover, .utility-links a:hover, .walk-support a:hover,
.step-support a:hover { color: var(--brown); text-decoration-thickness: 2px; }

/* One rectangular, high-contrast button treatment, including assembly controls. */
:is(.hub-button, .download-link, .read-link, .quiet-link, .share-row button,
    .hub-contact, .support-action, .site-header .download, .controls-inner button,
    .close-dialog) {
  min-height: 48px;
  border-radius: 0;
  line-height: 1.45;
  transition: background-color var(--ui-duration) var(--ui-ease),
    border-color var(--ui-duration) var(--ui-ease),
    color var(--ui-duration) var(--ui-ease), transform 100ms var(--ui-ease);
}
.site-header .download {
  border: 2px solid var(--brown); padding: 10px 16px;
  background: var(--brown); color: var(--paper); font-weight: 700; text-decoration: none;
}
.site-header .hub-entry { margin-left: 0; gap: 8px; }
.site-header .hub-entry + .download { margin-left: auto; }
.controls-inner button { border: 2px solid var(--brown); font-weight: 700; }
.controls-inner button:disabled { opacity: .4; }
.close-dialog { border: 1px solid var(--brown); font-size: .875rem; }
.hub .action-row { gap: 12px; margin: 24px 0 0; }
.hub-button { gap: 14px; }
.hub .document-actions { gap: 10px; }
.document-actions a { padding: 11px 18px; }
.document-actions .ui-icon, .site-header .download svg { width: 18px; height: 18px; }
.hub :is(.hub-button, .download-link, .read-link, .quiet-link, .hub-contact):hover,
.site-header .download:hover, .controls-inner button:hover:not(:disabled) {
  background: var(--brown); border-color: var(--brown); color: var(--paper);
  text-decoration: none;
}
.hub :is(.hub-button.solid, .download-link, .quiet-link, .support-action):hover,
.site-header .download:hover, .controls-inner button.primary:hover:not(:disabled) {
  background: #443023; border-color: #443023; color: var(--paper);
}
:is(.hub-button, .download-link, .read-link, .quiet-link, .share-row button,
    .hub-contact, .support-action, .site-header .download, .controls-inner button,
    .close-dialog):active:not(:disabled) { transform: translateY(1px); }
:is(a, button, summary, select):focus-visible { outline: 2px solid var(--brown); outline-offset: 4px; }

/* Quiet, uniform tile feedback without large shadows or changes to image crops. */
.hub-tile, .model-tile {
  box-shadow: none;
  transition: background-color var(--ui-duration) var(--ui-ease),
    border-color var(--ui-duration) var(--ui-ease);
}
.hub-tile h2 { line-height: 1.15; margin-bottom: 8px; }
.hub-tile p { opacity: 1; color: var(--muted); }
.hub-tile .tile-symbol svg { width: 28px; height: 28px; stroke-width: 1.5; }
.hub-tile:hover, .model-tile:hover { box-shadow: none; transform: none; }
.tile-arrow .ui-icon, .hub-button .ui-icon, .model-action span {
  transition: transform var(--ui-duration) var(--ui-ease);
}
@media (hover: hover) and (pointer: fine) {
  .hub-tile:hover, .model-tile:hover { background: var(--ui-hover); border-color: #bfae99; }
  .hub-tile:hover .tile-arrow .ui-icon,
  .hub-button:hover .ui-icon, .model-tile:hover .model-action span { transform: translateX(2px); }
}

/* All section landing pages share this frame; photos keep their original ratios. */
.assembly-feature { gap: 32px; }
.assembly-feature > div { padding: 32px 32px 32px 0; min-width: 0; }
.assembly-feature h2 { line-height: 1.12; margin-bottom: 14px; }
.assembly-feature p:not(.eyebrow) { margin: 0; }
.assembly-feature .feature-photo { align-self: center; }
.hub :is(.related-documents, .download-group) { margin-top: var(--ui-section-gap); }
.related-documents > h2, .download-group > h2 { margin-bottom: 16px; }
.document-row { gap: 24px; padding: 20px 0; }
.document-name { gap: 14px; }
.document-name > svg { width: 22px; height: 22px; }
.document-meta { font-variant-numeric: tabular-nums; }
.download-group > .document-row:last-child { border-bottom: 1px solid var(--line); }
.share-row { gap: 12px; }
#share-status { font-size: .875rem; color: var(--brown); }
.hub-footer a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hub-footer a:hover { text-decoration-thickness: 2px; }
.hub-footer a:focus-visible { outline-color: var(--paper); }

/* Match navigation, selection and disclosure feedback across guides. */
.contents nav a, .walk-nav nav a {
  min-height: 44px; border-left: 2px solid transparent;
  transition: background-color var(--ui-duration) var(--ui-ease),
    border-color var(--ui-duration) var(--ui-ease);
}
.walk-nav nav a[aria-current] {
  background: var(--panel); border-color: var(--brown); color: var(--brown); font-weight: 700;
}
.walk-nav nav a:hover { background: var(--panel); }
.contents nav a[aria-current] span, .walk-nav nav a[aria-current] span { color: var(--brown); }
.contents nav a span, .walk-nav nav a span, #page-count, .photo-index { font-variant-numeric: tabular-nums; }
.walk-main progress { height: 3px; border: 0; appearance: none; background: var(--line); }
.walk-main progress::-webkit-progress-bar { background: var(--line); }
.walk-main progress::-webkit-progress-value { background: var(--brown); }
.walk-main progress::-moz-progress-bar { background: var(--brown); }
.walk-controls { padding-top: 20px; border-top: 1px solid var(--line); }
.walk-pdf { margin-top: 28px; }
.walk-support { font-size: .9375rem; }
.hub details, .guide-content details { padding: 12px 0; }
.hub summary, .guide-content summary { min-height: 44px; font-weight: 400; }
.hub details[open] > summary, .guide-content details[open] > summary { font-weight: 700; margin-bottom: 14px; }
.hub summary::after, .guide-content summary::after {
  flex: 0 0 24px; font: 400 1.5rem/1 Muli, Arial, sans-serif;
  text-align: center; color: var(--brown);
}
.hub details > :last-child, .guide-content details > :last-child { margin-bottom: 0; }
.heater-choice-content, .heater-unknown span {
  transition: background-color var(--ui-duration) var(--ui-ease),
    color var(--ui-duration) var(--ui-ease), border-color var(--ui-duration) var(--ui-ease);
}
/* Source photographs are wide with centred products; fill a square viewport. */
.heater-choice img { width: 72px; height: 72px; object-fit: cover; object-position: center; background: var(--panel); }
.heater-choice:active .heater-choice-content, .heater-unknown:active span { border-color: var(--ink); }
.heater-choice:hover input:not(:checked) + .heater-choice-content { background: var(--ui-hover); }
.thumbnail { transition: opacity var(--ui-duration) var(--ui-ease), border-color var(--ui-duration) var(--ui-ease); }
.thumbnail:hover { opacity: 1; }
.main-photo::after { line-height: 1.4; }
.mobile-navigation select, .walk-mobile select { border-radius: 0; min-height: 48px; }
.inventory-checklist label:hover span { color: var(--brown); }

/* Content changes animate, not the header, controls or navigation. */
.guide-content { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: kindra-dialog-in 160ms var(--ui-ease); }
  dialog[open]::backdrop { animation: kindra-backdrop-in 160ms ease; }
  @keyframes kindra-dialog-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  @keyframes kindra-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
}
.pdf-toolbar { margin-bottom: 28px; }
.pdf-toolbar .download-link { gap: 10px; }
.pdf-fallback { margin-top: 20px; }
.pdf-frame { height: 75dvh; }

@media (max-width: 760px) {
  .site-header .download { padding: 8px 10px; min-height: 44px; gap: 6px; }
  .site-header { gap: 12px; }
  .site-header .hub-entry { margin-left: 0; }
}
@media (max-width: 700px) {
  :root { --ui-section-gap: 28px; }
  .hub-header { gap: 16px; }
  .hub-contact { min-height: 44px; padding: 9px 14px; }
  .assembly-feature { gap: 0; }
  .assembly-feature > div { padding: 24px; }
  .document-row { padding: 18px 0; }
  .document-actions { margin-top: 14px; }
  .document-actions a { min-width: 0; }
  .hub-tile h2 { font-size: 1.65rem; }
  .hub-tile { padding-right: 42px; }
  .hub-button { justify-content: space-between; }
  .pdf-toolbar { gap: 10px; }
  .pdf-toolbar a { flex: 1; padding: 11px 14px; }
  .pdf-frame { height: 68dvh; }
  .hub-footer { row-gap: 14px; }
  .hub .home-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .home-heading > div { min-width: 0; }
  .hub .home-heading h1 { font-size: clamp(2rem, 8.5vw, 2.75rem); }
  .home-heading .quiet-link { white-space: nowrap; flex-shrink: 0; margin: 0; padding: 11px 14px; }
  .heater-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .heater-choice { min-width: 0; }
  .heater-choice-content { flex-direction: column; justify-content: center; gap: 10px; padding: 14px 10px; min-height: 178px; text-align: center; }
  .heater-choice img { width: 96px; height: 96px; }
  .heater-choice .selection-mark { display: block; position: absolute; top: 10px; right: 10px; margin: 0; line-height: 1; }
}
@media (max-width: 480px) {
  .site-header { display: grid; grid-template-columns: auto minmax(0, 1fr); height: auto; min-height: var(--header-height); gap: 12px 20px; padding-block: 14px; }
  .site-header .hub-entry { display: flex; justify-self: start; }
  .site-header .hub-entry + .download { grid-column: 1 / -1; width: 100%; margin-left: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hub-tile:hover, .model-tile:hover, .tile-arrow .ui-icon,
  .hub-button .ui-icon, .model-action span, button:active, a:active { transform: none !important; }
}
@media print {
  body.hub { display: block; min-height: 0; }
  .hub main { width: auto; }
}
