/* Deadline Desk. Palette and type follow the Fury Goods family site. */
:root {
  color-scheme: light;
  --ink: #182628;
  --dark-green: #244542;
  --cream: #f6f0e1;
  --paper: #fbf8ef;
  --honey: #e3b763;
  --muted: #4b5e5a;
  --line: #d8d9cd;
  --card: #fffdf8;
  --soft: #eeede2;
  --focus: #b56d15;
  --alert: #8a2a12;
  --alert-bg: #fbeee8;
  --ok: #24573a;
  --ok-bg: #e6f1e8;
  --warn-bg: #fbf1da;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.62 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-wrap: break-word; }
a { color: var(--dark-green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; }
h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p, ul, ol, dl { margin: 0; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: .35rem; }
code { font-size: .92em; background: var(--soft); padding: .05em .3em; border-radius: .25rem; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.skip { position: absolute; top: 0; left: .75rem; transform: translateY(-125%); padding: .65rem 1rem; background: var(--honey); color: var(--ink); z-index: 3; }
.skip:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header and footer */
.site-header, .site-footer { background: var(--ink); color: var(--cream); }
.site-header a, .site-footer a { color: var(--cream); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1.5rem; }
.header-inner { min-height: 4.5rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 760; letter-spacing: -.02em; white-space: nowrap; font-size: 1.08rem; }
.brand svg { flex: none; }
.brand small { display: block; font-weight: 500; font-size: .74rem; letter-spacing: 0; color: #cfd6cd; }
.site-nav { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; font-size: .95rem; }
.site-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: .15em; }
.footer-inner { padding-block: 1.6rem; align-items: flex-start; }
.footer-inner p { font-size: .9rem; color: #d7dccf; max-width: 34rem; }
.footer-inner p + p { margin-top: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: .95rem; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }

/* Page heads */
.hero { background: var(--ink); color: var(--cream); border-bottom: .3rem solid var(--honey); }
.hero-inner { padding-block: clamp(1.75rem, 5vw, 4rem) clamp(2rem, 5vw, 4.25rem); }
.hero p.lede { max-width: 40rem; margin-top: 1.1rem; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #eee7d5; }
.hero .eyebrow { color: var(--honey); }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.page-head { background: var(--cream); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(1.6rem, 4vw, 3rem); }
.page-head p.lede { max-width: 44rem; margin-top: .9rem; font-size: 1.1rem; color: var(--muted); }

main section { padding-block: clamp(1.75rem, 4vw, 3rem); }
main section + section { border-top: 1px solid var(--line); }
.prose > * + * { margin-top: 1rem; }
.prose h2 + *, .prose h3 + * { margin-top: .7rem; }
.prose > h3 { margin-top: 1.6rem; }
.prose p, .prose li { max-width: 44rem; }

/* Tool cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.1rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.card-grid > li { margin: 0; }
.card { position: relative; height: 100%; display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem 1.25rem 1.35rem; background: var(--card); border: 1px solid var(--line); border-top: .3rem solid var(--honey); border-radius: .5rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card:hover h3 a { text-decoration: underline; }
.card .tag { font-size: .82rem; font-weight: 700; color: var(--muted); }
.card p:last-child { margin-top: auto; padding-top: .3rem; font-weight: 650; color: var(--dark-green); }

/* Date list */
.dates { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: .6rem; }
.dates li { margin: 0; display: grid; grid-template-columns: 6.2rem 1fr; gap: .9rem; align-items: center; padding: .65rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: .5rem; }
.dates li.is-past { opacity: .6; }
.date-chip { display: grid; justify-items: center; line-height: 1.1; background: var(--ink); color: var(--cream); border-radius: .4rem; padding: .35rem .3rem .45rem; border-top: .25rem solid var(--honey); }
.date-chip b { font-size: 1.35rem; font-family: Georgia, serif; }
.date-chip span { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }

/* Forms */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: .6rem; padding: clamp(1rem, 3vw, 1.75rem); margin-top: 1.25rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset + fieldset, .field + fieldset, fieldset + .field { margin-top: 1.4rem; }
legend { font-weight: 720; font-size: 1.08rem; padding: 0; margin-bottom: .5rem; }
.field { display: grid; gap: .3rem; }
.field + .field { margin-top: 1rem; }
.field.spaced { margin-top: 1.4rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem 1.2rem; }
.fields .field + .field { margin-top: 0; }
label, .label { font-weight: 650; }
.hint { font-size: .9rem; color: var(--muted); }
input[type="text"], input[type="number"], input[type="date"], select {
  font: inherit; color: var(--ink); background: #fff; width: 100%; max-width: 22rem; min-height: 44px;
  padding: .45rem .65rem; border: 2px solid #7d8a83; border-radius: .35rem;
}
input.money { max-width: 14rem; }
input.short { max-width: 8rem; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--alert); }
.error-text { color: var(--alert); font-weight: 650; font-size: .92rem; }
.error-text:empty { display: none; }
.prefix-wrap { display: flex; align-items: stretch; max-width: 14rem; }
.prefix-wrap span { display: grid; place-items: center; padding: 0 .6rem; background: var(--soft); border: 2px solid #7d8a83; border-right: 0; border-radius: .35rem 0 0 .35rem; font-weight: 650; }
.prefix-wrap input { border-radius: 0 .35rem .35rem 0; }
.choices { display: grid; gap: .45rem; }
.choice { display: flex; align-items: flex-start; gap: .6rem; min-height: 44px; }
.choice input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; flex: none; accent-color: var(--dark-green); }
.choice label { font-weight: 500; }
.year-block { border: 1px solid var(--line); border-radius: .5rem; padding: 1rem; background: #fff; }
.year-block + .year-block { margin-top: 1rem; }
.year-block legend { float: left; width: 100%; margin-bottom: .75rem; }
.year-block legend + * { clear: both; }
details.more { margin-top: .9rem; }
details.more summary { cursor: pointer; font-weight: 650; color: var(--dark-green); min-height: 44px; display: flex; align-items: center; }
details.more[open] summary { margin-bottom: .6rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; align-items: center; }
.btn { font: inherit; font-weight: 720; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.25rem; border-radius: .4rem; border: 2px solid var(--ink); background: var(--honey); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: #d8a64c; }
.btn-secondary { background: transparent; }
.btn-secondary:hover { background: var(--soft); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--soft); color: var(--muted); border-color: #a7ada4; cursor: not-allowed; }
.spend-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .8rem 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: .45rem; background: #fff; }
.spend-row + .spend-row { margin-top: .8rem; }
.spend-row .field + .field { margin-top: 0; }
.spend-row input, .spend-row select { max-width: 100%; }

/* Results */
.result { margin-top: 1.5rem; }
.result:empty { display: none; }
.result > * + * { margin-top: 1rem; }
.result-head { padding: 1.1rem 1.2rem; border-radius: .5rem; border-left: .45rem solid var(--dark-green); background: var(--ok-bg); }
.result-head.is-warn { border-left-color: #a46a00; background: var(--warn-bg); }
.result-head.is-alert { border-left-color: var(--alert); background: var(--alert-bg); }
.result-head h2, .result-head h3 { font-family: Georgia, serif; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.result-head p { margin-top: .5rem; }
.error-summary { border: 3px solid var(--alert); border-radius: .5rem; padding: 1rem 1.2rem; background: #fff; }
.error-summary h2 { font-size: 1.2rem; font-family: inherit; letter-spacing: 0; }
.error-summary ul { margin-top: .5rem; }
.error-summary a { color: var(--alert); font-weight: 650; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .5rem; background: #fff; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; font-weight: 720; padding: .75rem .9rem .25rem; }
th, td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft); font-weight: 700; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot th, tfoot td { border-top: 2px solid var(--ink); font-weight: 720; }
.status { display: inline-block; font-size: .82rem; font-weight: 700; padding: .1rem .5rem; border-radius: 1rem; white-space: nowrap; background: var(--soft); }
.status.past, .status.passed { background: var(--alert-bg); color: var(--alert); }
.status.open, .status.upcoming { background: var(--ok-bg); color: var(--ok); }
.status.not-open { background: var(--warn-bg); color: #6b4800; }
.status.tbc { background: var(--soft); color: var(--muted); }
.status.direct { background: var(--ok-bg); color: var(--ok); }
.status.convert { background: var(--warn-bg); color: #6b4800; }
.status.unknown { background: var(--soft); color: var(--muted); }

.notice { padding: 1rem 1.2rem; border-radius: .5rem; background: var(--warn-bg); border: 1px solid #e5cf98; }
.notice strong:first-child { display: block; margin-bottom: .25rem; }
.notice.plain { background: var(--soft); border-color: var(--line); }

.tool-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
.tool-list > li { margin: 0; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: .5rem; }
.tool-list h3 { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; }
.tool-list dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .25rem 1rem; margin-top: .7rem; font-size: .93rem; }
.tool-list dt { font-weight: 650; color: var(--muted); }
.tool-list dd { margin: 0; }
.tool-list .links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .7rem; }
.tool-list .links a { min-height: 44px; display: inline-flex; align-items: center; }

/* Rules checked */
.checked { background: var(--soft); border: 1px solid var(--line); border-radius: .5rem; padding: 1.1rem 1.25rem; }
.checked h2 { font-size: 1.25rem; font-family: inherit; letter-spacing: 0; }
.checked ol { margin-top: .6rem; font-size: .95rem; }
.checked .meta { color: var(--muted); font-size: .88rem; }
.checked p.note { margin-top: .7rem; }

/* FAQ */
.faq { border-top: 1px solid #bbc2b7; margin-top: 1rem; max-width: 48rem; }
.faq details { border-bottom: 1px solid #bbc2b7; }
.faq summary { cursor: pointer; font-weight: 695; padding: .85rem 0; min-height: 44px; }
.faq details > div { padding: 0 0 1rem; }
.faq details > div > * + * { margin-top: .6rem; }

/* Product */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; }
.buy-box { background: var(--card); border: 1px solid var(--line); border-top: .35rem solid var(--honey); border-radius: .6rem; padding: 1.4rem; }
.buy-box .price { font-family: Georgia, serif; font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; }
.buy-box > * + * { margin-top: .85rem; }
.checkout-slot { border: 2px dashed #a7ada4; border-radius: .5rem; padding: 1rem; text-align: center; color: var(--muted); }
.sheet-preview { font-size: .85rem; }
.sheet-preview th, .sheet-preview td { padding: .35rem .55rem; }

.simple { min-height: 50vh; padding-block: clamp(2.5rem, 8vw, 5rem); }
.simple p { margin-top: 1rem; }

@media (max-width: 48rem) {
  .product-layout { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2rem); }
  .dates li { grid-template-columns: 4.8rem 1fr; gap: .7rem; }
  .tool-list dl { grid-template-columns: 1fr; }
  .tool-list dd { margin-bottom: .35rem; }
  th, td { padding: .5rem .6rem; }
}
@media (max-width: 22rem) {
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header nav, .site-footer, .actions, .skip { display: none !important; }
  body { background: #fff; }
}
