
@layer pages {
  .p-lead { margin-top: 12px; max-width: 68ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--text); }
  .p-panel-lead { margin-top: 20px; max-width: 64ch; color: var(--text); }

  
  [data-tabs] > .c-tabs__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: visible; }
  [data-tabs] > .c-tabs__list .c-tabs__tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; min-width: 0; }
  [data-tabs] > .c-tabs__list .c-tabs__tab::after { inset-inline: 0; }
  .p-tabcount { display: none; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--sunken); font: 600 0.75rem/1 var(--font-text); color: var(--text-muted); }
  [aria-selected="true"] > .p-tabcount { background: var(--navy-100); color: var(--navy); }
  @media (min-width: 420px) { .p-tabcount { display: inline-flex; } }

  
  .p-exps { container-type: inline-size; display: grid; gap: 20px; margin-top: 20px; }
  .p-exp { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--sh-sm); overflow: hidden; scroll-margin-top: calc(var(--topbar-h) + var(--safe-t) + 64px); }
  .p-exp__media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--sunken); }
  .p-exp__media picture, .p-exp__media img { display: block; width: 100%; height: 100%; }
  .p-exp__media img { object-fit: cover; object-position: var(--pos-sm, var(--pos, 50% 50%)); background: var(--ph, var(--sunken)); }
  .p-exp__body { display: grid; gap: 12px; align-content: start; padding: 20px; min-width: 0; }
  .p-exp__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .p-exp__season { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-meta)/1.2 var(--font-text); color: var(--text-muted); }
  .p-exp__season.is-seasonal { color: var(--dest-ink); }
  .p-exp__season .icon { width: 16px; height: 16px; }
  .p-exp__more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 var(--fs-sm)/1.3 var(--font-text); color: var(--text-strong); cursor: pointer; list-style: none; }
  .p-exp__more > summary::-webkit-details-marker { display: none; }
  .p-exp__more > summary .icon { width: 20px; height: 20px; color: var(--text-muted); transition: transform var(--dur-1) var(--ease); }
  .p-exp__more[open] > summary .icon { transform: rotate(180deg); }
  .p-exp__more > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .p-exp__more > :not(summary) { margin-top: 12px; }
  .p-exp__more > .p-exp__note + .p-exp__best, .p-exp__more > .p-exp__list + .p-exp__best { margin-top: 12px; }
  .p-exp__title { font: 700 var(--fs-h3)/1.2 var(--font-display); letter-spacing: -0.012em; color: var(--text-strong); text-wrap: balance; }
  .p-exp__text { color: var(--text); }
  .p-exp__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 600 var(--fs-meta)/1.4 var(--font-text); color: var(--text-strong); }
  .p-exp__list { display: grid; gap: 8px; }
  .p-exp__note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--band); border-radius: var(--r-2); font-size: var(--fs-sm); line-height: 1.5; color: var(--text); }
  .p-exp__note .icon { flex: none; margin-top: 2px; color: var(--navy); }
  .p-exp__best { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-muted); }
  .p-exp__best b { font-weight: 600; color: var(--text-strong); }
  .p-exp__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--band); }
  .p-exp__price { min-width: 0; }
  .p-exp__child { margin-top: 4px; font-size: var(--fs-sm); line-height: 1.4; color: var(--text-muted); }
  .p-exp__child b { font-weight: 700; color: var(--text-strong); }
  .p-exp__buy .btn { flex: none; }
  @media (max-width: 479px) { .p-exp__buy .btn { width: 100%; } }
  .p-exp__buy .c-price--enquiry .c-price__amt { white-space: normal; }

  @container (min-width: 620px) {
    .p-exp__media { aspect-ratio: 3 / 1; }
    .p-exp__media img { object-position: var(--pos, 50% 50%); }
    .p-exp__body { padding: 24px; gap: 14px; }
    .p-exp__buy { padding: 16px 24px; }
    .p-exp__more > summary { display: none; }
    .p-exp__more > :not(summary):first-of-type { margin-top: 0; }
  }
  
  @container (min-width: 680px) {
    .p-exp { grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .p-exp__media { grid-column: 1; grid-row: 1; aspect-ratio: 1 / 1; }
    .p-exp__body { grid-column: 2; grid-row: 1 / span 2; padding: 24px 28px; align-content: start; }
    .p-exp__buy { grid-column: 1; grid-row: 2; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 14px; padding: 20px 20px 24px; border-top: 0; border-inline-end: 1px solid var(--line); }
    .p-exp__buy .btn { width: 100%; }
    .p-exp__buy .c-price--enquiry .c-price__amt { white-space: normal; font-size: 1.125rem; line-height: 1.25; }
  }
  
  .page-section--gallery > .c-qa { margin-top: 0; }
  @media (min-width: 1024px) { .page-section--gallery > .c-qa { margin-top: 24px; } }

  
  .p-cmp-link { padding-block: 13px; font-weight: 600; color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
  .p-confirm { font: 600 var(--fs-sm)/1.35 var(--font-text); color: var(--text-muted); }
  .p-cmp td small { display: block; margin-top: 2px; }

  
  .p-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-inline: 16px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--surface); font: 600 var(--fs-sm)/1.3 var(--font-text); color: var(--text-strong); cursor: pointer; list-style: none; }
  .p-fold > summary::-webkit-details-marker { display: none; }
  .p-fold > summary .icon { width: 20px; height: 20px; color: var(--text-muted); transition: transform var(--dur-1) var(--ease); }
  .p-fold[open] > summary .icon { transform: rotate(180deg); }
  .p-fold > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .p-fold[open] > summary { margin-bottom: 8px; }
  @media (min-width: 640px) { .p-fold > summary { display: none; } .p-fold[open] > summary { margin-bottom: 0; } }

  .p-price .num { width: auto; min-width: 96px; }
  .p-price th.num { line-height: 1.35; }
  @media (max-width: 639px) { .p-price .num { min-width: 0; padding-inline-start: 8px; } .p-price td, .p-price tbody th { padding-block: 14px; } .p-price .p-confirm { text-align: end; display: block; } }

  
  @media (max-width: 639px) {
    
    .p-pick tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 14px 0; }
    .p-pick tbody th { grid-column: 1 / -1; }
    .p-pick td { margin-top: 0; }
  }
}
