/* /briefing: The Daily Ten (scripts/build-briefing-index.js).
   Page tokens only, so both themes follow the site toggle. Thread colours
   arrive per chip as --c. */

.dt { max-width: 1180px; margin: 0 auto; padding: 8px 0 40px; color: var(--page-text); }
.dt .mono { font-family: var(--mono); }
.dt a { color: inherit; }

/* Masthead */
.dt-mast { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 56px; align-items: end; padding: 28px 0 32px; border-bottom: 3px double var(--page-text); }
.dt-kicker { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--page-muted); }
.dt-title { margin: 0; font-family: ui-serif, Georgia, serif; font-weight: 900; font-size: clamp(56px, 9vw, 128px); line-height: .86; letter-spacing: -.055em; }
.dt-title em { font-style: italic; }
.dt-dek { grid-column: 2; grid-row: 2; margin: 0 0 6px; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--page-muted); }
.dt-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 0; border-top: 1px solid var(--line); }
.dt-stats > div { padding: 14px 0 0; }
.dt-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.dt-stats dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--page-muted); }
.dt-stats dd { margin: 4px 0 0; font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; }
.dt-stats { grid-template-columns: .7fr .8fr 1.25fr 1.25fr; }
.dt-stat--link dd { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.15; }
.dt-stat--link a { text-decoration: none; background: linear-gradient(var(--c, var(--page-text)), var(--c, var(--page-text))) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.dt-stat--link a:hover { background-size: 100% 100%; color: var(--page-bg); }
.dt-stat-note { display: block; margin-top: 6px; font-size: 10.5px; color: var(--page-muted); }

/* Section heads */
.dt-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; margin: 56px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--page-text); }
.dt-h2 { margin: 0; font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.03em; line-height: 1.05; }
.dt-h2 .mono { display: inline-block; margin-left: 10px; font-style: normal; font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--page-muted); vertical-align: middle; }
.dt-more { font-size: 12px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }

/* The latest ten: the lead across two columns, the rest in a grid */
.dt-stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.dt-story { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dt-story--lead { grid-column: 1 / -1; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 8px 0 28px; border-bottom: 1px solid var(--page-text); }
.dt-n { font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--page-text); }
.dt-story--lead .dt-n { font-size: 110px; line-height: .85; -webkit-text-stroke-width: 2px; }
.dt-headline { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; text-decoration: none; }
.dt-headline:hover { text-decoration: underline; text-underline-offset: 3px; }
.dt-story--lead .dt-headline { font-family: ui-serif, Georgia, serif; font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; }
.dt-summary { margin: 14px 0 0; max-width: 760px; font-size: 15.5px; line-height: 1.65; color: var(--page-muted); }
.dt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 11px; letter-spacing: .03em; color: var(--page-muted); }
.dt-thread { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--page-text) !important; transition: border-color .2s; }
.dt-thread::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.dt-thread:hover { border-color: var(--c); }

/* The week before */
.dt-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dt-day { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--page-text); border-radius: 14px; text-decoration: none; background: var(--page-bg); transition: transform .2s ease, box-shadow .2s ease; }
.dt-day:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--page-text); }
.dt-day-date { display: flex; align-items: baseline; gap: 10px; }
.dt-day-date b { font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: 44px; line-height: .9; letter-spacing: -.04em; }
.dt-day-date .mono { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--page-muted); }
.dt-day-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.dt-day-list li::marker { font-family: var(--mono); font-size: 11px; color: var(--page-muted); }
.dt-day-list li:first-child { font-weight: 700; }
.dt-day-more { margin-top: auto; font-size: 11.5px; color: var(--page-muted); }
.dt-day:hover .dt-day-more { color: var(--page-text); }

/* Archive calendars */
.dt-peek { display: flex; gap: 12px; align-items: baseline; margin: 0 0 20px; padding: 11px 16px; border: 1px dashed var(--line); border-radius: 10px; font-size: 12.5px; line-height: 1.5; color: var(--page-muted); transition: border-color .2s; }
.dt-peek.is-on { border-style: solid; border-color: var(--page-text); color: var(--page-text); }
.dt-peek-date { flex: 0 0 auto; font-weight: 700; color: var(--page-text); }
.dt-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 28px 24px; }
.dt-month-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.dt-month-name { font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.dt-month-head .mono { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--page-muted); }
.dt-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dt-cal-wd { font-family: var(--mono); font-size: 9.5px; text-align: center; color: var(--page-muted); padding-bottom: 2px; }
.dt-cal-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 5px; font-family: var(--mono); font-size: 10px; color: var(--page-muted); opacity: .45; }
.dt-cal-day.is-on { opacity: 1; background: var(--page-text); color: var(--page-bg) !important; text-decoration: none; font-weight: 700; transition: transform .15s ease; }
.dt-cal-day.is-on:hover, .dt-cal-day.is-on:focus-visible { transform: scale(1.18); outline: 2px solid var(--page-text); outline-offset: 2px; }

/* The plain list, for anyone who wants to scan headlines */
.dt-list { margin-top: 36px; border-top: 1px solid var(--line); }
.dt-list summary { cursor: pointer; padding: 16px 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dt-list-month { margin: 22px 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--page-muted); font-weight: 400; }
.dt-list-items { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.dt-list-items li { break-inside: avoid; }
.dt-list-items a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; text-decoration: none; }
.dt-list-items a:hover { text-decoration: underline; }
.dt-list-items .mono { font-size: 11px; color: var(--page-muted); padding-top: 2px; }

@media (max-width: 960px) {
  .dt-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dt-mast { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .dt-dek { grid-column: 1; grid-row: auto; }
  .dt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-stats > div:nth-child(n+3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .dt-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .dt-stats > div:nth-child(n+3) { margin-top: 12px; border-top: 1px solid var(--line); }
  .dt-stories { grid-template-columns: minmax(0, 1fr); }
  .dt-story--lead { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dt-story--lead .dt-n { font-size: 72px; }
  .dt-days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 0 14px; scrollbar-width: none; }
  .dt-days::-webkit-scrollbar { display: none; }
  .dt-day { flex: 0 0 85%; scroll-snap-align: start; }
  .dt-day:hover { transform: none; box-shadow: none; }
  .dt-months { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .dt-cal { gap: 3px; }
  .dt-month-name { font-size: 17px; }
  .dt-cal-day { font-size: 9.5px; border-radius: 4px; }
  .dt-peek { display: none; }
  .dt-list-items { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dt-day, .dt-day:hover, .dt-cal-day.is-on:hover { transition: none; transform: none; }
}
