/*
Theme Name: NLC Homepage Responsive V1
Theme URI: https://nguyenlechannel.com/
Author: Nguyen Le Channel / Codex
Description: Responsive homepage V1 for Nguyen Le Channel, mobile-first with desktop layout.
Version: 2026.08.27.3
Text Domain: nlc-homepage-responsive-v1
*/

:root {
  --warm-ivory: #f5f0e0;
  --warm-ivory-light: #f8f2eb;
  --paper: #fcf9f4;
  --espresso: #2e1f14;
  --espresso-deep: #2b2115;
  --espresso-pressed: #1f130b;
  --olive: #575c33;
  --olive-deep: #404825;
  --olive-soft: #586b3a;
  --career-red: #692424;
  --gold: #edd6a8;
  --white: #ffffff;
  --section-width: min(100vw, 430px);
  --page-pad: 28px;
  --radius-card: 18px;
  --radius-button: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Coffee Library — final local refinement after Founder review 2026-08-03 */
.coffee-entry-page {
  width: min(100vw, 390px);
  background: #f0e9d5;
}

.coffee-entry-page .coffee-page-header {
  height: 58px;
  min-height: 58px;
  align-items: center;
  padding: 0 24px;
  background: #f0e9d5;
}

.coffee-entry-page .coffee-page-brand {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
}

.coffee-entry-page .coffee-page-brand img {
  display: none;
}

.coffee-entry-page .coffee-page-brand span {
  position: static;
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 1.08px;
}

.coffee-entry-page .coffee-page-header nav {
  gap: 19px;
  padding: 0;
}

.coffee-entry-page .coffee-page-header nav a {
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

.coffee-entry-page .coffee-entry-hero {
  height: 290px;
}

.coffee-entry-page .coffee-sensation-panel {
  gap: 22px;
  padding: 58px 24px 62px;
  background: #2c1a11;
  border: 0;
}

.coffee-entry-page .coffee-sensation-panel h2,
.coffee-entry-page .coffee-lookup-panel h2 {
  max-width: none;
  width: 342px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.29px;
}

.coffee-entry-page .coffee-sensation-panel h2 {
  color: #fff7e3;
  font-size: 29px;
  line-height: 35px;
}

.coffee-entry-page .coffee-sensation-panel > p:not(.coffee-panel-label) {
  width: 342px;
  margin: 0;
  color: rgba(231, 217, 180, 0.9);
  font-size: 14px;
  line-height: 23px;
}

.coffee-entry-page .coffee-panel-label {
  width: 342px;
  margin: 0;
  color: #e7d9b4;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.coffee-entry-page .taste-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
}

.coffee-entry-page .taste-choice {
  min-height: 58px;
  height: 58px;
  border-radius: 14px;
  padding: 0 14px 0 16px;
  box-shadow: 0 8px 18px rgba(38, 23, 13, 0.12);
}

.coffee-entry-page .taste-choice span {
  font-size: 10px;
  line-height: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.coffee-entry-page .taste-choice em {
  font-size: 12px;
}

.coffee-entry-page .taste-choice.taste-sour {
  background: #667436;
  border-color: rgba(170, 178, 119, 0.72);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-bitter {
  background: #432319;
  border-color: rgba(129, 81, 59, 0.62);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-light {
  background: #ead9ad;
  border-color: rgba(205, 187, 142, 0.72);
  color: #2c1a11;
}

.coffee-entry-page .taste-choice.taste-harsh {
  background: #70352c;
  border-color: rgba(181, 108, 91, 0.58);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-dry {
  background: #7c6048;
  border-color: rgba(181, 144, 108, 0.58);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-aroma {
  background: #cfad62;
  border-color: rgba(227, 196, 122, 0.68);
  color: #2c1a11;
}

.coffee-entry-page .taste-choice.taste-body {
  background: #70735b;
  border-color: rgba(165, 169, 142, 0.66);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-unknown {
  background: #fbf6ea;
  border-color: rgba(215, 205, 178, 0.9);
  color: #2c1a11;
}

.coffee-entry-page .coffee-lookup-panel {
  gap: 18px;
  min-height: 620px;
  padding: 58px 24px 62px;
  background: #f0e9d5;
}

.coffee-entry-page .coffee-lookup-kicker {
  height: 28px;
  color: rgba(36, 19, 11, 0.76);
}

.coffee-entry-page .coffee-lookup-panel h2 {
  color: #24130b;
  font-size: 29px;
  line-height: 35px;
}

.coffee-entry-page .coffee-lookup-panel > p {
  width: 342px;
  margin: 0;
  color: rgba(36, 19, 11, 0.68);
  font-size: 14px;
  line-height: 23px;
}

.coffee-entry-page .lookup-list {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 12px;
  width: 100%;
  height: auto;
  margin: 4px 0 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.coffee-entry-page .lookup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-height: 92px;
  height: 92px;
  border: 1px solid rgba(60, 34, 20, 0.12);
  border-radius: 17px;
  padding: 18px 18px 16px 22px;
  background: #fbf6ea;
  box-shadow: 0 8px 22px rgba(41, 26, 18, 0.08);
}

.coffee-entry-page .lookup-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: #667436;
}

.coffee-entry-page .lookup-card span {
  color: #575c33;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.coffee-entry-page .lookup-card strong {
  color: rgba(36, 19, 11, 0.78);
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
}

.coffee-entry-page .lookup-roast::before {
  background: #692424;
}

.coffee-entry-page .lookup-error::before {
  background: #432319;
}

.coffee-entry-page .lookup-bean::before {
  background: #70735b;
}

.coffee-entry-page .coffee-entry-footer {
  padding: 42px 24px 50px;
  background: #3c2214;
}

@media (min-width: 1024px) {
  .coffee-entry-page,
  .coffee-entry-page .coffee-page-header,
  .coffee-entry-page .coffee-entry-hero,
  .coffee-entry-page .coffee-sensation-panel,
  .coffee-entry-page .coffee-lookup-panel,
  .coffee-entry-page .coffee-entry-footer {
    max-width: 390px;
    margin-inline: auto;
  }

  .coffee-entry-page .coffee-page-header {
    height: 58px;
    min-height: 58px;
    padding: 0 24px;
  }

  .coffee-entry-page .coffee-sensation-panel {
    padding: 58px 24px 62px;
  }

  .coffee-entry-page .coffee-lookup-panel {
    padding: 58px 24px 62px;
  }

  .coffee-entry-page .taste-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .coffee-entry-page .lookup-list a:nth-child(2n),
  .coffee-entry-page .lookup-list a:nth-child(n + 3) {
    border-left-width: 1px;
    border-top-width: 1px;
  }
}

/* Final override — Coffee Library taste buttons should not show text highlight pills */
.coffee-entry-page .taste-choice span {
  width: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.coffee-entry-page .taste-choice.taste-bitter span,
.coffee-entry-page .taste-choice.taste-harsh span,
.coffee-entry-page .taste-choice.taste-body span {
  background: transparent;
  color: #fff7e3;
}

/* TRUE FINAL OVERRIDE — large-phone responsive for Coffee Library mobile routes */
.coffee-entry-page.site-shell,
.coffee-topic-page.site-shell {
  width: 100% !important;
  max-width: 430px !important;
  margin-inline: auto !important;
  background: #f0e9d5;
  box-shadow: none;
}

.coffee-entry-page .coffee-page-header,
.coffee-entry-page .coffee-entry-hero,
.coffee-entry-page .coffee-sensation-panel,
.coffee-entry-page .coffee-lookup-panel,
.coffee-entry-page .coffee-entry-footer,
.coffee-topic-page .coffee-page-header,
.coffee-topic-quick,
.topic-shelf-section,
.coffee-topic-footer {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.coffee-entry-page .coffee-sensation-panel h2,
.coffee-entry-page .coffee-sensation-panel > p:not(.coffee-panel-label),
.coffee-entry-page .coffee-panel-label,
.coffee-entry-page .coffee-lookup-panel h2,
.coffee-entry-page .coffee-lookup-panel > p,
.coffee-topic-quick h1 {
  width: 100% !important;
  max-width: none !important;
}

.coffee-entry-page .taste-grid,
.coffee-entry-page .lookup-list,
.topic-shelf-list {
  width: 100% !important;
}

@media (max-width: 430px) {
  .coffee-entry-page.site-shell,
  .coffee-topic-page.site-shell {
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* Final responsive override — Coffee mobile pages must breathe on larger phones */
.coffee-entry-page.site-shell,
.coffee-topic-page.site-shell {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  background: #f0e9d5;
  box-shadow: none;
}

.coffee-entry-page .coffee-page-header,
.coffee-entry-page .coffee-entry-hero,
.coffee-entry-page .coffee-sensation-panel,
.coffee-entry-page .coffee-lookup-panel,
.coffee-entry-page .coffee-entry-footer,
.coffee-topic-page .coffee-page-header,
.coffee-topic-quick,
.topic-shelf-section,
.coffee-topic-footer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.coffee-entry-page .coffee-sensation-panel h2,
.coffee-entry-page .coffee-sensation-panel > p:not(.coffee-panel-label),
.coffee-entry-page .coffee-panel-label,
.coffee-entry-page .coffee-lookup-panel h2,
.coffee-entry-page .coffee-lookup-panel > p,
.coffee-topic-quick h1 {
  width: 100%;
  max-width: none;
}

.coffee-entry-page .taste-grid,
.coffee-entry-page .lookup-list,
.topic-shelf-list {
  width: 100%;
}

@media (max-width: 430px) {
  .coffee-entry-page.site-shell,
  .coffee-topic-page.site-shell {
    max-width: none;
    margin: 0;
    border-radius: 0;
  }
}

/* Coffee taste choices: remove inherited pill/highlight from older taste-card styles */
.coffee-entry-page .taste-choice span {
  width: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.coffee-entry-page .taste-choice.taste-bitter span,
.coffee-entry-page .taste-choice.taste-harsh span,
.coffee-entry-page .taste-choice.taste-body span {
  background: transparent;
  color: #fff7e3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coffee-topic-page.site-shell {
  width: min(100vw, 390px);
  background: #f0e9d5;
  box-shadow: none;
}

@media (max-width: 430px) {
  .coffee-topic-page.site-shell {
    margin: 0;
    border-radius: 0;
  }
}

@media (min-width: 1024px) {
  .coffee-topic-page.site-shell {
    max-width: 390px;
    margin-inline: auto;
  }
}

/* Coffee Library topic menu — quick lookup first, then shelves */
.coffee-topic-page {
  width: min(100vw, 390px);
  background: #f0e9d5;
  color: #24130b;
}

.coffee-topic-page .coffee-page-header {
  height: 58px;
  min-height: 58px;
  align-items: center;
  padding: 0 24px;
  background: #f0e9d5;
}

.coffee-topic-page .coffee-page-brand span,
.coffee-topic-page .coffee-page-header nav a {
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

.coffee-topic-page .coffee-page-brand span {
  letter-spacing: 1.08px;
}

.coffee-topic-page .coffee-page-header nav {
  gap: 18px;
}

.coffee-topic-quick {
  padding: 52px 24px 40px;
  background: #f0e9d5;
}

.topic-search-mark {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 28px;
}

.topic-search-mark::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  width: 38px;
  height: 38px;
  border: 5px solid #575c33;
  border-radius: 50%;
}

.topic-search-mark::after {
  content: "";
  position: absolute;
  left: 48px;
  top: 47px;
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: #575c33;
  transform: rotate(45deg);
  transform-origin: left center;
}

.coffee-topic-quick h1 {
  width: 342px;
  margin: 0 0 24px;
  color: #24130b;
  font-size: 34px;
  line-height: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.topic-search-box {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(60, 34, 20, 0.13);
  border-radius: 16px;
  padding: 0 16px;
  background: #fbf6ea;
  color: rgba(36, 19, 11, 0.54);
  box-shadow: 0 8px 20px rgba(41, 26, 18, 0.06);
}

.topic-search-box span {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
}

.topic-search-box em {
  color: #575c33;
  font-style: normal;
  font-size: 18px;
}

.topic-shelf-section {
  padding: 8px 24px 60px;
  background: #f0e9d5;
}

.topic-choice-label {
  margin: 0 0 14px;
  color: #575c33;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

.topic-shelf-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic-shelf-card {
  position: relative;
  display: grid;
  min-height: 98px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 14px;
  align-content: center;
  border: 1px solid rgba(60, 34, 20, 0.12);
  border-radius: 18px;
  padding: 20px 18px 18px 22px;
  overflow: hidden;
  background: #fbf6ea;
  color: #24130b;
  box-shadow: 0 8px 22px rgba(41, 26, 18, 0.08);
}

.topic-shelf-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: var(--shelf-accent, #667436);
}

.topic-shelf-card span {
  color: #575c33;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 1.35px;
}

.topic-shelf-card strong {
  color: rgba(36, 19, 11, 0.86);
  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
}

.topic-shelf-card em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--shelf-accent, #667436);
  font-style: normal;
  font-size: 18px;
}

.shelf-grow,
.shelf-harvest {
  --shelf-accent: #667436;
}

.shelf-process {
  --shelf-accent: #a16f42;
}

.shelf-green {
  --shelf-accent: #70735b;
}

.shelf-roast {
  --shelf-accent: #692424;
}

.shelf-brew {
  --shelf-accent: #2c1a11;
}

.shelf-sensory {
  --shelf-accent: #cfad62;
}

.coffee-topic-footer {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  background: #3c2214;
  color: #fff7e3;
}

.coffee-topic-footer p {
  margin: 0;
  max-width: 168px;
  color: rgba(255, 247, 227, 0.86);
  font-size: 14px;
  line-height: 20px;
}

.coffee-topic-footer a {
  max-width: 146px;
  color: #edd6a8;
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: right;
}

@media (min-width: 1024px) {
  .coffee-topic-page,
  .coffee-topic-page .coffee-page-header,
  .coffee-topic-quick,
  .topic-shelf-section,
  .coffee-topic-footer {
    max-width: 390px;
    margin-inline: auto;
  }
}

/* Coffee Library entry — aligned to Figma frame 2914:80 */
.coffee-entry-page {
  --coffee-ivory: #f0e9d5;
  --coffee-brown: #2c1a11;
  --coffee-footer: #3c2214;
  --coffee-cream: #fff7e3;
  --coffee-gold-soft: #e7d9b4;
  width: min(100vw, 390px);
  background: var(--coffee-ivory);
  color: #24130b;
  box-shadow: none;
}

.coffee-entry-page .coffee-page-header,
.coffee-entry-page .coffee-entry-hero,
.coffee-entry-page .coffee-sensation-panel,
.coffee-entry-page .coffee-lookup-panel,
.coffee-entry-page .coffee-entry-footer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
}

.coffee-entry-page .coffee-page-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 76px;
  height: 76px;
  padding: 13px 24px 0;
  background: var(--coffee-ivory);
}

.coffee-entry-page .coffee-page-brand {
  position: relative;
  display: block;
  width: 170px;
  height: 50px;
  color: #24130b;
}

.coffee-entry-page .coffee-page-brand img {
  position: absolute;
  left: 0;
  top: 20px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.coffee-entry-page .coffee-page-brand span {
  position: absolute;
  left: 0;
  top: 0;
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 1.08px;
}

.coffee-entry-page .coffee-page-header nav {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-top: 0;
}

.coffee-entry-page .coffee-page-header nav a {
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

.coffee-entry-hero {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: #ded3bf;
}

.coffee-entry-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.coffee-entry-hero-copy {
  display: none;
}

.coffee-entry-page .coffee-sensation-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 64px 24px;
  background: var(--coffee-brown);
  color: var(--coffee-cream);
  border-top: 0;
}

.coffee-entry-page .coffee-sensation-panel h2 {
  width: 342px;
  margin: 0;
  color: var(--coffee-cream);
  font-size: 29px;
  line-height: 35px;
  font-weight: 700;
  letter-spacing: -0.29px;
}

.coffee-entry-page .coffee-sensation-panel > p:not(.coffee-panel-label) {
  width: 342px;
  margin: 0;
  color: rgba(231, 217, 180, 0.9);
  font-size: 14px;
  line-height: 23px;
  font-weight: 400;
}

.coffee-panel-label {
  width: 342px;
  margin: 0;
  color: var(--coffee-gold-soft);
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.coffee-entry-page .taste-grid {
  display: grid;
  grid-template-columns: repeat(2, 161px);
  gap: 10px 20px;
  width: 100%;
  margin: 0;
}

.taste-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 12px 0 14px;
  box-shadow: 0 5px 10px rgba(38, 23, 13, 0.1);
  overflow: hidden;
}

.taste-choice span {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.taste-choice em {
  width: 14px;
  flex: 0 0 14px;
  color: inherit;
  font-style: normal;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
}

.coffee-entry-page .taste-choice.taste-sour {
  background: #667436;
  border-color: rgba(170, 178, 119, 0.75);
  color: var(--coffee-cream);
}

.coffee-entry-page .taste-choice.taste-bitter {
  background: #4b2419;
  border-color: rgba(129, 81, 59, 0.75);
  color: var(--coffee-cream);
}

.coffee-entry-page .taste-choice.taste-light {
  background: #e6d4a5;
  border-color: rgba(205, 187, 142, 0.75);
  color: #2c1a11;
}

.coffee-entry-page .taste-choice.taste-harsh {
  background: #7c2d25;
  border-color: rgba(181, 108, 91, 0.75);
  color: var(--coffee-cream);
}

.coffee-entry-page .taste-choice.taste-dry {
  background: #876344;
  border-color: rgba(181, 144, 108, 0.75);
  color: var(--coffee-cream);
}

.coffee-entry-page .taste-choice.taste-aroma {
  background: #c89d4a;
  border-color: rgba(227, 196, 122, 0.75);
  color: #2c1a11;
}

.coffee-entry-page .taste-choice.taste-body {
  background: #6d7057;
  border-color: rgba(165, 169, 142, 0.75);
  color: var(--coffee-cream);
}

.coffee-entry-page .taste-choice.taste-unknown {
  background: #f7f0de;
  border-color: rgba(215, 205, 178, 0.75);
  color: #2c1a11;
}

.coffee-entry-page .taste-choice.taste-unknown span {
  line-height: 11px;
}

.coffee-entry-page .coffee-lookup-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 600px;
  padding: 62px 24px 58px;
  background: var(--coffee-ivory);
}

.coffee-lookup-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 30px;
  color: rgba(36, 19, 11, 0.82);
}

.coffee-lookup-kicker span {
  width: 170px;
  font-size: 10px;
  line-height: 13px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

.coffee-lookup-kicker em {
  width: 18px;
  font-style: normal;
  font-size: 13px;
  line-height: 13px;
  font-weight: 500;
}

.coffee-entry-page .coffee-lookup-panel h2 {
  width: 342px;
  margin: 0;
  color: #24130b;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.28px;
}

.coffee-entry-page .coffee-lookup-panel > p {
  width: 342px;
  margin: 0;
  color: rgba(36, 19, 11, 0.78);
  font-size: 14px;
  line-height: 23px;
  font-weight: 400;
}

.coffee-entry-page .lookup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 336px;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.coffee-entry-page .lookup-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  height: 74px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 16px 12px;
  box-shadow: 0 4px 10px rgba(41, 26, 18, 0.12);
}

.coffee-entry-page .lookup-card + .lookup-card {
  border-top-width: 1px;
}

.coffee-entry-page .lookup-card span {
  width: 100%;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.77px;
  text-transform: uppercase;
}

.coffee-entry-page .lookup-card strong {
  width: 100%;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

.lookup-brew {
  background: #e6d4a5;
  border-color: #cdbb8e;
}

.lookup-brew span {
  color: #2c1a11;
}

.lookup-brew strong {
  color: #5f5144;
}

.lookup-bean {
  background: #667436;
  border-color: #aab277;
}

.lookup-roast {
  background: #7c2d25;
  border-color: #b56c5b;
}

.lookup-error {
  background: #4b2419;
  border-color: #81513b;
}

.lookup-bean span,
.lookup-roast span,
.lookup-error span {
  color: #f7f0de;
}

.lookup-bean strong,
.lookup-roast strong,
.lookup-error strong {
  color: #e6dcc5;
}

.coffee-entry-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 46px 24px 54px;
  background: var(--coffee-footer);
  color: rgba(249, 243, 225, 0.9);
}

.coffee-entry-footer p {
  width: 342px;
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.coffee-entry-footer nav {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 342px;
  color: rgba(249, 243, 225, 0.66);
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

@media (min-width: 1024px) {
  .coffee-entry-page {
    width: min(100vw, 390px);
  }

  .coffee-entry-page .coffee-page-header,
  .coffee-entry-page .coffee-sensation-panel,
  .coffee-entry-page .coffee-lookup-panel {
    padding-left: 24px;
    padding-right: 24px;
  }

  .coffee-entry-page .coffee-page-header {
    padding-top: 13px;
  }

  .coffee-entry-page .coffee-sensation-panel {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .coffee-entry-page .coffee-lookup-panel {
    padding-top: 62px;
    padding-bottom: 58px;
  }

  .coffee-entry-page .coffee-sensation-panel h2,
  .coffee-entry-page .coffee-lookup-panel h2 {
    max-width: none;
  }

  .coffee-entry-page .taste-grid {
    grid-template-columns: repeat(2, 161px);
    gap: 10px 20px;
  }

  .coffee-entry-page .lookup-list {
    display: flex;
    grid-template-columns: none;
  }

  .coffee-entry-page .lookup-list a:nth-child(2n),
  .coffee-entry-page .lookup-list a:nth-child(n + 3) {
    border-left-width: 1px;
    border-top-width: 1px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #111;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--espresso-deep);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.22)),
    #12110f;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: rgba(237, 214, 168, 0.24);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--gold);
  color: var(--espresso);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: var(--section-width);
  margin: 0 auto;
  overflow: hidden;
  background: var(--warm-ivory-light);
  box-shadow: 0 0 0 1px rgba(245, 240, 224, 0.08), 0 24px 90px rgba(0, 0, 0, 0.48);
}

.section-block {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.eyebrow {
  margin: 0;
  color: var(--olive);
  font-size: 11px;
  line-height: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.eyebrow.light {
  color: var(--warm-ivory);
}

.eyebrow.gold {
  color: var(--gold);
}

.meta,
.olive-small,
.book-eyebrow,
.schedule-label {
  margin: 0;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
}

.hero-section {
  min-height: 850px;
  background: var(--warm-ivory-light);
}

.hero-photo {
  position: relative;
  height: 410px;
  transform: translateY(-3px);
  overflow: hidden;
  background: #ddd2bf;
}

.hero-photo > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  display: block;
}

.hero-logo {
  position: absolute;
  left: 18px;
  top: 24px;
  width: 94px;
  height: 70px;
  object-fit: contain;
}

.menu-button {
  position: fixed;
  z-index: 10;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: calc(50% + 97px);
  width: 74px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--warm-ivory-light);
  font: inherit;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: right;
  cursor: pointer;
  mix-blend-mode: difference;
}

@media (max-width: 389px) {
  .menu-button {
    right: 24px;
    left: auto;
  }
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  justify-items: center;
  background: rgba(31, 19, 11, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}

.mobile-menu-panel[hidden] {
  display: none;
}

.mobile-menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-sheet {
  position: relative;
  z-index: 1;
  width: min(100vw, 430px);
  min-height: 100svh;
  max-height: 100svh;
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 26px calc(env(safe-area-inset-bottom, 0px) + 30px);
  background: var(--warm-ivory);
  color: var(--espresso-deep);
  transform: translateY(-10px);
  transition: transform 240ms var(--ease);
  box-shadow: 0 18px 70px rgba(31, 19, 11, 0.22);
}

.mobile-menu-panel.is-open .mobile-menu-sheet {
  transform: translateY(0);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}

.mobile-menu-top p,
.mobile-menu-kicker,
.mobile-menu-link span {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-menu-top p {
  color: var(--olive);
}

.mobile-menu-close {
  min-height: 42px;
  border: 1px solid rgba(46, 31, 20, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
  color: var(--espresso-deep);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.mobile-menu-kicker {
  margin: 0 0 12px;
  color: rgba(87, 92, 51, 0.78);
}

.mobile-menu-primary,
.mobile-menu-secondary {
  display: grid;
  gap: 12px;
}

.mobile-menu-primary {
  margin-bottom: 34px;
}

.mobile-menu-secondary {
  margin-bottom: 28px;
}

.mobile-menu-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: end;
  min-height: 92px;
  padding: 18px 18px 17px;
  border: 1px solid rgba(46, 31, 20, 0.12);
  border-left: 5px solid var(--olive);
  border-radius: 19px;
  background: rgba(252, 249, 244, 0.72);
  color: var(--espresso-deep);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(46, 31, 20, 0.06);
}

.mobile-menu-link strong {
  display: block;
  margin: 0;
  font-size: 22px;
  line-height: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mobile-menu-link span {
  grid-column: 1 / -1;
  color: rgba(46, 31, 20, 0.58);
}

.mobile-menu-link em {
  font-style: normal;
  color: var(--olive);
  font-size: 23px;
  line-height: 1;
}

.mobile-menu-secondary .mobile-menu-link {
  min-height: 76px;
  border-left-width: 3px;
  border-radius: 15px;
  padding: 15px 16px;
}

.mobile-menu-secondary .mobile-menu-link strong {
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
}

.mobile-menu-secondary .mobile-menu-link span {
  grid-column: 1;
  font-size: 13px;
  line-height: 19px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(46, 31, 20, 0.62);
}

.mobile-menu-secondary .mobile-menu-link em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
}

.mobile-menu-secondary .menu-field-notes {
  border-color: rgba(87, 92, 51, 0.2);
  border-left-color: var(--olive);
  background:
    linear-gradient(90deg, rgba(87, 92, 51, 0.1), rgba(252, 249, 244, 0.78) 42%),
    var(--paper);
}

.mobile-menu-secondary .menu-field-notes strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--olive-deep);
}

.mobile-menu-secondary .menu-field-notes strong::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--olive);
  content: "";
}

.menu-career {
  border-left-color: var(--career-red);
}

.menu-clarity {
  border-left-color: var(--olive-soft);
}

.hero-copy {
  position: relative;
  min-height: 490px;
  margin-top: -45px;
  padding: 56px 34px 44px;
  background: var(--warm-ivory);
  text-align: center;
}

.hero-line {
  margin: 0;
  color: var(--espresso-deep);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-line span,
.hero-line strong {
  display: block;
}

.hero-line-one {
  font-size: 38px;
  line-height: 59px;
}

.hero-line-one strong {
  font-size: 48px;
  font-weight: 700;
  line-height: 59px;
}

.hero-line-two {
  margin-top: 28px;
  font-size: 38px;
  line-height: 43px;
}

.hero-line-two strong {
  margin-top: 8px;
  font-size: 64px;
  font-weight: 700;
  line-height: 66px;
}

.hero-line-three {
  margin-top: 34px;
  font-size: 38px;
  line-height: 43px;
}

.hero-line-three span,
.hero-line-three strong {
  display: inline;
}

.hero-line-three strong {
  margin-left: 8px;
  font-size: 64px;
  font-weight: 700;
  line-height: 43px;
}

.reflection-section {
  min-height: 850px;
  padding: 60px 28px 54px;
  background: var(--espresso-deep);
  color: var(--warm-ivory-light);
  text-align: center;
}

.watermark {
  margin: 0 0 28px;
  width: 100%;
  color: var(--warm-ivory-light);
  font-size: 104px;
  line-height: 99px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: left;
  opacity: 0.09;
}

.reflection-section h2 {
  margin: 0;
  font-size: 40px;
  line-height: 46px;
  font-weight: 700;
}

.reflection-note {
  display: none;
}

.reflection-invite {
  margin: 96px auto 0;
  width: min(320px, 100%);
  font-size: 44px;
  line-height: 57px;
  font-weight: 400;
}

.reflection-invite strong {
  font-weight: 700;
}

.journey-word {
  white-space: nowrap;
}

.desktop-break {
  display: none;
}

.journey-section {
  min-height: 850px;
  background: var(--warm-ivory);
}

.intro-block {
  position: relative;
  min-height: 302px;
  padding: 50px 24px 28px;
}

.soft-shape {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 301px;
  opacity: 0.95;
  pointer-events: none;
}

.intro-block h2 {
  position: relative;
  margin: 31px 0 0;
  color: var(--espresso);
  font-size: 38px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  color: var(--espresso-pressed);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.text-link.down {
  position: absolute;
  left: 16px;
  bottom: 37px;
  width: calc(100% - 40px);
}

.book-rail,
.case-rail {
  display: flex;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.book-rail::-webkit-scrollbar,
.case-rail::-webkit-scrollbar {
  display: none;
}

.book-rail {
  height: 544px;
  padding: 25px 30px 32px;
  scroll-padding-inline: 30px;
}

.book-card {
  display: flex;
  flex: 0 0 300px;
  width: 300px;
  height: 480px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--white);
  scroll-snap-align: start;
}

.book-spine {
  flex: 0 0 10px;
  background: var(--olive);
}

.career-card .book-spine,
.clarity-card .book-spine {
  background: var(--espresso);
}

.book-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 290px;
  padding: 32px 24px 24px;
  color: var(--warm-ivory);
  background: var(--espresso);
}

.career-card .book-content {
  background: var(--career-red);
}

.clarity-card .book-content {
  background: var(--olive);
}

.book-card h3 {
  margin: 22px 0 16px;
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.book-card p:not(.book-eyebrow) {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
}

.book-content > div > p:last-child {
  margin-bottom: 0;
}

.book-cta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: var(--radius-button);
  background: var(--warm-ivory);
  color: var(--espresso);
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.writing-section {
  min-height: 922px;
  padding: 56px 28px 36px;
  background: var(--olive-deep);
  color: var(--warm-ivory);
}

.writing-section h2 {
  margin: 26px 0;
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.featured-book {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 318px;
  padding: 20px 19px 20px 20px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--espresso);
}

.featured-book-row {
  display: flex;
  gap: 16px;
}

.mini-cover {
  position: relative;
  flex: 0 0 108px;
  align-self: flex-start;
  width: 108px;
  aspect-ratio: 148 / 210;
  overflow: hidden;
  border-radius: 5px;
  background: var(--warm-ivory);
  box-shadow: 0 8px 22px rgba(46, 31, 20, 0.18);
}

.mini-cover picture,
.mini-cover img {
  display: block;
  width: 100%;
  height: 100%;
}

.mini-cover img {
  object-fit: contain;
  object-position: center;
  transform: none;
}

.mini-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 8px;
  background: linear-gradient(
    90deg,
    rgba(46, 31, 20, 0.42) 0,
    rgba(87, 92, 51, 0.3) 46%,
    rgba(245, 240, 224, 0.28) 72%,
    rgba(46, 31, 20, 0.08) 100%
  );
  box-shadow: 2px 0 4px rgba(46, 31, 20, 0.18);
  pointer-events: none;
}

.featured-copy {
  flex: 1;
  min-width: 0;
}

.olive-small {
  color: var(--olive);
  font-size: 9px;
}

.featured-copy h3 {
  margin: 10px 0;
  font-size: 21px;
  line-height: 27px;
}

.featured-copy p:last-child {
  margin: 0;
  color: #3c2415;
  font-size: 12px;
  line-height: 19px;
}

.solid-cta,
.dark-cta,
.outline-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.solid-cta {
  background: var(--olive);
  color: var(--white);
}

.manuscripts {
  margin-top: 26px;
}

.manuscripts > .eyebrow {
  margin-bottom: 14px;
}

.manuscript-row {
  display: flex;
  gap: 14px;
  min-height: 86px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245, 240, 224, 0.18);
}

.marker {
  width: 4px;
  height: 36px;
  border-radius: 2px;
  background: var(--warm-ivory);
}

.manuscript-row span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.manuscript-row small {
  color: var(--warm-ivory);
  font-size: 9px;
  line-height: 13px;
  font-weight: 600;
  font-style: normal;
}

.manuscript-row strong {
  color: var(--warm-ivory);
  font-size: 16px;
  line-height: 21px;
}

.manuscript-row em {
  color: rgba(245, 240, 224, 0.72);
  font-size: 11px;
  line-height: 17px;
  font-style: normal;
}

.bottom-link {
  display: block;
  margin-top: 26px;
  color: var(--warm-ivory);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cases-section {
  min-height: 850px;
  background: var(--warm-ivory-light);
  color: var(--espresso);
}

.cases-intro {
  min-height: 181px;
  padding: 52px 28px 0;
}

.cases-intro h2 {
  margin: 19px 0 0;
  font-size: 34px;
  line-height: 37px;
  font-weight: 700;
}

.case-rail {
  height: 544px;
  padding: 32px 30px;
  scroll-padding-inline: 30px;
}

.case-card {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  height: 480px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--espresso);
  color: var(--warm-ivory-light);
  scroll-snap-align: start;
}

.case-visual {
  position: relative;
  height: 156px;
  overflow: hidden;
  background: #5f4636;
}

.case-visual .label {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1;
  color: var(--warm-ivory-light);
  font-size: 10px;
  line-height: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.visual-operations::before,
.visual-learning::before,
.visual-product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 48%),
    linear-gradient(0deg, rgba(43, 33, 21, 0.64), transparent 42%);
}

.machine {
  position: absolute;
  left: 40px;
  top: 70px;
  width: 82px;
  height: 36px;
  border-radius: 6px;
  background: #2b2115;
}

.cup {
  position: absolute;
  left: 205px;
  top: 92px;
  width: 38px;
  height: 28px;
  border-radius: 50% 50% 38% 38%;
  background: var(--warm-ivory);
}

.person {
  position: absolute;
  right: 8px;
  top: 47px;
  width: 46px;
  height: 88px;
  border-radius: 999px 999px 10px 10px;
  background: rgba(245, 240, 224, 0.18);
}

.notebook,
.note {
  position: absolute;
  top: 72px;
  height: 46px;
  border-radius: 4px;
  background: rgba(245, 240, 224, 0.68);
}

.notebook {
  left: 62px;
  width: 78px;
}

.note {
  left: 155px;
  width: 92px;
}

.big-cup {
  position: absolute;
  left: 102px;
  top: 50px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #2b2115 0 34px, var(--warm-ivory) 35px 48px);
}

.dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--olive);
}

.d1 {
  left: 58px;
  top: 78px;
}

.d2 {
  left: 138px;
  top: 48px;
}

.d3 {
  left: 216px;
  top: 92px;
}

.before,
.after {
  position: absolute;
  top: 44px;
  width: 112px;
  height: 76px;
  border-radius: 10px;
  padding: 18px;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
}

.before {
  left: 24px;
  background: rgba(245, 240, 224, 0.16);
}

.after {
  left: 164px;
  background: rgba(245, 240, 224, 0.72);
  color: var(--espresso);
}

.case-body {
  position: relative;
  min-height: 324px;
  padding: 30px 24px 24px;
}

.case-body.paper-case {
  min-height: 324px;
  padding: 26px 22px 24px;
}

.paper-sheet {
  margin: 26px 22px 0;
  min-height: 136px;
  padding: 22px 20px;
  border-radius: 10px;
  background: var(--warm-ivory);
  color: var(--espresso);
}

.case-body.paper-case .paper-sheet {
  margin: 0;
}

.case-body h3 {
  margin: 20px 0 34px;
  font-size: 27px;
  line-height: 29px;
  font-weight: 700;
}

.case-body p:not(.meta) {
  margin: 0;
  color: rgba(248, 242, 235, 0.82);
  font-size: 14px;
  line-height: 20px;
}

.paper-sheet p:not(.meta) {
  color: var(--espresso);
}

.case-body a {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.case-body a::after {
  content: "→";
  flex: 0 0 auto;
  color: currentColor;
  font-size: 18px;
  line-height: 18px;
  font-weight: 500;
}

.cases-section > .dark-cta {
  margin: 23px 28px 0;
}

.dark-cta {
  background: var(--espresso-deep);
  color: var(--warm-ivory-light);
}

.video-section {
  min-height: 850px;
  padding: 36px 28px 28px;
  background: #3c2415;
  color: #fffff0;
}

.video-section .eyebrow,
.video-section .meta {
  color: #fffff0;
}

.video-section .meta {
  font-size: 10.5px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.video-section h2 {
  margin: 10px 0 12px;
  color: #fffff0;
  font-size: 27px;
  line-height: 35px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.video-section > p:not(.eyebrow) {
  margin: 0 0 9px;
  color: #fffff0;
  font-size: 14px;
  line-height: 22px;
}

.video-feature {
  margin: 0 0 10px;
}

.video-feature h3 {
  margin: 8px 0 8px;
  color: #fffff0;
  font-size: 22px;
  line-height: 29px;
  font-weight: 500;
}

.youtube-thumb {
  position: relative;
  display: block;
  height: 168px;
  overflow: hidden;
  border-radius: 20px;
  background: #f4eedc;
}

.youtube-thumb img {
  position: absolute;
  z-index: 1;
  right: 18px;
  top: 25px;
  width: 122px;
  height: 157px;
  object-fit: cover;
  border-radius: 8px;
}

.youtube-thumb::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 12px;
  height: 100%;
  background: #5c6537;
}

.youtube-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(244, 238, 220, 0) 0 54%, rgba(244, 238, 220, 0.72) 67%, rgba(43, 26, 16, 0.2) 100%),
    linear-gradient(0deg, #2b1a10 0 22px, transparent 22px);
}

.thumb-pill,
.youtube-thumb strong,
.thumb-subline,
.thumb-question,
.thumb-cta,
.thumb-caption,
.thumb-nlc {
  position: absolute;
  z-index: 3;
}

.thumb-pill {
  left: 26px;
  top: 21px;
  min-width: 85px;
  border-radius: 4px;
  background: #5c6537;
  color: #f4eedc;
  padding: 5px 7px 4px;
  font-size: 4.5px;
  line-height: 6px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.youtube-thumb strong {
  left: 26px;
  top: 43px;
  color: #2b1a10;
  font-size: 22px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.youtube-thumb strong span {
  display: block;
}

.youtube-thumb strong span + span {
  font-size: 27px;
  line-height: 28px;
  font-weight: 700;
}

.thumb-subline {
  left: 27px;
  top: 102px;
  color: #5c6537;
  font-size: 9.5px;
  line-height: 12px;
  font-weight: 500;
}

.thumb-question {
  left: 164px;
  top: 24px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #7a2925;
  color: #f4eedc;
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
}

.thumb-cta {
  left: 26px;
  top: 141px;
  min-width: 91px;
  border-radius: 4px;
  background: #2b1a10;
  color: #f4eedc;
  padding: 5px 8px 4px;
  font-size: 5px;
  line-height: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}

.thumb-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: -18px;
  top: -10px;
  height: 1px;
  background: #7a2925;
}

.thumb-caption {
  left: 25px;
  bottom: 8px;
  color: #f4eedc;
  font-size: 5px;
  line-height: 7px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.thumb-nlc {
  right: 25px;
  bottom: 8px;
  color: #f4eedc;
  font-size: 9px;
  line-height: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.youtube-real-thumb {
  background: #2b1a10;
}

.youtube-real-thumb img {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.youtube-real-thumb::before {
  display: none;
}

.youtube-real-thumb::after {
  z-index: 2;
  background:
    linear-gradient(0deg, rgba(43, 26, 16, 0.38), rgba(43, 26, 16, 0) 48%),
    linear-gradient(90deg, rgba(43, 26, 16, 0.22), rgba(43, 26, 16, 0) 34%);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  place-items: center;
  border-radius: 999px;
  background: rgba(105, 36, 36, 0.92);
  color: #fffff0;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(43, 26, 16, 0.28);
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.video-list a {
  position: relative;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) 22px;
  gap: 11px;
  min-height: 56px;
  padding: 8px 16px 8px 0;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 240, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 240, 0.08);
}

.entry-accent {
  width: 5px;
  height: 56px;
  border-radius: 2px;
  background: #382114;
}

.video-list a:nth-child(2) .entry-accent {
  background: var(--career-red);
}

.video-list a:nth-child(3) .entry-accent {
  background: var(--olive-soft);
}

.entry-copy {
  min-width: 0;
}

.video-list small {
  display: block;
  color: #fffff0;
  font-size: 9.5px;
  line-height: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.video-list strong {
  display: block;
  color: #fffff0;
  font-size: 14.5px;
  line-height: 20px;
  font-weight: 500;
}

.video-list em {
  color: #fffff0;
  font-style: normal;
  font-size: 18px;
  text-align: right;
}

.outline-cta {
  margin-top: 35px;
  border: none;
  border-radius: 10px;
  background: #fffff0;
  color: #3c2415;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.connect-section {
  min-height: 1354px;
  padding: 36px 28px 32px;
  background: var(--warm-ivory);
}

.connect-section h2 {
  margin: 15px 0 11px;
  color: #41291b;
  font-size: 38px;
  line-height: 44px;
}

.connect-intro {
  margin: 0;
  width: min(318px, 100%);
  color: rgba(65, 41, 27, 0.72);
  font-size: 15px;
  line-height: 25px;
}

.message-card {
  margin-top: 29px;
  min-height: 128px;
  border-radius: 18px;
  background: var(--olive-soft);
  color: var(--warm-ivory-light);
  padding: 24px;
}

.message-card p {
  margin: 0 0 9px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.message-card span {
  font-size: 15px;
  line-height: 23px;
}

.message-cta {
  margin-top: 86px;
}

.schedule-card {
  position: relative;
  margin-top: 52px;
  border-left: 4px solid var(--olive-soft);
  border-radius: 0 22px 22px 0;
  background: #fffff0;
  padding: 30px 24px 24px 20px;
}

.schedule-label {
  margin-bottom: 24px;
  color: var(--olive-soft);
}

.schedule-row {
  position: relative;
  display: block;
  min-height: 102px;
  padding: 0 34px 22px 0;
  border-bottom: 1px solid rgba(65, 41, 27, 0.14);
}

.schedule-row + .schedule-row {
  padding-top: 18px;
}

.schedule-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.schedule-card .schedule-row:nth-of-type(3) {
  border-bottom: 0;
  padding-bottom: 0;
}

.schedule-row strong {
  display: block;
  color: #41291b;
  font-size: 12px;
  line-height: 17px;
  letter-spacing: 0.1em;
}

.schedule-row span {
  display: block;
  margin-top: 8px;
  color: rgba(65, 41, 27, 0.72);
  font-size: 12px;
  line-height: 18px;
}

.schedule-row em {
  display: block;
  margin-top: 10px;
  color: rgba(86, 95, 48, 0.9);
  font-size: 10px;
  line-height: 14px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.schedule-row b {
  position: absolute;
  right: 0;
  top: 32px;
  color: rgba(65, 41, 27, 0.82);
  font-size: 20px;
  line-height: 20px;
}

.schedule-register {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 22px;
  border-radius: var(--radius-button);
  background: var(--warm-ivory);
  color: var(--espresso);
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.porch-links {
  margin-top: 66px;
}

.porch-link-panel {
  border-left: 4px solid var(--olive-soft);
  border-radius: 0 18px 18px 0;
  background: #fffff0;
  padding: 14px 0 0;
}

.porch-link-panel a {
  position: relative;
  display: block;
  min-height: 66px;
  padding: 4px 54px 10px 24px;
  border-bottom: 1px solid rgba(43, 33, 21, 0.12);
}

.porch-link-panel a:last-child {
  border-bottom: 0;
}

.porch-links strong {
  display: block;
  color: var(--espresso-deep);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.12em;
}

.porch-links span {
  display: block;
  margin-top: 8px;
  color: var(--espresso-deep);
  font-size: 12px;
  line-height: 18px;
}

.porch-links em {
  position: absolute;
  right: 24px;
  top: 18px;
  color: var(--olive-soft);
  font-size: 19px;
  line-height: 22px;
  font-style: normal;
}

.porch-links .dark-cta {
  margin: 36px 0 0;
  border-radius: 8px;
}

.footer-section {
  min-height: 1063px;
  padding: 35px 28px 40px;
  background: var(--espresso-deep);
  color: var(--warm-ivory-light);
}

.footer-art {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 252px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.footer-plane,
.footer-c {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.footer-plane {
  right: 0;
  height: 252px;
  background: rgba(88, 107, 58, 0.22);
  z-index: 0;
}

.footer-c {
  left: 6px;
  top: 0;
  width: 210px;
  height: 246px;
  opacity: 0.9;
  z-index: 1;
}

.footer-section > *:not(.footer-art) {
  position: relative;
  z-index: 2;
}

.footer-section h2 {
  margin: 28px 0 18px;
  font-size: 34px;
  line-height: 42px;
}

.footer-section > p:not(.eyebrow) {
  margin: 0;
  color: rgba(248, 242, 235, 0.82);
  font-size: 15px;
  line-height: 24px;
}

.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 41px;
}

.channel-card {
  position: relative;
  min-height: 132px;
  border: 1px solid rgba(248, 242, 235, 0.18);
  border-radius: 14px;
  background: rgba(248, 242, 235, 0.08);
  padding: 14px;
}

.channel-card strong {
  display: block;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.14em;
}

.channel-card span {
  display: block;
  margin-top: 10px;
  color: rgba(248, 242, 235, 0.78);
  font-size: 11px;
  line-height: 16px;
}

.channel-card em {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: var(--gold);
  font-size: 17px;
  font-style: normal;
}

.footer-nav {
  margin-top: 29px;
  border-top: 1px solid rgba(248, 242, 235, 0.16);
}

.footer-nav a {
  display: flex;
  justify-content: space-between;
  min-height: 55px;
  align-items: center;
  border-bottom: 1px solid rgba(248, 242, 235, 0.16);
  color: rgba(248, 242, 235, 0.88);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.contact-info {
  margin: 20px 0 0;
  border-top: 1px solid rgba(138, 115, 87, 0.24);
  border-bottom: 1px solid rgba(138, 115, 87, 0.2);
  padding: 13px 0;
  font-style: normal;
}

.contact-info span {
  display: block;
  color: rgba(248, 242, 235, 0.88);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-info p {
  margin: 8px 0 18px;
  color: rgba(248, 242, 235, 0.62);
  font-size: 13px;
  line-height: 19px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.closing-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 11px;
  align-items: end;
  margin-top: 20px;
  border-top: 1px solid rgba(248, 242, 235, 0.16);
  padding-top: 13px;
}

.closing-row img {
  width: 64px;
  height: 48px;
  object-fit: contain;
}

.closing-row p {
  margin: 0 0 6px;
  color: rgba(248, 242, 235, 0.94);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.closing-row small {
  color: rgba(248, 242, 235, 0.52);
  font-size: 9px;
  line-height: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (min-width: 431px) and (max-width: 1023px) {
  .site-shell {
    margin-block: 24px;
    border-radius: 18px;
  }
}

@media (min-width: 391px) and (max-width: 430px) {
  .hero-copy {
    padding-right: 34px;
    padding-left: 34px;
    text-align: center;
  }

  .hero-line-two {
    margin-left: 0;
  }

  .hero-line-three strong {
    margin-left: 8px;
  }
}

@media (max-width: 430px) {
  .site-shell {
    margin: 0;
    border-radius: 0;
  }
}

@media (max-width: 360px) {
  :root {
    --page-pad: 22px;
  }

  .hero-line-one,
  .hero-line-two,
  .hero-line-three {
    font-size: 34px;
  }

  .hero-line-two strong,
  .hero-line-three strong {
    font-size: 56px;
  }

  .reflection-invite {
    font-size: 38px;
    line-height: 50px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-width: 100%;
    --desktop-pad: clamp(72px, 8vw, 120px);
  }

  html {
    background: var(--warm-ivory-light);
  }

  body {
    background: #12110f;
  }

  .site-shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(245, 240, 224, 0.08);
  }

  .section-block {
    width: 100%;
  }

  .desktop-nav {
    position: relative;
    z-index: 4;
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    border-bottom: 1px solid rgba(43, 33, 21, 0.12);
  }

  .desktop-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
  }

  .desktop-brand img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .desktop-brand span,
  .desktop-menu a {
    color: rgba(43, 33, 21, 0.86);
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.14em;
  }

  .desktop-brand span {
    white-space: nowrap;
  }

  .desktop-menu {
    display: flex;
    gap: clamp(16px, 1.8vw, 32px);
    align-items: center;
  }

  .desktop-menu a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: none;
  }

  .desktop-menu .menu-field-notes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--olive-deep);
    font-weight: 700;
    white-space: nowrap;
  }

  .desktop-menu .menu-field-notes::before {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--olive);
    content: "";
  }

  .desktop-brand:focus-visible,
  .desktop-menu a:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--olive);
    outline-offset: 5px;
  }

  .menu-button,
  .hero-logo {
    display: none;
  }

  .mobile-menu-panel {
    display: none !important;
  }

  .hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 520px);
    grid-template-rows: auto 1fr;
    gap: 64px;
    min-height: 900px;
    padding: 36px var(--desktop-pad) 84px;
    align-items: center;
    background: var(--warm-ivory);
  }

  .hero-photo {
    grid-column: 2;
    grid-row: 2;
    height: min(58vw, 620px);
    min-height: 500px;
    transform: none;
    border-radius: 24px;
    background: #ddd2bf;
  }

  .hero-photo > img:first-child {
    object-position: 52% 50%;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    max-width: 720px;
    min-height: 0;
    margin-top: 0;
    padding: 0;
    background: transparent;
    text-align: left;
  }

  .hero-line-one {
    font-size: clamp(52px, 5.6vw, 80px);
    line-height: 1.08;
  }

  .hero-line-one strong {
    margin-top: 8px;
    font-size: clamp(80px, 8.2vw, 118px);
    line-height: 0.96;
  }

  .hero-line-two {
    margin-top: 26px;
    font-size: clamp(46px, 5.2vw, 72px);
    line-height: 1.08;
  }

  .hero-line-two strong {
    margin-top: 0;
    font-size: clamp(58px, 6.8vw, 98px);
    line-height: 1.02;
  }

  .hero-line-three {
    margin-top: 22px;
    font-size: clamp(46px, 5vw, 72px);
    line-height: 1.04;
  }

  .hero-line-three strong {
    margin-left: 18px;
    font-size: clamp(64px, 7vw, 104px);
    line-height: 1.02;
  }

  .reflection-section {
    display: grid;
    grid-template-columns: minmax(420px, 540px) minmax(460px, 560px);
    grid-template-rows: auto auto;
    column-gap: clamp(72px, 8vw, 116px);
    row-gap: 24px;
    min-height: 630px;
    padding: 94px var(--desktop-pad) 88px;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: left;
  }

  .watermark {
    position: absolute;
    left: var(--desktop-pad);
    top: 72px;
    width: auto;
    font-size: clamp(150px, 13.4vw, 194px);
    line-height: 0.86;
    opacity: 0.26;
  }

  .reflection-section h2 {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 1;
    align-self: end;
    max-width: 520px;
    margin-top: 118px;
    font-size: clamp(44px, 3.7vw, 56px);
    line-height: 1.15;
  }

  .reflection-note {
    grid-column: 1;
    grid-row: 2;
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 0 0 72px;
    max-width: 392px;
    color: var(--warm-ivory-light);
    font-size: 10px;
    line-height: 1.7;
    font-weight: 600;
    letter-spacing: 0.18em;
    opacity: 0.88;
  }

  .reflection-invite {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: min(100%, 560px);
    min-height: 318px;
    padding: 42px 56px;
    border: 1px solid rgba(248, 242, 235, 0.18);
    border-radius: 28px;
    color: var(--warm-ivory-light);
    font-size: clamp(34px, 3.1vw, 43px);
    line-height: 1.34;
    text-align: center;
  }

  .desktop-break {
    display: block;
  }

  .journey-section {
    min-height: 860px;
    padding: 96px var(--desktop-pad) 108px;
  }

  .intro-block {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 0 0 54px;
    align-items: end;
  }

  .soft-shape {
    left: 0;
    top: 0;
    width: 860px;
    height: 100%;
    min-height: 860px;
    opacity: 0.82;
    z-index: 0;
  }

  .journey-section .eyebrow {
    position: relative;
    z-index: 1;
  }

  .intro-block h2 {
    grid-column: 1;
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin-top: 22px;
    font-size: clamp(48px, 4.5vw, 64px);
    line-height: 1.08;
  }

  .text-link.down {
    position: static;
    z-index: 1;
    grid-column: 2;
    width: auto;
    min-width: 310px;
    border: 1px solid rgba(43, 33, 21, 0.24);
    border-radius: 10px;
    padding: 0 20px;
  }

  .book-rail {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .book-card {
    position: relative;
    z-index: 2;
    flex: initial;
    width: auto;
    height: 540px;
    border-radius: 8px;
  }

  .book-content {
    width: auto;
    padding: 44px 42px 34px;
  }

  .book-card h3 {
    font-size: clamp(32px, 2.8vw, 42px);
    line-height: 1.11;
  }

  .book-card p:not(.book-eyebrow) {
    font-size: 15px;
    line-height: 1.62;
  }

  .writing-section {
    min-height: 880px;
    padding: 104px var(--desktop-pad);
  }

  .writing-section h2 {
    max-width: 660px;
    margin: 24px 0 44px;
    font-size: clamp(48px, 4.8vw, 70px);
    line-height: 1.05;
  }

  .featured-book {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
    min-height: 360px;
    padding: 38px;
    border-radius: 16px;
    align-items: center;
  }

  .featured-book-row {
    gap: 34px;
    align-items: center;
  }

  .mini-cover {
    flex-basis: 190px;
    width: 190px;
    border-radius: 8px;
  }

  .mini-cover::before {
    width: 12px;
  }

  .featured-copy h3 {
    font-size: 40px;
    line-height: 1.12;
  }

  .featured-copy p:last-child {
    max-width: 520px;
    font-size: 15px;
    line-height: 1.75;
  }

  .manuscripts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
  }

  .manuscripts > .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .manuscript-row {
    min-height: 146px;
    border: 1px solid rgba(245, 240, 224, 0.18);
    border-radius: 16px;
    padding: 24px;
  }

  .bottom-link {
    margin-top: 34px;
  }

  .cases-section {
    min-height: 780px;
    padding: 96px var(--desktop-pad) 104px;
  }

  .cases-intro {
    min-height: 0;
    padding: 0 0 44px;
  }

  .cases-intro h2 {
    font-size: clamp(48px, 4.6vw, 68px);
    line-height: 1.06;
  }

  .case-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .case-card {
    flex: initial;
    width: auto;
    height: 470px;
    border-radius: 18px;
  }

  .case-visual {
    height: 142px;
  }

  .machine {
    left: 28px;
    top: 72px;
    width: 70px;
    height: 32px;
  }

  .cup {
    left: auto;
    right: 30px;
    top: 92px;
    width: 34px;
    height: 25px;
  }

  .person {
    right: 10px;
    top: 50px;
    width: 40px;
    height: 82px;
  }

  .notebook,
  .note {
    top: 72px;
    height: 42px;
  }

  .notebook {
    left: 34px;
    width: 68px;
  }

  .note {
    left: auto;
    right: 28px;
    width: 78px;
  }

  .case-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 328px;
    padding: 26px 22px 22px;
  }

  .case-body.paper-case {
    padding: 26px 22px 22px;
  }

  .case-body h3 {
    margin: 18px 0 18px;
    font-size: 21px;
    line-height: 1.16;
  }

  .case-body p:not(.meta) {
    font-size: 13px;
    line-height: 1.5;
  }

  .case-body a {
    position: static;
    margin-top: auto;
    font-size: 11px;
  }

  .paper-sheet {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--warm-ivory-light);
  }

  .case-body.paper-case .paper-sheet {
    margin: 0;
  }

  .cases-section > .dark-cta {
    width: 320px;
    margin: 34px 0 0 auto;
  }

  .video-section {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr);
    gap: 28px 84px;
    min-height: 790px;
    padding: 102px var(--desktop-pad);
    align-items: start;
  }

  .video-section h2 {
    max-width: 540px;
    margin: 12px 0 14px;
    font-size: clamp(44px, 4.4vw, 66px);
    line-height: 1.1;
  }

  .video-section > p:not(.eyebrow) {
    max-width: 520px;
    font-size: 17px;
    line-height: 1.75;
  }

  .video-feature {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
  }

  .video-feature h3 {
    max-width: 560px;
    margin: 12px 0 18px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.15;
  }

  .youtube-thumb {
    height: 360px;
    border-radius: 28px;
  }

  .play-badge {
    width: 66px;
    height: 66px;
    font-size: 22px;
  }

  .video-section > .eyebrow:nth-of-type(2) {
    grid-column: 1;
    margin-top: 28px;
  }

  .video-list {
    grid-column: 1;
    gap: 12px;
    margin-top: 0;
  }

  .video-list a {
    min-height: 70px;
    border-radius: 16px;
  }

  .outline-cta {
    grid-column: 1;
    width: 320px;
    margin-top: 16px;
  }

  .connect-section {
    display: grid;
    grid-template-columns: minmax(380px, 500px) minmax(500px, 560px);
    gap: 32px 92px;
    min-height: 850px;
    padding: 84px var(--desktop-pad) 78px;
    align-content: center;
    align-items: start;
    justify-content: center;
  }

  .connect-section h2 {
    grid-column: 1;
    max-width: 500px;
    margin: 26px 0 26px;
    font-size: clamp(50px, 4.2vw, 64px);
    line-height: 1.12;
  }

  .connect-intro {
    grid-column: 1;
    width: auto;
    max-width: 500px;
    font-size: 17px;
    line-height: 1.75;
  }

  .message-card {
    grid-column: 1;
    width: min(100%, 440px);
    min-height: 140px;
    margin-top: 28px;
    padding: 30px;
    border-radius: 18px;
    background: var(--olive-soft);
  }

  .message-cta {
    grid-column: 1;
    width: 208px;
    min-height: 54px;
    margin-top: 0;
    border-radius: 8px;
    background: var(--espresso);
    color: var(--warm-ivory-light);
  }

  .schedule-card {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin-top: 0;
    min-height: 560px;
    border-left: 4px solid var(--olive-soft);
    border-radius: 0 28px 28px 0;
    background: #fffff0;
    color: #41291b;
    padding: 44px 42px 42px 38px;
  }

  .schedule-label {
    margin-bottom: 28px;
    color: var(--olive-soft);
  }

  .schedule-row {
    min-height: 112px;
    padding: 0 42px 24px 0;
    border-bottom-color: rgba(65, 41, 27, 0.14);
  }

  .schedule-row + .schedule-row {
    padding-top: 22px;
  }

  .schedule-row strong {
    color: #41291b;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: 0.02em;
  }

  .schedule-row span {
    color: rgba(65, 41, 27, 0.72);
    font-size: 15px;
    line-height: 1.65;
  }

  .schedule-row em {
    color: rgba(86, 95, 48, 0.9);
  }

  .schedule-row b {
    right: 10px;
    top: 28px;
    color: rgba(65, 41, 27, 0.82);
  }

  .schedule-register {
    width: 270px;
    min-height: 54px;
    margin-top: 18px;
    background: var(--olive-soft);
    color: var(--warm-ivory-light);
  }

  .porch-links {
    grid-column: 1 / -1;
    display: block;
    margin-top: 0;
  }

  .porch-link-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(43, 33, 21, 0.12);
    border-left: 1px solid rgba(43, 33, 21, 0.12);
    border-radius: 16px;
    background: rgba(245, 240, 224, 0.72);
    padding: 0;
  }

  .porch-link-panel a {
    min-height: 96px;
    border-bottom: 0;
    border-right: 1px solid rgba(43, 33, 21, 0.12);
    padding: 28px 72px 24px 30px;
  }

  .porch-link-panel a:last-child {
    border-right: 0;
  }

  .footer-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
    gap: 36px 88px;
    min-height: 760px;
    padding: 96px var(--desktop-pad) 64px;
  }

  .footer-art {
    height: 550px;
  }

  .footer-plane {
    height: 550px;
  }

  .footer-c {
    left: 34px;
    top: 0;
    width: 470px;
    height: 550px;
  }

  .footer-section h2 {
    max-width: 560px;
    margin: 28px 0 22px;
    font-size: clamp(56px, 5.4vw, 82px);
    line-height: 1.04;
  }

  .footer-section > p:not(.eyebrow) {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.8;
  }

  .channel-grid {
    grid-column: 2;
    grid-row: 1 / span 3;
    gap: 20px;
    margin-top: 0;
  }

  .channel-card {
    min-height: 176px;
    padding: 24px;
    border-radius: 18px;
  }

  .channel-card strong {
    font-size: 14px;
    line-height: 20px;
  }

  .channel-card span {
    font-size: 14px;
    line-height: 22px;
  }

  .footer-nav,
  .contact-info,
  .closing-row {
    grid-column: 1 / -1;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    border-top: 0;
  }

  .footer-nav a {
    min-height: 70px;
    border: 1px solid rgba(248, 242, 235, 0.16);
    border-radius: 14px;
    padding: 0 22px;
  }

  .contact-info {
    display: grid;
    grid-template-columns: 120px 1fr 120px 1fr;
    gap: 20px;
    align-items: start;
  }

  .contact-info p {
    margin: 0;
  }

  .closing-row {
    grid-template-columns: 92px 1fr;
    margin-top: 0;
    padding-top: 22px;
  }

  .closing-row img {
    width: 92px;
    height: 68px;
  }

  .closing-row p {
    font-size: 28px;
    line-height: 1.25;
  }
}

.coffee-library-page {
  background: var(--warm-ivory);
  color: var(--espresso-deep);
}

.coffee-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 22px 14px;
  background: var(--warm-ivory);
}

.coffee-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.coffee-page-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.coffee-page-brand span,
.coffee-page-header nav a {
  color: var(--espresso-deep);
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.coffee-page-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.coffee-page-hero {
  padding: 0 0 40px;
  background: var(--warm-ivory);
}

.coffee-visual-card {
  position: relative;
  height: 248px;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 45%, rgba(248, 242, 235, 0.92) 0 25%, transparent 26%),
    radial-gradient(circle at 58% 45%, #2f2116 0 30%, transparent 31%),
    linear-gradient(135deg, rgba(87, 92, 51, 0.15), rgba(237, 214, 168, 0.2)),
    #e6dcc7;
}

.coffee-visual-card::before,
.coffee-visual-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.coffee-visual-card::before {
  width: 180px;
  height: 180px;
  right: 42px;
  top: 34px;
  border: 16px solid rgba(248, 242, 235, 0.9);
  box-shadow: 0 24px 55px rgba(46, 31, 20, 0.16);
}

.coffee-visual-card::after {
  width: 112px;
  height: 82px;
  right: 13px;
  top: 79px;
  border: 12px solid rgba(248, 242, 235, 0.86);
  border-left: 0;
  transform: rotate(-3deg);
}

.coffee-cup {
  position: absolute;
  right: 68px;
  top: 60px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #2a1b11 0 47%, #f9f2dd 48% 64%, rgba(248, 242, 235, 0.78) 65% 100%);
  box-shadow: 0 22px 45px rgba(46, 31, 20, 0.22);
}

.coffee-cup span {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(237, 214, 168, 0.2), transparent 24%),
    #2d1d12;
}

.coffee-hero-copy {
  padding: 34px var(--page-pad) 0;
}

.coffee-hero-copy h1 {
  margin: 12px 0 22px;
  color: var(--espresso-pressed);
  font-size: 31px;
  line-height: 37px;
  letter-spacing: -0.045em;
}

.coffee-hero-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(46, 31, 20, 0.72);
  font-size: 15px;
  line-height: 24px;
}

.coffee-sensation-panel,
.coffee-lookup-panel {
  padding: 46px var(--page-pad) 52px;
  background: var(--warm-ivory);
}

.coffee-sensation-panel {
  border-top: 1px solid rgba(46, 31, 20, 0.1);
}

.coffee-sensation-panel h2,
.coffee-lookup-panel h2,
.coffee-next-step h2 {
  margin: 12px 0 16px;
  color: var(--espresso-pressed);
  font-size: 31px;
  line-height: 36px;
  letter-spacing: -0.04em;
}

.coffee-sensation-panel > p:not(.eyebrow),
.coffee-lookup-panel > p:not(.eyebrow),
.coffee-next-step > p:not(.eyebrow) {
  margin: 0;
  color: rgba(46, 31, 20, 0.66);
  font-size: 14px;
  line-height: 23px;
}

.taste-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.taste-card {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 13px;
  border: 1px solid rgba(46, 31, 20, 0.1);
  border-radius: 17px;
  padding: 15px 14px 14px;
  background: var(--paper);
  color: var(--espresso-deep);
  box-shadow: 0 10px 26px rgba(46, 31, 20, 0.06);
}

.taste-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(46, 31, 20, 0.08);
  color: rgba(46, 31, 20, 0.7);
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.taste-card strong {
  display: block;
  font-size: 19px;
  line-height: 23px;
  letter-spacing: -0.035em;
}

.taste-card small {
  color: rgba(46, 31, 20, 0.62);
  font-size: 11px;
  line-height: 17px;
}

.taste-sour {
  background: #f1e6b8;
  border-color: rgba(87, 92, 51, 0.28);
}

.taste-bitter {
  background: #3a2316;
  color: var(--warm-ivory-light);
}

.taste-bitter span,
.taste-bitter small {
  color: rgba(248, 242, 235, 0.7);
}

.taste-bitter span {
  background: rgba(248, 242, 235, 0.12);
}

.taste-light {
  background: #fbf6ea;
}

.taste-harsh {
  background: #7a2f28;
  color: var(--warm-ivory-light);
}

.taste-harsh span,
.taste-harsh small {
  color: rgba(248, 242, 235, 0.7);
}

.taste-harsh span {
  background: rgba(248, 242, 235, 0.12);
}

.taste-dry {
  background: #dfd0b4;
}

.taste-aroma {
  background: #dfe4c5;
}

.taste-body {
  background: #575c33;
  color: var(--warm-ivory-light);
}

.taste-body span,
.taste-body small {
  color: rgba(248, 242, 235, 0.72);
}

.taste-body span {
  background: rgba(248, 242, 235, 0.13);
}

.taste-unknown {
  background: #eee8d6;
  border-style: dashed;
}

.coffee-lookup-panel {
  background: #eee7d5;
}

.lookup-list {
  display: grid;
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(46, 31, 20, 0.1);
  background: var(--paper);
}

.lookup-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 18px;
  color: var(--espresso-deep);
}

.lookup-list a + a {
  border-top: 1px solid rgba(46, 31, 20, 0.1);
}

.lookup-list span {
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.lookup-list strong {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: rgba(46, 31, 20, 0.72);
}

.lookup-list em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--olive);
  font-style: normal;
  font-size: 20px;
}

.coffee-next-step {
  padding: 54px var(--page-pad) 58px;
  background: var(--espresso-deep);
  color: var(--warm-ivory-light);
}

.coffee-next-step h2 {
  color: var(--warm-ivory-light);
}

.coffee-next-step > p:not(.eyebrow) {
  color: rgba(248, 242, 235, 0.74);
}

.coffee-return-link {
  display: inline-flex;
  margin-top: 28px;
  border-bottom: 1px solid rgba(237, 214, 168, 0.5);
  padding-bottom: 6px;
  color: var(--gold);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

@media (min-width: 1024px) {
  .coffee-library-page {
    background: var(--warm-ivory);
  }

  .coffee-page-header,
  .coffee-page-hero,
  .coffee-sensation-panel,
  .coffee-lookup-panel,
  .coffee-next-step {
    max-width: 1180px;
    margin-inline: auto;
  }

  .coffee-page-header {
    min-height: 88px;
    padding: 28px 0 18px;
  }

  .coffee-page-hero {
    display: grid;
    grid-template-columns: 0.94fr 1.06fr;
    align-items: center;
    gap: 70px;
    min-height: 620px;
    padding: 52px 0 74px;
  }

  .coffee-visual-card {
    height: 470px;
    border-radius: 32px;
  }

  .coffee-hero-copy {
    padding: 0;
  }

  .coffee-hero-copy h1 {
    max-width: 680px;
    font-size: clamp(54px, 5vw, 74px);
    line-height: 0.98;
  }

  .coffee-hero-copy p:not(.eyebrow) {
    max-width: 540px;
    font-size: 18px;
    line-height: 30px;
  }

  .coffee-sensation-panel,
  .coffee-lookup-panel,
  .coffee-next-step {
    border-radius: 34px;
    padding: 72px;
  }

  .coffee-sensation-panel h2,
  .coffee-lookup-panel h2,
  .coffee-next-step h2 {
    max-width: 620px;
    font-size: 52px;
    line-height: 1.05;
  }

  .taste-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .taste-card {
    min-height: 156px;
    padding: 20px;
  }

  .lookup-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lookup-list a + a {
    border-top: 0;
  }

  .lookup-list a:nth-child(2n) {
    border-left: 1px solid rgba(46, 31, 20, 0.1);
  }

  .lookup-list a:nth-child(n + 3) {
    border-top: 1px solid rgba(46, 31, 20, 0.1);
  }
}

/* Coffee Library — final local refinement after Founder review 2026-08-03 */
.coffee-entry-page {
  width: min(100vw, 390px);
  background: #f0e9d5;
}

.coffee-entry-page .coffee-page-header {
  height: 58px;
  min-height: 58px;
  align-items: center;
  padding: 0 24px;
  background: #f0e9d5;
}

.coffee-entry-page .coffee-page-brand {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
}

.coffee-entry-page .coffee-page-brand img {
  display: none;
}

.coffee-entry-page .coffee-page-brand span {
  position: static;
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 1.08px;
}

.coffee-entry-page .coffee-page-header nav {
  gap: 19px;
  padding: 0;
}

.coffee-entry-page .coffee-page-header nav a {
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

.coffee-entry-page .coffee-entry-hero {
  height: 290px;
}

.coffee-entry-page .coffee-sensation-panel {
  gap: 22px;
  padding: 58px 24px 62px;
  background: #2c1a11;
  border: 0;
}

.coffee-entry-page .coffee-sensation-panel h2,
.coffee-entry-page .coffee-lookup-panel h2 {
  max-width: none;
  width: 342px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.29px;
}

.coffee-entry-page .coffee-sensation-panel h2 {
  color: #fff7e3;
  font-size: 29px;
  line-height: 35px;
}

.coffee-entry-page .coffee-sensation-panel > p:not(.coffee-panel-label) {
  width: 342px;
  margin: 0;
  color: rgba(231, 217, 180, 0.9);
  font-size: 14px;
  line-height: 23px;
}

.coffee-entry-page .coffee-panel-label {
  width: 342px;
  margin: 0;
  color: #e7d9b4;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.coffee-entry-page .taste-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
}

.coffee-entry-page .taste-choice {
  min-height: 58px;
  height: 58px;
  border-radius: 14px;
  padding: 0 14px 0 16px;
  box-shadow: 0 8px 18px rgba(38, 23, 13, 0.12);
}

.coffee-entry-page .taste-choice span {
  font-size: 10px;
  line-height: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.coffee-entry-page .taste-choice em {
  font-size: 12px;
}

.coffee-entry-page .taste-choice.taste-sour {
  background: #667436;
  border-color: rgba(170, 178, 119, 0.72);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-bitter {
  background: #432319;
  border-color: rgba(129, 81, 59, 0.62);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-light {
  background: #ead9ad;
  border-color: rgba(205, 187, 142, 0.72);
  color: #2c1a11;
}

.coffee-entry-page .taste-choice.taste-harsh {
  background: #70352c;
  border-color: rgba(181, 108, 91, 0.58);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-dry {
  background: #7c6048;
  border-color: rgba(181, 144, 108, 0.58);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-aroma {
  background: #cfad62;
  border-color: rgba(227, 196, 122, 0.68);
  color: #2c1a11;
}

.coffee-entry-page .taste-choice.taste-body {
  background: #70735b;
  border-color: rgba(165, 169, 142, 0.66);
  color: #fff7e3;
}

.coffee-entry-page .taste-choice.taste-unknown {
  background: #fbf6ea;
  border-color: rgba(215, 205, 178, 0.9);
  color: #2c1a11;
}

.coffee-entry-page .coffee-lookup-panel {
  gap: 18px;
  min-height: 620px;
  padding: 58px 24px 62px;
  background: #f0e9d5;
}

.coffee-entry-page .coffee-lookup-kicker {
  height: 28px;
  color: rgba(36, 19, 11, 0.76);
}

.coffee-entry-page .coffee-lookup-panel h2 {
  color: #24130b;
  font-size: 29px;
  line-height: 35px;
}

.coffee-entry-page .coffee-lookup-panel > p {
  width: 342px;
  margin: 0;
  color: rgba(36, 19, 11, 0.68);
  font-size: 14px;
  line-height: 23px;
}

.coffee-entry-page .lookup-list {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 12px;
  width: 100%;
  height: auto;
  margin: 4px 0 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.coffee-entry-page .lookup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-height: 92px;
  height: 92px;
  border: 1px solid rgba(60, 34, 20, 0.12);
  border-radius: 17px;
  padding: 18px 18px 16px 22px;
  background: #fbf6ea;
  box-shadow: 0 8px 22px rgba(41, 26, 18, 0.08);
}

.coffee-entry-page .lookup-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: #667436;
}

.coffee-entry-page .lookup-card span {
  color: #575c33;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.coffee-entry-page .lookup-card strong {
  color: rgba(36, 19, 11, 0.78);
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
}

.coffee-entry-page .lookup-roast::before {
  background: #692424;
}

.coffee-entry-page .lookup-error::before {
  background: #432319;
}

.coffee-entry-page .lookup-bean::before {
  background: #70735b;
}

.coffee-entry-page .coffee-entry-footer {
  padding: 42px 24px 50px;
  background: #3c2214;
}

@media (min-width: 1024px) {
  .coffee-entry-page,
  .coffee-entry-page .coffee-page-header,
  .coffee-entry-page .coffee-entry-hero,
  .coffee-entry-page .coffee-sensation-panel,
  .coffee-entry-page .coffee-lookup-panel,
  .coffee-entry-page .coffee-entry-footer {
    max-width: 390px;
    margin-inline: auto;
  }

  .coffee-entry-page .coffee-page-header {
    height: 58px;
    min-height: 58px;
    padding: 0 24px;
  }

  .coffee-entry-page .coffee-sensation-panel {
    padding: 58px 24px 62px;
  }

  .coffee-entry-page .coffee-lookup-panel {
    padding: 58px 24px 62px;
  }

  .coffee-entry-page .taste-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .coffee-entry-page .lookup-list a:nth-child(2n),
  .coffee-entry-page .lookup-list a:nth-child(n + 3) {
    border-left-width: 1px;
    border-top-width: 1px;
  }
}

/* Hard fix for Coffee Library tra-cuu width on larger phones (remove 390px lock). */
#coffee-topic-main.coffee-topic-page.site-shell {
  width: min(100vw, 430px) !important;
  max-width: 430px !important;
}

@media (max-width: 430px) {
  #coffee-topic-main.coffee-topic-page.site-shell {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* Coffee Library result page in Figma flow: Chua + 5 main / 3 related. */
#coffee-result-main.coffee-result-page.site-shell {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #f0e9d5;
}

.coffee-result-page .coffee-page-header {
  height: 58px;
  min-height: 58px;
  align-items: center;
  padding: 0 24px;
  background: #f0e9d5;
}

.coffee-result-page .coffee-page-brand {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
}

.coffee-result-page .coffee-page-brand img {
  display: none;
}

.coffee-result-page .coffee-page-brand span {
  position: static;
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 1.08px;
}

.coffee-result-page .coffee-page-location {
  gap: 6px;
  white-space: nowrap;
}

.coffee-result-page .coffee-page-location a,
.coffee-result-page .coffee-page-location strong,
.coffee-result-page .coffee-page-location span {
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 1.08px;
  text-decoration: none;
}

.coffee-result-page .coffee-page-location a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(36, 19, 11, 0.34);
}

.coffee-result-page .coffee-page-location a:focus-visible {
  outline: 3px solid #414824;
  outline-offset: 4px;
}

.coffee-result-page .coffee-page-location-separator {
  opacity: 0.46;
}

.coffee-result-page .coffee-page-header nav {
  gap: 19px;
  padding: 0;
}

.coffee-result-page .coffee-page-header nav a {
  color: #24130b;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

/* Keep the current guided stage readable without colliding with mobile nav. */
@media (max-width: 639px) {
  #coffee-result-main .coffee-page-header {
    gap: 12px;
  }

  #coffee-result-main .coffee-page-location {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    overflow: hidden;
  }

  #coffee-result-main .coffee-page-location > span {
    display: none;
  }

  #coffee-result-main .coffee-page-parent {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #coffee-result-main .coffee-page-location strong[aria-current="page"] {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    white-space: nowrap;
  }

  #coffee-result-main .coffee-page-location strong[aria-current="page"]::before {
    margin-inline: 6px;
    content: "\00b7";
    opacity: 0.46;
  }

  #coffee-result-main .coffee-page-header nav {
    flex: 0 0 auto;
  }

  #coffee-result-main .coffee-page-header nav a {
    white-space: nowrap;
  }
}

.coffee-result-page .coffee-result-hero,
.coffee-result-page .coffee-result-section,
.coffee-result-page .coffee-result-footer,
.coffee-result-page .coffee-result-card,
.coffee-result-page .coffee-result-grid {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.coffee-result-page .coffee-result-hero {
  background: #2c1a11;
  color: #fff7e3;
  padding: 52px 24px 48px;
  border-top: 0;
}

.coffee-result-page .coffee-journey {
  margin: 0 0 34px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(255, 247, 227, 0.2);
}

.coffee-result-page .coffee-journey > p {
  margin: 0 0 12px;
  color: rgba(255, 247, 227, 0.66);
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.coffee-result-page .coffee-journey > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.coffee-result-page .coffee-journey > div a,
.coffee-result-page .coffee-journey > div strong,
.coffee-result-page .coffee-journey > div span {
  color: #fff7e3;
  font-size: 11px;
  line-height: 17px;
  font-weight: 700;
  letter-spacing: 0.35px;
}

.coffee-result-page .coffee-journey > div a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 247, 227, 0.42);
}

.coffee-result-page .coffee-journey > div span {
  color: rgba(255, 247, 227, 0.44);
}

.coffee-result-page .coffee-journey-current {
  letter-spacing: 0.08em;
}

.coffee-result-page .coffee-journey a:focus-visible {
  outline: 3px solid #fff7e3;
  outline-offset: 4px;
}

.coffee-result-page .coffee-result-hero h1,
.coffee-result-page .coffee-result-section h2 {
  margin: 0;
}

.coffee-result-page .coffee-result-hero h1 {
  color: #fff7e3;
  font-size: 33px;
  line-height: 40px;
  letter-spacing: -0.035em;
}

.coffee-result-page .coffee-result-kicker {
  margin: 0 0 16px;
  color: rgba(255, 247, 227, 0.78);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.coffee-result-page .coffee-result-hero p {
  margin: 14px 0 0;
  color: rgba(255, 247, 227, 0.86);
  font-size: 14px;
  line-height: 22px;
}

.coffee-result-page .coffee-result-section {
  padding: 34px 24px 16px;
}

.coffee-result-page .coffee-result-section + .coffee-result-section {
  padding-top: 12px;
  border-top: 1px solid rgba(43, 33, 21, 0.08);
}

.coffee-result-page .coffee-result-section h2 {
  color: #24130b;
  font-size: 27px;
  line-height: 34px;
  letter-spacing: -0.02em;
}

.coffee-result-page .coffee-result-label {
  margin: 0 0 12px;
  color: rgba(36, 19, 11, 0.72);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.coffee-result-list,
.coffee-result-grid {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.coffee-result-grid {
  grid-template-columns: 1fr;
}

.coffee-result-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid rgba(60, 34, 20, 0.16);
  background: #fbf6ea;
  padding: 18px 48px 18px 20px;
  min-height: 92px;
  box-shadow: 0 10px 22px rgba(41, 26, 18, 0.08);
}

.coffee-result-card span {
  display: inline-block;
  color: #575c33;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.9px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.coffee-result-card strong {
  display: block;
  color: #24130b;
  font-size: 14px;
  line-height: 21px;
  margin-bottom: 6px;
}

.coffee-result-card p {
  margin: 0;
  color: rgba(36, 19, 11, 0.74);
  font-size: 13px;
  line-height: 19px;
}

.coffee-result-card em {
  position: absolute;
  right: 16px;
  top: 18px;
  color: #6a523f;
  font-size: 18px;
  font-style: normal;
}

.coffee-result-page .coffee-result-related .coffee-result-card {
  min-height: 82px;
}

.coffee-result-page .coffee-result-related .coffee-result-card p {
  display: none;
}

.coffee-result-footer {
  padding: 0 24px 30px;
}

.coffee-result-page .coffee-result-footer p {
  margin: 0 0 14px;
  color: rgba(36, 19, 11, 0.78);
  font-size: 13px;
}

.coffee-result-page .coffee-result-footer a {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-bottom: 1px solid rgba(36, 19, 11, 0.32);
  padding-bottom: 8px;
  color: #24130b;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Override for coffee chua result template: 100% mobile shell + card style v2 */
#coffee-result-main {
  width: 100vw;
  max-width: none;
  min-width: auto;
  margin: 0;
  border-radius: 0;
}

#coffee-result-main .coffee-result-hero,
#coffee-result-main .coffee-result-section,
#coffee-result-main .coffee-result-footer {
  padding-inline: 22px;
}

#coffee-result-main .coffee-result-hero {
  padding-top: 48px;
  padding-bottom: 42px;
}

#coffee-result-main .coffee-result-hero h1 {
  font-size: 30px;
  line-height: 38px;
}

#coffee-result-main .coffee-result-list,
#coffee-result-main .coffee-result-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#coffee-result-main .coffee-result-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 52px 18px 26px;
  min-height: 132px;
  border: 1px solid rgba(95, 88, 68, 0.22);
  background: #fffaf0;
  box-shadow: 0 14px 24px -22px rgba(40, 33, 24, 0.36);
  color: #2d1a09;
  text-decoration: none;
  isolation: isolate;
}

#coffee-result-main .coffee-result-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  pointer-events: none;
  border-radius: 18px 0 0 18px;
  background: #56633a;
}

