.packaging-page [hidden] { display: none !important; }
.packaging-page main { min-width: 0; }
.packaging-page h1, .packaging-page h2, .packaging-page h3 { text-wrap: balance; }
.packaging-page button, .packaging-page input, .packaging-page select { font: inherit; }
.packaging-page button { cursor: pointer; }
.packaging-page :focus-visible { outline: 3px solid #2c6653; outline-offset: 4px; }
.packaging-page .detail-header :focus-visible { outline-color: #fff; }
.pack-skip { position: fixed; top: -100px; left: 1rem; z-index: 30; padding: .8rem; color: #fff; background: var(--navy); }
.pack-skip:focus { top: 0; }
.pack-intro { padding: clamp(2rem, min(4vw, 51.2px), 4rem) var(--page-x); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, min(4vw, 51.2px), 4rem); align-items: center; background: #f3f6f9; }
.pack-breadcrumb { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 1rem; font-size: .85rem; color: var(--green); text-underline-offset: 4px; }
.pack-intro h1 { margin: 0; color: var(--navy-deep); font-family: var(--display); font-size: clamp(2.2rem, min(3.7vw, 47.36px), 3.7rem); line-height: 1.06; font-weight: 400; letter-spacing: -.025em; }
.pack-intro p { max-width: 55ch; margin: 1.3rem 0 0; color: var(--muted); line-height: 1.7; }
.pack-intro figure { margin: 0; }
.pack-intro img { height: auto; }
.pack-intro figcaption { margin-top: .7rem; font-size: .75rem; color: var(--muted); line-height: 1.5; }
.pack-catalog { padding: clamp(2rem, min(4vw, 51.2px), 4rem) var(--page-x); scroll-margin-top: 90px; }
.pack-catalog-heading { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 3rem; }
.pack-catalog h2, .pack-preference h2, .pack-next h2 { margin: 0; color: var(--navy-deep); font-family: var(--display); font-size: clamp(1.9rem, min(2.5vw, 32px), 2.6rem); line-height: 1.15; font-weight: 400; }
.pack-catalog-heading p { margin: .8rem 0 0; color: var(--muted); line-height: 1.65; }
.pack-catalog-heading .pack-status-note { margin: 0; font-size: .85rem; }
#packaging-results { margin-top: 1.8rem; }
.pack-option { border-top: 1px solid var(--line); }
.pack-option:last-child { border-bottom: 1px solid var(--line); }
.pack-option summary { min-height: 80px; padding: 1.1rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 1.4rem; align-items: center; cursor: pointer; list-style: none; }
.pack-option summary::-webkit-details-marker { display: none; }
.pack-option summary:hover .pack-option-name { color: var(--green); }
.pack-option-name { font-size: clamp(1.05rem, min(1.5vw, 19.2px), 1.35rem); font-weight: 700; color: var(--navy-deep); }
.pack-option-status { font-size: .8rem; color: var(--muted); }
.pack-expand { font-size: 1.5rem; text-align: center; color: var(--green); transition: transform 160ms ease-out; }
.pack-option details[open] .pack-expand { transform: rotate(45deg); }
.pack-specification { padding: 0 0 1.5rem; }
.pack-note { margin: 0 0 1.1rem; max-width: 70ch; color: var(--muted); line-height: 1.7; }
.pack-specification dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: var(--soft); }
.pack-specification dl > div { min-width: 0; padding: 1rem 1.2rem; }
.pack-specification dt { margin-bottom: .5rem; font-size: .8rem; color: #47576b; }
.pack-specification dd { margin: 0; font-weight: 700; font-size: .95rem; color: var(--navy-deep); overflow-wrap: anywhere; }
.pack-specification dd.unconfirmed { font-weight: 400; color: #5a6675; }
.pack-matching { margin: 1rem 0; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.pack-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; }
.pack-actions button, .pack-actions a { min-height: 44px; padding: .75rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-size: .88rem; font-weight: 700; text-decoration: none; }
.pack-actions button { border: 1px solid var(--navy); color: #fff; background: var(--navy); border-radius: 0; }
.pack-actions button[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.pack-actions a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.pack-footnote { max-width: 85ch; margin: 1.5rem 0 0; color: var(--muted); font-size: .83rem; line-height: 1.7; }
.pack-preference { margin: 0 var(--page-x) 1rem; padding: 1.5rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; background: #eef4f0; }
.pack-preference h2 { font-size: 1.7rem; }
.pack-preference p { max-width: 65ch; margin: .6rem 0 0; font-size: .85rem; line-height: 1.65; }
.pack-preference #preference-name { font-size: 1.1rem; font-weight: 700; }
.pack-preference .pack-actions { flex-direction: column; align-items: stretch; }
.pack-preference button { color: var(--navy); background: transparent; }
.pack-message { margin: 0 var(--page-x); font-size: .85rem; line-height: 1.7; }
.pack-message:empty { display: none; }
.pack-next { padding: clamp(2.5rem, min(4vw, 51.2px), 4rem) var(--page-x); }
.pack-next > p { max-width: 70ch; color: var(--muted); line-height: 1.7; }
.pack-next ol { padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style-position: inside; color: var(--green); }
.pack-next li { padding-top: 1rem; border-top: 1px solid var(--line); line-height: 1.6; }
.pack-next strong { color: var(--navy-deep); }
.pack-next li span { display: block; margin-top: .6rem; color: var(--muted); font-size: .88rem; }
@media (max-width: 850px) {
  .pack-intro, .pack-catalog-heading, .pack-preference { grid-template-columns: 1fr; gap: 1.5rem; }
  .pack-intro figure { max-width: 600px; }
  .pack-specification dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-preference .pack-actions { flex-direction: row; }
}
@media (max-width: 560px) {
  .pack-intro h1 { font-size: 2.2rem; }
  .pack-intro { padding-block: 1.4rem 2rem; }
  .pack-option summary { grid-template-columns: minmax(0, 1fr) 28px; gap: .5rem; }
  .pack-option-status { grid-column: 1; grid-row: 2; line-height: 1.6; }
  .pack-expand { grid-column: 2; grid-row: 1 / 3; }
  .pack-specification dl { grid-template-columns: 1fr; }
  .pack-specification dl > div { padding: .75rem 1rem; }
  .pack-actions { align-items: stretch; flex-direction: column; }
  .pack-actions a, .pack-actions button { width: 100%; text-align: center; }
  .pack-next ol { grid-template-columns: 1fr; gap: 1rem; }
  .pack-preference { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .pack-expand { transition: none; } }
