/* Plain Energy: what the kit has no pattern for (article pages, the enquiry form, home details).
   Kit tokens only; the kit files in /assets are never edited. */

/* ---------------------------------------------------------------- enquiry form (the kit's .form rules, on .enquiry) */
.enquiry { --error: color-mix(in oklab, #d92d20 72%, var(--ink)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.enquiry > :is(.field--full, .btn-row, p, .enquiry__check) { grid-column: 1 / -1; }
.enquiry .field { display: grid; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; align-content: start; }
.enquiry .field :is(input, select) { width: 100%; height: var(--btn-h); padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.4 var(--font-text); }
.enquiry .field :is(input, select):focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.enquiry .field :is(input, select)[aria-invalid="true"] { border: 2px solid var(--error); }
.enquiry .field__error { color: var(--error); font-weight: 500; }
.enquiry .field__error[hidden] { display: none; }
.enquiry .btn-row .btn { width: 100%; }
.enquiry__only { font-size: var(--t-small); font-weight: 500; }
.enquiry__check:empty { display: none; }
.enquiry__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .form__status { min-height: 1.5em; font-size: var(--t-small); font-weight: 500; color: var(--ink); }
.enquiry .form__status:empty { min-height: 0; }
.enquiry.is-sent > :not(.form__status) { display: none; }
.enquiry.is-sent .form__status { font-size: var(--t-lead); }
mark.pending { background: color-mix(in oklab, #f5b400 35%, transparent); color: var(--ink); padding: 0 .25em; border-radius: 4px; outline: 1px dashed currentColor; }
@media (max-width: 639px) { .enquiry { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- home */
.photo { border-radius: var(--r-lg); overflow: clip; aspect-ratio: 1; background: var(--surface); }
.photo--wide { aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .photo:not(.photo--wide) { aspect-ratio: 4 / 3; } }
.statement__photo { aspect-ratio: auto; margin-top: var(--s-7); }
@media (max-width: 639px) { .statement__photo { flex: none; aspect-ratio: 4 / 3; } }
.price-note { margin-top: var(--s-5); max-width: 52ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.steps > li { display: grid; gap: var(--s-3); justify-items: start; }
.steps h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin-bottom: var(--s-2); }
.enquiry-card { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-6); }
@media (max-width: 639px) { .enquiry-card { padding: var(--s-5); } }

/* ---------------------------------------------------------------- article pages */
.doc { padding: calc(var(--nav) + var(--s-7)) 0 var(--s-9); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0 0 var(--s-6); padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.doc__head { display: grid; gap: var(--s-5); max-width: 860px; margin-bottom: var(--s-7); }
.doc__head h1 { font-size: clamp(34px, 2.4vw + 24px, 56px); text-wrap: balance; }
.doc__head .t-lead { max-width: 62ch; }
.doc__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-4); margin: var(--s-2) 0 0; }
.doc__facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-1); padding: var(--s-4); background: var(--surface); border-radius: var(--r-md); }
.doc__facts dt { color: var(--muted); font-size: var(--t-small); }
.doc__facts dd { margin: 0; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.doc__jump { display: none; }
.doc__photo { margin: 0 0 var(--s-8); border-radius: var(--r-lg); overflow: clip; aspect-ratio: 21 / 9; background: var(--surface); }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; }
.doc__grid { align-items: start; }

.doc__body { display: grid; gap: var(--s-8); }
.doc__body > section { display: grid; gap: var(--s-4); }
.doc__body h2 { font-size: clamp(26px, 1vw + 20px, 34px); margin-bottom: var(--s-2); text-wrap: balance; }
.doc__body h3 { font: 500 var(--t-card)/1.35 var(--font-text); }
.doc__body p, .doc__body li { font-size: 17px; line-height: 1.65; max-width: 68ch; }
.doc__body :is(ul, ol) { display: grid; gap: var(--s-2); margin: 0; padding-left: 1.25em; }
.doc__body li::marker { color: var(--accent); }
.doc__body strong { font-weight: 600; }
.doc__body .note { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); font-size: var(--t-body); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.table-wrap:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--t-body); font-variant-numeric: tabular-nums; }
.table-wrap caption { caption-side: top; text-align: left; padding: var(--s-3) var(--s-4); color: var(--muted); font-size: var(--t-small); border-bottom: 1px solid var(--line); }
.table-wrap :is(th, td) { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: var(--t-small); font-weight: 500; color: var(--muted); background: var(--surface); white-space: nowrap; }
.table-wrap tbody th { font-weight: 500; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }

.doc__body .faq { display: grid; gap: 0; }
.doc__body .faq__item { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.doc__body .faq__item:first-child { padding-top: 0; }
.doc__sources ul { list-style: none; padding: 0; }
.doc__sources li { font-size: var(--t-small); color: var(--muted); }
.doc__related ul { list-style: none; padding: 0; gap: 0; }
.doc__related li { max-width: none; }
.doc__related a { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.doc__related a > span:first-child { font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .doc__related a:hover > span:first-child { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; } }

.doc__aside { position: sticky; top: calc(var(--nav) + var(--s-5)); }
.doc__form { display: grid; gap: var(--s-5); padding: var(--s-6); background: var(--surface); border-radius: var(--r-lg); }
.doc__form h2 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.02em; }
.doc__form .enquiry { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1023px) {
  .doc__jump { display: flex; }
  .doc__aside { position: static; margin-top: var(--s-8); }
}
@media (max-width: 639px) {
  .doc { padding-top: calc(var(--nav) + var(--s-5)); }
  .doc__photo { aspect-ratio: 4 / 3; margin-bottom: var(--s-7); }
  .doc__body { gap: var(--s-7); }
  .doc__body p, .doc__body li { font-size: var(--t-body); }
  .doc__form { padding: var(--s-5); }
  .doc__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc__facts dd { font-size: 20px; }
}

/* Phone hero: a shorter photo band keeps the h1, lead and both buttons on the first screen. */
@media (max-width: 639px) { .hero--photo { --photo: 36svh; } }
/* The footer disclosure is a sentence, not a lead: body size keeps the links under the closing photo. */
.closing__links .footer__lede { font-size: var(--t-body); max-width: 44ch; }
@media (min-width: 640px) { .closing__links ul { gap: var(--s-2); } }