#coffee-result-main .coffee-result-card::after {
  content: none;
}

#coffee-result-main .coffee-result-card em {
  right: 14px;
  top: 16px;
}

#coffee-result-main .coffee-result-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #56633a;
  font-weight: 700;
  text-transform: uppercase;
}

#coffee-result-main .coffee-result-card-tag strong {
  display: inline;
  font-size: 13px;
  line-height: 1.1;
  margin: 0;
}

#coffee-result-main .coffee-result-card-title {
  display: block;
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

#coffee-result-main .coffee-result-card p {
  margin: 0;
  color: #6d4e30;
  font-size: 14px;
  line-height: 1.5;
}

#coffee-result-main .coffee-result-empty {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 28px 0 34px;
  color: #6d4e30;
  font-size: 15px;
  line-height: 1.6;
}

#coffee-result-main .coffee-result-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
  margin-top: 22px;
}

#coffee-result-main .coffee-result-footer a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

@media (min-width: 431px) {
  #coffee-result-main {
    width: min(100vw, 430px);
    max-width: 430px;
    margin-inline: auto;
  }

  #coffee-result-main .coffee-result-hero,
  #coffee-result-main .coffee-result-section,
  #coffee-result-main .coffee-result-footer {
    padding-inline: 24px;
  }
}

