/* KELNU public site visual system. Load after page-specific styles. */
:root {
  --design-ink: #142d25;
  --design-forest: #12382c;
  --design-green: #085b43;
  --design-paper: #f7f8f2;
  --design-line: #ccdcd1;
  --design-mint: #e8f4e9;
  --design-lime: #b8ef78;
  --design-shadow: 0 4px 12px rgb(20 45 37 / .06), 0 14px 34px rgb(20 45 37 / .06);
}

body { background: var(--design-paper); color: var(--design-ink); }
main h1, main h2, main h3 { text-wrap: balance; }
main h1 { letter-spacing: -.045em; }
main h2 { letter-spacing: -.025em; }
main :is(.lead, .lede) { max-inline-size: 60ch; }
main a:not(.btn) { text-underline-offset: .2em; }
main :is(a, button, input, textarea, select, summary):focus-visible,
.kelnu-global-header :is(a, summary):focus-visible {
  outline: 3px solid #a35f0d;
  outline-offset: 3px;
}

.kelnu-global-header {
  background: var(--design-forest);
  color: #f7fff8;
  border-bottom: 1px solid #477459;
}
.kelnu-global-header .kelnu-global-nav {
  min-height: 62px;
  gap: .25rem clamp(.65rem, 3vw, 2.5rem);
  padding: .35rem clamp(1rem, 3vw, 2rem);
}
.kelnu-global-header .kelnu-global-nav a { color: #f7fff8; }
.kelnu-global-header .kelnu-global-brand {
  display: inline-flex;
  gap: .55rem;
  font-size: 1.2rem;
  letter-spacing: -.045em;
}
.kelnu-global-brand img { flex: none; display: block; }
.kelnu-global-header .kelnu-global-nav a[aria-current="page"] {
  color: var(--design-lime);
  text-decoration: underline;
  text-underline-offset: .35em;
}
.kelnu-global-header :is(a, summary):focus-visible { outline-color: var(--design-lime); }

main :is(.tool-intro, .band, .tint) {
  background: linear-gradient(140deg, #edf5e9, #e2efe4);
}
main :is(.card, .panel, .workspace, .rx-status, .question, .next, .guide-action) {
  border-radius: 1rem;
  box-shadow: var(--design-shadow);
}
main .card:not(.licensing) { border-color: var(--design-line); }
main .btn {
  border-radius: .65rem;
  font-weight: 750;
}
main .btn:not(.secondary):not(.danger):not(.dangerous):not([aria-pressed="true"]):not([role="tab"]) {
  background: var(--design-green);
  border-color: var(--design-green);
  color: #fff;
}
@media (hover:hover) {
  main .btn:not(.secondary):not(.danger):not(.dangerous):not([aria-pressed="true"]):not([role="tab"]):hover { background: var(--design-forest); }
}

main .focus-hero {
  background:
    radial-gradient(ellipse at 95% 0%, rgb(184 239 120 / .32), transparent 35rem),
    linear-gradient(145deg, #edf6e9, #f8faf4 55%, #e4eee4);
}
.focus-hero h1 span { color: var(--design-green); }
.focus-hero #mot-lookup-section {
  background: #fff;
  border-inline-start: 4px solid var(--design-green);
}
.home-quick-steps .how-steps li { border-top: 3px solid #4e9b6f; }
.deposit-example .home-example-next { border-radius: 1rem; }
main .future-section {
  background: #e7f2e7;
  border-block: 1px solid var(--design-line);
}
main :is(.mot-answer, .invoice-example, .sample-decision) {
  background: linear-gradient(135deg, #12382c, #1c513e);
  color: #fff;
  border-radius: 1.05rem;
  box-shadow: var(--design-shadow);
}
main .mot-answer a, main .sample-decision-copy a { color: inherit; }
main :is(.mot-categories, .invoice-example dl) > div { border-radius: .7rem; }
main .sample-seller-message { box-shadow: 0 8px 24px rgb(6 35 23 / .16); }

@media (max-width: 640px) {
  .kelnu-global-header .kelnu-global-nav { gap: 0 .8rem; }
  .kelnu-global-header .kelnu-global-links { gap: 0 .7rem; }
  main :is(.card, .panel, .workspace, .rx-status, .guide-action) { border-radius: .8rem; }
}
@media print {
  body, main .focus-hero, main :is(.tool-intro,.band,.tint,.future-section) { background: white; }
  main :is(.card,.panel,.workspace,.rx-status,.question,.next,.guide-action,.mot-answer,.invoice-example,.sample-decision) {
    box-shadow: none;
  }
  main :is(.mot-answer,.invoice-example,.sample-decision) { background: white; color: #142d25; border: 1px solid #ccdcd1; }
  .kelnu-global-header { display: none; }
}

@media screen {
  body {
    background-color: var(--design-paper);
    background-image: radial-gradient(ellipse at 50% 0%, #e2efe3, transparent 34rem);
    background-repeat: no-repeat;
  }
  .kelnu-global-header {
    background-image: linear-gradient(105deg, #103128, #1b523d);
  }
  main :is(.tool-intro, .band, .tint) {
    background-image: radial-gradient(ellipse at 100% 0%, #d4ebd2, transparent 65%),
      linear-gradient(145deg, #f7fbf5, #e6f1e9);
  }
  main :is(.card, .panel, .workspace) {
    box-shadow: 0 1px 2px #142d250b, 0 12px 32px #142d250d;
  }
  main :is(.mot-answer, .invoice-example, .sample-decision) {
    background-image: radial-gradient(ellipse at top right, #2b6149, transparent 72%),
      linear-gradient(130deg, #102d24, #194d3a);
  }
}

.seller-reply-panel {
  color: #142d25;
  background: #e8f4e9;
  border-radius: .85rem;
  padding: clamp(.85rem, 3vw, 1.25rem);
  margin-block: 1rem .5rem;
}
.seller-reply-panel h4 { margin: 0 0 .65rem; font-size: 1.15rem; }
.seller-reply-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .5rem;
}
.seller-reply-choices button {
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  text-align: start;
  padding: .55rem .65rem;
  color: #143b2c;
  background: #fff;
  border: 1px solid #779d85;
  border-radius: .55rem;
}
.seller-reply-choices button[aria-pressed="true"] {
  color: #fff;
  background: #174d37;
  border-color: #174d37;
}
.seller-reply-panel .seller-reply-result {
  margin-top: .7rem;
  padding: .65rem .75rem;
  border-inline-start: 3px solid #287450;
  border-radius: .25rem;
  background: #fff;
}
.seller-reply-panel .seller-reply-result p { color: #142d25; margin: .25rem 0 0; }
main .seller-reply-panel button:focus-visible { outline-color: #87510d; }

@media screen {
  .kelnu-shortlist[open] {
    margin-block: .25rem .85rem;
    padding: .5rem clamp(.85rem, 3vw, 1.5rem) 1rem;
    border-radius: 1rem;
    background: #102f25;
    color: #f4fff8;
  }
  .kelnu-shortlist[open] > summary { color: #bdf3ce; }
  .kelnu-shortlist fieldset {
    min-inline-size: 0;
    border: 1px solid #91b9a1;
    border-radius: .8rem;
    background: #153c2e;
  }
  .kelnu-shortlist fieldset > :is(p, details, .shortlist-resume) { flex: 1 1 100%; }
  .kelnu-shortlist .shortlist-next-step { color: #c6f5d5; font-weight: 700; }
  .shortlist-resume { display: flex; gap: .45rem; flex-wrap: wrap; }
  .kelnu-shortlist .shortlist-resume a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .35rem .65rem;
    border-radius: .5rem;
    color: #143b2c;
    background: #e8f4e9;
    font-weight: 700;
  }
  main :is(.mot-categories, .how-steps, .garage-quote-grid) > :is(article, div, li) {
    border-color: #bdd4c5;
    background-image: linear-gradient(145deg, #ffffff00, #76ad8d0c);
  }
  main .guide-action { border-inline-start: 3px solid #58a675; }
}

.kelnu-shortlist .shortlist-payment {
  padding: .4rem .8rem;
  border-radius: .75rem;
  background: #f1faf3;
  color: #142d25;
}
.shortlist-payment dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .65rem;
  margin: .3rem 0 .65rem;
}
.shortlist-payment dl > div {
  padding: .65rem .75rem;
  border: 1px solid #c6dccd;
  border-radius: .55rem;
  background: #fff;
  overflow-wrap: anywhere;
}
.shortlist-payment dt { font-weight: 750; color: #14563d; }
.shortlist-payment dd { margin: .2rem 0 0; }
.shortlist-payment dl > div:last-child { background: #e0f2e4; }

.kelnu-shortlist .shortlist-compare { margin-block: .75rem; }
.kelnu-shortlist .shortlist-compare[hidden] { display: none; }
.shortlist-compare-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: .75rem;
}
.shortlist-compare-cards > section {
  min-width: 0;
  padding: .75rem;
  border: 1px solid #b5d3c0;
  border-radius: .65rem;
  background: #fff;
}
.shortlist-compare-cards h3 { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.shortlist-compare-cards dl { grid-template-columns: minmax(0, 1fr); }

.kelnu-shortlist .shortlist-share {
  border: 1px solid #97bea7;
  background: linear-gradient(135deg, #f4fff7, #daeede);
}
.kelnu-shortlist .shortlist-share ul { gap: .35rem; }
.kelnu-shortlist .shortlist-share li { padding: .4rem .6rem; background: #fff; border-radius: .4rem; overflow-wrap: anywhere; }
.shared-mot-finding {
  padding: .85rem 1rem;
  border-inline-start: 4px solid #397d59;
  border-radius: .5rem;
  background: #e1f2e5;
  color: #142d25;
  overflow-wrap: anywhere;
}
