/* ==========================================================
   line-hub.css: the /line/<slug> pages (decision D7, 2026-10-21)
   Written by scripts/generate-line-hubs.js. A hub lists a line's
   blends and the sizes of each; it never sells, so it carries no
   price, offer or reserve block. The cards and the kicker echo the
   product page's "You May Also Enjoy" section, so a shopper moving
   between a hub and its blend pages stays in one visual language.
   ========================================================== */

.lh-main {
  position: relative;
  z-index: 20;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  /* .gt-breadcrumb + main pulls this column up by one header height
     (components.css), so the column carries that clearance itself. */
  padding: calc(var(--gt-bc-header) + clamp(1.5rem, 3vw, 2.5rem)) 2rem clamp(3rem, 6vw, 5rem);
}

/* ── Intro ─────────────────────────────────────────────── */
.lh-intro {
  max-width: 46rem;
}

.lh-eyebrow,
.lh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}
.lh-eyebrow::before,
.lh-kicker::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--color-primary-container);
  flex-shrink: 0;
}
a.lh-eyebrow:hover {
  color: var(--color-primary-fixed);
}
a.lh-eyebrow:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

.lh-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-on-surface);
  margin: 0.75rem 0 0;
  text-wrap: balance;
}

.lh-lead {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-on-surface-variant);
}

.lh-meta {
  margin: 1.1rem 0 0;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-outline);
}

/* ── Sections ──────────────────────────────────────────── */
.lh-section {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.lh-section-head {
  margin-bottom: 1.5rem;
}

.lh-section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.35rem, 1.4vw + 0.9rem, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-on-surface);
  margin: 0.6rem 0 0;
}

/* ── Blend cards ───────────────────────────────────────── */
.lh-blends {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.lh-blend {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-container-low);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    transform    0.35s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow   0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.lh-blend:hover,
.lh-blend:focus-visible {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}
.lh-blend:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.lh-blend-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-container);
}
.lh-blend-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.lh-blend:hover .lh-blend-art img {
  transform: scale(1.04);
}
.lh-blend-art--empty {
  display: grid;
  place-items: center;
}
.lh-blend-monogram {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  color: var(--color-primary);
  opacity: 0.55;
}

.lh-blend-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  padding: 1.1rem 1.25rem 1.25rem;
}

.lh-blend-label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.lh-blend-name {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-on-surface);
}

.lh-blend-facts {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.lh-blend-fact-key {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-outline);
}
.lh-blend-fact-value {
  color: var(--color-on-surface-variant);
}

.lh-blend-cta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ── Size table ────────────────────────────────────────── */
.lh-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 12px;
  background: var(--color-surface-container-lowest);
}

.lh-sizes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.lh-sizes th,
.lh-sizes td {
  padding: 0.85rem 1rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}
.lh-sizes thead th {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-surface-container-low);
}
.lh-sizes tbody th {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--color-on-surface);
}
.lh-sizes td {
  color: var(--color-on-surface-variant);
}
.lh-sizes tbody tr:last-child > * {
  border-bottom: 0;
}
.lh-sizes a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 183, 125, 0.35);
}
.lh-sizes a:hover {
  border-bottom-color: var(--color-primary);
}
.lh-sizes a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
.lh-none {
  color: var(--color-outline-variant);
}

/* ── Closing note ──────────────────────────────────────── */
.lh-note {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-on-surface-variant);
}
.lh-note a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 183, 125, 0.35);
}
.lh-note a:hover {
  border-bottom-color: var(--color-primary);
}

/* Read aloud, not shown: the context a table cell's link needs out of the table. */
.lh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .lh-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  /* A 375px phone has 343px for the table. The header labels wrap, so the
     columns size to their cells ("5½ × 50") rather than to "LENGTH × RING". */
  .lh-sizes th,
  .lh-sizes td {
    padding: 0.75rem 0.55rem;
  }
  .lh-sizes thead th {
    white-space: normal;
    letter-spacing: 0.12em;
    vertical-align: bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lh-blend,
  .lh-blend-art img {
    transition: none;
  }
  .lh-blend:hover,
  .lh-blend:focus-visible {
    transform: none;
  }
  .lh-blend:hover .lh-blend-art img {
    transform: none;
  }
}