/* Coffee Library guided result — desktop editorial layout V1 */
@media (min-width: 1024px) {
  #coffee-result-main.coffee-result-page.site-shell {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0 !important;
    background: #f4eee1;
  }

  #coffee-result-main .coffee-page-header {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    height: 88px;
    min-height: 88px;
    padding-inline: max(48px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(36, 19, 11, 0.12);
    background: #f4eee1;
  }

  #coffee-result-main .coffee-page-location a,
  #coffee-result-main .coffee-page-location strong,
  #coffee-result-main .coffee-page-location span,
  #coffee-result-main .coffee-page-header nav a {
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0.08em;
  }

  #coffee-result-main .coffee-page-header nav {
    gap: 30px;
  }

  #coffee-result-main .coffee-result-hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    min-height: 500px;
    padding: 72px max(48px, calc((100vw - 1180px) / 2)) 86px;
    background: #4b572e;
  }

  #coffee-result-main .coffee-result-hero h1 {
    grid-column: 1 / span 8;
    align-self: end;
    max-width: 760px;
    font-size: clamp(52px, 5vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.055em;
  }

  #coffee-result-main .coffee-result-hero > #coffee-result-description {
    grid-column: 9 / -1;
    align-self: end;
    max-width: 360px;
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.65;
  }

  #coffee-result-main .coffee-result-section {
    width: 100%;
    max-width: none;
    padding: 82px max(48px, calc((100vw - 1180px) / 2)) 88px;
  }

  #coffee-result-main .coffee-result-section + .coffee-result-section {
    padding-top: 76px;
    border-top: 1px solid rgba(36, 19, 11, 0.12);
  }

  #coffee-result-main .coffee-result-label {
    margin-bottom: 14px;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.12em;
  }

  #coffee-result-main .coffee-result-section h2 {
    max-width: 720px;
    font-size: clamp(38px, 3.5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  #coffee-result-main .coffee-result-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 44px;
  }

  #coffee-result-main .coffee-result-card {
    min-height: 212px;
    padding: 30px 70px 30px 34px;
    border-radius: 20px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  #coffee-result-main .coffee-result-card::before {
    width: 9px;
    border-radius: 20px 0 0 20px;
  }

  #coffee-result-main .coffee-result-card:hover {
    transform: translateY(-3px);
    border-color: rgba(75, 87, 46, 0.46);
    box-shadow: 0 22px 36px -28px rgba(36, 19, 11, 0.55);
  }

  #coffee-result-main .coffee-result-card:focus-visible {
    outline: 3px solid #414824;
    outline-offset: 4px;
  }

  #coffee-result-main .coffee-result-card-tag,
  #coffee-result-main .coffee-result-card-tag strong {
    font-size: 12px;
    line-height: 16px;
  }

  #coffee-result-main .coffee-result-card-title {
    max-width: 520px;
    font-size: clamp(20px, 1.65vw, 25px);
    line-height: 1.32;
  }

  #coffee-result-main .coffee-result-card p {
    max-width: 570px;
    font-size: 15px;
    line-height: 1.6;
  }

  #coffee-result-main .coffee-result-card em {
    top: 28px;
    right: 28px;
    font-size: 24px;
  }

  #coffee-result-main .coffee-result-list > .coffee-result-card:nth-of-type(5) {
    grid-column: 1 / -1;
    min-height: 174px;
    background: #e7e2cd;
    border-color: rgba(75, 87, 46, 0.34);
  }

  #coffee-result-main .coffee-result-list > .coffee-result-empty {
    grid-column: 1 / -1;
  }

  #coffee-result-main .coffee-result-related {
    background: #e8e1d3;
  }

  #coffee-result-main .coffee-result-related .coffee-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 44px;
  }

  #coffee-result-main .coffee-result-related .coffee-result-card {
    min-height: 190px;
  }

  #coffee-result-main .coffee-result-footer {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    align-items: center;
    gap: 24px 44px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 54px max(48px, calc((100vw - 1180px) / 2));
    background: #3c2214;
  }

  #coffee-result-main .coffee-result-footer p {
    margin: 0;
    color: #fff7e3;
    font-size: 16px;
    line-height: 24px;
  }

  #coffee-result-main .coffee-result-footer a {
    width: auto;
    margin: 0;
    padding: 8px 0;
    border-color: rgba(255, 247, 227, 0.42);
    color: #fff7e3;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
  }

  #coffee-result-main .coffee-result-footer a:focus-visible {
    outline: 3px solid #e7d9a4;
    outline-offset: 4px;
  }
}

