/* Shared public shell and responsive navigation. */

html { scroll-behavior: smooth; }
.shell-body { padding-block-end: 56px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.shell-body a { text-decoration: none; }
.shell-body :is(.shell-notice, .shell-mega, .shell-recent-panel, .shell-recent-panel ul, .shell-recent-panel p)[hidden] { display: none; }
.shell-body .site-skip-link { z-index: 80; }
.shell-wide { width: min(var(--ds-width), calc(100% - 2 * var(--ds-gutter))); margin-inline: auto; }
.shell-section-navigation { padding-block: 1rem; }
.shell-section-navigation ul { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 3px; overflow-x: auto; }
.shell-section-navigation li { flex: none; white-space: nowrap; }
.shell-section-navigation a { display: inline-flex; align-items: center; min-height: var(--ds-touch); padding: .375rem .875rem; border: 1px solid var(--ds-line); border-radius: 999px; color: var(--ds-ink); }
.shell-section-navigation a[aria-current="page"] { color: var(--ds-white); background: var(--ds-ink); border-color: var(--ds-ink); }
.shell-body button { font: inherit; }
.shell-body [id="site-content"] { min-width: 0; }

.shell-notice { display: grid; grid-template-rows: 1fr; overflow: clip; background: var(--ds-card); color: var(--ds-ink); }
.shell-notice-contents { min-block-size: 0; overflow: hidden; border-bottom: 1px solid var(--ds-line); }
.shell-notice.is-dismissing {
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--motion-base) var(--motion-ease), opacity var(--motion-base) var(--motion-exit),
    display var(--motion-base);
  transition-behavior: allow-discrete;
}
.shell-notice-row { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; font-size: 14px; }
.shell-notice-row p { display: flex; align-items: center; gap: 12px; }
.shell-notice-actions { flex: none; display: flex; align-items: center; gap: 12px; }
.shell-notice-actions button { border: 0; min-block-size: var(--ds-touch); padding: 0 6px; background: transparent; color: var(--ds-muted); cursor: pointer; }
.shell-notice-actions button:hover { color: var(--ds-ink); }
.shell-notice-actions [data-shell-hide-today] { display: none; font-size: 12px; }
.shell-notice-actions [data-shell-hide-notice] { font-size: 18px; line-height: 28px; }

.shell-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--black-alpha-1a); background: var(--white); }
.shell-header-row { display: flex; height: 64px; align-items: center; gap: clamp(12px, 3vw, 40px); }
.shell-brand { display: inline-flex; flex: none; align-items: center; gap: 12px; }
.shell-brand img { height: 36px; max-width: min(220px, 45vw); object-fit: contain; object-position: left center; }
.shell-brand img:where(:not([data-preview-logo-width])) { width: auto; }
.shell-header .shell-brand--sized { min-inline-size: 0; flex-shrink: 1; }
.shell-header .shell-brand--sized img { min-inline-size: 0; height: auto; max-width: 100%; max-height: 52px; }
.shell-header .shell-brand--sized img:where(:not([data-preview-logo-width])) { width: var(--site-header-logo-width); }
.shell-brand-name { display: flex; flex-direction: column; font: 700 19px/1 var(--font-heading); letter-spacing: -.03em; }
.shell-brand-name small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .31em; }
.shell-nav { display: none; height: 100%; margin-inline-start: auto; gap: 4px; }
.shell-nav-item { position: relative; height: 100%; }
.shell-nav-item > :is(a, span) { display: flex; height: 100%; align-items: center; padding-inline: clamp(8px, 1.1vw, 18px); white-space: nowrap; font-size: .9rem; font-weight: 700; }
.shell-nav-item::after { content: ""; position: absolute; inset: auto 8px 0; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--brand); transition: transform var(--motion-fast) var(--motion-ease); }
.shell-nav-item:is(:hover, :focus-within, .is-active, .is-current) { color: var(--brand); }
.shell-nav-item:is(:hover, :focus-within, .is-active, .is-current)::after { transform: scaleX(1); }

.shell-visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.shell-header-tools { display: flex; align-items: center; gap: 4px; flex: none; margin-inline-start: auto; }
.shell-region { display: flex; min-inline-size: 32px; justify-content: center; color: var(--ds-muted); }
.shell-header-cta { max-inline-size: min(11rem, 26vw); overflow-wrap: anywhere; }
.shell-search-link { display: grid; inline-size: 44px; block-size: 44px; place-items: center; color: var(--ds-ink); }

