/* Load after the site styles. These rules cover content below the site header. */
@media (max-width: 820px) {
  .page-title { padding-block: 52px 44px; }
  .page-title h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.22; margin-bottom: 18px; }
  .page-title > p { font-size: 17px; line-height: 1.65; }
  .section-heading { gap: 18px 24px; margin-bottom: 28px; }
  .section-heading h2 { font-size: clamp(27px, 4.8vw, 36px); }
  .section-heading > .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }

  .brand-index img,
  .brand-page-hero img,
  .packaging-types img,
  .series-duo img,
  .product-item figure img,
  .single-product .product-item figure img {
    block-size: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }
  .brand-page-hero {
    min-block-size: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
  }
  .brand-page-hero > div { padding-block: 30px; }
  .brand-page-hero h1 { font-size: clamp(34px, 5.5vw, 42px); }
  .brand-page-hero p { font-size: 19px; line-height: 1.6; margin: 14px 0 20px; }
  .brand-page-hero > div > .text-link { display: inline-flex; min-height: 44px; align-items: center; }
  .packaging-types img { padding: 12px; }
  .packaging-types h3 { margin-top: 14px; }
  .packaging-types p { margin-top: 8px; }

  .catalog-tools { gap: 14px 22px; margin-bottom: 14px; }
  .catalog .filter-button { min-height: 44px; }
  .catalog-count { margin-bottom: 18px; }
  .search input, .contact-form textarea, .contact-form select { font-size: max(16px, 1rem); }
  .search input { min-height: 44px; }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-item figure { padding: 16px 16px 0; }
  .product-card-copy { padding: 14px 18px 0; }
  .product-card-copy h2, .single-product .product-card-copy h2 {
    font-size: clamp(21px, 3.45vw, 27px);
    overflow-wrap: anywhere;
  }
  .product-card-copy .product-family { margin-bottom: 8px; }
  .product-card-copy .product-preview { font-size: 15px; line-height: 1.65; margin-top: 10px; min-height: 0; }
  .product-card-copy .card-spec { margin: 12px 0 8px; }
  .single-product .product-item { padding: 20px; }
  .single-product .product-card-copy { padding: 16px 20px; }

  .detail-hero { padding-block: 40px 32px; }
  .detail-hero h1 { font-size: clamp(30px, 6vw, 45px); line-height: 1.25; overflow-wrap: anywhere; }
  .detail-hero .stage-heading > p { font-size: 18px; line-height: 1.65; }
  .detail-product-object { margin-top: 22px; }
  .detail-product-object > img,
  .detail-hero:not(.gift-detail) .detail-product-object > img[alt*="抓饭"] {
    block-size: clamp(210px, 62vw, 430px);
    padding: 0;
  }
  .product-use { grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: 30px; }
  .product-use p { font-size: 17px; line-height: 1.75; }
  .product-use p + p { margin-top: 14px; }
  .product-highlights article { padding-top: 18px; }
  .product-highlights h2 { font-size: clamp(22px, 3.7vw, 29px); }
  .product-highlights p { font-size: 16px; line-height: 1.75; margin-top: 10px; }
  .spec-section { padding-top: 62px; scroll-margin-top: 28px; }
  .spec-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 30px; }
  .spec-layout > * { min-width: 0; }
  .spec-choice h3 { margin-bottom: 14px; }
  .spec-buttons { gap: 8px; }
  .spec-buttons button {
    font-size: 16px;
    min-height: 44px;
    min-width: 74px;
    max-width: 100%;
    padding: 10px 17px;
    overflow-wrap: anywhere;
  }
  .spec-summary { font-size: 17px; line-height: 1.65; min-height: 0; margin: 14px 0 18px; }
  .facts-table { table-layout: fixed; font-size: 14px; line-height: 1.65; }
  .facts-table th { width: 32%; }
  .facts-table th, .facts-table td { padding: 12px; overflow-wrap: anywhere; }

  .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; }
  .contact-grid dd { overflow-wrap: anywhere; }
  .contact-form { min-width: 0; padding: 24px; }
  .contact-form select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
  .contact-form textarea, .contact-form select { padding: 12px; }
  .contact-form .fine-print { line-height: 1.65; }
  .contact-grid .business-phone { display: flex; flex-wrap: wrap; align-items: center; min-height: 44px; width: fit-content; }
  .contact-form .draft-result { overflow-wrap: anywhere; }

  .rail-heading { gap: 16px; margin-bottom: 24px; }
  .rail-controls button { inline-size: 44px; block-size: 44px; }
  .image-rail { overscroll-behavior-x: contain; }
  .image-rail img { block-size: auto; aspect-ratio: 4 / 3; }
  .image-rail .single-rail img, .image-rail.single-rail img { aspect-ratio: 16 / 10; }
  .image-rail h3 { font-size: clamp(21px, 4vw, 25px); margin-top: 14px; }
  .image-rail article > p { font-size: 16px; line-height: 1.7; margin-top: 8px; }
}

