/* Deals pages (src/deals-pages.njk): /coupons/, /military-discount/, /first-responder-discount/,
   /teacher-discount/, /senior-discount/, /spring-sale/.
   dl-  the page (hero, code list, copy)      dc-  the coupon card (deals/coupon-card.njk) */

/* ---------------------------------------------------------------- page -- */
.dl-hero { background: #f5f5f7; padding: 56px 22px 40px; }
.dl-hero__inner { max-width: 1040px; margin: 0 auto; }
.dl-crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #6e6e73; }
.dl-crumbs li + li::before { content: "/"; margin-right: 6px; color: #b0b0b5; }
.dl-crumbs a { color: #6e6e73; text-decoration: none; }
.dl-crumbs a:hover { text-decoration: underline; }
.dl-crumbs [aria-current="page"] { color: #1d1d1f; font-weight: 500; }
.dl-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #0071e3; margin: 0 0 8px; }
.dl-hero h1 { font-size: 48px; line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; color: #1d1d1f; margin: 0 0 14px; }
.dl-hero__lede { font-size: 19px; line-height: 1.5; color: #424245; max-width: 760px; margin: 0; }

.dl-coupon { background: #f5f5f7; padding: 0 22px 64px; }
.dl-coupon__inner { max-width: 1040px; margin: 0 auto; }

.dl-codes { background: #fff; padding: 64px 22px 8px; }
.dl-codes__inner { max-width: 1040px; margin: 0 auto; }
.dl-codes h2 { font-size: 30px; line-height: 1.15; font-weight: 600; color: #1d1d1f; margin: 0 0 12px; }
.dl-codes__lede { font-size: 17px; line-height: 1.6; color: #424245; max-width: 760px; margin: 0 0 26px; }
.dl-codes__list { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(0,0,0,0.08); border-radius: 18px; overflow: hidden; }
.dl-codes__list li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 8px 20px; margin: 0; padding: 16px 22px; border-top: 1px solid rgba(0,0,0,0.08); }
.dl-codes__list li:first-child { border-top: 0; background: #fbfbfd; }
.dl-codes__name { font-size: 16px; font-weight: 600; color: #1d1d1f; }
.dl-codes__name small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; line-height: 1.45; color: #6e6e73; }
.dl-codes__code { justify-self: start; padding: 6px 14px; border-radius: 100px; background: #f5f5f7; color: #0071e3; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.dl-codes__pair { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; justify-self: start; }
.dl-codes__pair small { font-size: 13px; color: #6e6e73; white-space: nowrap; }
.dl-codes__list a { justify-self: end; font-size: 14px; font-weight: 500; color: #0071e3; text-decoration: none; text-align: right; }
.dl-codes__list a:hover { text-decoration: underline; }

/* the product grids keep the stock badge, like the other line-up pages */
.dl-grid .category-products-grid .shop-card-stock { display: inline-block; }
.dl-grid .category-products-grid + .category-products-grid { padding-top: 0; }

.dl-body { background: #fff; padding: 64px 22px; }
.dl-body__inner { max-width: 900px; margin: 0 auto; }
.dl-body h2 { font-size: 30px; line-height: 1.15; font-weight: 600; color: #1d1d1f; margin: 48px 0 14px; }
.dl-body h2:first-child { margin-top: 0; }
.dl-body p, .dl-body li { font-size: 17px; line-height: 1.6; color: #424245; }
.dl-body p { margin: 0 0 14px; }
.dl-body a { color: #0071e3; }
.dl-faq { margin-top: 8px; }
.dl-more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dl-more li { margin: 0; }
.dl-more a { display: inline-block; padding: 8px 16px; border-radius: 100px; border: 1px solid rgba(0,0,0,0.1); background: #fff; color: #1d1d1f; font-size: 14px; text-decoration: none; }
.dl-more a:hover { border-color: #0071e3; color: #0071e3; }

/* ---------------------------------------------------------- coupon card -- */
.dc { color: #1d1d1f; text-align: left; }
.dc__pass { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); border: 1px solid rgba(0,0,0,0.08); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 18px 44px rgba(0,0,0,0.06); }
.dc__main { padding: 40px 44px; }
.dc__side { position: relative; padding: 40px 44px; border-left: 2px dashed rgba(0,0,0,0.1); }
/* the two notches that make the card read as a pass */
.dc__side::before, .dc__side::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border: 1px solid rgba(0,0,0,0.08); border-radius: 50%; background: #f5f5f7; }
.dc__side::before { top: -12px; clip-path: inset(50% 0 0 0); }
.dc__side::after { bottom: -12px; clip-path: inset(0 0 50% 0); }
.dc__eyebrow { display: block; margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #0071e3; }
.dc__title { margin: 0 0 12px; font-size: 34px; line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; color: #1d1d1f; }
.dc__who { margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: #6e6e73; }
.dc__who strong { color: #1d1d1f; font-weight: 600; }
/* the two tiers: amount, code, copy */
.dc__tiers { margin: 0 0 24px; padding: 0; list-style: none; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; }
.dc__tier { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 14px; margin: 0; padding: 14px 18px; }
.dc__tier + .dc__tier { border-top: 1px solid rgba(0,0,0,0.08); }
.dc__offer { font-size: 15px; line-height: 1.4; color: #6e6e73; }
.dc__offer strong { display: block; font-size: 17px; font-weight: 600; color: #1d1d1f; }
.dc__code { display: inline-block; max-width: 100%; padding: 7px 14px; border-radius: 100px; background: #f5f5f7; color: #1d1d1f; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 15px; font-weight: 600; letter-spacing: 0.05em; line-height: 1.2; overflow-wrap: anywhere; user-select: all; }
.dc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.dc__hint { font-size: 14px; line-height: 1.45; color: #6e6e73; }
.dc__apply { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin: 0; padding: 13px 28px; border: 0; border-radius: 980px; background: #0071e3; color: #fff; font: inherit; font-size: 17px; font-weight: 500; line-height: 1.2; cursor: pointer; transition: background 0.2s ease; }
.dc__apply:hover { background: #0077ed; }
.dc__apply[disabled] { opacity: 0.7; cursor: progress; }
.dc[data-applied="true"] .dc__apply { background: #1d8a4a; }
.dc__copy { min-height: 40px; margin: 0; padding: 6px 2px; border: 0; background: none; color: #0071e3; font: inherit; font-size: 15px; font-weight: 400; white-space: nowrap; cursor: pointer; }
.dc__copy:hover { text-decoration: underline; }
.dc__apply:focus-visible, .dc__copy:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
.dc__status { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(29,138,74,0.08); color: #14633a; font-size: 15px; font-weight: 500; line-height: 1.5; }
.dc__status[data-tone="warn"] { background: rgba(191,116,0,0.1); color: #7a4b00; }
.dc__status[hidden] { display: none; }
.dc__sub { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #1d1d1f; }
.dc__steps { margin: 0; padding: 0; list-style: none; counter-reset: dc-step; }
.dc__steps li { position: relative; margin: 0 0 16px; padding: 2px 0 0 42px; font-size: 16px; line-height: 1.5; color: #424245; counter-increment: dc-step; }
.dc__steps li:last-child { margin-bottom: 0; }
.dc__steps li::before { content: counter(dc-step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f5f5f7; color: #1d1d1f; font-size: 14px; font-weight: 600; }
.dc__steps strong { color: #1d1d1f; font-weight: 600; }
.dc__fine { margin: 26px 0 0; padding: 0 6px; }
.dc__fine ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.dc__fine li { position: relative; margin: 0; padding-left: 16px; font-size: 14px; line-height: 1.55; color: #6e6e73; }
.dc__fine li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: #b0b0b5; }
.dc__fine li.dc__fine-wide { grid-column: 1 / -1; }

@media (max-width: 520px) {
  .dc__tier { grid-template-columns: minmax(0, 1fr) auto; }
  .dc__offer { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .dl-hero { padding: 36px 18px 28px; }
  .dl-hero h1 { font-size: 34px; }
  .dl-hero__lede { font-size: 17px; }
  .dl-coupon { padding: 0 18px 44px; }
  .dl-codes { padding: 44px 18px 0; }
  .dl-codes__list li { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .dl-codes__list a { justify-self: start; text-align: left; }
  .dl-body { padding: 44px 18px; }
  .dc__pass { grid-template-columns: 1fr; }
  .dc__main, .dc__side { padding: 28px 22px; }
  .dc__side { border-left: 0; border-top: 2px dashed rgba(0,0,0,0.1); }
  .dc__side::before, .dc__side::after { top: -12px; bottom: auto; clip-path: inset(0 50% 0 0); }
  .dc__side::before { left: auto; right: -12px; }
  .dc__side::after { left: -12px; clip-path: inset(0 0 0 50%); }
  .dc__title { font-size: 28px; }
  .dc__apply { width: 100%; }
  .dc__fine ul { grid-template-columns: 1fr; }
}
