/* Store Deadlines, a Viscous Bits page. Palette and Poppins come from viscousbits.ca;
   Source Serif 4 carries the reading text. Fonts are self-hosted (CSP font-src 'self'). */
@font-face { font-family: "Poppins"; src: url(assets/poppins-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(assets/poppins-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(assets/poppins-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(assets/sourceserif4.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(assets/sourceserif4-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #101053;
  --brand: #1c92ff;
  --action: #1677d6;
  --link: #105da2;
  --mist: #f0f6ff;
  --rule: #d4def2;
  --muted: #44506a;
  --ok: #1d7a46;
  --bad: #b3261e;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1080px;
  --text: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.65 var(--serif);
  font-optical-sizing: auto;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

h1, h2, h3, .sans { font-family: var(--sans); }
h1 { font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .9rem; }
h2 { font-weight: 700; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 1.25rem; }
h3 { font-weight: 500; font-size: 1.3rem; line-height: 1.3; margin: 0 0 .35rem; }
p { margin: 0 0 .9rem; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 100px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 88px; height: 88px; }
@media (max-width: 640px) { .brand img { width: 64px; height: 64px; } }
.brand span { padding-left: .9rem; border-left: 1px solid var(--rule); }
.brand span { font: 700 1.05rem/1.1 var(--sans); }
.brand small { display: block; font: 500 .78rem/1.3 var(--sans); color: var(--muted); }
.site-head nav { display: flex; gap: 1.4rem; font: 500 .95rem var(--sans); }
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--action); }
@media (max-width: 640px) { .site-head nav a.wide { display: none; } }

/* hero */
.hero { padding: 3.5rem 0 2.5rem; }
.deck { max-width: var(--text); font-size: 1.25rem; color: var(--muted); margin: 0; }

/* timeline: the one drawn thing on the page */
.timeline { position: relative; height: 160px; margin: 2.75rem 0 1rem; }
.timeline .axis { position: absolute; left: 0; right: 0; top: 74px; height: 2px; background: var(--rule); }
.timeline .past { position: absolute; left: 0; top: 74px; height: 2px; background: var(--muted); opacity: .35; }
.timeline .tick { position: absolute; top: 90px; font: 500 .78rem var(--sans); color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.timeline .tick::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 8px; background: var(--rule); }
.timeline .today { position: absolute; top: 46px; height: 44px; width: 2px; background: var(--ink); }
.timeline .today span { position: absolute; top: -22px; left: 6px; font: 700 .8rem var(--sans); white-space: nowrap; }
.timeline .event { position: absolute; top: 0; transform: translateX(-50%); text-align: center; width: 150px; text-decoration: none; color: var(--ink); }
.timeline .event.below { top: 120px; }
.timeline .event b { display: block; font: 500 .82rem/1.25 var(--sans); }
.timeline .event i { display: block; font: 500 .74rem/1.3 var(--sans); font-style: normal; color: var(--muted); }
.timeline .dot { position: absolute; top: 67px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--brand); transform: translateX(-50%); }
.timeline .dot.in-force { background: var(--paper); box-shadow: 0 0 0 2px var(--muted); }
.timeline .event:hover b { color: var(--action); }
.timeline .event.edge-l { transform: none; text-align: left; }
.timeline .event.edge-r { transform: translateX(-100%); text-align: right; }
.timeline-next { display: none; font: 500 1rem var(--sans); }
@media (max-width: 760px) {
  .timeline { display: none; }
  .timeline-next { display: block; margin-top: 1.5rem; }
}

/* navy band, as on viscousbits.ca */
.band { background: var(--ink); color: #fff; padding: 2.25rem 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.band p { margin: 0; max-width: 620px; font-size: 1.15rem; }
.band strong { font: 700 1.35rem/1.3 var(--sans); display: block; margin-bottom: .3rem; color: #87cefa; }
.band a:not(.btn) { color: #87cefa; }

.btn {
  display: inline-block; font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--action); color: #fff; border: 2px solid var(--action);
  padding: .85rem 1.3rem; border-radius: 6px;
}
.btn:hover { background: #105da2; border-color: #105da2; color: #fff; }
.btn.quiet { background: transparent; color: var(--action); }
.btn.quiet:hover { background: var(--mist); color: var(--ink); }
.band .btn { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.band .btn:hover { background: #fff; border-color: #fff; }

/* the list */
.section { padding: 3.5rem 0 1rem; }
.entry { display: grid; grid-template-columns: 150px minmax(0, var(--text)); gap: 2.5rem; padding: 2rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.date { font-family: var(--sans); }
.leaf { display: flex; flex-direction: column; width: 124px; text-align: center; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--paper); }
.leaf .m { background: var(--ink); color: #fff; font-weight: 500; font-size: .9rem; padding: .35rem 0; }
.leaf .day { font-weight: 700; font-size: 3rem; line-height: 1; letter-spacing: -.03em; padding: .7rem 0 .15rem; }
.leaf .y { font-weight: 500; font-size: .9rem; color: var(--muted); padding-bottom: .65rem; }
.date .count { display: block; width: 124px; text-align: center; font-weight: 500; font-size: .95rem; color: var(--action); margin-top: .6rem; }
.in-force-list .leaf .m { background: var(--muted); }
.in-force-list .leaf .day { color: var(--muted); }
.in-force-list .date .count { color: var(--muted); }
.platforms { font: 500 .9rem var(--sans); color: var(--muted); margin: 0 0 1rem; }
.entry dl { margin: 0; }
.entry dt { font: 500 .95rem var(--sans); margin-top: .9rem; }
.entry dd { margin: .15rem 0 0; }
.also { font: 300 .95rem/1.5 var(--sans); color: var(--muted); margin: 0 0 1rem; padding: 0; list-style: none; }
.also b { font-weight: 500; color: var(--ink); }
.entry .act { margin: 1.25rem 0 .25rem; }
.src { font: 300 .88rem/1.6 var(--sans); color: var(--muted); margin-top: 1rem; }
.src a { margin-right: .8rem; }
.src a:last-of-type { margin-right: 0; }
@media (max-width: 760px) {
  .entry { grid-template-columns: 1fr; gap: .75rem; padding: 1.6rem 0; }
  .date { display: flex; align-items: center; gap: 1rem; }
  .leaf { width: 92px; }
  .leaf .day { font-size: 2.2rem; padding-top: .5rem; }
  .date .count { width: auto; margin: 0; text-align: left; }
}

/* subscribe */
.panel { background: var(--mist); padding: 2.25rem 0; margin-top: 3rem; }
.panel p { max-width: var(--text); }
.panel .btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; font: 300 .9rem/1.6 var(--sans); color: var(--muted); }
.site-foot p { max-width: 760px; }
.site-foot a { color: var(--muted); }

/* checker */
.drop { background: var(--mist); border: 2px dashed #9fb0d4; border-radius: 8px; padding: 2.25rem 1.5rem; max-width: 760px; }
.drop.over { border-color: var(--action); background: #e3efff; }
.drop .lead { font: 500 1.15rem var(--sans); margin: 0 0 1rem; }
.drop label.btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop label.btn:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.drop .file { font: 300 .9rem var(--sans); color: var(--muted); margin: .9rem 0 0; }
.note { margin-top: 1rem; font: 300 .92rem/1.6 var(--sans); color: var(--muted); max-width: 760px; }
.note em { font-style: normal; font-weight: 500; color: var(--ink); }
.verdict { font: 700 clamp(1.6rem, 3.6vw, 2.3rem)/1.2 var(--sans); letter-spacing: -.015em; margin: 0 0 1.5rem; max-width: 820px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 1.5rem; margin: 0 0 2rem; max-width: 960px; }
.cols label { display: block; font: 500 .85rem var(--sans); margin-bottom: .3rem; }
.cols select { width: 100%; font: 300 .95rem var(--sans); padding: .5rem; color: var(--ink); background: #fff; border: 1px solid #9fb0d4; border-radius: 6px; }
.breakdown { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 760px; }
.breakdown li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--rule); }
.breakdown li:last-child { border-bottom: 1px solid var(--rule); }
.breakdown b { font: 700 1.5rem var(--sans); text-align: right; }
.breakdown .bad b { color: var(--bad); }
.breakdown .ok b { color: var(--ok); }
.notes p { max-width: var(--text); border-left: 3px solid var(--brand); padding-left: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; max-height: 480px; }
table { border-collapse: collapse; width: 100%; font: 300 .9rem/1.45 var(--sans); }
th { font-weight: 500; text-align: left; background: var(--mist); position: sticky; top: 0; }
th, td { padding: .55rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.offer { background: var(--ink); color: #fff; padding: 3rem 0; margin-top: 3.5rem; }
.offer .wrap > * { max-width: 760px; }
.offer h2 { color: #fff; }
.offer a:not(.btn) { color: #87cefa; }
.tiers { list-style: none; padding: 0; margin: 1.5rem 0; max-width: 520px !important; }
.tiers li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid #2a3570; font-family: var(--sans); font-weight: 300; }
.tiers li:last-child { border-bottom: 1px solid #2a3570; }
.tiers strong { font-weight: 700; color: #87cefa; }
.offer .btn { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.offer .btn:hover { background: #fff; border-color: #fff; }
.explain { padding: 3.5rem 0 1rem; }
.explain .wrap > * { max-width: var(--text); }
.ids { margin: 0 0 1.25rem; }
.ids dt { font: 700 1rem var(--sans); margin-top: 1rem; }
.ids dd { margin: .15rem 0 0; }
.hidden { display: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.example .wrap > p { max-width: var(--text); }