/* The mobile hero stacks in site.css; keep its copy and actions independently flexible. */
@media (max-width: 760px) {
  .campaign-hero > .campaign-copy:first-child h1 { font-size: clamp(34px, 9.5vw, 52px); line-height: 1.16; }
  .campaign-hero > .campaign-copy:first-child > p { font-size: clamp(17px, 4.6vw, 20px); margin-top: 16px; }
  .campaign-hero > .campaign-copy:first-child .actions {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin-top: 18px;
  }
  .campaign-hero > .campaign-copy:first-child .actions > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .page-title { padding-block: 36px 30px; }
  .section-heading { gap: 9px; }
  .brand-index { gap: 22px; }
  .brand-index > a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .brand-index h3 { font-size: clamp(20px, 5.2vw, 25px); }
  .brand-index p { margin: 6px 0; }
  .brand-page-hero { gap: 0; }
  .brand-page-hero > div { padding: 32px var(--gutter) 14px; }
  .brand-page-hero > div > .text-link { margin-top: 8px; }
  .brand-page-hero img, .series-duo img { aspect-ratio: 16 / 10; }
  .brand-description { padding-block: 38px 34px; }
  .brand-description p { margin: 14px auto 0; }
  .brand-products { padding-block: 26px 38px; }
  .packaging-overview { padding-bottom: 20px; }
  .packaging-types { gap: 14px; }
  .packaging-types > a {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 4px 14px;
  }
  .packaging-types img { grid-row: 1 / span 2; padding: 8px; }
  .packaging-types h3 { font-size: 20px; margin: 0; align-self: end; }
  .packaging-types p { font-size: 14px; line-height: 1.55; margin: 0; align-self: start; }

  .catalog-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
  .catalog .filters {
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 4px 4px 6px;
  }
  .catalog .filter-button { flex: 0 0 auto; white-space: nowrap; padding: 8px 12px; }
  .catalog .pack-filters { gap: 12px; margin-bottom: 14px; }
  .catalog .pack-filters .filter-button { padding-inline: 3px; }
  .catalog .pack-filters .filter-button[aria-pressed=true] { text-underline-offset: 6px; }
  .search { gap: 10px; }
  .search input { padding: 8px 13px; }
  .product-list { grid-template-columns: minmax(0, 1fr); }
  .product-item, .single-product .product-item { padding: 0 0 22px; }
  .product-item figure, .single-product .product-item figure { padding: 14px 14px 0; }
  .product-card-copy, .single-product .product-card-copy { padding: 14px 18px 0; }
  .product-card-copy h2, .single-product .product-card-copy h2 { font-size: clamp(22px, 6.1vw, 27px); }

  .product-nav > div { gap: 8px; min-height: 56px; padding: 6px var(--gutter); }
  .product-nav > div > a {
    min-width: 0;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 44px;
  }
  .product-nav > div > div { flex: none; gap: 8px; }
  .product-nav > div > div > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  .product-nav .button.compact { min-height: 44px; padding: 7px 10px; white-space: nowrap; }
  .detail-hero { padding-inline: var(--gutter); }
  .detail-hero h1 { margin-top: 10px; }
  .detail-hero .stage-heading > p { margin-top: 14px; }
  .detail-hero .stage-heading > .product-family { margin-top: 0; }
  .product-use { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 38px; }
  .product-highlights { gap: 22px; padding-bottom: 38px; }
  .spec-section { padding-top: 42px; }
  .spec-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .facts-table th { width: 34%; }
  .facts-table th, .facts-table td { padding: 11px 10px; }

  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .contact-grid h2 { font-size: 26px; margin-bottom: 16px; }
  .contact-grid dt { margin-top: 16px; }
  .contact-grid dd { margin-top: 7px; font-size: 16px; }
  .contact-form { padding: 20px 17px; }
  .contact-form label { margin-top: 18px; }
  .contact-form textarea, .contact-form select { margin-top: 8px; }

  .image-rail-section { padding-block: 44px 42px; }
  .rail-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; }
  .rail-heading > div:first-child { display: contents; }
  .rail-heading h2 { grid-area: 1 / 1; font-size: clamp(24px, 6.5vw, 30px); max-width: none; }
  .rail-heading p { grid-area: 2 / 1 / 3 / -1; max-width: 32em; margin-top: 0; line-height: 1.65; }
  .rail-controls { grid-area: 1 / 2; gap: 6px; }
  .image-rail { gap: 12px; padding-bottom: 12px; }
  .image-rail article { flex-basis: min(80vw, 440px); }
}