/* Coffee Library guided entry — desktop editorial layout V1 */
@media (min-width: 1024px) {
  #coffee-main.coffee-entry-page.site-shell {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    background: #f0e9d5;
  }

  #coffee-main.coffee-entry-page .coffee-page-header,
  #coffee-main.coffee-entry-page .coffee-entry-hero,
  #coffee-main.coffee-entry-page .coffee-sensation-panel,
  #coffee-main.coffee-entry-page .coffee-lookup-panel,
  #coffee-main.coffee-entry-page .coffee-entry-footer {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  #coffee-main.coffee-entry-page .coffee-page-header {
    min-height: 88px;
    height: 88px;
    align-items: center;
    padding: 0 clamp(48px, 7vw, 112px);
    border-bottom: 1px solid rgba(36, 19, 11, 0.12);
  }

  #coffee-main.coffee-entry-page .coffee-page-brand span,
  #coffee-main.coffee-entry-page .coffee-page-header nav a {
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0.08em;
  }

  #coffee-main.coffee-entry-page .coffee-page-header nav {
    gap: 30px;
  }

  #coffee-main.coffee-entry-page .coffee-entry-hero {
    height: clamp(590px, 58vw, 780px);
    background: #d8cebd;
  }

  #coffee-main.coffee-entry-page .coffee-entry-hero img {
    object-position: 50% 58%;
  }

  #coffee-main.coffee-entry-page .coffee-entry-hero-copy {
    position: absolute;
    z-index: 1;
    left: clamp(28px, 3vw, 56px);
    bottom: clamp(72px, 8vw, 124px);
    display: block;
    width: min(44vw, 620px);
    margin: 0;
    color: #24130b;
    font-size: clamp(48px, 4.6vw, 74px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.055em;
  }

  #coffee-main.coffee-entry-page .coffee-entry-hero-copy span {
    display: block;
  }

  #coffee-main.coffee-entry-page .coffee-sensation-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.42fr);
    grid-template-areas:
      "title label"
      "title choices";
    column-gap: clamp(70px, 8vw, 138px);
    row-gap: 28px;
    min-height: 0;
    padding: clamp(96px, 9vw, 138px) clamp(48px, 7vw, 112px);
    align-items: start;
  }

  #coffee-main.coffee-entry-page .coffee-sensation-panel h2 {
    grid-area: title;
    align-self: center;
    width: auto;
    max-width: 580px;
    color: #fff7e3;
    font-size: clamp(48px, 4.35vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  #coffee-main.coffee-entry-page .coffee-panel-label {
    grid-area: label;
    width: auto;
    align-self: end;
    padding-bottom: 2px;
    font-size: 11px;
    line-height: 15px;
    letter-spacing: 1.4px;
  }

  #coffee-main.coffee-entry-page .taste-grid {
    grid-area: choices;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 110%;
  }

  #coffee-main.coffee-entry-page .taste-choice {
    min-height: 112px;
    height: 112px;
    padding: 22px 20px 20px 22px;
    border-radius: 18px;
    align-items: flex-end;
    box-shadow: 0 18px 34px rgba(20, 11, 7, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  #coffee-main.coffee-entry-page .taste-choice span {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.95px;
  }

  #coffee-main.coffee-entry-page .taste-choice em {
    width: 18px;
    flex-basis: 18px;
    font-size: 15px;
    line-height: 16px;
  }

  #coffee-main.coffee-entry-page .coffee-lookup-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    grid-template-areas:
      "kicker cards"
      "heading cards";
    column-gap: clamp(70px, 8vw, 138px);
    row-gap: 22px;
    min-height: 0;
    padding: clamp(104px, 9vw, 142px) clamp(48px, 7vw, 112px);
    align-items: start;
  }

  #coffee-main.coffee-entry-page .coffee-lookup-kicker {
    grid-area: kicker;
    width: auto;
    height: auto;
    margin-bottom: 16px;
  }

  #coffee-main.coffee-entry-page .coffee-lookup-panel h2 {
    grid-area: heading;
    width: auto;
    max-width: 560px;
    font-size: clamp(48px, 4.35vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  #coffee-main.coffee-entry-page .lookup-list {
    grid-area: cards;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    height: auto;
    margin: 0;
  }

  #coffee-main.coffee-entry-page .lookup-card {
    min-height: 166px;
    height: 166px;
    justify-content: flex-end;
    gap: 12px;
    padding: 30px 30px 28px 34px;
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(41, 26, 18, 0.1);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  #coffee-main.coffee-entry-page .lookup-card::before {
    top: 28px;
    bottom: 28px;
    width: 6px;
  }

  #coffee-main.coffee-entry-page .lookup-card span {
    font-size: 11px;
    line-height: 15px;
    letter-spacing: 1.1px;
  }

  #coffee-main.coffee-entry-page .lookup-card strong {
    max-width: 340px;
    font-size: 17px;
    line-height: 26px;
  }

  #coffee-main.coffee-entry-page .coffee-entry-footer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    padding: 64px clamp(48px, 7vw, 112px) 70px;
  }

  #coffee-main.coffee-entry-page .coffee-entry-footer p,
  #coffee-main.coffee-entry-page .coffee-entry-footer nav {
    width: auto;
  }

  #coffee-main.coffee-entry-page .coffee-entry-footer p {
    font-size: 20px;
    line-height: 30px;
  }

  #coffee-main.coffee-entry-page .coffee-entry-footer nav {
    gap: 13px;
    font-size: 10px;
    letter-spacing: 1.05px;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  #coffee-main.coffee-entry-page .taste-choice:hover,
  #coffee-main.coffee-entry-page .lookup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(20, 11, 7, 0.2);
  }
}

