/* tools.css: the EasyDone Tools page template for easydone.work (Q802, drawn 26 Nov 2026; mockup, not live).
   Loaded after kit.css + site.css + article.css. Styles the loop's tool fragment (.ed-tool-*) in the site's own tokens only:
   - the hero is the article hero (.po-hero), its label the article's crumbs, its H1 the article's H1;
   - the tool card sits where the article's figure sits (.po-fig: over the hero's foot);
   - inputs are the booking form's inputs (site-bits .form input), the answer panel is the closing band's glass card
     (dark green, the big gold number like .ring-big), buttons are .btn-line .btn-sm.
   The fragment's own <style> is layout only; every rule here has 3 classes so it wins over it whatever the order. */

/* ---- hero: label + H1, nothing else (Colin 25 Nov: "a small bold 'EasyDone Tools' label, the tool name as the H1, then the tool straight away") */
.tp.ed-tool .ed-tool-header { margin: 0; }
.tp.ed-tool .ed-tool-brand { display: flex; gap: 10px; margin: 0 0 22px; font: 800 15px 'Manrope', sans-serif; color: #cfe3d8; }
.tp.ed-tool .ed-tool-brand a { color: var(--gold); text-decoration: none; }
.tp.ed-tool .ed-tool-brand a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tp.ed-tool .ed-tool-brand b { font-weight: 800; }
.tp.ed-tool .tp-hero { padding: 56px 0 190px; }
.tp.ed-tool .tp-hero h1 { margin: 0; }

/* ---- the card: where the article's figure sits, inputs left, the answer right */
.tp.ed-tool .tp-card {
  position: relative; z-index: 2; margin-top: -150px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 22px 44px;
  grid-template-areas: "in out" "act out" "disc disc"; align-items: start;
  padding: 40px; border-radius: 28px; background: #fff;
  box-shadow: 0 0 0 1px var(--hair), 0 44px 80px -46px #103d36;
}
.tp.ed-tool .tp-card > .ed-tool-inputs { grid-area: in; margin: 0; gap: 22px; }
.tp.ed-tool .tp-card > .ed-tool-result { grid-area: out; }
.tp.ed-tool .tp-card > .ed-tool-actions { grid-area: act; margin: 0; }
.tp.ed-tool .tp-card > .ed-tool-disclaimer { grid-area: disc; }
.tp.ed-tool .tp-card > .ed-tool-subtitle, .tp.ed-tool .tp-card > .ed-tool-preview { grid-column: 1 / -1; }   /* the invoice's preview: full width under */

/* inputs: the booking form's fields, a touch bigger for numbers */
.tp.ed-tool .ed-tool-fieldset { border: 0; padding: 0; border-radius: 0; }
.tp.ed-tool .ed-tool-legend, .tp.ed-tool .ed-tool-label {
  display: block; padding: 0; margin: 0 0 10px; font: 800 15px/1.3 'Manrope', sans-serif; color: var(--ink); letter-spacing: -.01em;
}
.tp.ed-tool .ed-tool-field { gap: 0; }
.tp.ed-tool .ed-tool-input, .tp.ed-tool .tp-card select, .tp.ed-tool .tp-card textarea {
  font: 700 20px 'Manrope', sans-serif; color: var(--ink); padding: 12px 16px; min-height: 56px;
  border-radius: 12px; border: 1.5px solid #cfdcd6; background: #f7faf8;
}
.tp.ed-tool .tp-card textarea, .tp.ed-tool .tp-card select { font-size: 16px; font-weight: 600; }
.tp.ed-tool .ed-tool-input:focus, .tp.ed-tool .tp-card select:focus, .tp.ed-tool .tp-card textarea:focus {
  outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--green); background: #fff;
}
.tp.ed-tool [aria-invalid="true"] { border-color: #b42318; background: #fff7f5; }
.tp.ed-tool .ed-tool-hint { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* a one-of choice (radios): one pill bar, the chosen one dark green (the site's btn-dark) */
.tp.ed-tool .ed-tool-choices { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--mint); box-shadow: inset 0 0 0 1px var(--hair); }
.tp.ed-tool .ed-tool-choices .ed-tool-choice {
  position: relative; min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  font: 800 15px 'Manrope', sans-serif; color: var(--body); transition: background .2s, color .2s;
}
.tp.ed-tool .ed-tool-choices .ed-tool-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tp.ed-tool .ed-tool-choices .ed-tool-choice:hover { color: var(--ink); }
.tp.ed-tool .ed-tool-choices .ed-tool-choice:has(input:checked) { background: var(--green); color: #fff; box-shadow: 0 10px 22px -14px #103d36aa; }
.tp.ed-tool .ed-tool-choices .ed-tool-choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
/* a yes / no (checkbox): a plain row */
.tp.ed-tool .ed-tool-inputs > .ed-tool-choice, .tp.ed-tool .ed-tool-fieldset > .ed-tool-choice { font: 600 16px 'Manrope', sans-serif; color: var(--body); }
.tp.ed-tool input[type="checkbox"] { accent-color: var(--work); }

/* the answer: the closing band's glass card, the big gold number */
.tp.ed-tool .ed-tool-result {
  margin: 0; padding: 30px 32px 28px; border: 0; border-radius: 22px; color: var(--on-dark);
  background: radial-gradient(120% 90% at 100% 0%, #1f7a6933, transparent 60%), linear-gradient(160deg, #123f37, #0b2d28);
  box-shadow: 0 30px 60px -40px #061915;
}
.tp.ed-tool .ed-tool-headline { display: flex; flex-direction: column-reverse; gap: 8px; margin: 0 0 22px; }
.tp.ed-tool .ed-tool-headline-label { font: 700 15px 'Manrope', sans-serif; color: var(--on-dark-2); }
.tp.ed-tool .ed-tool-headline-value { font: 800 clamp(44px, 4.6vw, 66px)/1 'Manrope', sans-serif; letter-spacing: -.045em; color: var(--gold); }
.tp.ed-tool .ed-tool-figures { gap: 16px 20px; padding-top: 18px; border-top: 1px solid #ffffff1f; }
.tp.ed-tool .ed-tool-figure dt { font: 700 13.5px 'Manrope', sans-serif; color: var(--on-dark-2); margin-bottom: 4px; }
.tp.ed-tool .ed-tool-figure dd { font: 800 21px/1.2 'Manrope', sans-serif; color: #fff; letter-spacing: -.02em; }
.tp.ed-tool .ed-tool-figure-key dd { color: var(--gold-2); }
.tp.ed-tool .ed-tool-formula { margin: 18px 0 0; font: 500 14px/1.5 'Geist Mono', ui-monospace, monospace; color: var(--on-dark-2); }
.tp.ed-tool .ed-tool-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #eac51b1f; color: var(--gold-2); font-size: 15px; line-height: 1.45; }
.tp.ed-tool .ed-tool-placeholder { margin: 0; color: var(--on-dark-2); font-weight: 700; }
.tp.ed-tool .ed-tool-errors { margin: 0; padding: 0; list-style: none; }
.tp.ed-tool .ed-tool-error { color: #ffd4cc; font-weight: 700; }
.tp.ed-tool .ed-tool-result table { width: 100%; border-collapse: collapse; color: var(--on-dark); font-size: 15px; }
.tp.ed-tool .ed-tool-result th, .tp.ed-tool .ed-tool-result td { padding: 6px 4px; border-bottom: 1px solid #ffffff14; text-align: left; }

/* actions: the site's line buttons */
.tp.ed-tool .ed-tool-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 2px solid #c9d9cf; background: #fff; color: var(--ink); font: 800 15px/1 'Manrope', sans-serif; cursor: pointer; transition: background .2s;
}
.tp.ed-tool .ed-tool-button:hover { background: var(--mint); }
.tp.ed-tool .ed-tool-button-primary { background: linear-gradient(180deg, #f4d43c, #e2bb0f); border-color: #c9a40c; color: var(--green); }
.tp.ed-tool .ed-tool-copy-status { font: 700 14.5px 'Manrope', sans-serif; color: var(--work); }
.tp.ed-tool .ed-tool-disclaimer { margin: 0; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---- below the tool: the article's own layout (.art: contents left, prose right).
   The intro line takes the article's opening callout (article.css .prose>p:nth-of-type(2), same values); the source is the article's
   small muted line (.prose>p:first-of-type), set by class so neither depends on a paragraph's place. */
.prose > p.tp-intro { padding: 24px 26px; margin: 0 0 1.15em; border-radius: 20px; background: var(--ivory); border-left: 5px solid var(--gold);
  font: 600 19.5px/1.6 'Manrope', sans-serif; color: var(--ink); }
.prose .tp-src { margin-top: 2.6em; padding-top: 16px; border-top: 1px solid var(--hair); font: 700 15px/1.5 'Manrope', sans-serif; color: var(--muted); }
.prose .tp-src a { font-weight: 700; }

@media (max-width: 900px) {
  .tp.ed-tool .tp-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "in" "out" "act" "disc"; gap: 20px; }
}
@media (max-width: 760px) {
  .tp.ed-tool .tp-hero { padding: 32px 0 120px; }
  .tp.ed-tool .ed-tool-brand { margin-bottom: 14px; }
  .tp.ed-tool .tp-card { margin-top: -90px; padding: 20px; border-radius: 20px; }
  .tp.ed-tool .ed-tool-result { padding: 22px 20px; border-radius: 16px; }
  .tp.ed-tool .ed-tool-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .tp.ed-tool .ed-tool-figure dd { font-size: 19px; }
  .tp.ed-tool .ed-tool-choices { display: flex; }
  .tp.ed-tool .ed-tool-choices .ed-tool-choice { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .prose > p.tp-intro { padding: 18px; font-size: 18px; }
}