@media (max-width: 360px) {
  .campaign-hero > .campaign-copy:first-child .actions { column-gap: 11px; }
  .campaign-hero > .campaign-copy:first-child .actions .button { padding-inline: 17px; }
  .product-nav > div { padding-inline: 16px; }
  .product-nav > div > div { gap: 6px; }
  .product-nav > div > div > a:not(.button) { font-size: 12px; }
  .contact-form h2 { font-size: 23px; }
}

/* Keep the navigation and its controls clear of screen cutouts. */
:root { --site-header-height: 88px; }
.site-header {
  height: calc(var(--site-header-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}
.product-nav { top: calc(var(--site-header-height) + env(safe-area-inset-top)); }
#navigation .mobile-product-search { display: none; }
.business-portals-panel {
  max-height: calc(100dvh - var(--site-header-height) - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (max-width: 980px) {
  #navigation {
    top: 100% !important;
    max-height: calc(100dvh - var(--site-header-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-toggle { min-height: 44px; min-width: 44px; }
  #navigation a { min-height: 44px; }
}
@media (max-width: 600px) {
  :root { --site-header-height: 82px; }
  #navigation .mobile-product-search { display: block; }
}
@media (max-width: 360px) {
  .site-header .brand { flex-basis: 136px; gap: 6px; }
  .header-logo-mark { width: 40px; height: 40px; }
}

/* Compact reading scale and navigation for phones. */
@media(max-width:980px){
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;background:#f4f6f2;border:1px solid #e6ebe3;border-radius:999px;font-size:13px;font-weight:500;color:#282c2d;line-height:1;min-width:56px}
  .menu-toggle[aria-expanded=true]{background:#e7eee4}
  #navigation{left:12px;right:12px;border:1px solid #edf1e9;border-radius:20px;background:#fffffff5;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:10px;box-shadow:0 14px 30px #1734210d}
  #navigation.open{display:flex;align-items:stretch;gap:0}
  #navigation a{font-size:16px;font-weight:450;line-height:1.5;padding:11px 14px;min-height:46px;border-radius:11px}
  #navigation a[aria-current=page]{background:#f0f4ed;color:#244a30}
  .business-portals-trigger{font-weight:500}
}
@media(max-width:600px){
  :root{--site-header-height:72px;--gutter:22px}
  .nav-inner{padding-inline:16px;gap:8px}
  .site-header .brand{flex-basis:154px;gap:9px}
  .header-logo-mark{width:44px;height:44px}
  .vision-prefix{font-size:10px;line-height:1.4}
  .vision-focus{font-size:15px;line-height:1.3;font-weight:500}
  .brand-vision{gap:3px}
  .menu-toggle{font-size:12px;min-width:46px;min-height:44px;padding-inline:10px;background:transparent;border-color:transparent}
  .business-portals-trigger{font-size:12px;padding:8px 10px;min-height:40px;gap:6px;background:#f6f8f4}
  .business-portals-panel{padding:7px;gap:6px;border-radius:18px;top:calc(100% + 5px)}
  .business-portal-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 9px;padding:11px 12px;border-radius:12px}
  .business-portal-audience{grid-column:1;font-size:10px;line-height:1.4;color:#74806f}
  .business-portal-title{grid-column:1;font-size:13px;font-weight:550;line-height:1.5;text-wrap:initial}
  .business-portal-state{grid-column:2;grid-row:1 / span 2;align-self:center;margin:0;font-size:11px;line-height:1.5;white-space:nowrap}
  .is-pending .business-portal-state{padding:3px 6px}
  #navigation .mobile-product-search{display:block}
  .section{padding-block:48px}
  .page-title{padding-block:30px 26px}
  .page-title h1,.detail-hero h1,.brand-page-hero h1{font-size:30px;line-height:1.3;font-weight:550}
  .page-title>p,.brand-page-hero p,.detail-hero .stage-heading>p{font-size:16px;line-height:1.65}
  .section-heading h2,.brand-description h2,.editorial h2,.cooperation h2,.packaging-group h2,.film-heading h2,.lifestyle-head h2,.philosophy-intro h2,.philosophy-end h2,.expression-feature h2,.mission-feature .large-statement,.premium-origin h2{font-size:26px;line-height:1.4;font-weight:550;letter-spacing:-.02em}
  .section-heading p,.brand-description p,.editorial p,.cooperation p,.expression-feature p,.philosophy-intro p,.expression-stories p,.premium-origin p{font-size:15px;line-height:1.8}
  .campaign-hero{padding-top:26px}
  .campaign-hero>.campaign-copy:first-child h1{font-size:clamp(34px,10.2vw,43px);line-height:1.3;letter-spacing:.035em}
  .campaign-hero>.campaign-copy:first-child>p{font-size:16px;line-height:1.6;margin-top:12px}
  .campaign-hero>.campaign-copy:first-child .actions{gap:4px 18px;margin-top:15px}
  .campaign-copy .actions .button,.campaign-copy .actions .text-link{font-size:13px;min-height:42px}
  .campaign-copy .actions .button{padding:10px 18px}
  .campaign-hero>.campaign-frame{aspect-ratio:1.4;margin-top:3px}
  .field-manifesto .manifesto-inner{padding-block:32px 16px;gap:16px}
  .manifesto-heading{font-size:28px;line-height:1.35;font-weight:500}
  .manifesto-label{font-size:12px;margin-bottom:13px}
  .manifesto-copy>p:not(.manifesto-label){font-size:15px;line-height:1.8;margin-top:16px}
  .manifesto-copy .text-link{font-size:13px;margin-top:8px}
  .field-process{padding-block:30px 40px}
  .field-process-item h3{font-size:19px;line-height:1.4}
  .field-process-item p{font-size:13px}
  .featured-gift{padding:44px var(--gutter);gap:20px}
  .featured-gift h2{font-size:29px;line-height:1.35;font-weight:550}
  .featured-gift-copy>p{font-size:14px;margin-top:12px}
  .featured-gift-copy .featured-line{font-size:20px;line-height:1.55;margin-top:16px}
  .featured-gift figure img{height:auto;max-height:310px}
  .brand-index h3,.product-card-copy h2,.single-product .product-card-copy h2,.series-duo h2{font-size:22px;line-height:1.4;font-weight:550}
  .brand-index p,.series-duo p{font-size:14px;line-height:1.7}
  .series-duo article>div{padding:23px}
  .product-use h2,.product-highlights h2,.spec-choice h3,.values-grid h3,.quality-process h3,.expression-stories h2{font-size:22px;line-height:1.4}
  .product-use p,.product-highlights p,.quality-process p,.values-grid p{font-size:15px;line-height:1.8}
  .lifestyle-gallery{padding-block:42px}
  .lifestyle-head h2{font-size:25px}
  .lifestyle-intro{font-size:15px}
  .lifestyle-head{grid-template-columns:minmax(0,1fr);grid-template-areas:'title' 'intro' 'steps';gap:11px}
  .lifestyle-stepper{justify-self:end;margin-top:2px}
  .lifestyle-stepper button{width:36px;min-height:36px;font-size:23px}
  .lifestyle-filters{margin-top:9px;padding-inline:0;gap:6px}
  .lifestyle-filters button{font-size:12px;padding:6px 12px;min-height:36px}
  .lifestyle-card h3{font-size:19px;font-weight:550;line-height:1.5}
  .lifestyle-card p{font-size:14px;line-height:1.8}
  .lifestyle-photo{border-radius:8px}
  .film-heading h2{font-size:26px}.film-heading p{font-size:12px}
  .brand-film{padding-top:8px;padding-bottom:38px}
  .button,.text-link{font-size:14px}
  .footer-grid h2{font-size:15px}.footer-grid a,.footer-brand p{font-size:13px}
}
@media(max-width:360px){
  :root{--gutter:18px;--site-header-height:68px}
  .nav-inner{padding-inline:12px;gap:5px}
  .site-header .brand{flex-basis:136px;gap:7px}
  .header-logo-mark{width:39px;height:39px}
  .vision-prefix{font-size:9px}.vision-focus{font-size:14px}
  .menu-toggle{padding-inline:7px;min-width:42px}
  .business-portals-trigger{font-size:11px;padding-inline:8px}
  .campaign-hero>.campaign-copy:first-child h1{font-size:34px}
  .manifesto-heading{font-size:26px}
}

/* Two direct entrances stay visible; compact navigation yields room at tablet widths. */
@media(max-width:1240px){
 .menu-toggle{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;min-height:44px;min-width:48px;padding:8px 10px;background:#f4f6f2;border:1px solid #e6ebe3;border-radius:999px;font-size:13px;font-weight:500;line-height:1;color:#282c2d}
 #navigation{display:none;position:absolute;top:100%!important;left:12px;right:12px;max-height:calc(100dvh - var(--site-header-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;padding:10px;border:1px solid #edf1e9;border-radius:20px;background:#fffffff5;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 14px 30px #1734210d}
 #navigation.open{display:flex;flex-direction:column;align-items:stretch;gap:0}
 #navigation a{min-height:44px;padding:11px 14px;font-size:16px;font-weight:450;line-height:1.5;border-radius:11px}
 #navigation a[aria-current=page]{background:#f0f4ed;color:#244a30}
 #navigation .mobile-product-search{display:block}.nav-search{display:none}
}
@media(min-width:601px) and (max-width:760px){.site-header .brand{flex:0 1 210px}.nav-inner{gap:12px;padding-inline:22px}.nav-utilities{margin-left:0}}
@media(max-width:600px){
 :root{--site-header-height:112px}
 .nav-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 40px;gap:8px;padding:8px 16px 12px}
 .site-header .brand{grid-column:1;grid-row:1;width:fit-content;min-width:0;gap:9px}
 .header-logo-mark{width:44px;height:44px}.vision-prefix{font-size:10px}.vision-focus{font-size:15px}
 .menu-toggle{grid-column:2;grid-row:1;margin:0;min-height:44px;min-width:46px;background:transparent;border-color:transparent;font-size:12px}
 .nav-utilities{grid-column:1/-1;grid-row:2;width:100%;margin:0;gap:0;min-width:0}
 #business-portals{width:100%;gap:8px}.nav-utilities .nav-search{display:none}
}
@media(max-width:360px){.nav-inner{padding-inline:12px}}

@media(min-width:1241px) and (max-width:1380px){.nav-inner{padding-inline:30px;gap:20px}.site-header .brand{flex-basis:210px}#navigation{gap:18px}#navigation a{font-size:13px}.nav-utilities{gap:12px}}