#coffee-main.coffee-entry-page .taste-choice:focus-visible,
#coffee-main.coffee-entry-page .lookup-card:focus-visible,
#coffee-main.coffee-entry-page .coffee-page-header a:focus-visible,
#coffee-main.coffee-entry-page .coffee-entry-footer a:focus-visible {
  outline: 3px solid #edd6a8;
  outline-offset: 4px;
}

/* Coffee Library · Trồng — five real subject groups, three article slots each. */
#coffee-topic-main.coffee-growing-page {
  --grow-ivory: #f0e9d5;
  --grow-paper: #fbf6ea;
  --grow-ink: #24130b;
  --grow-olive: #575c33;
  --grow-olive-deep: #414824;
  --grow-gold: #e7d9a4;
  --grow-line: rgba(60, 34, 20, 0.18);
  width: 100% !important;
  max-width: none !important;
  background: var(--grow-ivory);
}

.coffee-growing-page .coffee-page-header {
  position: relative;
  z-index: 2;
  height: 68px;
  min-height: 68px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(60, 34, 20, 0.1);
  background: var(--grow-ivory);
}

.coffee-growing-page .coffee-page-brand span,
.coffee-growing-page .coffee-page-header nav a {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.coffee-growing-page .coffee-page-header nav {
  gap: 14px;
}

@media (max-width: 359px) {
  .coffee-growing-page .coffee-page-header {
    padding-inline: 16px;
  }

  .coffee-growing-page .coffee-page-brand span,
  .coffee-growing-page .coffee-page-header nav a {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .coffee-growing-page .coffee-page-header nav {
    gap: 10px;
  }
}

.coffee-growing-hero {
  padding: 76px 24px 54px;
  background: linear-gradient(138deg, var(--grow-olive) 0%, var(--grow-olive-deep) 100%);
  color: #fff7e3;
}

.coffee-growing-hero > p,
.coffee-growing-hero > h1,
.coffee-growing-hero > strong,
.coffee-growing-hero > nav {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.coffee-growing-hero > p {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--grow-gold);
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.coffee-growing-hero h1 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(54px, 10vw, 116px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.065em;
}

.coffee-growing-hero > strong {
  display: block;
  max-width: 760px;
  margin-left: max(0px, calc((100% - min(100%, 1180px)) / 2));
  color: rgba(255, 247, 227, 0.76);
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.coffee-growing-hero nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 58px;
  border-top: 1px solid rgba(255, 247, 227, 0.24);
}

.coffee-growing-hero nav a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid rgba(255, 247, 227, 0.24);
  color: #fff7e3;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.coffee-growing-hero nav span {
  color: var(--grow-gold);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.coffee-growing-content {
  padding: 66px 24px 90px;
  background: #f7f1e5;
  color: var(--grow-ink);
}

.coffee-growing-content > * {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.coffee-growing-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 52px;
}

.coffee-growing-intro .topic-choice-label {
  margin: 0;
}

.coffee-growing-intro h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.coffee-growing-intro > a {
  width: fit-content;
  margin-top: 8px;
  border-bottom: 1px solid rgba(36, 19, 11, 0.45);
  padding-bottom: 5px;
  color: var(--grow-ink);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.coffee-growing-groups {
  display: flex;
  flex-direction: column;
}

.coffee-growing-group {
  --grow-accent: var(--grow-olive);
  --grow-accent-wash: #f0f0df;
  scroll-margin-top: 84px;
  border-top: 1px solid var(--grow-line);
  padding: 52px 0 62px;
}

.coffee-growing-group:nth-child(2) {
  --grow-accent: #8b5e3c;
  --grow-accent-wash: #f4e9de;
}

.coffee-growing-group:nth-child(3) {
  --grow-accent: #3f4a2c;
  --grow-accent-wash: #e8eddf;
}

.coffee-growing-group:nth-child(4) {
  --grow-accent: #59613a;
  --grow-accent-wash: #eef0e3;
}

.coffee-growing-group:nth-child(5) {
  --grow-accent: #5c3324;
  --grow-accent-wash: #f2e6df;
}

.coffee-growing-group > header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.coffee-growing-group > header > span {
  color: var(--grow-accent);
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.coffee-growing-group h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.coffee-growing-group header p {
  max-width: 650px;
  margin: 0;
  color: rgba(36, 19, 11, 0.66);
  font-size: 15px;
  line-height: 1.65;
}

.coffee-growing-grid,
.coffee-growing-all-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.coffee-growing-card {
  position: relative;
  display: flex;
  min-height: 172px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(60, 34, 20, 0.13);
  border-top: 4px solid var(--grow-accent, var(--grow-olive));
  padding: 24px;
  background: linear-gradient(180deg, var(--grow-accent-wash, #f0f0df) 0%, var(--grow-paper) 42%);
  color: var(--grow-ink);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.coffee-growing-card > span {
  color: var(--grow-accent, var(--grow-olive));
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.coffee-growing-card > strong {
  flex: 1;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.coffee-growing-card > em {
  color: var(--grow-accent, var(--grow-olive));
  font-size: 9px;
  line-height: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.coffee-growing-card.is-missing {
  border-style: dashed;
  background: var(--grow-accent-wash, #f0f0df);
  color: #6c5e55;
}

.coffee-growing-card.is-missing > span,
.coffee-growing-card.is-missing > em {
  color: var(--grow-accent, var(--grow-olive));
}

.coffee-growing-card.is-missing > strong {
  max-width: 240px;
  font-weight: 500;
}

.coffee-growing-group-more {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin: 8px 0 0 auto;
  padding: 10px 0;
  color: var(--grow-accent, var(--grow-olive));
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.coffee-growing-view-all {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--grow-olive);
  border-bottom: 1px solid var(--grow-olive);
  padding-inline: 24px;
  background: var(--grow-olive);
  color: #fff7e3;
}

.coffee-growing-view-all span,
.coffee-growing-view-all strong {
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.coffee-growing-view-all strong {
  color: var(--grow-gold);
  text-align: right;
}

.coffee-growing-pagination {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  border-top: 1px solid var(--grow-line);
  border-bottom: 1px solid var(--grow-line);
  color: var(--grow-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.coffee-growing-page .coffee-topic-footer {
  width: 100% !important;
  max-width: none !important;
  padding: 38px 24px;
}

.coffee-growing-page .coffee-topic-footer > * {
  width: auto !important;
}

@media (min-width: 720px) {
  .coffee-growing-page .coffee-page-header {
    padding-inline: clamp(36px, 5vw, 76px);
  }

  .coffee-growing-hero,
  .coffee-growing-content {
    padding-inline: clamp(36px, 6vw, 96px);
  }

  .coffee-growing-hero nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .coffee-growing-hero nav a {
    min-height: 104px;
    grid-template-columns: 1fr;
    align-content: center;
    border-right: 1px solid rgba(255, 247, 227, 0.24);
    padding: 18px;
  }

  .coffee-growing-hero nav a:first-child {
    padding-left: 0;
  }

  .coffee-growing-hero nav a:last-child {
    border-right: 0;
  }

  .coffee-growing-grid,
  .coffee-growing-all-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .coffee-growing-group > header {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .coffee-growing-card {
    min-height: 210px;
    padding: 28px;
  }

  .coffee-growing-page .coffee-topic-footer {
    padding-inline: clamp(36px, 6vw, 96px);
  }
}

#coffee-topic-main.coffee-library-topic-page .coffee-library-topic-pagination {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  border-top: 1px solid rgba(60, 34, 20, 0.18);
  border-bottom: 1px solid rgba(60, 34, 20, 0.18);
  color: #24130b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#coffee-topic-main.coffee-library-topic-page .coffee-library-topic-pagination a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
}

@media (min-width: 1024px) {
  .coffee-growing-page .coffee-page-header {
    padding-inline: max(clamp(48px, 6vw, 96px), calc((100% - 1180px) / 2));
  }

  .coffee-growing-hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    padding: 96px max(clamp(48px, 6vw, 96px), calc((100vw - 1180px) / 2)) 72px;
  }

  .coffee-growing-hero > p,
  .coffee-growing-hero > h1,
  .coffee-growing-hero > strong,
  .coffee-growing-hero > nav {
    width: auto;
    margin-inline: 0;
  }

  .coffee-growing-hero > p {
    grid-column: 1 / -1;
  }

  .coffee-growing-hero > h1 {
    grid-column: 1 / span 8;
    margin-bottom: 0;
  }

  .coffee-growing-hero > strong {
    grid-column: 9 / -1;
    align-self: end;
    max-width: 360px;
    margin: 0;
    padding-bottom: 12px;
    font-size: clamp(20px, 2vw, 28px);
  }

  .coffee-growing-hero > nav {
    grid-column: 1 / -1;
    margin-top: 64px;
  }

  .coffee-growing-content {
    padding-top: 72px;
    padding-bottom: 124px;
    padding-left: max(clamp(48px, 6vw, 96px), calc((100vw - 1180px) / 2));
    padding-right: max(clamp(48px, 6vw, 96px), calc((100vw - 1180px) / 2));
  }

  .coffee-growing-intro {
    margin-bottom: 18px;
  }

  .coffee-growing-group {
    padding: 60px 0 78px;
  }

  .coffee-growing-group:first-child {
    padding-top: 44px;
  }

  .coffee-growing-group > header {
    grid-template-columns: clamp(110px, 12vw, 156px) minmax(0, 1fr);
    gap: clamp(28px, 3vw, 44px);
  }

  .coffee-growing-group > header > span {
    font-size: clamp(64px, 6vw, 72px);
    line-height: 0.86;
    font-weight: 500;
    letter-spacing: -0.055em;
  }

  .coffee-growing-card {
    min-height: 220px;
    padding: 30px;
  }

  .coffee-growing-card > span,
  .coffee-growing-card > em {
    font-size: 10px;
    line-height: 14px;
  }

  .coffee-growing-card > strong {
    font-size: 19px;
  }

  .coffee-growing-group-more {
    font-size: 11px;
  }

  .coffee-growing-page .coffee-topic-footer {
    min-height: 132px;
    padding-left: max(clamp(36px, 6vw, 96px), calc((100% - 1180px) / 2));
    padding-right: max(clamp(36px, 6vw, 96px), calc((100% - 1180px) / 2));
  }
}

@media (hover: hover) {
  .coffee-growing-card[href]:hover {
    transform: translateY(-3px);
    border-color: var(--grow-accent, var(--grow-olive));
    background: var(--grow-paper);
  }
}

.coffee-growing-page a:focus-visible {
  outline: 3px solid #74795d;
  outline-offset: 4px;
}

.coffee-growing-hero a:focus-visible,
.coffee-growing-view-all:focus-visible {
  outline-color: var(--grow-gold);
}

/* Coffee Library search hub — one search action, seven equal subject choices. */
#coffee-topic-main.coffee-search-page {
  --search-ivory: #f0e9d5;
  --search-paper: #fbf6ea;
  --search-ink: #24130b;
  --search-olive: #575c33;
  --search-olive-deep: #414824;
  --search-gold: #e7d9a4;
  width: 100% !important;
  max-width: none !important;
  background: var(--search-ivory);
}

#coffee-topic-main.coffee-search-page .coffee-page-header {
  height: 68px;
  min-height: 68px;
  padding-inline: 24px;
  border-bottom: 1px solid rgba(60, 34, 20, 0.1);
  background: var(--search-ivory);
}

#coffee-topic-main.coffee-search-page .coffee-page-brand span,
#coffee-topic-main.coffee-search-page .coffee-page-header nav a {
  color: var(--search-ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

#coffee-topic-main.coffee-search-page .coffee-topic-quick {
  padding: 64px 24px 58px;
  background: linear-gradient(138deg, var(--search-olive) 0%, var(--search-olive-deep) 100%);
  color: #fff7e3;
}

#coffee-topic-main.coffee-search-page .coffee-search-hero-inner {
  width: min(100%, 1180px);
  margin-inline: auto;
}

#coffee-topic-main.coffee-search-page .coffee-search-heading {
  display: flex;
  flex-direction: column;
}

#coffee-topic-main.coffee-search-page .topic-search-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 20px;
  width: 28px;
  height: 28px;
  margin: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

#coffee-topic-main.coffee-search-page .topic-search-mark::before {
  left: 1px;
  top: 1px;
  width: 16px;
  height: 16px;
  border-width: 3px;
  border-color: var(--search-olive);
}

#coffee-topic-main.coffee-search-page .topic-search-mark::after {
  left: 18px;
  top: 18px;
  width: 10px;
  height: 3px;
  background: var(--search-olive);
}

#coffee-topic-main.coffee-search-page .coffee-topic-quick h1 {
  max-width: 720px !important;
  margin: 0;
  color: #fff7e3;
  font-size: clamp(46px, 11vw, 92px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.06em;
}

#coffee-topic-main.coffee-search-page .topic-search-form {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) 64px;
  margin-top: 42px;
  border: 1px solid rgba(255, 247, 227, 0.4);
  background: var(--search-paper);
}

#coffee-topic-main.coffee-search-page .topic-search-form input {
  padding: 0 20px 0 60px;
  color: var(--search-ink);
  font-size: 15px;
}

#coffee-topic-main.coffee-search-page .topic-search-form button {
  min-width: 64px;
  border-left-color: rgba(36, 19, 11, 0.18);
  background: #202525;
  color: #fff7e3;
}

#coffee-topic-main.coffee-search-page .coffee-search-results,
#coffee-topic-main.coffee-search-page .topic-shelf-section {
  padding: 68px 24px 88px;
  background: #f7f1e5;
}

#coffee-topic-main.coffee-search-page .coffee-search-results > *,
#coffee-topic-main.coffee-search-page .topic-shelf-section > * {
  width: min(100%, 1180px) !important;
  margin-inline: auto !important;
}

#coffee-topic-main.coffee-search-page .topic-shelf-section > .topic-choice-label {
  margin-bottom: 14px !important;
  color: var(--search-olive);
}

#coffee-topic-main.coffee-search-page .topic-shelf-section h2 {
  margin: 0 0 34px;
  color: var(--search-ink);
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.055em;
}

#coffee-topic-main.coffee-search-page .topic-shelf-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

#coffee-topic-main.coffee-search-page .topic-shelf-card {
  --shelf-wash: #edf0dc;
  display: grid;
  min-height: 116px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  gap: 7px 16px;
  align-content: center;
  border: 1px solid rgba(60, 34, 20, 0.13);
  border-top: 4px solid var(--shelf-accent, var(--search-olive));
  border-radius: 0;
  padding: 20px;
  background: linear-gradient(180deg, var(--shelf-wash) 0%, var(--search-paper) 58%);
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

#coffee-topic-main.coffee-search-page .topic-shelf-card::before {
  display: none;
}

