/* Focused styles for the How Many Days Until Christmas utility. */
.days-page {
  --days-blue: #075fc7;
  --days-blue-dark: #0b376d;
  --days-blue-soft: #eaf3ff;
  --days-ink: #15253a;
  --days-muted: #52657a;
  --days-border: #dce5ef;
  --days-surface: #fff;
  margin: 0;
  overflow-x: hidden;
  background: #f5f8fc;
  color: var(--days-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.days-page *,
.days-page *::before,
.days-page *::after {
  box-sizing: border-box;
}

.days-main {
  padding: calc(var(--nav-height, 56px) + 30px) 20px 88px;
  background: linear-gradient(180deg, #f9fbfe 0, #f4f7fb 640px, #f7f9fc 100%);
}

.days-container {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.days-breadcrumb {
  margin-bottom: 30px;
  color: #607187;
  font-size: 0.86rem;
}

.days-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.days-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.days-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  color: #9aa8b7;
}

.days-breadcrumb a {
  color: #3e5873;
  text-decoration: none;
}

.days-breadcrumb a:hover {
  color: var(--days-blue);
  text-decoration: underline;
}

.days-breadcrumb [aria-current="page"] {
  color: var(--days-ink);
  font-weight: 700;
}

.days-intro {
  max-width: 820px;
  margin-bottom: 28px;
}

.days-eyebrow,
.days-section-heading > p,
.days-timer-cta > div > p {
  margin: 0 0 9px;
  color: var(--days-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.days-intro h1 {
  margin: 0;
  color: #11243b;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.days-intro > p:last-child {
  max-width: 720px;
  margin: 17px 0 0;
  color: var(--days-muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

.days-answer {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #cbdced;
  border-radius: 24px;
  background: var(--days-surface);
  box-shadow: 0 20px 55px rgba(30, 72, 118, 0.11);
}

.days-answer-copy {
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}

.days-answer-prefix,
.days-answer-destination {
  margin: 0;
  color: #435b74;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.days-answer-number {
  min-height: 116px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  margin: 8px 0;
  color: var(--days-blue);
  font-variant-numeric: tabular-nums;
}

.days-answer-number strong {
  min-width: 3ch;
  font-size: clamp(5rem, 13vw, 8.5rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-align: center;
}

.days-answer-number span {
  color: var(--days-blue-dark);
  font-size: clamp(1.1rem, 3vw, 1.85rem);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.days-answer-date {
  margin: 8px 0 0;
  color: var(--days-ink);
  font-size: clamp(1.1rem, 2.2vw, 1.42rem);
  font-weight: 800;
}

.days-primary-link,
.days-timer-cta > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--days-blue);
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.days-primary-link {
  gap: 7px;
  margin-top: 24px;
  padding: 12px 21px;
}

.days-primary-link:hover,
.days-timer-cta > a:hover {
  background: #064fa6;
}

.days-answer-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--days-blue-soft);
  text-align: center;
}

.days-answer-note > span {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  border: 7px solid #fff;
  border-radius: 22px;
  background: var(--days-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 95, 199, 0.2);
  font-size: 2.8rem;
  font-weight: 850;
}

.days-answer-note > p {
  max-width: 220px;
  margin: 20px 0 0;
  color: #314f6d;
  line-height: 1.55;
}

.days-metrics,
.days-dates,
.days-faq,
.days-related {
  margin-top: clamp(46px, 7vw, 76px);
}

.days-section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.days-section-heading h2,
.days-timer-cta h2,
.days-answers h2 {
  margin: 0;
  color: #122740;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.days-section-heading h2,
.days-timer-cta h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

.days-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.days-metric {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--days-border);
  border-radius: 18px;
  background: var(--days-surface);
  box-shadow: 0 8px 24px rgba(28, 61, 97, 0.06);
}

.days-metric h3 {
  min-height: 2.6em;
  margin: 0;
  color: #3e5873;
  font-size: 0.9rem;
  line-height: 1.3;
}

.days-metric strong {
  display: block;
  min-height: 1.1em;
  margin-top: 13px;
  color: var(--days-blue);
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.days-metric strong.days-metric-text {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.16;
}

.days-metric p {
  margin: auto 0 0;
  padding-top: 13px;
  color: var(--days-muted);
  font-size: 0.89rem;
  line-height: 1.45;
}

.days-timer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(46px, 7vw, 76px);
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid #cbdced;
  border-radius: 22px;
  background: #eaf3ff;
}

.days-timer-cta > div > span {
  display: block;
  max-width: 670px;
  margin-top: 9px;
  color: var(--days-muted);
  line-height: 1.6;
}

.days-timer-cta > a {
  flex: 0 0 auto;
  max-width: 280px;
  padding: 12px 22px;
}

.days-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(34px, 6vw, 72px);
  row-gap: 0;
  margin-top: clamp(46px, 7vw, 76px);
  border-top: 1px solid var(--days-border);
}

.days-answers article {
  padding: 34px 0;
  border-bottom: 1px solid var(--days-border);
}

.days-answers h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.72rem);
}

.days-answers p {
  margin: 13px 0 0;
  color: #435870;
  font-size: 1rem;
  line-height: 1.72;
}

.days-answers strong {
  color: #173f6b;
}

.days-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--days-border);
  border-radius: 18px;
  background: var(--days-surface);
  box-shadow: 0 8px 24px rgba(28, 61, 97, 0.06);
  -webkit-overflow-scrolling: touch;
}

.days-dates table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.days-dates caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.days-dates th,
.days-dates td {
  padding: 17px 21px;
  border-bottom: 1px solid var(--days-border);
  color: #334a63;
}

.days-dates thead th {
  background: #eff5fb;
  color: #183b62;
  font-size: 0.88rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.days-dates tbody th {
  color: var(--days-blue);
}

.days-dates tbody tr:last-child > * {
  border-bottom: 0;
}

.days-faq-list {
  border-top: 1px solid var(--days-border);
}

.days-faq details {
  border-bottom: 1px solid var(--days-border);
  background: transparent;
}

.days-faq summary {
  position: relative;
  padding: 21px 48px 21px 0;
  color: #173856;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
}

.days-faq summary::-webkit-details-marker {
  display: none;
}

.days-faq summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 5px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--days-blue-soft);
  color: var(--days-blue);
  font-size: 1.25rem;
}