.shell-search-link:hover { color: var(--brand); }
.shell-search-link svg { transition: transform var(--motion-fast) var(--motion-ease); }
.shell-search-link:is(:hover, :focus-visible) svg { transform: scale(1.09); }
.shell-menu-toggle, .shell-drawer-heading button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.shell-menu-toggle:hover, .shell-drawer-heading button:hover { color: var(--brand); }
.shell-menu-toggle span { display: block; width: 22px; height: 13px; border-block: 1px solid currentColor; position: relative; }
.shell-menu-toggle span::after { content: ""; position: absolute; top: 5px; left: 0; width: 100%; height: 1px; background: currentColor; }

.shell-mega {
  display: none; position: absolute; inset: 100% 0 auto; background: var(--white);
  border-bottom: 1px solid var(--line); box-shadow: 0 22px 35px var(--mega-shadow);
  transition: opacity var(--motion-base) var(--motion-enter), transform var(--motion-base) var(--motion-enter),
    display var(--motion-base);
  transition-behavior: allow-discrete;
}
.shell-mega[hidden] { z-index: -1; pointer-events: none; }
.shell-mega:not([hidden]) { z-index: 1; }
.shell-mega[hidden], .shell-recent-panel[hidden] {
  opacity: 0;
  transition-timing-function: var(--motion-exit);
}
.shell-mega[hidden] { transform: translateY(-10px); }
.shell-mega-inner { display: grid; grid-template-columns: 270px 1fr; min-height: 260px; padding-block: 40px; }
.shell-mega-heading { border-right: 1px solid var(--line); padding-right: 40px; }
.shell-mega-heading p { color: var(--brand); font-size: .68rem; font-weight: 700; letter-spacing: .22em; }
.shell-mega-heading h2 { margin-top: 16px; font-size: 24px; line-height: 1.375; white-space: pre-line; }
.shell-mega-heading small { display: block; margin-top: 28px; color: var(--brand); font-size: 14px; font-weight: 600; }
.shell-menu-list { margin: 0; padding: 0; list-style: none; }
.shell-mega-inner > .shell-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 4px 40px; padding-left: 48px; }
.shell-mega .shell-menu-list a, .shell-mega .shell-menu-list li > span { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-block: 14px; font-size: 14px; font-weight: 600; }
.shell-mega :is(a:hover, a:focus-visible) { color: var(--brand); border-bottom-color: var(--brand); }
.shell-mega .shell-menu-list a span { color: var(--brand); opacity: 0; transition: opacity var(--motion-fast), transform var(--motion-fast); }
.shell-mega .shell-menu-list a:is(:hover, :focus-visible) span { opacity: 1; transform: translateX(4px); }
.shell-mega .shell-menu-list--level-3 { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.shell-mega .shell-menu-list--level-3 :is(a, li > span) { padding-block: 10px; color: var(--muted); font-size: 12px; }

.shell-menu-dialog {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: 0; overflow: hidden; border: 0; background: transparent;
  transition: display var(--motion-slow), overlay var(--motion-slow);
  transition-behavior: allow-discrete;
}
.shell-menu-dialog:not([open]), .shell-menu-dialog:not([open])::backdrop { pointer-events: none; }
.shell-menu-dialog::backdrop {
  background: var(--drawer-backdrop); backdrop-filter: blur(4px); opacity: 0;
  transition: opacity var(--motion-base) var(--motion-exit), display var(--motion-slow), overlay var(--motion-slow);
  transition-behavior: allow-discrete;
}
.shell-menu-dialog[open]::backdrop { opacity: 1; transition-timing-function: var(--motion-enter); }
.shell-menu-drawer {
  display: flex; flex-direction: column; width: min(100%, 560px); height: 100%; margin-left: auto;
  background: var(--white); color: var(--ink); box-shadow: 0 24px 48px var(--black-alpha-44);
  transform: translateX(100%); transition: transform var(--motion-slow) var(--motion-exit);
}
.shell-menu-dialog[open] .shell-menu-drawer { transform: none; transition-timing-function: var(--motion-enter); }
.shell-dialog-open { overflow: hidden; }
.shell-drawer-heading { display: flex; height: 82px; flex: none; align-items: center; justify-content: space-between; padding-inline: 24px; border-bottom: 1px solid var(--line); }
.shell-drawer-heading button { font-size: 24px; }
.shell-drawer-content { flex: 1; overflow: auto; padding: 32px 24px; }
.shell-search-form { display: flex; gap: 8px; margin-bottom: 32px; }
.shell-search-form input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--ds-line); border-radius: var(--ds-input-radius); min-block-size: var(--ds-touch); font: inherit; }
.shell-search-form button {
  padding: 8px 16px; border: 0; border-radius: 999px; color: var(--ds-white); background: var(--ds-ink); cursor: pointer;
  transition: transform var(--motion-fast) var(--motion-ease);
}
.shell-search-form button:active { transform: scale(.96); }
.shell-drawer-group { margin-bottom: 32px; }
.shell-drawer-group-title > :is(a, span) { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 18px; font-weight: 700; letter-spacing: .025em; }
.shell-drawer-group-title a span, .shell-drawer-content a:hover { color: var(--brand); }
.shell-drawer-group > .shell-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.shell-drawer-content .shell-menu-list :is(a, li > span) { display: flex; justify-content: space-between; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 10px 8px 10px 0; font-size: 14px; }
.shell-drawer-content .shell-menu-list a span { display: none; }
.shell-drawer-content .shell-menu-list--level-3 { padding-left: 14px; color: var(--muted); }
.shell-drawer-phone { flex: none; padding: 20px 24px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ds-white); background: var(--ds-ink); }