#coffee-topic-main.coffee-search-page .topic-shelf-card span {
  color: var(--shelf-text, var(--search-olive-deep));
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

#coffee-topic-main.coffee-search-page .topic-shelf-card strong {
  color: var(--search-ink);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

#coffee-topic-main.coffee-search-page .topic-shelf-card p {
  margin: 0;
  color: rgba(36, 19, 11, 0.64);
  font-size: 13px;
  line-height: 1.45;
}

#coffee-topic-main.coffee-search-page .topic-shelf-card em {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: var(--shelf-text, var(--search-olive-deep));
  font-size: 22px;
}

#coffee-topic-main.coffee-search-page .shelf-grow {
  --shelf-text: #4f5925;
  --shelf-wash: #edf0dc;
}

#coffee-topic-main.coffee-search-page .shelf-harvest {
  --shelf-accent: #76804a;
  --shelf-text: #50592d;
  --shelf-wash: #eff0db;
}

#coffee-topic-main.coffee-search-page .shelf-process {
  --shelf-text: #754619;
  --shelf-wash: #f2e5d7;
}

#coffee-topic-main.coffee-search-page .shelf-green {
  --shelf-text: #4f533e;
  --shelf-wash: #e8e9df;
}

#coffee-topic-main.coffee-search-page .shelf-roast {
  --shelf-text: #692424;
  --shelf-wash: #efe0dc;
}

