@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap');

:root {
  --canvas: #fffcf5;
  --linen: #f9e9d6;
  --linen-light: #fff4e3;
  --orange: #e87b16;
  --orange-hover: #f3be36;
  --yellow: #f3be36;
  --red: #b83b30;
  --green: #24543d;
  --ink: #262626;
  --muted: #555;
  --cinnamon: #743e1b;
  --line: #e6d9c7;
  --sans: Manrope, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: var(--sans);
  --latin: Manrope, var(--sans);
  --content-width: 1360px;
  --radius: 12px;
  --section-space: 64px;
}
body { line-height: 1.68; }
h1, h2 { font-weight: 700; letter-spacing: -.02em; line-height: 1.24; }
h2 { font-size: clamp(28px, 3vw, 32px); }
h3 { font-weight: 700; }
.lead, .source-prose p { line-height: 1.7; }
.design-banner { background: var(--green); color: white; text-align: center; font-size: 13px; }
.site-header { position: relative; z-index: 10; background: var(--canvas); border-bottom: 3px solid var(--orange); }
.header-inner { max-width: calc(var(--content-width) + 2 * var(--gutter)); }
.nav { gap: clamp(14px, 2vw, 28px); }
.nav a { color: var(--ink); font-size: 16px; font-weight: 600; }
.nav a.active { color: var(--green); border-color: var(--green); }
.nav .nav-contact { color: var(--ink); background: var(--yellow); border-color: var(--yellow); border-radius: 8px; }
.button, .button:hover { color: var(--ink); }
.button { border-radius: 8px; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.button-secondary { background: var(--green); border-color: var(--green); color: #fff; }
.button-secondary:hover { background: #173b2a; border-color: #173b2a; color: #fff; }
.text-link { font-size: 16px; font-weight: 700; color: var(--green); border-color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.section-nav a { font-size: 16px; font-weight: 600; }
.section-nav a.selected { color: var(--green); }
.breadcrumb { font-size: 14px; margin-bottom: 20px; }
.breadcrumb span.sep { color: var(--muted); }

.vibrant-hero { grid-template-columns: 44% 56%; min-height: 0; background: var(--yellow); }
.vibrant-hero .hero-copy { padding-block: 48px; }
.vibrant-hero .hero-visual { min-height: 450px; }
.vibrant-hero h1, .about-hero h1 {
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
}
.vibrant-hero .actions .button { min-width: 9em; background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.vibrant-hero .actions .button:hover { background: var(--canvas); border-color: var(--canvas); color: var(--ink); }
.vibrant-hero .actions .button:focus-visible { outline-color: var(--canvas); }
.about-hero { padding: 26px 0 0; }
.about-hero-grid { display: grid; grid-template-columns: 46% 54%; overflow: hidden; border-radius: 18px; background: var(--green); color: white; }
.about-hero-copy { align-self: center; padding: clamp(24px, 4vw, 64px); }
.about-hero .eyebrow { color: var(--yellow); font-size: 15px; font-weight: 700; }
.about-hero .button { background: var(--yellow); border-color: var(--yellow); }
.about-hero .button-secondary { background: transparent; border-color: white; color: white; }
.about-hero .button-secondary:hover { background: white; color: var(--green); }
.about-hero-image img { width: 100%; height: 100%; min-height: 395px; object-fit: cover; }
.about-introduction .source-prose { max-width: 900px; margin-inline: auto; }
.page-intro h1 { font-size: clamp(36px, 4vw, 44px); }
.page-intro .eyebrow:empty { display: none; }
.quick-categories { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.quick-categories a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; font-weight: 600; }
.quick-categories a:hover { background: var(--linen); }
.category-grid, .product-list { gap: 20px; }
.category-card, [data-series] { --series-color: #503526; }
[data-category="chili"] { --series-color: #b62e2a; }
[data-category="seasoned-salt"] { --series-color: #52665b; }
[data-category="curry"] { --series-color: #785106; }
[data-category="single-spices"] { --series-color: #78503a; }
[data-category="braising-spices"] { --series-color: #88392c; }
[data-category="chinese-spices"] { --series-color: #a33b31; }
[data-category="western-herbs"] { --series-color: #326343; }
[data-category="international-spices"] { --series-color: #934516; }
.category-grid .category-card { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--series-color); color: white; }
.category-grid .category-image { height: auto; aspect-ratio: 2 / 1; margin: 0; background: white; }
.category-image img { width: 85%; height: 90%; }
.category-card .card-heading { padding: 13px 16px 15px; align-items: flex-start; }
.category-card .card-en { color: white; font-size: 13px; font-weight: 400; }
.category-card .view { color: white; font-size: 14px; white-space: nowrap; }
.category-card:hover { box-shadow: 0 4px 0 var(--yellow); }
.category-toolbar .count { font-size: 16px; font-weight: 700; }
.directory-search .field label, .directory-search .field input, .directory-search .field select, .filter-input { font-size: 16px; }
[data-series="pepper"] .page-intro { background: var(--linen-light); margin-bottom: 24px; }
.detail-hero[data-series="pepper"] { gap: clamp(20px, 5vw, 68px); padding-bottom: 0; }
.detail-stage { border-radius: var(--radius); }
[data-series="pepper"] .detail-stage { border: 2px solid var(--series-color); }
.detail-copy .product-en { font-size: 17px; }
.detail-copy .pill { background: var(--linen-light); color: var(--ink); font-size: 14px; }
.detail-packages { display: grid; gap: 6px; margin: 18px 0 0; }
.detail-packages div { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-packages dd { margin: 0; font-weight: 700; white-space: pre-line; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 14px; }
.product-card h3 { font-size: 20px; font-weight: 700; }
.product-card .product-en, .product-card .text-link { font-size: 14px; }
.product-thumb { height: auto; aspect-ratio: 1.6; }
.product-thumb img { max-width: 100%; }
.pagination a.selected, .pagination a.selected:hover { background: var(--green); border-color: var(--green); color: #fff; }

@media (max-width: 1050px) {
  .menu-toggle { display: grid; place-content: center; border: 1px solid var(--green); border-radius: 8px; color: var(--green); }
  .menu-toggle span { width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .site-header .nav { display: none; position: absolute; inset: 100% 0 auto; padding: 12px var(--gutter) 18px; background: var(--canvas); border-bottom: 2px solid var(--orange); box-shadow: 0 12px 20px #2626261a; }
  .site-header .nav.is-open { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .site-header .nav a { padding: 10px 12px; min-height: 44px; }
  .about-hero-image img { min-height: 345px; }
}
@media (max-width: 767px) {
  :root { --section-space: 48px; }
  .site-header .nav.is-open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vibrant-hero, .about-hero-grid { grid-template-columns: 1fr; }
  .vibrant-hero .hero-copy { padding: 32px var(--gutter); }
  .vibrant-hero .hero-visual { min-height: 245px; }
  .about-hero-image img { height: 230px; min-height: 0; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .category-card .card-heading { display: block; padding: 10px; }
  .category-card h3 { font-size: 16px; }
  .category-card .card-en { line-height: 1.45; }
  .category-toolbar { flex-wrap: wrap; }
  .product-card { padding: 10px; }
  .product-card h3 { font-size: 18px; }
}

.section-heading .eyebrow:empty { display: none; }
.home-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-services article { padding: 24px; border-radius: var(--radius); background: var(--linen-light); border-top: 5px solid var(--orange); }
.home-services article:nth-child(2) { border-top-color: var(--green); }
.home-services p { margin: 12px 0 16px; }
@media (max-width: 767px) { .home-services { grid-template-columns: 1fr; } }

.about-hero-image { position: relative; min-height: clamp(340px, 34vw, 485px); }
.about-hero-image img { position: absolute; inset: 0; min-height: 0; }
@media (max-width: 767px) {
  .about-hero-image { min-height: 230px; }
  .about-hero-image img { height: 100%; }
}

/* Keep the shared navigation disclosure available in both layouts. */
.about-hero { display: block; }
.vibrant-hero { min-height: 0; background: var(--yellow); }
.category-card .card-en { display: block; margin-top: 3px; }
.category-card .category-image { padding: 0; }
.category-card .category-image img { width: 85%; height: 90%; }
@media (max-width: 1050px) {
  .menu-toggle { width: 44px; }
  .site-header .nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .site-header .nav-group { flex-wrap: wrap; }
  .site-header .nav-dropdown { position: static; flex-basis: 100%; width: 100%; min-width: 0; padding: 14px; }
}
@media (max-width: 560px) {
  .nav-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
}
.vision-photo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: var(--linen-light);
  border-radius: var(--radius);
}
.vision-photo figure {
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  background: var(--paper);
  border-radius: 8px;
  text-align: center;
}
.vision-photo img { width: 100%; height: clamp(76px, 12vw, 140px); object-fit: contain; }
.vision-photo figcaption { font-weight: 600; }
.vision-copy h2 { margin-bottom: 20px; }
@media (max-width: 767px) {
  .vision-grid { grid-template-columns: 1fr; }
}

button.catalog-page-image { width: 100%; padding: 0; cursor: zoom-in; }
.catalog-zoom-button { background: none; border: 0; border-bottom: 1px solid var(--green); }
#catalog-zoom { width: min(94vw, 1320px); max-width: none; height: 92dvh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
#catalog-zoom::backdrop { background: #262626b3; }
#catalog-zoom[open] { display: flex; flex-direction: column; }
.catalog-zoom-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--canvas); }
.catalog-zoom-view { overflow: auto; overscroll-behavior: contain; }
.catalog-zoom-view img { width: 100%; min-width: min(900px, 145vw); max-width: none; }
.catalog-page-image img { aspect-ratio: 1414 / 2000; object-fit: contain; object-position: center top; }

.category-card .category-image-illustrated img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.quality-certificate {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.quality-certificate h3 { margin: 0; line-height: 1.4; }
.quality-certificate p { font-size: 15px; }
.quality-certificate img { height: clamp(240px, 28vw, 370px); background: var(--linen-light); border-radius: 8px; }
.quality-report-inquiry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.quality-report-inquiry p, .traceability-intro { margin-top: 12px; }
.traceability-figure { margin: 24px 0; padding: clamp(18px, 4vw, 40px); background: var(--green); color: white; border-radius: var(--radius); }
.traceability-figure figcaption { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.traceability-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.traceability-steps li { min-width: 0; padding: 15px; border-top: 4px solid var(--yellow); border-radius: 8px; background: var(--canvas); color: var(--ink); }
.traceability-steps strong, .traceability-steps span { display: block; }
.traceability-steps span { font-size: 15px; margin-top: 6px; }
.traceability-details h3 { margin-bottom: 12px; }
@media (max-width: 767px) { .traceability-steps { grid-template-columns: 1fr; } }
.traceability-steps { gap: 28px; }
.traceability-steps li { position: relative; }
.traceability-steps li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  width: 8px;
  height: 8px;
  border: solid var(--yellow);
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 767px) {
  .traceability-steps li + li::before { top: -21px; left: 50%; transform: translateX(-50%) rotate(135deg); }
}

.brand-product { min-width: 0; }
.brand-product > div { padding: 16px; }
.brand-product img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.brand-product h3 { white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.brand-closing-image { height: auto; }
.brand-closing-image img { height: auto; max-height: 440px; object-fit: contain; }
.brand-closing-copy { margin: 20px 0 24px; }

.quality-reports { margin-top: 24px; }
.quality-report-scope { margin-top: 18px; color: var(--muted); }

.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-line img { width: 136px; height: 136px; }
.contact-line > div { flex: 1 1 170px; min-width: 0; }
.contact-line p { margin: 6px 0 12px; }

.product-thumb img, .detail-stage img {
  width: min(88%, var(--product-photo-width, 240px));
  height: auto;
  object-fit: contain;
}
.contact-line .button { background: var(--green); border-color: var(--green); color: #fff; }
.contact-line .button:hover { background: #173b2a; border-color: #173b2a; color: #fff; }

.vision-photo figure { padding: 0; overflow: hidden; gap: 0; }
.vision-photo img { height: auto; aspect-ratio: 1; object-fit: cover; }
.vision-photo figcaption { padding: 8px 10px 10px; }
.exhibition-years { max-width: 1100px; display: grid; gap: 36px; }
.exhibition-year { padding-top: 22px; border-top: 1px solid var(--line); }
.exhibition-year > p { margin: 6px 0 18px; color: var(--muted); }
.exhibition-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 250px)); gap: 16px; }
.exhibition-gallery a { border-radius: 9px; overflow: hidden; background: var(--linen-light); }
.exhibition-gallery img { aspect-ratio: 4 / 3; max-height: 201px; object-fit: contain; }
.exhibition-gallery h3 { margin: 9px 0 0; font-size: 16px; letter-spacing: 0; }

.product-card .product-thumb, .detail-hero .detail-stage {
  background: #fffdf8;
  overflow: hidden;
}
.product-card .product-thumb {
  margin: 0 0 12px;
  border-radius: 8px;
}
.product-card .product-thumb img, .detail-hero .detail-stage img { filter: none; }
.finished-specs { margin: 0 0 24px; }
.finished-specs h3 { margin-bottom: 8px; }
.finished-specs table { width: 100%; max-width: 750px; border-collapse: collapse; text-align: left; }
.finished-specs th, .finished-specs td { padding: 9px 12px; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.finished-specs thead { background: var(--linen-light); }
.finished-specs tbody th { width: 34%; font-weight: 600; }

.traceability-figure {
  background: #f4f7f3;
  border: 1px solid #d4ded5;
  color: var(--ink);
}
.traceability-figure figcaption { color: var(--green); font-size: 26px; }
.traceability-figure figcaption small { display: block; font-size: 15px; color: var(--muted); font-weight: 400; }
.traceability-forward { margin: 22px 0 12px; font-weight: 800; color: var(--green); }
.traceability-forward span { color: var(--muted); font-weight: 400; margin-left: 8px; display: inline-block; }
.traceability-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.traceability-steps li { min-height: 116px; border-top-color: var(--green); background: white; box-shadow: 0 2px 6px #26262610; }
.traceability-steps li + li::before { border-color: var(--green); }
.traceability-reverse { position: relative; margin-top: 24px; padding: 14px 18px 14px 46px; border-radius: 8px; background: var(--green); color: white; }
.traceability-reverse::before { content: ""; position: absolute; width: 9px; height: 9px; left: 20px; top: 24px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.traceability-reverse p { margin-top: 3px; }
@media (max-width: 820px) {
  .traceability-steps { grid-template-columns: 1fr; gap: 20px; }
  .traceability-steps li { min-height: 0; border-top: 0; border-left: 4px solid var(--green); }
  .traceability-steps li + li::before { top: -18px; left: 50%; transform: translateX(-50%) rotate(135deg); }
}


.vision-photo img { aspect-ratio: 1; object-fit: cover; }

.culinary-section { padding-block: clamp(24px, 4vw, 44px); }
.culinary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; }
.culinary-grid > div { padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.culinary-grid dt { color: var(--green); font-weight: 700; }
.culinary-grid dd { margin: 5px 0 0; }
@media (max-width: 767px) { .culinary-grid { grid-template-columns: 1fr; gap: 10px; } }

.product-thumb.salt-ingredient-photo,
.detail-stage.salt-ingredient-photo {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
#category-product-list .product-card[data-category="seasoned-salt"] {
  display: grid;
  grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
  column-gap: 14px;
  align-content: center;
}
#category-product-list .product-card[data-category="seasoned-salt"] > a:first-child {
  display: contents;
}
#category-product-list .salt-ingredient-photo {
  grid-column: 1;
  grid-row: 1 / 5;
  align-self: stretch;
  min-height: 112px;
  height: auto;
  aspect-ratio: auto;
  background: #fff;
  margin: 0;
}
#category-product-list .product-card[data-category="seasoned-salt"] :is(h3, .product-en, p, .text-link) {
  grid-column: 2;
  justify-self: start;
}
#category-product-list .product-card[data-category="seasoned-salt"] .text-link { margin-top: 8px; }
.product-thumb.salt-ingredient-photo { height: clamp(124px, 13vw, 156px); }
#category-product-list .product-thumb.salt-ingredient-photo img { width: min(94%, 152px); }
@media (max-width: 767px) {
  #category-product-list:has(.salt-ingredient-photo) { grid-template-columns: 1fr; gap: 12px; }
  #category-product-list .product-card[data-category="seasoned-salt"] { grid-template-columns: minmax(100px, 38%) minmax(0, 1fr); }
}
.detail-hero[data-series="seasoned-salt"] .detail-stage.salt-ingredient-photo {
  height: clamp(160px, 21vw, 230px);
}
.product-thumb.salt-ingredient-photo img,
.detail-hero .detail-stage.salt-ingredient-photo img {
  width: min(72%, 156px);
  max-height: 82%;
  height: auto;
  object-fit: contain;
}
.detail-hero .detail-stage.salt-ingredient-photo img { width: min(74%, 212px); }

.sourcing-map { margin: 22px 0 0; }
.sourcing-map-frame { position: relative; overflow: hidden; }
.sourcing-map-frame img { width: 100%; display: block; }
.origin-pin { position: absolute; left: var(--pin-x); top: var(--pin-y); transform: translate(-50%,-50%); border: 1px solid #fff; box-shadow: 0 1px 4px #26262655; }
.origin-pin, .origin-list strong span { display: inline-grid; place-items: center; width: clamp(15px, 2.3vw, 28px); aspect-ratio: 1; border-radius: 50%; background: var(--green); color: #fff; font-size: clamp(10px, 1.2vw, 14px); font-weight: 700; }
.origin-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 16px; margin: 18px auto 0; }
.origin-list strong { display: flex; align-items: center; gap: 6px; }
.origin-list strong span { width: 18px; font-size: 11px; }
.origin-list p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sourcing-visits { grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); margin-top: 18px; }
.sourcing-visits img { width: 100%; height: clamp(160px, 25vw, 224px); object-fit: cover; object-position: center 43%; }
.sourcing-visits figure > a { display: block; overflow: hidden; border-radius: 8px; }
.sourcing-visits h5 { margin: 8px 0 0; font-size: 16px; }

.bulk-intro .lead { margin: 10px 0 0; }
.bulk-intro .actions { margin-top: 18px; }
.bulk-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 16px; margin-top: 20px; }
.bulk-category { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.bulk-category > img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; display: block; }
.bulk-category > div { padding: 12px 14px 16px; }
.bulk-category h3, .bulk-category p { margin: 0; }
.bulk-category p { margin-top: 4px; color: var(--muted); }
.origin-pin { width: clamp(13px, 1.75vw, 26px); font-size: clamp(8px, 1vw, 14px); }
@media (max-width: 520px) {
  .bulk-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .origin-pin { width: 11px; }
}

.product-card[data-category="chili"] .product-thumb, .detail-hero[data-series="chili"] .detail-stage {
  background: #fff;
  border: 1px solid var(--line);
}
.product-card[data-category="chili"] .product-thumb img, .detail-hero[data-series="chili"] .detail-stage img {
  width: 84%;
  max-width: 400px;
  max-height: 88%;
  object-fit: contain;
}
.detail-hero[data-series="chili"] .detail-stage { height: clamp(225px, 34vw, 365px); }

.bulk-visit-album { margin-top: 30px; }
.bulk-visit-group { margin-top: 20px; }
.bulk-visit-group h4 { margin: 0; font-size: 20px; }
.bulk-visit-group .sourcing-visits { margin-top: 10px; grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr)); }


.spice-story-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); gap: 24px; align-items: stretch; }
.spice-story-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.spice-story-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #f1e8db; }
.spice-story-card > div { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; }
.spice-story-card h2 { font-size: clamp(20px, 2vw, 23px); line-height: 1.4; margin: 0 0 10px; }
.spice-story-card p { margin: 0 0 16px; font-size: 16px; line-height: 1.75; }
.spice-story-card .text-link { margin-top: auto; }
.story-header { padding: 26px 0 32px; background: #f6eee1; }
.story-header-copy { max-width: 760px; margin: 24px auto 0; }
.story-header h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.24; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.story-header p { font-size: clamp(17px, 2.25vw, 21px); line-height: 1.7; margin: 16px 0 0; color: var(--muted); }
.story-header + .list-page { padding-top: clamp(24px, 4vw, 44px); }
.spice-article { max-width: 760px; }
.spice-article figure { margin: 0; }
.spice-article figure img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: #f1e8db; border-radius: var(--radius); }
.spice-article figcaption { display: grid; gap: 4px; padding: 9px 4px 0; color: var(--muted); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.spice-article figcaption strong { color: var(--ink); }
.story-photo-credit { font-size: 13px; }
.spice-article > section, .spice-article .actions { margin-top: clamp(28px, 5vw, 48px); }
.spice-article h2 { font-size: clamp(22px, 3vw, 29px); line-height: 1.4; margin: 0 0 14px; text-wrap: balance; }
.spice-article section > p { font-size: clamp(17px, 2vw, 19px); line-height: 1.85; margin: 0 0 12px; overflow-wrap: anywhere; }
.spice-article .story-references { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.story-source { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.story-photo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 18px; margin: 32px 0; }
.spice-article .story-photo-grid figure { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.spice-article .story-photo-grid img { max-height: 320px; }
.story-bibliography { padding: clamp(16px, 4vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: #f6eee1; }
.story-bibliography ul { margin: 0; padding-inline-start: 20px; overflow-wrap: anywhere; }
.story-bibliography li + li { margin-top: 6px; }

.product-package-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}
.product-package-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.product-package-list li > div { min-width: 0; overflow-wrap: anywhere; }
.product-package-list p { margin: 3px 0 0; font-size: 14px; }
.package-photo { flex: 0 0 min(36%,100px); }
.package-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.detail-hero .detail-stage { grid-column: 1; grid-row: 1; background: #fff; border: 1px solid var(--line); }
.detail-hero .detail-copy { grid-column: 2; grid-row: 1; }
.detail-hero .detail-stage img { max-width: 86%; mix-blend-mode: normal; }
.series-picker { display: none; }
.inquiry-form { scroll-margin-top: calc(var(--header-height) + 24px); }
.inquiry-alternatives { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.inquiry-alternatives a { overflow-wrap: anywhere; text-decoration: underline; }
@media (max-width:767px) {
  .catalog-layout > .sidebar { display: none; }
  .series-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .series-picker select { min-width: 0; flex: 1; min-height: 44px; padding: 6px 10px; }
  .catalog-layout .category-toolbar { margin-bottom: 8px; }
  .detail-hero { gap: 18px; }
  .detail-hero .detail-copy, .detail-hero .detail-stage { grid-column: auto; grid-row: auto; }
  .detail-hero[data-series] .detail-stage { height: clamp(155px,50vw,215px); min-height: 0; }
  .detail-hero .detail-stage img { max-height: 85%; }

}

.digital-hero { padding: 30px 0 46px; background: #fff3df; }
.digital-hero-grid, .digital-ai { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(24px,5vw,62px); }
.digital-hero h1 { margin: 0 0 16px; }
.digital-hero p, .digital-content p, .digital-ai p, .digital-trace p { font-size: clamp(16px,2vw,18px); line-height: 1.75; margin: 10px 0 0; }
.digital-topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.digital-topics article { background: white; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius); padding: clamp(16px,3vw,26px); }
.digital-topics h3 { margin: 0; }
.digital-trace { background: #edf3e9; }
.digital-trace ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 0; list-style: none; margin: 20px 0; }
.digital-trace li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: white; color: var(--green); font-weight: 700; }
.digital-trace .text-link { margin-top: 16px; }
.digital-state { display: inline-block; font-weight: 700; color: var(--green); margin-bottom: 8px; }
@media (max-width: 767px) {
  .digital-hero-grid, .digital-ai, .digital-topics { grid-template-columns: 1fr; }
  .digital-trace ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.digital-demo { background: #fff; border: 1px solid #dce3dc; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px #193b2410; min-width: 0; }
.digital-demo-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 18px; background: #244735; color: white; }
.digital-demo-head span { font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 20px; color: #244735; background: #edf3e9; }
.digital-demo-body { padding: 12px 18px 17px; }
.demo-field { padding: 8px 0; display: grid; grid-template-columns: minmax(100px, 33%) minmax(0,1fr); gap: 8px; }
.demo-field span { color: var(--muted); }
.demo-records { margin: 8px 0 0; padding: 0; list-style: none; }
.demo-records li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 9px 0; border-top: 1px solid #e0e6df; }
.demo-records li span { font-weight: 700; color: #244735; }
.demo-records small { color: var(--muted); font-size: 14px; }
.demo-records .demo-done, .demo-records .demo-review { padding: 2px 9px; border-radius: 20px; font-weight: 700; }
.demo-records .demo-done { color: #24543d; background: #e5f0e7; }
.demo-records .demo-review { color: #703a10; background: #fff0d8; }
.digital-demo .demo-review-flow { display: grid; grid-template-columns: 1fr; gap: 7px; padding: 0; margin: 10px 0 0; counter-reset: review; }
.demo-review-flow li::before { counter-increment: review; content: counter(review); display: inline-grid; place-items: center; margin-right: 9px; width: 24px; height: 24px; background: #edf3e9; border-radius: 50%; font-size: 13px; }

.story-search { margin-bottom: 16px; max-width: 590px; }
.story-search label { display: block; font-weight: 700; margin-bottom: 8px; }
.story-search > div { display: flex; flex-wrap: wrap; gap: 10px; }
.story-search input { flex: 1; min-width: 150px; padding: 10px 12px; font: inherit; border: 1px solid #929d91; border-radius: 8px; }
.story-tags { display: flex; flex-wrap: wrap; gap: 5px 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.story-tags a { display: inline-block; padding: 6px 10px; border: 1px solid #b6c7b8; border-radius: 22px; background: #edf3e9; color: #244735; font-size: 14px; text-decoration: none; }
.story-tags a:hover, .story-tags a:focus-visible { text-decoration: underline; }
.story-count { margin: 13px 0 19px; font-size: 15px; }
.story-count a { margin-left: 8px; text-decoration: underline; }
.story-related li { margin-top: 8px; }
