/* Responsive navigation and product-first layouts, release September 2026. */
.dgs-nav-details { position: relative; }
.dgs-nav-details > summary { cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; list-style: none; }
.dgs-nav-details > summary::-webkit-details-marker { display: none; }
.dgs-nav-details > summary::after { content: "⌄"; display: inline-block; margin-left: 5px; }
.dgs-nav-details[open] > summary::after { transform: rotate(180deg); }
.dgs-nav-details > summary:focus-visible { outline: 2px solid var(--dgs-sage, #61785c); outline-offset: 5px; border-radius: 2px; }
.dgs-nav__submenu { position: absolute; z-index: 102; top: calc(100% + 14px); right: 0; display: grid; gap: 2px; min-width: 200px; margin: 0; padding: 10px; list-style: none; border: 1px solid var(--dgs-line); border-radius: 10px; background: var(--dgs-surface, #fffdf8); box-shadow: 0 14px 28px rgb(31 40 33 / 12%); }
.dgs-nav__submenu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
.dgs-nav__submenu a:hover { background: var(--dgs-sage-pale, #dfe6dc); }
.dgs-nav__submenu a::after { display: none; }
.dgs-section[id], .dgs-market-hero, .dgs-hero { scroll-margin-top: 86px; }
.dgs-latest-guides { margin-top: 32px; }
.dgs-magazine-card__date { color: var(--dgs-muted); font-size: 13px; }
.dgs-magazine-card__excerpt { margin-block: 10px 16px; font-size: 15px; line-height: 1.55; }
.dgs-magazine-card h3 a { text-decoration: none; }
.dgs-magazine-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dgs-magazine__archive { margin-top: 24px; text-align: center; }
@media (min-width: 821px) {
  .dgs-hero__inner { min-height: 500px; }
  .dgs-hero__copy { padding-block: 52px; }
  .dgs-hero h1 { font-size: clamp(44px, 4.5vw, 72px); }
  .dgs-market-hero__inner { min-height: 480px; padding-block: 48px; gap: 40px; }
  .dgs-market-hero h1 { font-size: clamp(44px, 4.2vw, 66px); }
}
@media (min-width: 1181px) {
  .dgs-site-header__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; min-height: 76px; gap: 12px; }
  .dgs-brand { font-size: clamp(28px, 2.3vw, 36px); }
  .dgs-nav-toggle { display: none; }
  .dgs-nav { position: static; display: block; width: auto; max-height: none; margin: 0; padding: 0; border: 0; overflow: visible; background: transparent; box-shadow: none; }
  .dgs-nav__list { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(10px, 1.1vw, 20px); }
  .dgs-nav__list > li { flex: 0 0 auto; margin: 0; }
  .dgs-nav__list > li > a, .dgs-nav-details > summary { display: block; width: auto; padding: 12px 0; font-size: 13px; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
  .dgs-site-header__inner > .dgs-market-switcher { display: inline-flex; }
  .dgs-site-header__cta { display: inline-flex; padding: 12px 16px; font-size: 13px; }
  .dgs-nav__utility, .dgs-nav > .dgs-nav__markets { display: none; }
  .dgs-market-switcher a { min-width: 28px; padding: 5px; }
}
@media (max-width: 1180px) {
  .dgs-site-header__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 68px; gap: 12px; }
  .dgs-brand { font-size: clamp(27px, 4vw, 34px); }
  .dgs-nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; grid-column: 2; grid-row: 1; justify-self: end; }
  .dgs-nav-toggle > span:not(.screen-reader-text) { flex: 0 0 2px; width: 22px; height: 2px; margin: 0; }
  .dgs-site-header__inner > .dgs-market-switcher, .dgs-site-header__cta { display: none; }
  .dgs-nav { position: absolute; z-index: 101; inset: 100% 0 auto; display: none; width: 100%; max-height: calc(100dvh - 68px); margin: 0; padding: 16px 24px 24px; overflow-y: auto; border: 1px solid var(--dgs-line); border-radius: 0 0 12px 12px; background: var(--dgs-surface, #fffdf8); box-shadow: 0 16px 28px rgb(31 40 33 / 10%); }
  .dgs-nav.is-open { display: block; }
  .dgs-nav__list { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .dgs-nav__list > li > a, .dgs-nav-details > summary { display: flex; align-items: center; min-height: 44px; padding: 9px 0; font-size: 16px; line-height: 1.4; }
  .dgs-nav-details > summary::after { margin-left: auto; }
  .dgs-nav__submenu { position: static; min-width: 0; margin: 2px 0 10px; padding: 4px 10px; background: var(--dgs-paper); box-shadow: none; }
  .dgs-nav__utility, .dgs-nav > .dgs-nav__markets { display: block; margin-top: 14px; }
  .dgs-nav__markets-label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--dgs-muted); }
  .dgs-nav .dgs-market-switcher, .dgs-nav .dgs-market-switcher--mobile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 6px; border: 0; border-radius: 0; padding: 0; background: transparent; }
  .dgs-nav .dgs-market-switcher a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px; border: 1px solid var(--dgs-line); border-radius: 8px; font-size: 13px; }
  .dgs-nav .dgs-market-switcher a::after { display: none; }
  .dgs-nav__cta { width: 100%; margin-top: 14px; }
  body.admin-bar .dgs-nav { max-height: calc(100dvh - 114px); }
}
@media (max-width: 820px) {
  .dgs-hero__inner, .dgs-market-hero__inner { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding-block: 26px; }
  .dgs-hero__copy { padding: 0; }
  .dgs-market-hero__copy > .dgs-eyebrow { margin: 0 0 10px; font-size: 12px; line-height: 1.4; }
  .dgs-hero h1, .dgs-market-hero h1 { margin: 0; font-size: clamp(34px, 6.2vw, 50px); line-height: 1.04; letter-spacing: -.04em; }
  .dgs-hero__copy > p, .dgs-market-hero__lead { margin: 14px 0 0; font-size: 16px; line-height: 1.5; }
  .dgs-hero__actions { margin-top: 18px; gap: 12px; }
  .dgs-hero__media { min-height: 0; height: 180px; max-height: 180px; border-radius: 14px; overflow: hidden; }
  .dgs-hero__media picture, .dgs-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .dgs-market-hero__product { justify-self: center; width: min(100%, 250px); padding: 14px; }
  .dgs-market-hero__product img { max-height: 200px; object-fit: contain; }
  .dgs-section { padding-block: 34px; }
  .dgs-section-heading { gap: 10px; margin-bottom: 20px; }
  .dgs-section-heading h2 { font-size: clamp(27px, 5vw, 36px); line-height: 1.12; }
  .dgs-section-heading p { margin-block: 10px 0; font-size: 15px; line-height: 1.5; }
  .dgs-species { padding-block: 20px; }
  .dgs-species .dgs-section-heading { margin-bottom: 14px; }
  .dgs-species .dgs-section-heading h2 { font-size: 25px; }
  .dgs-species .dgs-section-heading p { display: none; }
  .dgs-species-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dgs-species-card { display: flex; flex-direction: row; justify-content: center; min-height: 52px; gap: 5px; padding: 6px 4px; border-radius: 10px; }
  .dgs-species-card strong { font-size: 13px; line-height: 1.2; }
  .dgs-species-card__mark { flex: 0 0 25px; width: 25px; height: 25px; }
  .dgs-filter-groups { gap: 10px; margin-bottom: 18px; }
  .dgs-section--catalog .dgs-eyebrow { display: none; }
  .dgs-filter-bar { display: flex; flex-wrap: wrap; gap: 7px; }
  .dgs-filter { min-height: 40px; padding: 8px 11px; font-size: 13px; }
  .dgs-product-card__title { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
  .dgs-product-card__body .dgs-button, .dgs-product-card__content .dgs-button { min-height: 44px; }
  .dgs-content { padding-block: 32px; }
}
@media (max-width: 520px) {
  .dgs-hero__inner, .dgs-market-hero__inner { gap: 16px; padding-block: 22px; }
  .dgs-hero h1, .dgs-market-hero h1 { font-size: 34px; }
  .dgs-hero__actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
  .dgs-hero__actions .dgs-button { min-height: 44px; padding: 11px 14px; font-size: 13px; }
  .dgs-hero__actions .dgs-text-link { align-self: auto; font-size: 13px; }
  .dgs-hero__media { height: 144px; max-height: 144px; }
  .dgs-market-hero__product { width: 160px; border-radius: 20px; padding: 10px; }
  .dgs-market-hero__product img { max-height: 140px; }
  .dgs-section--catalog .dgs-section-heading { margin-bottom: 16px; }
  .dgs-affiliate-note { margin-block: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
  .dgs-filter-bar { display: flex; grid-template-columns: none; }
  .dgs-product-grid--featured, .dgs-product-grid--catalog { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .dgs-nav-details > summary::after { transition: none; } }
