/* 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.
 * Two buttons of equal weight, because neither platform is the default and
 * guessing wrong is worse than asking. "Download the file instead" is gone for
 * good: as of 2026-08-05 a founder never meets a file.
 *
 * Copying the link is not that, and came back on 2026-08-08. On a desktop
 * browser it is the only Apple route that reliably arrives, because webcal://
 * is resolved by the OS and can be pointed anywhere. See APPLE_NATIVE in app.js.
 */

.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-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;
}
/* The outcome of a return trip from Google. Colour is a reinforcement, never
 * the message: the text says what happened on its own, so this still reads
 * correctly in monochrome or to anyone who cannot distinguish the two. */
.cta-note.cta-good { color: var(--ink-2); font-weight: 600; }
.cta-note.cta-bad { color: var(--orange-deep); font-weight: 600; }

/* ----------------------------------------------------- paste into Calendar --
 *
 * Revealed by the desktop Apple button, never shown unasked. Quieter than the
 * buttons and set apart by a rule, because it is an instruction to follow
 * rather than a third thing to choose between.
 */
.apple-paste {
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--paper-edge);
}
.apple-paste-q {
  margin: 0 0 .6rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  max-width: 52ch;
}
.apple-paste-steps {
  margin: 0 0 .8rem;
  padding-left: 1.2rem;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.apple-paste-url { margin: 0; }
/* The URL is long and unbreakable at spaces, so it wraps anywhere rather than
 * pushing the card sideways on a narrow window. */
.apple-paste-url code {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--paper-3);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  padding: .5rem .6rem;
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}

/* ------------------------------------------------------- email reminders --
 *
 * Sits below the buttons and is visually quieter than them, because it is the
 * optional extra and they are the thing the founder came for. Separated by a
 * rule rather than a box, so it reads as a footnote to the calendar action
 * rather than a competing second form.
 */
.remind {
  margin: 1.25rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--paper-edge);
}
.remind-q {
  display: block;
  margin: 0 0 .6rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-2);
}
.remind-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.remind-input {
  flex: 1 1 15rem;
  /* min-width 0 stops the flex item refusing to shrink below its intrinsic
   * width, which is what pushed the option cards off screen at 390px on
   * 2026-08-04. Same failure mode, so the same guard. */
  min-width: 0;
  font: inherit;
  font-size: .95rem;
  padding: .6rem .8rem;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--paper-edge);
  border-radius: 8px;
}
.remind-input::placeholder { color: var(--ink-faded); }
.remind-input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-color: var(--orange); }
.remind-note {
  margin: .6rem 0 0;
  font-size: .8rem;
  color: var(--ink-faded);
  line-height: 1.5;
}
.remind-done {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* --------------------------------------------------------- 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; }
}

/* Hidden until the capability probe in app.js confirms Google is configured.
 * Starts hidden and is revealed, rather than starting visible and being pulled,
 * so nobody ever sees a button flash and disappear. */
.btn.is-probing { display: none; }
