/* The denim look on the hand-written pages: legal, booking, sign-in, gift, recruiting.
   Loaded LAST on those pages, after each page's own <style>. It changes colors, type, buttons
   and the title band only. It never touches a form's fields, names or scripts, and it moves
   nothing. scripts/denim_reskin.py puts class="dn dn-<group> dn-<slug>" on <body>.
   Palette: denim #2D4C7C, white, paper #F7F2E8, navy #142031, orange #D2542A. One face. */

/* ---- the kit's old variables, pointed at the new palette ---- */
:root{
  --page:#FFFFFF; --card:#F7F2E8; --dark:#142031; --ink:#142031; --muted:#4B5567; --paper:#FFFFFF;
  --accent:#D2542A; --accent-deep:#2D4C7C; --pine:#2D4C7C; --pine-light:#3A5C92;
  --line:rgba(20,32,49,.16); --shadow-sm:none; --shadow:none;
  --dn-denim:#2D4C7C; --dn-navy:#142031; --dn-paper:#F7F2E8; --dn-orange:#D2542A; --dn-field:#7B8494;
  --dn-font:"M PLUS Rounded 1c",system-ui,sans-serif; --dn-gut:80px;
}
@media (max-width:1140px){:root{--dn-gut:40px}}
@media (max-width:640px){:root{--dn-gut:20px}}
html{background:#FFFFFF}
body.dn{background:#FFFFFF;color:#142031;font-family:var(--dn-font);font-weight:400;line-height:1.6;
  min-height:100vh;display:flex;flex-direction:column}
body.dn > main{flex:1 0 auto;width:100%}
body.dn > .top,body.dn > .foot{flex:none;width:100%}
body.dn button,body.dn input,body.dn select,body.dn textarea{font-family:var(--dn-font)}
body.dn p,body.dn li{text-wrap:pretty}

/* ---- type: one weight for headings, nothing shouted ---- */
body.dn h1,body.dn h2,body.dn h3,body.dn h4{font-family:var(--dn-font);font-weight:500!important;letter-spacing:-.01em!important;text-wrap:balance}
body.dn h1{line-height:1.15!important}
body.dn h2{line-height:1.2}
body.dn main :is(.eyebrow,.kicker,label,th,.tag,.pill,.badge,.chip,.step-n,legend,summary,button,.btn){text-transform:none!important;letter-spacing:0!important}
body.dn .blink{display:none!important}
body.dn .burst{display:none!important}

/* ---- the title band: denim, white type ----
   The kit's pages color their text through --ink, --muted, --pine and --accent, so the band
   re-points those to white and a sheet inside the band points them back. */
body.dn :is(section.hero,main > .hero,section.band),body.dn-book section.top{background:#2D4C7C;color:#FFFFFF;margin:0;
  padding-top:clamp(40px,6vw,64px);padding-bottom:clamp(40px,6vw,64px);
  --ink:#FFFFFF;--muted:#FFFFFF;--pine:#FFFFFF;--pine-light:#FFFFFF;--accent:#FFFFFF;--accent-deep:#FFFFFF;
  --line:rgba(255,255,255,.32);--page:#2D4C7C;--dn-ring:#FFFFFF}
body.dn :is(.hero,section.top,section.band) :is(.panel,.card){color:#142031;
  --ink:#142031;--muted:#4B5567;--pine:#2D4C7C;--pine-light:#3A5C92;--accent:#D2542A;--accent-deep:#2D4C7C;
  --line:rgba(20,32,49,.16);--page:#FFFFFF;--dn-ring:#2D4C7C}
/* An informational panel (nothing to fill in or press) is not a box, as on the live pages; it
   sits on the ground it is on. A browser without :has() keeps the paper box, which also reads. */
@supports selector(:has(a)){
  body.dn .panel:not(.primary):not(:has(input,select,textarea,.btn,button)){background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;margin-top:40px!important}
  body.dn :is(.hero,section.top,section.band) .panel:not(.primary):not(:has(input,select,textarea,.btn,button)){color:#FFFFFF;
    --ink:#FFFFFF;--muted:#FFFFFF;--pine:#FFFFFF;--pine-light:#FFFFFF;--accent:#FFFFFF;--accent-deep:#FFFFFF;--line:rgba(255,255,255,.32);--page:#2D4C7C;--dn-ring:#FFFFFF}
}
body.dn .mark-lg{--ink:#142031;--card:#F7F2E8;--accent:#D2542A;filter:none!important}
body.dn :is(.hero,section.top) h1{color:#FFFFFF!important;font-size:clamp(34px,4.6vw,46px)!important}
body.dn :is(.hero,section.top) h1 *{color:inherit!important}
body.dn :is(.hero,section.top) :is(.kicker,.eyebrow){font-weight:500;font-size:18px}

/* ---- what the old sitewide sheet (restyle.css) did for these pages, in the new look ---- */
body.dn section.hero,body.dn section.band{position:relative;overflow:hidden}
body.dn section.hero > .wrap,body.dn section.band > .wrap{position:relative;z-index:1}
body.dn section{border-top:0!important;border-bottom:0!important}
body.dn section .eyebrow{display:none}
body.dn section.hero .eyebrow,body.dn .hero .eyebrow{display:block}
body.dn main > section.hero:last-child{padding-bottom:64px}
body.dn section.band{padding:72px 0}
body.dn section.band .pull{background:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;box-shadow:none!important}
body.dn section.band .eyebrow{display:none}
body.dn .mrule{display:none}
body.dn main details{background:none!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
body.dn main details:first-of-type{border-top:1px solid var(--line)!important}
body.dn main summary{list-style:none;cursor:pointer;padding:20px 44px 20px 0!important;position:relative;font-family:var(--dn-font)!important;font-weight:500!important;font-size:19px!important;letter-spacing:0;color:var(--ink)}
body.dn main summary::-webkit-details-marker{display:none}
body.dn main summary::marker{content:""}
body.dn main summary::after{content:"+";position:absolute;right:8px;top:18px;font-family:var(--dn-font);font-weight:400;font-size:24px;color:var(--accent-deep)!important}
body.dn main details[open] summary::after{content:"\2212"}
body.dn main details p{padding:0 44px 22px 0!important;color:var(--muted);font-size:17px;margin:0!important}
@media(max-width:560px){body.dn main summary{font-size:18px!important;padding-right:36px!important}body.dn main details p{padding-right:0!important}}
body.dn .steps li::before{background:#2D4C7C!important;color:#FFFFFF!important;font-family:var(--dn-font)!important;font-weight:700!important;border:0!important;border-radius:50%!important;box-shadow:none!important;width:36px!important;height:36px!important;line-height:36px!important;text-align:center;font-size:17px!important}
body.dn .steps li{padding-left:52px!important}
body.dn main :is(.eyebrow,.num,.store-link),body.dn main .deal .row .num{color:var(--accent-deep)}
body.dn main :is(p,li,span,div,td,label,small) > a:not([class]){color:var(--accent-deep);text-decoration:underline}
/* a size set on the element itself, under the floor */
body.dn main :is([style*="font-size:11"],[style*="font-size:12"],[style*="font-size:13"],[style*="font-size:14"],[style*="font-size:15"]){font-size:16px!important}

/* ---- links and focus ---- */
body.dn main a:not(.btn):not(.hero-cta):not([class*="btn"]){text-decoration-thickness:1px;text-underline-offset:3px}
body.dn-legal main :is(.doc,.toc) a{color:#2D4C7C}
body.dn main :focus-visible{outline:3px solid var(--dn-ring,#2D4C7C)!important;outline-offset:2px!important}
body.dn main:focus{outline:none!important}

/* ---- panels: paper on white, no hard frame, no drop shadow ----
   !important throughout: several pages scope their own kit under an id (#view-login .panel). */
body.dn :is(.panel,.card){background:#F7F2E8!important;border:0!important;border-radius:24px!important;box-shadow:none!important}

/* ---- fields: white, a quiet line, denim when in use ---- */
body.dn main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select,textarea){
  background-color:#FFFFFF!important;color:#142031!important;border:1.5px solid #7B8494!important;border-radius:14px!important;box-shadow:none!important;font-size:18px!important}
body.dn main :is(input,select,textarea)::placeholder{color:#5F6978;opacity:1}
body.dn main :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{border-color:#2D4C7C!important}
body.dn main input[type=checkbox],body.dn main input[type=radio]{accent-color:#2D4C7C}
body.dn main label{color:var(--ink)!important;font-size:16px}

/* ---- buttons: pills, orange for the action, no shadow, no lift ---- */
body.dn main :is(.btn,.hero-cta,.btn-ghost,.btn-ghost2,.btn-danger,.pay-btn){min-height:56px;border-radius:999px!important;border:1.5px solid #D2542A!important;
  font-family:var(--dn-font)!important;font-weight:700!important;font-size:18px!important;box-shadow:none!important;transform:none!important;letter-spacing:0!important;text-decoration:none}
body.dn main :is(.btn,.hero-cta,.pay-btn){background:#D2542A!important;color:#FFFFFF!important}
body.dn main :is(.btn,.hero-cta,.btn-ghost,.btn-ghost2,.btn-danger,.pay-btn):hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body.dn main .btn:is(.pine,.btn-pine){background:#2D4C7C!important;border-color:#2D4C7C!important;color:#FFFFFF!important}
body.dn main :is(.btn.ghost,.btn-ghost,.btn-ghost2,.btn-danger){background:#FFFFFF!important;border-color:#142031!important;color:#142031!important}
body.dn main :is(.btn-ghost,.btn-ghost2,.btn-danger,.btn.tiny,.btn.inline){min-height:48px;font-size:16px!important;font-weight:500!important}
body.dn main .btn:disabled,body.dn main .btn[disabled],body.dn main .btn.off{opacity:.55}
body.dn main :is(h1,h2,h3,h4)[tabindex="-1"]:focus{outline:none!important}

/* ---- skip link for the pages that keep their own ---- */
body.dn .skip-link{background:#FFFFFF;color:#142031;border-radius:999px;box-shadow:none;font-family:var(--dn-font);font-weight:500}
@media (prefers-reduced-motion:reduce){
  body.dn *,body.dn *::before,body.dn *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* ---- messages: navy on paper with a line, never red, green or amber ---- */
body.dn main :is(.err,.inline-err,.banner,.toast,.zone-result,.msg,.notice):not(:empty){border-radius:14px!important}
body.dn :is(section.hero,main > .hero,section.band) > :is(.err,.inline-err,.banner,.zone-result),
body.dn :is(section.hero,main > .hero,section.band) .wrap > :is(.err,.inline-err,.banner,.zone-result){background:#F7F2E8!important;color:#142031!important;padding:12px 16px}

/* ---- gift: the two choices sit clear of the band; tags lose their drop shadow ---- */
body.dn-gift .doors{padding-top:48px}
body.dn-gift .tag{filter:none}

/* ---- drawings and ticks that carried the old pine in their own markup ---- */
body.dn main svg [fill="#1E4D45" i]{fill:#142031}
body.dn main svg [stroke="#1E4D45" i]{stroke:#142031}
body.dn :is(section.hero,main > .hero,section.band) ul.hero-facts li::before{background:#FFFFFF;color:#2D4C7C}

/* ---- callouts: a quiet lined note ---- */
body.dn main .callout{background:#FFFFFF!important;border:1.5px solid #7B8494!important;border-radius:14px!important}
body.dn-nerd-onboarding main{padding-bottom:64px}
body.dn main .sec-h::before{display:none!important}

/* ---- page sheets reuse three chrome class names (.top, .grid, .copy): keep them off the header and footer ---- */
body.dn header.top{padding-top:0;padding-bottom:0}
body.dn footer.foot .grid{margin-top:0}
body.dn footer.foot .copy{background:none;color:inherit;padding:0;border:0;border-radius:0;font:inherit;font-weight:400;cursor:auto;min-height:0;display:block;box-shadow:none;width:auto}

/* ---- sign-off (the close-out kit): no sticker shadows, no dark frames, no mono face, pill buttons ---- */
body.dn-signoff{--cx-shadow:none;--cx-btn-shadow:none;--cx-pk-shadow:none;--cx-sheet-edge:transparent;
  --cx-btn-edge:transparent;--cx-chip-edge:transparent;
  --cx-mono:"M PLUS Rounded 1c",system-ui,-apple-system,"Segoe UI",sans-serif}
body.dn-signoff .cx-sheet,body.dn-signoff .cx-tag,body.dn-signoff .cx-slip,body.dn-signoff .cx-bye{border-color:transparent;border-radius:24px;
  box-shadow:none;transform:none}
body.dn-signoff .cx-sticker{border-color:transparent;box-shadow:none;transform:none}
body.dn-signoff .cx-ta{border:1.5px solid #7B8494;box-shadow:none}
body.dn-signoff .so-btn{border-radius:999px;box-shadow:none}
body.dn-signoff .so-btn:active:not(:disabled),body.dn-signoff .cx-chip:active{transform:none}
body.dn-signoff .cx-chip{box-shadow:none}

/* ---- the footer after brand.js has repainted it on a state brand's domain (see denim_reskin._brand_mark):
   it re-appends the cities and sister brands at the end of the row and adds the brand's promise lines.
   Keep the row's order, drop the repeated promise (the first block already reads in the brand's words),
   and give the brand's own line the full width. ---- */
footer.foot .f2 > nav.foot-markets{order:1}
footer.foot .f2 > nav.foot-brands{order:2}
footer.foot .f2 > .f-co{order:3}
footer.foot .f2 > .f-help{order:4}
footer.foot .f2 > div.servicearea{display:none}
footer.foot .f2 > div.servicearea + div.servicearea{display:block;order:0;grid-column:1 / -1;margin:0}
/* on the parent's domain the promise brand.js writes names every state: it replaces the written one */
html[data-brand="dispatch"] footer.foot .f-brand .servicearea{display:none}
html[data-brand="dispatch"] footer.foot .f2 > div.servicearea{display:block;order:0;grid-column:1 / -1;margin:0}

/* recruiting: the blue head sits flush under the header (and under the step bar), no white strip */
.dn-nerd-prescreen main,.dn-nerd-apply main{padding-top:0}
/* badge verify: the check badge is drawn in the page script; paint it denim here */
body.dn.dn-verify main .stamp svg circle[fill]{fill:#2D4C7C}

/* two-column heads: with the 80px page gutter inside a 1080px wrap the intro column was left
   304px wide and headlines broke over three and four lines. The wrap takes the page's width
   (it lines up with the header) and the two columns share it. */
@media(min-width:960px){
  body.dn:is(.dn-support,.dn-p404,.dn-account,.dn-coverage-check,.dn-gift-claim,.dn-manage,.dn-pay,.dn-receipt,.dn-referrer-done,.dn-referrer-verify,.dn-terminal-success,.dn-nerd-check,.dn-small-business) main :is(.wrap.two,.wrap.info,.wrap.month),
  body.dn.dn-nerd-prescreen main .wrap.ps-wrap{max-width:1280px}
  body.dn:is(.dn-support,.dn-p404,.dn-account,.dn-coverage-check,.dn-gift-claim,.dn-manage,.dn-pay,.dn-receipt,.dn-referrer-done,.dn-referrer-verify,.dn-terminal-success,.dn-nerd-check,.dn-small-business) main .wrap.two,
  body.dn.dn-nerd-prescreen main #statusView{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
}

/* phones: the plain wrap, so a paragraph fills its column (see denim.css) */
@media (max-width:640px){body.dn p,body.dn li{text-wrap:wrap}}

/* Phones: a text box always shows its whole example, never a clipped third line. */
@media (max-width:640px){
  body.dn main textarea,body.dn textarea.input{field-sizing:content;min-height:132px}
}