#coffee-topic-main.coffee-search-page .shelf-brew {
  --shelf-text: #2c1a11;
  --shelf-wash: #e9e0d8;
}

#coffee-topic-main.coffee-search-page .shelf-sensory {
  --shelf-text: #75591b;
  --shelf-wash: #f4ead0;
}

#coffee-topic-main.coffee-search-page .coffee-search-results h2 {
  margin: 8px 0 34px;
  color: var(--search-ink);
}

#coffee-topic-main.coffee-search-page .coffee-search-grid {
  gap: 16px;
}

#coffee-topic-main.coffee-search-page .coffee-search-card {
  min-height: 196px;
  align-content: start;
  border: 1px solid rgba(60, 34, 20, 0.12);
  border-top: 4px solid var(--search-olive);
  padding: 24px;
  background: var(--search-paper);
}

#coffee-topic-main.coffee-search-page .coffee-search-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#coffee-topic-main.coffee-search-page .topic-shelf-section.is-compact {
  padding-top: 48px;
}

#coffee-topic-main.coffee-search-page .topic-shelf-section.is-compact h2 {
  font-size: clamp(30px, 5vw, 48px);
}

#coffee-topic-main.coffee-search-page .topic-shelf-section.is-compact .topic-shelf-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#coffee-topic-main.coffee-search-page .topic-shelf-section.is-compact .topic-shelf-card {
  min-height: 84px;
  padding: 16px;
}

