﻿:root {
  color-scheme: light;
  --paper: #f5f8fc;
  --sheet: #fff;
  --ink: #111821;
  --muted: #405368;
  --line: #cbd9e8;
  --blue: #074a9d;
  --light: #e6f0fc;
  --sky: #76bfff;
  --royal: #175ecc;
  --accent-ink: #fff;
  --masthead: #080d15;
  --masthead-ink: #fff;
  --serif: Georgia, Cambria, serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #287ca6; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.07; }
h1, h2, .story-title { overflow-wrap: anywhere; }
h1 { font: 700 clamp(2.45rem, 5vw, 5rem)/.99 var(--serif); letter-spacing: -.056em; }
.wrap { width: min(calc(100% - 3rem), 76rem); margin-inline: auto; }
main { flex: 1; padding-bottom: 4.5rem; }
.skip { position: absolute; z-index: 1; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .5rem 1rem; background: white; }
.skip:focus { transform: none; }
.masthead { background: var(--masthead); color: var(--masthead-ink); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: .9rem 2rem; min-height: 4.65rem; }
.masthead-tools, .masthead-search { display: flex; align-items: center; gap: .8rem; }
.masthead-search { gap: 0; }
.masthead-search input { min-width: 0; width: min(28vw, 15rem); padding: .52rem .7rem; background: #172638; color: white; border: 1px solid #516b87; font: inherit; }
.masthead-search input::placeholder { color: #c6d5e4; }
.masthead-search button, .account-link { padding: .52rem .75rem; border: 1px solid var(--royal); background: var(--royal); color: var(--accent-ink); cursor: pointer; font: 700 .87rem/1.6 var(--sans); text-decoration: none; }
.account-link { background: transparent; border-color: currentColor; color: var(--masthead-ink); }
.masthead-search button:hover, .account-link:hover { background: var(--sky); border-color: var(--sky); color: #111821; }
.masthead-menu { background: #101e31; color: white; border-top: 1px solid #2d4769; border-bottom: 3px solid var(--royal); }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; gap: .76rem; font-size: clamp(1.05rem, 2.6vw, 1.5rem); font-weight: 760; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; background: var(--royal); color: var(--accent-ink); padding: .15rem .55rem; min-height: 2.35rem; font-size: 1.05rem; font-weight: 850; letter-spacing: -.025em; }
.brand-news { font-weight: 420; }
.masthead nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: clamp(.6rem, 2.8vw, 2rem); align-items: center; }
.masthead nav a, .site-footer a { text-decoration: none; font-size: .88rem; font-weight: 650; }
.masthead nav a { display: inline-block; padding-block: .65rem; border-bottom: 2px solid transparent; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--sky); border-color: var(--sky); }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 1.4rem; padding-block: clamp(1.7rem, 4vw, 3.4rem) 1.4rem; }
.intro h1 { font-size: clamp(2.25rem, 4.8vw, 4.05rem); }
.topic-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .7rem; padding: .7rem .85rem; margin-bottom: 1.2rem; background: var(--light); border-left: 3px solid var(--royal); }
.topic-strip a { padding: .18rem .62rem; color: var(--blue); font-size: .86rem; font-weight: 700; text-decoration: none; }
.topic-strip a:hover { text-decoration: underline; }
.topic-strip .topic-index { padding-inline: .2rem .75rem; border-right: 1px solid #9db9df; color: var(--ink); }
.intro p, .page-heading > p { color: var(--muted); margin-top: .65rem; font-size: 1.05rem; }
.button { display: inline-flex; width: fit-content; text-decoration: none; justify-content: center; align-items: center; gap: .8rem; color: white; background: #111821; border: 1px solid var(--line); padding: .6rem .95rem; min-height: 2.7rem; font: 700 .88rem/1.25 var(--sans); cursor: pointer; }
.button:hover { color: #111821; background-color: var(--sky); }
.button.outline { color: var(--ink); background-color: transparent; }
.button.outline:hover { background-color: var(--sky); color: #111821; }
.front-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: clamp(1.35rem, 2.6vw, 2rem); align-items: start; }
.front-grid:has(> :only-child) { grid-template-columns: 1fr; }
.lead { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(27rem, 42vw, 34rem); display: grid; align-items: end; background-color: #111821; color: white; }
.lead-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #10202f 0%, #10202ff5 20%, #10202fc9 42%, #10202f30 76%, #10202f00 100%),
    url('/hvacr-rooftop.jpg') 57% 43% / cover no-repeat,
    linear-gradient(110deg, #527f96, #142737);
}
.lead-copy { padding: clamp(1.35rem, 4vw, 3rem); }
.lead h2 { font: 700 clamp(1.95rem, 3.2vw, 3.5rem)/1.04 var(--serif); letter-spacing: -.035em; margin-top: .4rem; }
.lead h2 a, .story-title a { text-decoration: none; }
.lead h2 a:hover, .story-title a:hover, .source-list h2 a:hover { text-decoration: underline; text-underline-offset: .13em; text-decoration-thickness: .055em; }
.lead-summary { margin: .85rem 0 .9rem; color: #e6edf2; max-width: 60ch; }
.lead-labels { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; }
.edition-label { width: fit-content; padding: .26rem .45rem; background: var(--sky); color: #111821; font-size: .71rem; line-height: 1.35; font-weight: 850; text-transform: uppercase; letter-spacing: .065em; }
.label { display: inline-block; width: fit-content; color: var(--blue); font: 800 .72rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.label:hover { text-decoration: underline; }
.lead .label { color: var(--sky); }
.meta { color: var(--muted); font-size: .83rem; font-weight: 560; }
.lead .meta { color: #c2d2dc; }
.latest { border-top: 4px solid var(--royal); padding: 0 1.2rem 1.2rem; background: var(--sheet); }
.section-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .085em; font-weight: 800; }
.latest > h2 { margin: 1.1rem 0 .35rem; }
.latest .story { padding: .95rem 0 1rem; border-top: 0; border-bottom: 1px solid var(--line); }
.latest .story-summary { display: none; }
.latest > .text-link { margin-top: 1rem; }
.text-link { display: inline-block; color: var(--blue); text-decoration: none; font-weight: 730; font-size: .91rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.more { margin-top: clamp(2.4rem, 4vw, 3.6rem); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.editorial-section, .editorial-list { border-top: 3px solid var(--royal); padding-top: 1.1rem; }
.editorial-section .story, .editorial-list .story { border: 1px solid var(--line); padding: 1.15rem; background: var(--sheet); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.7rem; row-gap: .8rem; }
.story { border-top: 1px solid var(--line); padding: 1rem 0 1.4rem; }
.story-title { font: bold clamp(1.2rem, 2vw, 1.54rem)/1.19 var(--serif); margin: .35rem 0 .6rem; letter-spacing: -.02em; }
.story-summary { color: var(--muted); margin: .6rem 0; font-size: .95rem; }
.source-band { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 2.7rem; padding: 1.4rem 1.65rem; background: var(--light); border-left: 3px solid var(--blue); }
.source-band h2 { font: bold 1.5rem/1.13 var(--serif); }
.source-band p { margin-top: .3rem; color: var(--muted); }
.community-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.2rem; padding: 1.15rem 1.3rem; background: var(--light); border-left: 3px solid var(--blue); }
.community-band h2 { font: bold 1.55rem/1.12 var(--serif); }
.community-band p { margin-top: .35rem; color: var(--muted); font-size: .88rem; }
.home-blocks { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.home-blocks > :is(.topic-strip, .more, .resource-band, .source-band) { margin: 0; }
.site-announcement { padding: .7rem .85rem; margin-bottom: 1.2rem; background: var(--light); border-left: 3px solid var(--royal); }
.defrost-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .25rem .85rem; align-items: center; padding: .48rem .85rem; margin-top: .65rem; background: #fae5aa; border-block: 1px solid #d9ac53; color: #3a260c; }
.home-blocks .defrost-strip { margin: 0; }
.defrost-strip p { margin: 0; overflow-wrap: anywhere; font: 600 .94rem/1.38 var(--serif); }
.defrost-label, .defrost-archive { color: #54320d; font: 800 .76rem/1.25 var(--sans); text-decoration: none; }
.defrost-label { text-transform: uppercase; letter-spacing: .06em; }
.defrost-strip a:hover { text-decoration: underline; }
.defrost-edition { background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid #d9ac53; padding: 1.1rem; }
.defrost-edition h2 { font: 700 1.3rem/1.22 var(--serif); margin: .4rem 0 .6rem; }
.defrost-edition p:last-child { color: var(--muted); }
.page-heading { padding: 2.8rem 0 1.8rem; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; background: var(--light); padding: 1.2rem; margin-bottom: 2.4rem; }
.filters label { display: grid; flex: 1 1 11rem; max-width: 27rem; gap: .3rem; font-size: .87rem; font-weight: 680; }
.filters input, .filters select { font: inherit; font-weight: 400; width: 100%; min-height: 2.7rem; border: 1px solid #768896; background: var(--sheet); color: var(--ink); padding: .55rem; border-radius: 0; }
.filters .text-link { align-self: end; padding: .5rem .1rem; }
.results > h2 { margin-bottom: 1.25rem; }
.page-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem; margin-top: 2rem; }
.page-links :is(a, [aria-current]) { display: grid; place-items: center; min-width: 2.55rem; min-height: 2.55rem; padding: .35rem .7rem; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--blue); background: var(--sheet); }
.page-links a:hover { border-color: var(--blue); text-decoration: underline; }
.page-links [aria-current] { background: var(--royal); border-color: var(--royal); color: var(--accent-ink); }
.empty { padding: 1.4rem; border: 1px solid var(--line); color: var(--muted); }
.reading { width: min(100%, 49rem); margin-inline: auto; padding-top: 2.3rem; }
.reading .page-heading { padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.reading h1 { font-size: clamp(2.2rem, 5.3vw, 4.4rem); margin-top: .45rem; }
.reading .page-heading .meta { font-size: .9rem; }
.standfirst { margin: 1.6rem 0; font: 1.4rem/1.45 var(--serif); }
.editorial-summary { margin: 1.7rem 0; padding: 1rem 1.2rem; background: var(--light); border-left: 4px solid var(--royal); }
.editorial-summary h2 { font: 800 .78rem/1.5 var(--sans); color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.editorial-summary .standfirst { margin: .3rem 0 0; }
.article-body { max-width: 70ch; }
.article-body p { margin-bottom: 1.1rem; white-space: pre-line; overflow-wrap: anywhere; }
.author-credit { margin-top: 1.6rem; padding: .75rem 1rem; border-left: 3px solid var(--royal); background: var(--light); font-weight: 650; }
.author-credit a { color: var(--blue); }
.related { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.related a { color: var(--blue); overflow-wrap: anywhere; }
.source-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.source-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.source-list h2 { font: bold 1.35rem/1.14 var(--serif); margin-bottom: .35rem; }
.source-list h2 a { text-decoration: none; }
.source-list h2 a span { color: var(--blue); font: 700 .85rem/1 var(--sans); }
.source-status { margin-bottom: 1.7rem; padding: .85rem 1.1rem; background: var(--light); font-size: .88rem; }
.site-footer { border-top: 3px solid var(--royal); background: #080d15; color: white; }
.footer-inner { display: grid; grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); gap: 1.4rem; padding-block: 2rem; font-size: .9rem; }
.footer-brand strong { font: 700 1.25rem/1.1 var(--serif); }
.footer-brand p { color: #bacbde; max-width: 29ch; margin-top: .5rem; }
.site-footer .footer-group { display: grid; gap: .42rem; align-content: start; }
.footer-group h2 { font: 800 .75rem/1.2 var(--sans); color: #a7cbf3; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .22rem; }
.footer-group [aria-current] { color: var(--sky); }
.site-footer a:hover { text-decoration: underline; }

.forum { max-width: 56rem; margin-inline: auto; padding-top: 2rem; }
.forum-header { display: grid; gap: .55rem; padding-bottom: 1.5rem; }
.forum-header > p { color: var(--muted); }
.forum-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-block: .5rem; }
.forum-list { list-style: none; margin: 0; padding: 0; }
.forum > h2 { font: 700 1.8rem/1.15 var(--serif); margin-block: 1.35rem .65rem; }
.forum-card, .forum-reply { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.forum-card h3 { font: 700 1.5rem/1.15 var(--serif); margin-bottom: .4rem; overflow-wrap: anywhere; }
.forum-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.forum-form { display: grid; gap: .9rem; max-width: 44rem; margin-block: 1.2rem; padding: 1.25rem; border: 1px solid var(--line); background: var(--sheet); }
.forum-form-inline { display: inline-flex; margin: 0; padding: 0; border: 0; background: transparent; }
.forum-form label { display: grid; gap: .3rem; font-weight: 650; }
.forum-form input:not([type=hidden]), .forum-form textarea { width: 100%; padding: .6rem .7rem; border: 1px solid #768896; border-radius: 0; background: var(--sheet); color: var(--ink); font: inherit; }
.forum-form textarea { resize: vertical; min-height: 8rem; }
.forum-error { padding: .6rem 1rem; border-left: 3px solid #a12635; background: #fff0f1; color: #6b101d; }
.resource-band { display: flex; flex-wrap: wrap; gap: .85rem 1.5rem; align-items: center; justify-content: space-between; margin-top: 1.15rem; padding: 1.25rem 1.4rem; background: #0d315c; color: white; }
.resource-band h2 { font: bold 1.6rem/1.2 var(--serif); }
.resource-band p { margin-top: .35rem; color: #deeeff; }
.resource-band .button { background: var(--sky); color: #111821; border-color: var(--sky); }
.resource-band .button:hover { background: white; border-color: white; }
.section-intro { max-width: 72ch; margin-bottom: 1.6rem; padding-top: clamp(1.8rem, 4vw, 3.2rem); color: var(--muted); }
.section-intro h1 { color: var(--ink); margin-block: 0 .65rem; }
.section-intro p:has(a) { margin-bottom: .75rem; }
.article-detail { width: min(100%, 47rem); margin-inline: auto; }
.article-detail > p { margin-block: 1rem; }
.article-detail > h2 { margin-top: 1.45rem; font: bold 1.65rem/1.12 var(--serif); }
.article-detail a:not(.button), .section-intro a { color: var(--blue); overflow-wrap: anywhere; }
.directory-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-block: 1rem 2rem; }
.directory-card { padding: 1.2rem; border: 1px solid var(--line); border-top: 3px solid var(--royal); background: var(--sheet); }
.directory-card :is(h2, h3) { margin-bottom: .55rem; font-family: var(--serif); }
.directory-card p { margin-bottom: .55rem; color: var(--muted); }
.directory-card a, .resource-list a { color: var(--blue); overflow-wrap: anywhere; }
.state-directory { list-style: none; padding: 0; }
.state-directory .directory-card { padding: .8rem 1rem; }
.state-directory a { display: block; font-weight: 700; }
.directory-card a.button { color: white; }
.directory-card a.button:hover { color: #111821; }
.resource-list { margin-block: .9rem 1.4rem; padding-inline-start: 1.4rem; }
.resource-list li + li { margin-top: .55rem; }

@media (max-width: 830px) {
  .front-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.4rem; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .wrap { width: min(calc(100% - 2rem), 76rem); }
  .masthead-inner { align-items: start; flex-direction: column; gap: .65rem; padding-block: .75rem; }
  .masthead-tools { width: 100%; }
  .masthead-search { flex: 1; min-width: 0; }
  .masthead-search input { flex: 1; width: 0; }
  .masthead nav { gap: .1rem 1rem; }
  .masthead nav a { padding-block: .43rem; }
  .intro { align-items: start; flex-direction: column; padding-top: 2rem; }
  .front-grid, .story-grid, .source-list { grid-template-columns: 1fr; }
  .defrost-strip { grid-template-columns: 1fr auto; }
  .defrost-strip p { grid-column: 1 / -1; grid-row: 2; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest { margin-top: .5rem; }
  .more { margin-top: 2.4rem; }
  .page-heading { padding-top: 2rem; }
}
.tyler-box { width: min(100%, 280px); margin: 0 auto 1rem; padding: .65rem; border: 1px solid var(--line); background: var(--sheet); }
.tyler-box h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.tyler-box img { display: block; width: 100%; height: auto; }
