
#d1-header { position: sticky; top: 0; z-index: 1000; width: 100%; height: 64px; color: #1B2A41; background: #fff; border-bottom: 1px solid #1B2A41; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.25; }
#d1-header, #d1-header * { box-sizing: border-box; }
#d1-header .d1h-inner { display: grid; grid-template-columns: minmax(0, 1fr) 160px 48px; align-items: center; gap: 8px; height: 63px; max-width: 1120px; padding: 0 12px; margin: 0 auto; }
#d1-header a, #d1-header summary { color: #1B2A41; font: inherit; font-size: 16px; }
#d1-header .d1h-logo { display: flex; flex-direction: column; justify-content: center; min-height: 44px; width: fit-content; max-width: 100%; font-weight: 700; text-decoration: none; }
#d1-header .d1h-logo span { display: block; }
#d1-header .d1h-action { display: block; width: 160px; min-height: 44px; padding: 11px 6px; border: 1px solid #1B2A41; border-radius: 8px; background: #F2A33A; color: #1B2A41; text-align: center; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#d1-header .d1h-menu { position: static; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
#d1-header .d1h-menu summary { display: flex; align-items: center; justify-content: center; width: 48px; min-height: 44px; margin: 0; padding: 0; list-style: none; cursor: pointer; border: 1px solid #1B2A41; border-radius: 8px; background: #fff; }
#d1-header .d1h-menu summary::-webkit-details-marker { display: none; }
#d1-header .d1h-menu summary::marker { content: ""; }
#d1-header .d1h-menu summary::after { content: none; display: none; }
#d1-header .d1h-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-bottom: 2px solid #1B2A41; box-shadow: 0 8px 16px rgb(27 42 65 / 12%); }
#d1-header .d1h-links { display: grid; max-width: 1120px; margin: 0 auto; padding: 12px; }
#d1-header .d1h-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
#d1-header a:focus-visible, #d1-header summary:focus-visible { outline: 3px solid #1B2A41; outline-offset: 2px; }
#d1-header .d1h-links a:hover { background: #F2A33A; }
/* The menu keeps its grid space while visually hidden in ad mode. */
html.ad-mode #d1-header:not([data-menu-ready="true"]) .d1h-menu, html.admode #d1-header:not([data-menu-ready="true"]) .d1h-menu { visibility: hidden; pointer-events: none; }
html.admode #d1-header:not([data-menu-ready="true"]) .d1h-logo { pointer-events: none; cursor: default; }
@media (min-width: 700px) {
  #d1-header .d1h-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


#d1-footer { color: #fff; background: #1B2A41; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.5; padding: 32px 16px 20px; }
#d1-footer, #d1-footer * { box-sizing: border-box; }
#d1-footer .d1f-inner { max-width: 1120px; margin: 0 auto; }
#d1-footer .d1f-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
#d1-footer .d1f-column { min-width: 0; }
#d1-footer h2 { margin: 0 0 12px; color: #fff; font-size: 20px; line-height: 1.3; }
#d1-footer ul { list-style: none; margin: 0; padding: 0; }
#d1-footer li { margin: 0; padding: 0; }
#d1-footer a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 10px 0; color: #fff; font: inherit; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
#d1-footer a:hover { color: #F2A33A; }
#d1-footer a:focus-visible { outline: 3px solid #F2A33A; outline-offset: 4px; }
#d1-footer .d1f-legal { margin-top: 28px; padding-top: 24px; border-top: 1px solid #fff; }
#d1-footer .d1f-legal p { margin: 0 0 12px; font-size: 16px; overflow-wrap: anywhere; }
#d1-footer .d1f-policies { display: flex; flex-wrap: wrap; gap: 0 24px; }
@media (min-width: 760px) { #d1-footer .d1f-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