#coffee-topic-main.coffee-search-page .topic-shelf-section.is-compact .topic-shelf-card p {
  display: none;
}

#coffee-topic-main.coffee-search-page .topic-shelf-section.is-compact .topic-shelf-card strong {
  font-size: 14px;
}

#coffee-topic-main.coffee-search-page .coffee-topic-footer {
  min-height: 124px;
  padding-inline: 24px;
  background: #3c2214;
}

#coffee-topic-main.coffee-search-page .coffee-topic-footer > * {
  width: auto !important;
  max-width: none !important;
}

@media (max-width: 359px) {
  #coffee-topic-main.coffee-search-page .coffee-page-header {
    padding-inline: 16px;
  }

  #coffee-topic-main.coffee-search-page .coffee-page-brand span,
  #coffee-topic-main.coffee-search-page .coffee-page-header nav a {
    font-size: 11px;
    letter-spacing: 0.055em;
  }

  #coffee-topic-main.coffee-search-page .coffee-page-header nav {
    gap: 10px;
  }
}

@media (min-width: 720px) {
  #coffee-topic-main.coffee-search-page .coffee-page-header,
  #coffee-topic-main.coffee-search-page .coffee-topic-footer {
    padding-inline: clamp(36px, 6vw, 96px);
  }

  #coffee-topic-main.coffee-search-page .coffee-topic-quick,
  #coffee-topic-main.coffee-search-page .coffee-search-results,
  #coffee-topic-main.coffee-search-page .topic-shelf-section {
    padding-inline: clamp(36px, 6vw, 96px);
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-card {
    min-height: 154px;
    padding: 24px;
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-card:last-child {
    width: calc((100% - 18px) / 2);
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  #coffee-topic-main.coffee-search-page .coffee-topic-quick {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  #coffee-topic-main.coffee-search-page .coffee-search-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    gap: 72px;
    align-items: end;
  }

  #coffee-topic-main.coffee-search-page .topic-search-form {
    margin: 0 0 8px;
  }

  #coffee-topic-main.coffee-search-page .coffee-search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-card {
    grid-column: span 2;
    width: auto;
    justify-self: stretch;
    min-height: 172px;
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-card:last-child {
    grid-column: span 2;
    width: auto;
    justify-self: stretch;
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-card:nth-child(5) {
    grid-column: 2 / span 2;
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-section.is-compact .topic-shelf-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-section.is-compact .topic-shelf-card {
    grid-column: span 2;
  }

  #coffee-topic-main.coffee-search-page .topic-shelf-section.is-compact .topic-shelf-card:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

@media (hover: hover) {
  #coffee-topic-main.coffee-search-page .topic-shelf-card:hover {
    transform: translateY(-3px);
    border-color: var(--shelf-accent, var(--search-olive));
    background: var(--search-paper);
  }
}

#coffee-topic-main.coffee-search-page a:focus-visible,
#coffee-topic-main.coffee-search-page button:focus-visible,
#coffee-topic-main.coffee-search-page input:focus-visible {
  outline: 3px solid var(--search-olive-deep);
  outline-offset: 3px;
}

#coffee-topic-main.coffee-search-page .coffee-topic-quick button:focus-visible,
#coffee-topic-main.coffee-search-page .coffee-topic-quick input:focus-visible {
  outline-color: var(--search-gold);
}

#coffee-topic-main.coffee-search-page .coffee-topic-footer a:focus-visible {
  outline-color: var(--search-gold);
}

/* Coffee Library generic shelves — one shared system for six modules. */
#coffee-topic-main.coffee-library-topic-page .coffee-page-header {
  height: 68px;
  min-height: 68px;
  padding-inline: 24px;
}

#coffee-topic-main.coffee-library-topic-page .coffee-page-brand span,
#coffee-topic-main.coffee-library-topic-page .coffee-page-header nav a {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

#coffee-topic-main.coffee-library-topic-page .coffee-page-header nav {
  gap: 14px;
}

@media (max-width: 430px) {
  #coffee-topic-main.coffee-library-topic-page .coffee-page-header {
    padding-inline: 16px;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-page-brand span,
  #coffee-topic-main.coffee-library-topic-page .coffee-page-header nav a {
    letter-spacing: 0.05em;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-page-header nav {
    gap: 10px;
  }
}

@media (max-width: 359px) {
  #coffee-topic-main.coffee-library-topic-page .coffee-page-header {
    padding-inline: 16px;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-page-brand span,
  #coffee-topic-main.coffee-library-topic-page .coffee-page-header nav a {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-page-header nav {
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  #coffee-topic-main.coffee-library-topic-page {
    --library-topic-ivory: #f0e9d5;
    --library-topic-paper: #fbf6ea;
    --library-topic-ink: #24130b;
    --library-topic-olive: #575c33;
    --library-topic-deep: #414824;
    --library-topic-gold: #e7d9a4;
    width: 100% !important;
    max-width: none !important;
    background: var(--library-topic-ivory);
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-page-header {
    height: 68px;
    min-height: 68px;
    padding-inline: max(clamp(48px, 6vw, 96px), calc((100% - 1180px) / 2));
    border-bottom: 1px solid rgba(60, 34, 20, 0.1);
    background: var(--library-topic-ivory);
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-page-brand span,
  #coffee-topic-main.coffee-library-topic-page .coffee-page-header nav a {
    color: var(--library-topic-ink);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-topic-quick {
    padding: 92px max(clamp(48px, 6vw, 96px), calc((100vw - 1180px) / 2));
    background: linear-gradient(138deg, var(--library-topic-olive) 0%, var(--library-topic-deep) 100%);
    color: #fff7e3;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-search-hero-inner {
    display: grid;
    width: min(100%, 1180px);
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    gap: 72px;
    align-items: end;
    margin-inline: auto;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-topic-quick h1 {
    max-width: 720px !important;
    margin: 0;
    color: #fff7e3;
    font-size: clamp(58px, 6vw, 88px);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.06em;
  }

  #coffee-topic-main.coffee-library-topic-page .topic-search-form {
    position: relative;
    width: 100%;
    max-width: 760px;
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) 64px;
    margin: 0 0 8px;
    border: 1px solid rgba(255, 247, 227, 0.4);
    background: var(--library-topic-paper);
  }

  #coffee-topic-main.coffee-library-topic-page .topic-search-mark {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 20px;
    width: 28px;
    height: 28px;
    margin: 0;
    pointer-events: none;
    transform: translateY(-50%);
  }

  #coffee-topic-main.coffee-library-topic-page .topic-search-mark::before {
    left: 1px;
    top: 1px;
    width: 16px;
    height: 16px;
    border-width: 3px;
    border-color: var(--library-topic-olive);
  }

  #coffee-topic-main.coffee-library-topic-page .topic-search-mark::after {
    left: 18px;
    top: 18px;
    width: 10px;
    height: 3px;
    background: var(--library-topic-olive);
  }

  #coffee-topic-main.coffee-library-topic-page .topic-search-form input {
    padding: 0 20px 0 60px;
    color: var(--library-topic-ink);
    font-size: 15px;
  }

  #coffee-topic-main.coffee-library-topic-page .topic-search-form button {
    min-width: 64px;
    border-left-color: rgba(36, 19, 11, 0.18);
    background: #202525;
    color: #fff7e3;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-topic-results {
    padding: 76px max(clamp(48px, 6vw, 96px), calc((100vw - 1180px) / 2)) 96px;
    background: #f7f1e5;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-topic-results > * {
    width: min(100%, 1180px);
    margin-inline: auto;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-topic-results h2 {
    margin: 8px 0 18px;
    color: var(--library-topic-ink);
    font-size: clamp(52px, 6vw, 78px);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-topic-description {
    margin-bottom: 42px;
    color: rgba(36, 19, 11, 0.66);
    font-size: 17px;
    line-height: 1.6;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-search-card {
    min-height: 220px;
    align-content: start;
    border: 1px solid rgba(60, 34, 20, 0.12);
    border-top: 4px solid var(--library-topic-olive);
    padding: 28px;
    background: var(--library-topic-paper);
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-search-card span,
  #coffee-topic-main.coffee-library-topic-page .coffee-search-card em {
    font-size: 10px;
    line-height: 14px;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-search-card strong {
    font-size: 20px;
    line-height: 1.18;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-search-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-library-topic-pagination {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    border-top: 1px solid rgba(60, 34, 20, 0.18);
    border-bottom: 1px solid rgba(60, 34, 20, 0.18);
    color: var(--library-topic-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-library-topic-pagination a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: inherit;
  }

  #coffee-topic-main.coffee-library-topic-page .topic-shelf-section {
    padding: 64px max(clamp(48px, 6vw, 96px), calc((100vw - 1180px) / 2)) 86px;
    background: var(--library-topic-ivory);
  }

  #coffee-topic-main.coffee-library-topic-page .topic-shelf-section > * {
    width: min(100%, 1180px) !important;
    margin-inline: auto !important;
  }

  #coffee-topic-main.coffee-library-topic-page .topic-shelf-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  #coffee-topic-main.coffee-library-topic-page .topic-shelf-card {
    grid-column: span 2;
    min-height: 122px;
    border-radius: 0;
    border-top: 4px solid var(--shelf-accent, var(--library-topic-olive));
    padding: 18px 18px 16px;
    box-shadow: none;
  }

  #coffee-topic-main.coffee-library-topic-page .topic-shelf-card::before {
    display: none;
  }

  #coffee-topic-main.coffee-library-topic-page .topic-shelf-card span {
    font-size: 10px;
    line-height: 14px;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-topic-footer {
    min-height: 132px;
    padding-inline: max(clamp(48px, 6vw, 96px), calc((100% - 1180px) / 2));
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-topic-footer > * {
    width: auto !important;
    max-width: none !important;
  }

  #coffee-topic-main.coffee-library-topic-page a:focus-visible,
  #coffee-topic-main.coffee-library-topic-page button:focus-visible,
  #coffee-topic-main.coffee-library-topic-page input:focus-visible {
    outline: 3px solid var(--library-topic-deep);
    outline-offset: 3px;
  }

  #coffee-topic-main.coffee-library-topic-page .coffee-topic-quick button:focus-visible,
  #coffee-topic-main.coffee-library-topic-page .coffee-topic-quick input:focus-visible,
  #coffee-topic-main.coffee-library-topic-page .coffee-topic-footer a:focus-visible {
    outline-color: var(--library-topic-gold);
  }
}