.shell-footer { border-top: 1px solid var(--ds-line); background: var(--ds-white); color: var(--ds-ink); }
.shell-footer-main { display: grid; gap: 32px; padding-block: 48px 32px; }
.shell-footer-service { display: grid; align-content: start; justify-items: start; gap: .25rem; color: var(--ds-muted); font-size: .875rem; }
.shell-footer-service h2 { margin: 0 0 .25rem; color: var(--ds-ink); font-size: 1rem; font-weight: 800; }
.shell-footer-number { color: var(--ds-ink); font-size: 1.4rem; font-weight: 800; }
.shell-footer a:hover { color: var(--ds-accent); text-decoration: underline; }
.shell-footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 24px; }
.shell-footer-nav h3 { margin-bottom: .4rem; font-size: .95rem; font-weight: 800; }
.shell-footer-nav ul { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; color: var(--ds-muted); font-size: .875rem; }
.shell-footer-nav a, .shell-footer-service a { display: inline-flex; align-items: center; min-block-size: var(--ds-touch); }
.shell-footer-legal { border-top: 1px solid var(--ds-line); color: var(--ds-muted); font-size: .8125rem; }
.shell-footer-about { display: grid; align-items: start; gap: .75rem; padding-block: 24px 40px; }
.shell-footer-about .shell-brand { justify-self: start; max-inline-size: 100%; }
.shell-footer-about .shell-brand img { block-size: 32px; max-inline-size: 100%; }
.shell-footer-about .shell-brand--sized img { block-size: auto; }
.shell-footer-about .shell-brand--sized img:where(:not([data-preview-logo-width])) { inline-size: var(--site-footer-logo-width); }
.shell-footer-about address { font-style: normal; }
.shell-footer-about address > * { display: inline; }
.shell-footer-about address > * + * { margin-inline-start: 1rem; }
.shell-footer-copyright { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; }

