/* Greenmoral v5 · pages.css (agent C: migrated content pages). Loaded via <!--@head--> on those pages only.
   Builds on site.css tokens; no section margins here (rhythm comes from .sec). */

/* numbered link rows: <div class="rows"><a href><span>01</span><div><h3/><p/></div></a></div> */
.rows { border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 44px; }
.rows a > span { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue-d); font-size: .95rem; }
.dk .rows a > span { color: var(--blue); }
.rows h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); letter-spacing: -.02em; line-height: 1.2; }
.rows p { margin: .35rem 0 0; color: var(--sub); font-size: .98rem; line-height: 1.5; }
.rows a::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid var(--blue-d); border-top: 2px solid var(--blue-d); transform: rotate(45deg); margin-right: .4rem; transition: transform 150ms var(--ease); }
@media (hover: hover) { .rows a:hover h3 { text-decoration: underline; text-underline-offset: .15em; } .rows a:hover::after { transform: translateX(3px) rotate(45deg); } }
@media (max-width: 559px) { .rows a { grid-template-columns: 2.2rem 1fr auto; gap: .7rem; } }

/* "read next" links under a text section */
.links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 0; padding: 0; list-style: none; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }
.links-h { font-size: .85rem; font-weight: 600; color: var(--sub); margin: 0 0 .3rem; text-transform: none; }

/* two-column text layout: heading left, prose right (wide screens) */
.cols { display: grid; gap: 1.2rem clamp(2rem, 6vw, 6rem); }
@media (min-width: 960px) { .cols { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.cols > h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.08; }
.cols .prose { max-width: 62ch; }
.cols + .cols { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }

/* simple check list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.ticks li { position: relative; padding-left: 2rem; font-size: 1.05rem; line-height: 1.5; color: var(--body); }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .32em; width: .45rem; height: .85rem; border-right: 2px solid var(--blue-d); border-bottom: 2px solid var(--blue-d); transform: rotate(45deg); }
.dk .ticks li::before { border-color: var(--blue); }
@media (min-width: 760px) { .ticks--2 { grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; } }

/* hero facts line and phone line under CTAs */
.phero .tel { margin: 1.1rem 0 0; font-size: .95rem; color: var(--sub); }
.phero .tel a { color: inherit; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.phero__media .ill { position: absolute; left: .9rem; top: .9rem; }
.phero__media figcaption:not(.ill) { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .8rem; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

/* proof tile: one project figure with link */
.proof { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .proof { grid-template-columns: 1.1fr 1fr; align-items: stretch; } }
.proof__img { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 18rem; background: var(--card); }
.proof__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proof__b { background: var(--card); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; }
.proof__b .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 6vw, 4.6rem); letter-spacing: -.04em; line-height: 1; margin: .6rem 0 .4rem; color: var(--ink); }
.dk .proof__b .n { color: #F5F5F7; }
.proof__b .n small { font-size: .45em; }
.proof__b p { color: var(--sub); line-height: 1.5; margin: .4rem 0 0; }
.proof__b .more { margin-top: auto; padding-top: 1.4rem; }
.proof__logo { height: 34px; width: auto; max-width: 160px; object-fit: contain; object-position: left; }

/* contact */
.contact-big { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1.15; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; padding: .2rem 0; }
.contact-big + .contact-big { margin-top: .4rem; }
@media (hover: hover) { .contact-big:hover { color: var(--blue-d); } }
.contact-meta { margin-top: 1.8rem; display: grid; gap: 1.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); color: var(--body); line-height: 1.55; }
.contact-meta b { display: block; color: var(--ink); font-size: .85rem; margin-bottom: .2rem; }

/* offert: intro + form */
.quote-layout { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 960px) { .quote-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.quote-layout > section h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; }
.quote-layout > section p { color: var(--body); font-size: 1.05rem; line-height: 1.6; margin: 1rem 0 0; max-width: 46ch; }
.quote-layout > section .contact-big { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.form h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.form .micro, .form [role=status] { font-size: .85rem; line-height: 1.5; color: var(--sub); margin: 0; }
.form [role=status]:empty { display: none; }
.form [role=status]:focus { outline: none; }
.form .full { width: 100%; justify-self: stretch; }
#quote-review { background: var(--white); border-radius: 16px; padding: 1.3rem; display: grid; gap: .8rem; }
#quote-review[hidden] { display: none; }
#quote-review h3 { font-size: 1.15rem; }
#quote-review pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: .9rem; line-height: 1.5; background: var(--mist); border-radius: 12px; padding: 1rem; color: var(--ink); }
#quote-review .pill { justify-self: start; }

/* energy comparison (/inventering/) */
.energy { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .energy { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } }
.energy .form__row { grid-template-columns: 1fr; }
@media (min-width: 640px) { .energy .form__row { grid-template-columns: 1fr 1fr; } }
.energy__out { background: var(--black); color: #F5F5F7; border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); min-height: 100%; }
.energy__out .lbl { font-size: .85rem; color: #A1A1A6; margin: 0; }
.energy__out .ph { color: #A1A1A6; line-height: 1.5; margin: .6rem 0 0; }
#energy-result h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .8rem; color: #F5F5F7; }
#energy-result p { margin: .5rem 0 0; line-height: 1.5; color: #D2D2D7; }
#energy-result p:nth-of-type(3) { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: var(--blue); line-height: 1.2; margin-top: 1rem; }
#energy-result p:last-child { font-size: .8rem; color: #A1A1A6; margin-top: 1rem; }
#energy-result:focus { outline: none; }
#energy-result[hidden] { display: none; }
#energy-result:not([hidden]) + .ph { display: none; }

/* spec / facts table inside a split */
.specs-t td:first-child { color: var(--sub); width: 38%; }

/* archive notice + news meta */
.meta { display: grid; gap: .3rem 1.6rem; grid-template-columns: max-content 1fr; margin: 0 0 1.4em; padding: 1.2rem 1.4rem; background: var(--card); border-radius: var(--radius-s); }
.meta dt { font-weight: 600; color: var(--ink); }
.meta dd { margin: 0; }

/* logos on light ground without the homepage section */
.logos--plain { margin-top: 0; }

/* 404 */
.e404 .rows { max-width: 760px; margin: 0 auto; text-align: left; }

/* legal pages: slightly smaller h2 so long documents scan */
.legal h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); margin-top: 2.2em; }
.prose .links { padding-left: 0; margin: 0; }
.prose .links li { margin: 0; }
.prose .links a { text-decoration: none; }
.prose .links-h { margin: 2rem 0 .2rem; }
.proof__logo--tall { height: 64px; }
.rows--wide a { grid-template-columns: 5rem 1fr auto; }
@media (max-width: 559px) { .rows--wide a { grid-template-columns: 1fr auto; } .rows--wide a > span { grid-column: 1 / -1; margin-bottom: -.6rem; } }

/* news posts: publish date (same look as .kmeta in content.css) */
.kmeta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.88rem; color: var(--sub); }

/* Phones: tables that are not marked --wide must fit the screen instead of clipping. */
@media (max-width: 560px) {
  .table:not(.table--wide) table { table-layout: fixed; }
  .table:not(.table--wide) th, .table:not(.table--wide) td { padding: 0.8rem 0.8rem; overflow-wrap: anywhere; hyphens: auto; }
  .table:not(.table--wide) .num { white-space: normal; }
}