.days-faq details[open] summary::after {
  content: "−";
}

.days-faq details p {
  max-width: 820px;
  margin: -2px 0 21px;
  padding-right: 48px;
  color: var(--days-muted);
  line-height: 1.7;
}

.days-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.days-related-grid a {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 23px;
  border: 1px solid var(--days-border);
  border-radius: 17px;
  background: var(--days-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(28, 61, 97, 0.05);
}

.days-related-grid a:hover {
  border-color: #8bb7e6;
  box-shadow: 0 12px 30px rgba(28, 61, 97, 0.1);
}

.days-related-grid strong {
  color: var(--days-blue);
  font-size: 1.06rem;
}

.days-related-grid span {
  margin-top: 9px;
  color: var(--days-muted);
  line-height: 1.55;
}

.days-page a:focus-visible,
.days-page summary:focus-visible {
  outline: 3px solid #f0aa20;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .days-answer {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .days-answer-note {
    padding-inline: 22px;
  }

  .days-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .days-related-grid {
    grid-template-columns: 1fr;
  }

  .days-related-grid a {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .days-main {
    padding-inline: 14px;
    padding-bottom: 68px;
  }

  .days-breadcrumb {
    margin-bottom: 24px;
  }

  .days-answer {
    grid-template-columns: 1fr;
  }

  .days-answer-note {
    display: none;
  }

  .days-answer-number {
    min-height: 92px;
  }

  .days-timer-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .days-timer-cta > a {
    width: 100%;
    max-width: none;
  }

  .days-answers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .days-main {
    padding-inline: 12px;
  }

  .days-intro h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .days-answer {
    border-radius: 18px;
  }

  .days-answer-copy {
    padding: 28px 18px 30px;
  }

  .days-answer-number {
    gap: 8px;
  }

  .days-answer-number strong {
    font-size: clamp(4.7rem, 23vw, 6.5rem);
  }

  .days-answer-number span {
    font-size: 1rem;
  }

  .days-primary-link {
    width: 100%;
  }

  .days-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .days-metric {
    min-height: 164px;
    padding: 17px;
  }

  .days-metric h3 {
    min-height: 3.5em;
    font-size: 0.82rem;
  }

  .days-metric strong {
    font-size: 2.25rem;
  }

  .days-metric strong.days-metric-text {
    font-size: 1.15rem;
  }

  .days-metric p {
    font-size: 0.78rem;
  }

  .days-timer-cta {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .days-dates th,
  .days-dates td {
    min-width: 0;
    padding: 13px 9px;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }

  .days-dates table {
    table-layout: fixed;
  }

  .days-dates th:first-child,
  .days-dates td:first-child {
    width: 22%;
  }

  .days-dates th:nth-child(2),
  .days-dates td:nth-child(2) {
    width: 48%;
  }

  .days-dates th:last-child,
  .days-dates td:last-child {
    width: 30%;
  }

  .days-dates thead th {
    font-size: 0.72rem;
  }

  .days-faq details p {
    padding-right: 0;
  }
}

@media (max-width: 350px) {
  .days-metric-grid {
    grid-template-columns: 1fr;
  }

  .days-metric {
    min-height: 145px;
  }

  .days-metric h3 {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .days-page *,
  .days-page *::before,
  .days-page *::after {
    scroll-behavior: auto !important;
  }
}
