/* Absolv - Your filing deadlines. Tool specific styling.
 *
 * Loaded after flow.css and uses its tokens. Everything already in the shared
 * sheet (.opt, .btn, .panel, .q, .sub, .field, .seg) is reused untouched, so
 * this tool sits visually inside the same family as the other four. Only the
 * components that genuinely do not exist yet are defined here: the company
 * picker, the deadline list, and the subscribe block.
 */

/* ---------------------------------------------------------- company find -- */

.searching {
  margin: 1.1rem 0 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faded);
}

.co-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; }

.co {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--paper-card);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .85rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: border-color .18s var(--ease-ink), transform .18s var(--ease-ink), box-shadow .18s var(--ease-ink);
}
.co:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(223, 89, 17, .13); }
.co:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.co-name { display: block; font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.3; }
.co-meta { display: block; margin-top: .18rem; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-faded); }
.co-warn {
  display: inline-block;
  margin-top: .4rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-deep);
  border: 1px solid var(--orange-deep);
  border-radius: 99px;
  padding: .1rem .5rem;
}

/* -------------------------------------------------------------- the CTA --
 * This is the whole point of the page, so it gets the strongest block on it.
 * Subscribing is the primary action and downloading is deliberately quieter:
 * a downloaded file goes stale and a subscription does not.
 */

.cta-block {
  background: var(--paper-2);
  border: 1px solid var(--paper-edge);
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 1.4rem 1.5rem;
  margin: 0 0 2rem;
}
.cta-lede { margin: 0 0 1.1rem; font-size: .97rem; color: var(--ink-2); max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.cta-row-quiet { margin-top: .6rem; }
.cta-note {
  margin: 1rem 0 0;
  font-size: .82rem;
  color: var(--ink-faded);
  line-height: 1.5;
  word-break: break-word;
}
.cta-note code {
  font-family: var(--font-mono);
  font-size: .78rem;
  background: var(--paper-3);
  border-radius: 4px;
  padding: .1rem .35rem;
}

/* --------------------------------------------------------- deadline list -- */

.section-h {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 2.25rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule-soft);
}

.dl-list { list-style: none; margin: 0 0 2rem; padding: 0; }

.dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
  padding: 1.05rem 0 1.05rem 1rem;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 3px solid transparent;
}
.dl:last-child { border-bottom: 0; }
/* Anything inside a month gets the orange edge. No red, no alarm iconography:
 * the date being close is the message, and the brand does not shout. */
.dl-soon { border-left-color: var(--orange); background: linear-gradient(90deg, var(--orange-wash), transparent 55%); }

.dl-when { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.dl-date { font-family: var(--font-mono); font-size: .84rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.dl-count { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }

.dl-rep { font-size: .74rem; color: var(--ink-faded); line-height: 1.4; }

.section-sub { margin: -.5rem 0 1.25rem; font-size: .88rem; color: var(--ink-muted); max-width: 60ch; }

.dl-title { display: block; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.dl-why { margin: .4rem 0 0; font-size: .89rem; line-height: 1.55; color: var(--ink-muted); max-width: 68ch; }

/* The provenance chip. Every date says whether it was read off the register,
 * worked out from the accounting period, or is a fixed statutory date. */
.tag {
  display: inline-block;
  margin-top: .35rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: .13rem .55rem;
  border: 1px solid;
}
.tag-read { color: var(--status-ok); border-color: var(--status-ok); }
.tag-calc { color: var(--orange-deep); border-color: var(--orange-deep); }
.tag-stat { color: var(--ink-faded); border-color: var(--rule-soft); }

@media (min-width: 720px) {
  .dl { grid-template-columns: 11rem 1fr; gap: 0 1.5rem; align-items: start; }
  .dl-when { flex-direction: column; gap: .15rem; padding-top: .2rem; }
}

/* -------------------------------------------------------------- panels ---- */

.panel-key { border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; }
.panel-key strong { color: var(--ink); }
.panel-warn { border-left: 3px solid var(--orange-deep); border-radius: 0 10px 10px 0; background: var(--orange-wash); }
.panel-src { background: transparent; border-style: dashed; }
.panel-src p { font-size: .86rem; }

/* ---------------------------------------------------------------- misc ---- */

.back {
  background: none;
  border: 0;
  padding: .5rem 0;
  font: inherit;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faded);
  cursor: pointer;
}
.back:hover { color: var(--orange); }
.back:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.result .q { margin-bottom: .2rem; }
.result .headline-num { font-size: clamp(2rem, 8vw, 3.2rem); }

@media (prefers-reduced-motion: reduce) {
  .co { transition: none; }
}