.shell-smart { position: fixed; z-index: 40; inset: auto 0 0; border-top: 1px solid var(--ds-line); background: var(--ds-white); color: var(--ds-ink); box-shadow: 0 -6px 18px var(--black-alpha-1a); backdrop-filter: blur(8px); }
.shell-smart-row { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.shell-smart-button { display: flex; height: 100%; min-width: 128px; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 20px; border: 0; color: var(--ds-white); background: var(--ds-ink); cursor: pointer; }
.shell-smart-row .shell-smart-button { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.shell-smart-tools { display: flex; flex: 1; justify-content: end; align-items: center; gap: 16px; color: var(--ds-muted); font-size: 12px; }
.shell-smart-tools strong { margin-left: 4px; color: var(--ds-accent); }
.shell-smart-tools .shell-smart-recent { display: none; }
.shell-smart-tools button, .shell-recent-heading button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.shell-smart-tools button:hover, .shell-recent-heading button:hover { color: var(--ds-ink); }
.shell-back-top { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--ds-line); border-radius: 50%; color: var(--ds-ink); font-size: 14px; transition: transform var(--motion-fast) var(--motion-ease); }
.shell-back-top:hover { border-color: var(--ds-ink); }
.shell-back-top:is(:hover, :focus-visible) { transform: translateY(-2px); }
.shell-back-top:active { transform: none; }
.shell-recent-panel {
  border-bottom: 1px solid var(--ds-line); background: var(--ds-card); padding-block: 20px;
  transition: opacity var(--motion-base) var(--motion-enter), transform var(--motion-base) var(--motion-enter),
    display var(--motion-base);
  transition-behavior: allow-discrete;
}
.shell-recent-panel[hidden] { transform: translateY(8px); pointer-events: none; }
.shell-recent-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.shell-recent-heading h2 { font-size: 14px; }
.shell-recent-heading button { font-size: 12px; color: var(--ds-muted); }
.shell-recent-panel p { color: var(--ds-muted); font-size: 14px; }
.shell-recent-panel ul { display: flex; gap: 12px; overflow-x: auto; margin: 0; padding: 0 0 4px; list-style: none; }
.shell-recent-panel li { min-width: 180px; padding: 12px 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-input-radius); background: var(--ds-white); font-size: 14px; font-weight: 500; }
.shell-recent-panel a:hover { color: var(--ds-accent); }

@media (prefers-reduced-motion: no-preference) {
  :root:active-view-transition-type(site-recent-list) { view-transition-name: none; }
  :active-view-transition-type(site-recent-list) .shell-recent-panel { view-transition-name: site-recent-panel; }
  :active-view-transition-type(site-recent-list)::view-transition-group(site-recent-panel) {
    animation-duration: var(--motion-base);
    animation-timing-function: var(--motion-ease);
  }
}

@starting-style {
  .shell-mega:not([hidden]) { opacity: 0; transform: translateY(-10px); }
  .shell-menu-dialog[open]::backdrop { opacity: 0; }
  .shell-menu-dialog[open] .shell-menu-drawer { transform: translateX(100%); }
  .shell-recent-panel:not([hidden]) { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 640px) {
  .shell-wide { width: calc(100% - 2 * var(--ds-gutter)); }
  .shell-header-row { gap: 12px; }
}
@media (min-width: 640px) {
  .shell-notice-actions [data-shell-hide-today], .shell-smart-tools .shell-smart-recent { display: block; }
  .shell-smart-tools { gap: 28px; }
}
@media (min-width: 768px) {
  .shell-body { padding-block-end: 64px; }
  .shell-drawer-heading, .shell-drawer-phone, .shell-drawer-content { padding-inline: 40px; }
  .shell-smart-row { height: 64px; }
  .shell-smart-button { min-width: 176px; padding-inline: 24px; }
  .shell-footer-main { grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); }
}
@media (min-width: 1024px) {
  .shell-nav:not([hidden]) { display: flex; }
  .shell-nav:not([hidden]) + .shell-header-tools { margin-left: 0; }
  .shell-mega { display: block; }
}
@media (min-width: 1280px) {
  .shell-header-row { height: 64px; }
  .shell-region { display: flex; }

  .shell-mega-inner > .shell-menu-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 40rem) {
  .shell-header-row { gap: 4px; }
  .shell-header-row .shell-brand { flex: 1; min-inline-size: 0; }
  .shell-header-row .shell-brand img { max-inline-size: 100%; }
  .shell-header-cta { font-size: .8125rem; padding-inline: .6rem; }
}

@media (max-width: 1023px) {
  .shell-header-row { min-block-size: 64px; height: auto; flex-wrap: wrap; gap: 0 8px; padding-block-start: 8px; }
  .shell-header-tools { order: 1; }
  .shell-nav:not([hidden]) {
    display: flex; flex-wrap: nowrap; order: 2; flex: 0 1 100%; min-inline-size: 0; max-inline-size: 100%;
    height: auto; margin: 0; padding-block-start: 4px; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-inline: contain;
  }
  .shell-nav-item { flex: 0 0 auto; }
  .shell-nav-item a:focus-visible { outline-offset: -2px; }
  .shell-nav-item > :is(a, span) { min-block-size: var(--ds-touch); height: auto; padding-inline: .6rem; }
  .shell-nav-item:first-child > :is(a, span) { padding-inline-start: 0; }
  .shell-nav-item:first-child::after { inset-inline-start: 0; }
  :where(.shell-body) :target { scroll-margin-block-start: 130px; }
}
