/* Invoicing guides and the late payment calculator (radar/guides.py). Uses the site tokens from style.css; nothing here overrides it. */
.ig { max-width: 50rem; }
.ig .meta { font-size: 0.88rem; color: var(--ink-3); margin-top: 0.9rem; }
.ig h2 { margin-top: 2.6rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.ig h3 { margin-top: 1.6rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.ig p, .ig ul, .ig ol { margin-top: 0.9rem; max-width: 65ch; }
.ig li { margin-top: 0.35rem; }
.ig ol { padding-left: 1.3rem; }
.ig-answer { margin-top: 1.6rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--signal); }
.ig-answer p { margin-top: 0; max-width: none; font-size: 1.06rem; }
.ig-answer .k { font: 600 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal-ink); margin-bottom: 0.55rem; }
.ig-table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: 0.95rem; }
.ig-table th, .ig-table td { text-align: left; vertical-align: top; padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--rule); overflow-wrap: break-word; text-wrap: balance; }
.ig-table th { font-weight: 650; background: var(--paper-2); }
.ig-key td:first-child { font-weight: 600; }
@media (min-width: 641px) { .ig-key td:first-child { white-space: nowrap; } }
.ig-tablewrap { overflow-x: auto; max-width: 100%; }
/* phones: each row becomes a small labelled block (labels come from data-label, set by radar/guides.py) */
@media (max-width: 640px) {
  .ig-table, .ig-table tbody, .ig-table tr, .ig-table td { display: block; width: 100%; }
  .ig-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ig-table tr { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .ig-table td { border: 0; padding: 0.15rem 0; }
  .ig-table td[data-label]::before { content: attr(data-label); display: block; font: 500 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
  .ig-key td:first-child::before { display: none; }
  .ig-key td:first-child { font-size: 1.02rem; }
}
.ig-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ig-tpl { margin-top: 1rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); overflow: hidden; }
.ig-tpl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.ig-tpl-head b { font-size: 0.98rem; }
.ig-tpl pre { margin: 0; padding: 1rem 1.1rem; font: 400 0.92rem/1.6 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.ig-faq { margin-top: 1rem; border-top: 1px solid var(--rule); }
.ig-faq details { border-bottom: 1px solid var(--rule); }
.ig-faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; position: relative; font-weight: 650; list-style: none; text-wrap: balance; }
.ig-faq summary::-webkit-details-marker { display: none; }
.ig-faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.85rem; font: 500 1.3rem/1 var(--mono); color: var(--signal-ink); }
.ig-faq details[open] summary::after { content: "\2212"; }
.ig-faq details > div { padding: 0 0 1.1rem; }
.ig-faq details > div p:first-child { margin-top: 0; }
.ig-ours { margin-top: 2.6rem; padding: 1.25rem 1.3rem; border-radius: 16px; background: var(--signal-soft); }
.ig-ours .k { font: 600 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal-ink); }
.ig-ours h2 { margin-top: 0.5rem; font-size: 1.3rem; }
.ig-ours p { margin-top: 0.6rem; }
.ig-acts { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }
.ig-src { font-size: 0.92rem; color: var(--ink-2); }
.ig-src li { margin-top: 0.4rem; overflow-wrap: anywhere; }
.ig-more { display: grid; gap: 0.6rem; margin-top: 1rem; padding: 0; list-style: none; }
.ig-more a { display: block; padding: 0.8rem 1rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); text-decoration: none; font-weight: 600; }
.ig-more a:hover { border-color: var(--ink-3); }
.ig-more span { display: block; margin-top: 0.2rem; font-weight: 400; font-size: 0.9rem; color: var(--ink-3); }
.ig-steps { counter-reset: s; list-style: none; padding: 0; }
.ig-steps > li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-top: 1.4rem; }
.ig-steps > li::before { content: counter(s); position: absolute; left: 0; top: -0.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 0.9rem/1 var(--sans); }
.ig-steps > li > b:first-child { display: block; font-size: 1.05rem; }
.ig-steps > li p { margin-top: 0.4rem; }
.ig-dl { display: grid; gap: 0.7rem; margin-top: 1rem; }
.ig-dl a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); text-decoration: none; }
.ig-dl a:hover { border-color: var(--ink-3); }
.ig-dl b { font-weight: 650; }
.ig-dl span { font-size: 0.86rem; color: var(--ink-3); }
.ig-cards .card { text-decoration: none; }
.ig-cards .card h3 { font-size: 1.12rem; }
.ig-cards .card p { color: var(--ink-2); font-size: 0.95rem; }
.ig-cards .card .small { color: var(--ink-3); font-size: 0.84rem; margin-top: auto; }
.ig-note { font-size: 0.9rem; color: var(--ink-3); }

/* calculator */
.lp { margin-top: 1.8rem; padding: clamp(1rem, 3vw, 1.6rem); border-radius: 18px; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.lp-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.lp label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.lp input[type=text], .lp input[type=date] { font: inherit; font-weight: 400; width: 100%; min-height: 2.9rem; padding: 0 0.85rem; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.lp input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.lp .hint { font-weight: 400; font-size: 0.84rem; color: var(--ink-3); text-wrap: pretty; }
.lp fieldset { border: 0; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.lp legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.lp fieldset label { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 400; }
.lp-out { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--rule); }
.lp-figs { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); margin: 0; }
.lp-figs div { padding: 0.8rem 0.9rem; border-radius: 12px; background: var(--paper-2); }
.lp-figs dt { font: 500 0.72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.lp-figs dd { margin: 0.35rem 0 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lp-figs .lp-total { background: var(--ink); color: var(--paper); }
.lp-figs .lp-total dt { color: color-mix(in oklch, var(--paper) 70%, transparent); }
.lp-why { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-2); max-width: none; }
.lp-warn { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 12px; background: var(--mid-bg); color: var(--ink); font-size: 0.95rem; }
.lp-copy { margin-top: 1.1rem; }
.lp-copy pre { margin: 0.6rem 0 0; padding: 0.9rem 1rem; border-radius: 12px; background: var(--paper-2); font: 400 0.9rem/1.55 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.lp-copy .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.lp-copy .row b { font-size: 0.95rem; }
