.masthead .header-row { position: relative; }
.mobile-menu { display: none; }
.masthead .wide-nav a, .footer-row nav a { display: inline; }
.season-row { list-style: none; padding: 0; margin-block: 0; flex-wrap: wrap; }
.season-row li { padding: .35em .55em; min-height: 31px; color: var(--muted); font-size: .77rem; line-height: 1.4; border-bottom: 2px solid transparent; }
.season-row li[aria-current] { border-bottom-color: var(--wine); color: var(--wine-dark); font-weight: 700; }
.quote-shell {
  container-type: inline-size;
  max-block-size: calc(100dvh - var(--header-measured, var(--header)) - 24px - env(safe-area-inset-bottom));
  scrollbar-gutter: stable;
}
.quote-shell input, .quote-shell select, .quote-shell textarea { min-width: 0; }
.quote-shell .step-label { overflow-wrap: anywhere; }
.footer-row nav { row-gap: 8px; }
.crumbs > *, .article-copy { min-width: 0; overflow-wrap: anywhere; }
.medal-actions { flex-wrap: wrap; }
.medal-actions a, .sample-copy a { overflow-wrap: anywhere; }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9rem, calc((100% - 60px) / 4))), 1fr)); }
#main:focus-visible { outline-offset: -3px; }
.quote-shell :is(input, select, textarea, button):focus-visible { scroll-margin-block: 8px; }
.hero-specimen {
  padding: clamp(8px, 1.25vw, 18px);
  background: #e3ceb2;
  border-color: #b49b7d;
  box-shadow: 6px 8px 0 #cfb08a;
}
.hero-specimen .shape-frame { outline: 1px solid #bca88f; aspect-ratio: 1.2; }
.hero-catalog-photo { display: block;  overflow: hidden; background: #252023; outline: 1px solid #bca88f; }
.hero-specimen .hero-catalog-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero-specimen::after { right: -7px; bottom: -8px; }
.template-catalog .page-hero .frame { padding-block: 18px 24px; }
.template-catalog .page-grid h1 { margin: 8px 0 10px; }
.template-catalog main > .section { padding-top: clamp(18px, 3vw, 34px); }
.template-catalog .medal-actions { gap: 0 14px; }
.template-catalog .medal-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.template-catalog .card-grid { margin-top: 8px; }
@container (max-width: 18em) {
  .field-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 760px), (max-height: 480px) {
  .masthead .wide-nav { display: none; }
  .masthead .header-row { flex-wrap: wrap; gap: 4px 8px; padding-block: 4px; }
  .masthead .brand { font-size: 1rem; gap: 5px; }
  .masthead .brand img { width: 25px; }
  .masthead .compact { margin-left: auto; padding: .44em .55em; gap: .2em; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    display: flex; align-items: center; gap: .3em; min-height: 44px;
    font-size: .83rem; font-weight: 650; cursor: pointer; list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { content: ""; width: .5em; height: .5em; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
  .mobile-menu[open] summary::after { transform: rotate(225deg); }
  .masthead .mobile-menu nav {
    position: absolute; z-index: 1; inset: 100% 0 auto;
    display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line);
    max-block-size: calc(100dvh - var(--header-measured, var(--header)) - 12px);
    overflow: auto; box-shadow: 0 6px 20px #28231e26;
  }
  .masthead .mobile-menu nav a {
    display: flex; align-items: center; min-height: 44px; padding: .45em .8em;
    border-bottom: 1px solid var(--line); text-decoration: none;
  }
  .masthead .mobile-menu nav a:focus-visible { outline-offset: -3px; }
}
@media (max-width: 840px) {
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9rem, calc((100% - 20px) / 2))), 1fr)); }
}
@media (max-width: 620px) {
  .hero-specimen .shape-frame { aspect-ratio: 1.29; }
  .hero-catalog-photo {  }
  .hero-specimen .hero-catalog-photo img { object-position: center 66%; }
  .template-catalog .page-grid { position: relative; display: block; padding-inline-end: 58px; }
  .template-catalog .page-grid h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .template-catalog .page-motif { position: absolute; inset: 26px 7px auto auto; width: 38px; margin: 0; outline-offset: 5px; }
  .template-catalog .crumbs { margin-bottom: 14px; }
  .template-catalog .page-hero .frame { padding-bottom: 17px; }
  .template-catalog main > .section { padding-top: 6px; }
}
@media (max-width: 350px) {
  .frame { width: calc(100% - 26px); }
  .filters button, .hero-actions a, .footer-row a { max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-height: 480px) and (min-width: 621px) {
  .hero { padding-block: 18px 24px; }
  .hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.3rem); margin-block: 10px 12px; }
  .hero-actions { margin-top: 12px; }
}
