.home {
  --home-space: 80px;
  background: #f6f7fb;
}

.home :focus-visible { outline-color: var(--blue); }
.home p { color: #454f62; }
.home .brand, .home .primary-nav a, .home .footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.home .hero { min-height: 0; padding-top: 64px; padding-bottom: 24px; }
.home .hero-content { padding-block: 0; }
.home .hero h1 { font-size: clamp(3.25rem, 5.2vw, 4.75rem); }
.home .hero-actions .button { min-height: 48px; padding-inline: 20px; }
.home .quick-find { padding: 16px; margin-top: 24px; }
.home .home-search { max-width: 760px; }
.home .home-search input { min-height: 36px; }
.home .home-search input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.home .home-search .button { min-height: 48px; }
.home .home-section { margin-top: var(--home-space); padding-bottom: 0; }
.home .section-title { margin-bottom: 24px; gap: 16px 32px; }
.home .section-title h2 { font-size: clamp(1.8rem, 2.5vw, 2.1rem); letter-spacing: -.035em; }
.home .section-title p { max-width: 66ch; margin-top: 10px; }
.home .tool-grid { gap: 16px; }

.bench-grid { display: grid; gap: 16px; }
.bench-lead { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; }
.bench-photo { width: 176px; height: 176px; overflow: hidden; }
.bench-photo img, .bench-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bench-photo { display: grid; place-items: center; background: #fff; }
.bench-photo img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.bench-copy { min-width: 0; display: flex; flex-direction: column; align-items: start; }
.bench-copy h3 { font-size: 1.5rem; line-height: 1.3; }
.bench-copy p { max-width: 68ch; margin-top: 12px; font-size: 1rem; }
.bench-action { display: inline-block; margin-top: 16px; color: var(--blue-dark); font-weight: 650; text-decoration: underline; text-underline-offset: .25em; }
.bench-list { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bench-list li { min-width: 0; }
.bench-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; height: 100%; padding: 20px; border: 1px solid var(--line); background: #fff; border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color 150ms ease; }
.bench-row:hover { border-color: #b3c0f4; color: var(--ink); }
.bench-thumb { width: 88px; height: 88px; overflow: hidden; border-radius: 8px; }
.bench-row h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.025em; }
.bench-row p { font-size: 1rem; line-height: 1.6; margin-top: 8px; }

.home .home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home .home-tool { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 16px; padding: 20px; border-radius: 12px; }
.home-tool-photo { width: 64px; height: 64px; overflow: hidden; border-radius: 8px; }
.home-tool-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-tool-copy { min-width: 0; overflow-wrap: anywhere; }
.home-tool .card-tag { display: block; font-size: .8125rem; }
.home-tool h3 { margin-top: 4px; font-size: 1.125rem; line-height: 1.4; text-wrap: pretty; }
.home-tool p { margin-top: 6px; font-size: .9375rem; line-height: 1.6; }
.home-tool:focus-within { outline-color: var(--blue); }

.home .category-grid { gap: 16px; }
.home .category-grid a { min-height: 84px; padding: 16px; border-radius: 12px; }
.home .category-grid small { margin-top: 5px; font-size: .875rem; }
.home .icon-tile { background: var(--blue-soft); color: var(--blue-dark); }
.home .guide-card { border: 0; border-radius: 0; background: transparent; }
.home .guide-card:hover { box-shadow: none; }
.home .guide-card img { border-radius: 12px; aspect-ratio: 16 / 9; }
.home .guide-card-body { padding: 20px 0 8px; }
.home .guide-card h3 { margin-top: 10px; font-size: 1.2rem; line-height: 1.35; }
.home .guide-card p { margin-top: 10px; line-height: 1.65; }

.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.process-grid h3 { font-size: 1.2rem; line-height: 1.35; }
.process-grid p { margin-block: 16px 20px; line-height: 1.75; }
.freight-example { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; margin-top: 48px; padding: 32px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.freight-example h3 { font-size: 1.3rem; line-height: 1.3; }
.freight-example p { margin-block: 16px 20px; }
.freight-example dl { margin: 0; align-self: center; }
.freight-example dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.freight-example dl div:last-child { border-bottom: 0; }
.freight-example dt { color: var(--muted); }
.freight-example dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.question-grid { display: grid; grid-template-columns: 1fr; }
.question-grid details { border-bottom: 1px solid var(--line); }
.question-grid summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding-block: 20px; cursor: pointer; list-style: none; }
.question-grid summary::-webkit-details-marker { display: none; }
.question-grid summary::after { content: "+"; flex: 0 0 24px; color: var(--muted); font-size: 1.5rem; font-weight: 400; text-align: center; }
.question-grid details[open] summary::after { content: "−"; }
.question-grid h3 { font-size: 1.125rem; line-height: 1.4; letter-spacing: -.025em; }
.question-grid p { max-width: 78ch; margin: 0 48px 24px 0; line-height: 1.75; }
.home-methodology { margin-top: 40px; padding-block: 24px; }
.home-credits { margin-top: 40px; color: var(--muted); font-size: .875rem; }
.home-credits summary { width: fit-content; padding-block: 12px; cursor: pointer; }
.home-credits ul { padding-left: 20px; line-height: 1.8; overflow-wrap: anywhere; }
.home .footer { margin-top: 64px; }
.home-overview .home-section { margin-top: 64px; }
.ad-space { width: min(100%, 970px); margin: 48px auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; border: 1px solid #dfe4ec; background: #f0f2f6; }
.ad-space > span { color: #657084; font-size: .8125rem; line-height: 18px; }
.ad-space-body { width: 100%; min-height: 250px; }
.ad-space-banner .ad-space-body { min-height: 90px; }
.workflow-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-block: 24px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.workflow-entry strong { display: block; font-size: 1.125rem; line-height: 1.5; }
.workflow-entry > span > span { display: block; margin-top: 8px; color: var(--muted); }
.workflow-entry .text-link { flex-shrink: 0; }
.workbench-directory .home-workbenches, .packing-workflow-page .home-process { margin-top: 32px; }
.home-cases { margin-top: 32px; padding-block: 20px; border-block: 1px solid var(--line); }
.home-cases h3 { font-size: 1.125rem; }
.home-cases ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding: 0; margin: 8px 0 0; list-style: none; }
.home-cases a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 650; line-height: 1.5; }

@media (hover: hover) and (pointer: fine) {
  .bench-lead:hover h3 { color: var(--blue-dark); }
}

@media (max-width: 1023px) {
  .home .hero { min-height: 0; padding-top: 36px; }
  .home .hero h1 { font-size: clamp(3.1rem, 6vw, 4.5rem); }
  .bench-row { grid-template-columns: 80px minmax(0, 1fr); padding: 16px; }
  .bench-thumb { width: 80px; height: 80px; }
  .home .tool-grid { gap: 16px; }
  .process-grid { gap: 24px; }
}

@media (max-width: 820px) {
  .home .home-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-grid p { max-width: 70ch; margin-block: 12px 16px; }
  .freight-example { gap: 24px; padding: 24px; }
}

@media (max-width: 767px) {
  .desktop-only { display: none !important; }
}

@media (max-width: 600px) {
  .home { --home-space: 64px; }
  .home .hero { padding-top: 24px; padding-bottom: 0; gap: 24px; }
  .home .hero-content { padding: 8px 0 0; }
  .home .hero h1 { font-size: clamp(2.85rem, 12vw, 4rem); }
  .home .hero-actions { gap: 12px; }
  .home .hero-actions .button { padding-inline: 14px; font-size: .9rem; }
  .home .quick-find { margin-top: 24px; padding: 14px; }
  .home .home-search { flex-basis: 100%; }
  .home .section-title { margin-bottom: 24px; }
  .home .section-title h2 { font-size: 1.85rem; }
  .home .section-title p { margin-top: 10px; }
  .home .home-guide-grid { grid-template-columns: 1fr; gap: 0; }
  .home .home-guide-grid .guide-card { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: start; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
  .home .home-guide-grid .guide-card:first-child { padding-top: 0; }
  .home .home-guide-grid .guide-card img { width: 80px; height: 80px; border-radius: 8px; }
  .home .home-guide-grid .guide-card-body { padding: 0; min-width: 0; }
  .home .guide-card h3 { font-size: 1.125rem; }
  .home .guide-card p { font-size: 1rem; }
  .home .category-grid { gap: 12px; }
  .home .category-grid a { padding: 12px; }
  .bench-lead { grid-template-columns: 96px minmax(0, 1fr); padding: 20px; gap: 16px; }
  .bench-photo { width: 96px; height: 144px; }
  .bench-copy h3 { font-size: 1.25rem; }
  .bench-list { grid-template-columns: 1fr; }
  .freight-example { grid-template-columns: 1fr; }
  .freight-example { gap: 20px; margin-top: 32px; padding: 24px; }
  .question-grid p { margin-right: 0; }
  .home .find-note { font-size: .875rem; }
  .ad-space { margin-block: 40px; }
  .ad-space-banner .ad-space-body { min-height: 100px; }
  .workflow-entry { flex-direction: column; align-items: start; gap: 16px; }
  .home-cases ul { grid-template-columns: 1fr; gap: 0; }
}

@media print {
  .home .hero { min-height: 0; }
  .bench-grid, .question-grid { break-inside: avoid; }
  .ad-space { display: none; }
}
