@layer base, theme, utilities;
:root {
  --ink: #0f172a;
  --muted: #475569;
  --blue: #1d4ed8;
  --emerald: #047857;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --serif: "Playfair Display",Georgia,serif;
  --sans: Inter,system-ui,sans-serif;
}

*,*::before,*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}

h1,h2,h3,p,ul,ol {
  margin: 0;
}

h1,h2,h3 {
  font-family: var(--serif);
  line-height: 1.13;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.35rem,5vw,4rem);
}

h2 {
  font-size: clamp(1.65rem,3vw,2.3rem);
}

h3 {
  font-size: 1.28rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,textarea,select {
  font: inherit;
}

button {
  cursor: pointer;
}

button: disabled {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none!important;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

section[id],main[id],h2[id] {
  scroll-margin-top: 105px;
}

.wrap {
  width: min(100% - 3rem,1180px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  z-index: 30;
}

.skip:focus {
  transform: none;
}

.utility {
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}

.utility-inner,.header-inner,.section-head,.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-inner {
  min-height: 36px;
}

.edition {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  margin-left: .85rem;
  padding-left: .85rem;
  border-left: 1px solid #cbd5e1;
  color: var(--blue);
  font-weight: 700;
}

.edition::before {
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: currentColor;
}

.utility a:hover,.nav a:hover,.text-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .66rem;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand strong {
  display: block;
  font: 700 1.48rem/1 var(--serif);
  white-space: nowrap;
  letter-spacing: -.045em;
}

.brand strong span {
  color: var(--blue);
}

.brand small {
  display: block;
  font-size: .62rem;
  margin-top: .37rem;
  white-space: nowrap;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem,2vw,1.72rem);
  font-size: .88rem;
  font-weight: 650;
  white-space: nowrap;
}

.nav [aria-current] {
  color: var(--blue);
}

.header-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.icon-button,.search-button,.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--line);
  border-radius: .48rem;
  background: #fff;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  padding: .63rem .92rem;
  line-height: 1.3;
}

.search-button:hover,.icon-button:hover,.btn.secondary:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.btn.primary:hover {
  background: #1e40af;
}

.icon {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}

.menu-button {
  display: none;
}

.home {
  padding-block: 2rem 4.8rem;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0,2.12fr) minmax(0,1fr);
  gap: 1.55rem;
}

.feature,.trending,.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: white;
}

.feature {
  background: #f8fafc;
}

.media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(140deg,#ecf4f7,#c0d6e5 65%,#a3bbae);
  position: relative;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--position,center);
  transition: transform .3s ease;
}

.media:hover img {
  transform: scale(1.035);
}

.feature .media {
  aspect-ratio: 2.23;
}

.feature-copy {
  padding: 1.4rem 1.65rem 1.6rem;
}

.feature h1 {
  font-size: clamp(2rem,3.55vw,3.16rem);
  max-width: 21ch;
  margin: .5rem 0 .65rem;
}

.feature p {
  max-width: 64ch;
  color: var(--muted);
}

.feature .meta {
  margin-top: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.eyebrow.home-energy {
  color: #047857;
}

.eyebrow.auto-guides {
  color: #1d4ed8;
}

.eyebrow.smart-money {
  color: #966312;
}

.eyebrow.tech-guides {
  color: #6744a3;
}

.eyebrow.senior-living {
  color: #a3314e;
}

.feature-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: .36rem .64rem;
  border-radius: .3rem;
  color: #fff;
  background: #173455;
}

.meta {
  color: var(--muted);
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.meta b {
  color: var(--ink);
}

.trending {
  padding: 1.35rem;
  align-self: stretch;
}

.trend-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--ink);
}

.trend-title .icon {
  color: var(--blue);
}

.trend-title h2 {
  font-size: 1.46rem;
}

.trend-row {
  display: grid;
  grid-template-columns: 6.05rem 1fr;
  align-items: center;
  gap: .85rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.trend-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trend-row .media {
  border-radius: .38rem;
  aspect-ratio: 1.05;
}

.trend-row h3 {
  font-size: 1.12rem;
  margin: .24rem 0 .38rem;
}

.story-link:hover {
  color: var(--blue);
}

.topic-nav {
  display: flex;
  gap: .56rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 1.38rem 0;
  margin-bottom: 1.9rem;
}

.topic-nav strong {
  font-size: .85rem;
  margin-right: .25rem;
}

.topic-nav a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .39rem .7rem;
  border-radius: 99px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 650;
}

.topic-nav a:hover {
  color: var(--blue);
  border-color: #93c5fd;
}

.topic-nav .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.section-head {
  border-top: 2px solid var(--ink);
  padding: 1rem 0;
  margin-top: 2.8rem;
  align-items: baseline;
}

.topic-nav+.topic-section .section-head {
  margin-top: 0;
}

.section-head .text-link {
  flex-shrink: 0;
}

.text-link {
  color: var(--blue);
  font-weight: 750;
  font-size: .88rem;
}

.section-head p {
  color: var(--muted);
  margin-top: .38rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  transition: border-color .2s,box-shadow .2s;
}

.card:hover {
  border-color: #b9cce5;
  box-shadow: 0 7px 18px #0f172a0a;
}

.card-copy {
  padding: 1rem 1.05rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card h3 {
  margin: .37rem 0 .46rem;
  font-size: 1.29rem;
}

.card p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: .82rem;
}

.card .meta {
  margin-top: auto;
}

.newsletter {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid #dbeafe;
  border-radius: .7rem;
  background: #eff6ff;
}

.newsletter h2 {
  margin: .4rem 0 .55rem;
}

.newsletter p {
  color: var(--muted);
}

.signup {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.signup input {
  flex: 1;
  min-width: 0;
}

.small {
  font-size: .84rem;
  color: var(--muted);
  margin-top: .55rem;
}

.status {
  font-weight: 650;
  margin-top: .65rem;
  color: #065f46;
}

.status:empty {
  display: none;
}

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr 1.18fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.site-footer .brand small,.site-footer p,.site-footer li,.copyright {
  color: #bfcbdc;
}

.site-footer .brand strong span {
  color: #93c5fd;
}

.site-footer p {
  margin-top: .75rem;
  font-size: .9rem;
}

.site-footer h2 {
  font: 750 .95rem/1.35 var(--sans);
  letter-spacing: 0;
  margin: 0 0 .7rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .32rem;
  font-size: .9rem;
}

.site-footer a:hover,.site-footer .link-button:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-notice {
  background: #19263b;
  border: 1px solid #344359;
  border-radius: .5rem;
  padding: 1rem;
}

.footer-notice p {
  margin: 0;
}

.copyright {
  border-top: 1px solid #334155;
  font-size: .78rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.social {
  display: flex;
  gap: .65rem;
  margin-top: .8rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #475569;
  border-radius: 50%;
}

.link-button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  text-align: left;
}

.crumbs {
  font-size: .84rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: .5rem;
  padding: 0;
}

.crumbs li+li::before {
  content: "/";
  color: #64748b;
  margin-right: .5rem;
}

.crumbs a:hover {
  text-decoration: underline;
}

.subpage {
  padding: 2rem 0 4rem;
}

.category-banner {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: clamp(1.5rem,4vw,3.1rem);
  margin-bottom: 1.5rem;
}

.category-banner h1 {
  max-width: 20ch;
  margin: .45rem 0 .7rem;
}

.category-banner p {
  max-width: 65ch;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0,760px) minmax(230px,300px);
  gap: clamp(1.6rem,5vw,4rem);
  justify-content: space-between;
}

.article h1 {
  font-size: clamp(2.35rem,4.65vw,3.9rem);
  margin: .48rem 0 .75rem;
}

.standfirst {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 65ch;
}

.byline {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.25rem 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 800;
  flex: none;
}

.article .media {
  border-radius: .6rem;
  aspect-ratio: 1.82;
  margin-bottom: 1.6rem;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 100px;
}

.aside-widget,.toc,.author-box,.takeaways {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 1.05rem 1.2rem;
  border-radius: .55rem;
  margin-bottom: 1rem;
}

.aside-widget h2,.toc h2,.takeaways h2 {
  font-size: 1.34rem;
  margin: 0 0 .6rem;
}

.aside-widget ul,.aside-widget ol {
  padding-left: 1.1rem;
  margin: .3rem 0;
  font-size: .91rem;
}

.aside-widget li+li {
  margin-top: .55rem;
}

.aside-widget a:hover,.toc a:hover {
  text-decoration: underline;
  color: var(--blue);
}

.ad-slot {
  display: none;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}

.ad-slot.active {
  display: block;
}

.ad-medium {
  min-height: 250px;
}

.ad-tall {
  min-height: 600px;
}

.prose {
  font-size: 1.055rem;
  line-height: 1.78;
  color: #25354b;
  overflow-wrap: anywhere;
}

.prose h2,.prose h3 {
  color: var(--ink);
}

.prose h2 {
  margin: 1.75rem 0 .65rem;
  font-size: 1.7rem;
}

.prose h3 {
  margin: 1.1rem 0 .5rem;
}

.prose p+p,.prose p+ul,.prose ul+p {
  margin-top: .85rem;
}

.prose ul,.prose ol,.toc ul,.takeaways ul {
  padding-left: 1.25rem;
}

.prose li+li {
  margin-top: .3rem;
}

.prose a,.toc a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc,.takeaways {
  margin: 1.35rem 0;
}

.toc li+li,.takeaways li+li {
  margin-top: .3rem;
}

.takeaways {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.author-box {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin: 1.75rem 0 0;
}

.author-box p {
  color: var(--muted);
}

.document {
  width: min(100%,770px);
}

.document .prose {
  margin-top: 1.25rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0,690px) minmax(225px,1fr);
  gap: 2rem;
  margin-top: 1.3rem;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: 1.3rem;
  background: var(--soft);
}

.field {
  display: grid;
  gap: .32rem;
  margin-bottom: .9rem;
}

.field label {
  font-weight: 700;
}

.field textarea {
  resize: vertical;
  min-height: 135px;
}

input: not([type=checkbox]),textarea {
  background: #fff;
  border: 1px solid #94a3b8;
  color: var(--ink);
  border-radius: .4rem;
  padding: .59rem .72rem;
  width: 100%;
}

dialog {
  max-width: min(560px,calc(100% - 1.5rem));
  width: 100%;
  max-height: calc(100% - 2rem);
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: 1.3rem;
  color: var(--ink);
  box-shadow: 0 18px 64px #0f172a45;
}

dialog: :backdrop {
  background: #0f172a80;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  margin-bottom: .8rem;
}

.dialog-head h2 {
  font-size: 1.55rem;
}

.search-results {
  display: grid;
  gap: .45rem;
  margin-top: .75rem;
}

.search-results a {
  padding: .58rem .7rem;
  border-radius: .35rem;
  background: var(--soft);
  display: block;
}

.search-results a:hover {
  background: #eff6ff;
}

.search-results strong {
  display: block;
}

.cookie {
  position: fixed;
  z-index: 12;
  inset: auto 0 0;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 40px #0f172a14;
}

.cookie-inner {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie h2 {
  font: bold .95rem/1.25 var(--sans);
  letter-spacing: 0;
  margin-bottom: .2rem;
}

.cookie p {
  color: var(--muted);
  font-size: .86rem;
}

.cookie-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.cookie-options {
  display: grid;
  gap: .55rem;
  margin: 1rem 0;
}

.cookie-options label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.cookie-options input {
  margin-top: .43rem;
  accent-color: var(--blue);
}

@media(max-width:1050px) {
  .nav {
    gap: .85rem;
    font-size: .8rem;
  }
  .brand small {
    display: none;
  }
  .trend-row {
    grid-template-columns: 4.8rem 1fr;
  }
  .trending {
    padding: 1rem;
  }
  .trending .eyebrow {
    font-size: .68rem;
  }
}

@media(max-width:850px) {
  .menu-button {
    display: inline-flex;
  }
  .site-header .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 25px #0f172a15;
    padding: .65rem max(1.5rem,calc((100% - 1180px)/2));
    font-size: .96rem;
  }
  .site-header .nav.open {
    display: grid;
  }
  .nav a {
    padding: .4rem 0;
  }
  .brand small {
    display: block;
  }
  .header-inner {
    min-height: 68px;
  }
  .feature-layout {
    gap: 1rem;
    grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  }
  .feature .media {
    aspect-ratio: 1.8;
  }
  .feature-copy {
    padding: 1.05rem;
  }
  .article-grid {
    gap: 1.3rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .cookie-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
  }
}

@media(max-width:640px) {
  .wrap {
    width: calc(100% - 2rem);
  }
  .utility-inner {
    font-size: .68rem;
    gap: .35rem;
  }
  .edition {
    margin-left: .3rem;
    padding-left: .3rem;
    gap: .25rem;
  }
  .header-inner {
    gap: .45rem;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand strong {
    font-size: 1.25rem;
  }
  .brand small {
    font-size: .53rem;
  }
  .search-button span {
    display: none;
  }
  .icon-button,.search-button {
    padding: .57rem;
  }
  .home,.subpage {
    padding-top: 1.25rem;
  }
  .feature-layout,.newsletter,.article-grid,.contact-layout {
    grid-template-columns: 1fr;
  }
  .feature .media {
    aspect-ratio: 1.65;
  }
  .trending {
    padding: 1rem;
  }
  .trend-row {
    grid-template-columns: 5.35rem 1fr;
    padding: .75rem 0;
  }
  .trend-row .media {
    aspect-ratio: 1.3;
  }
  .topic-nav {
    margin-bottom: 1.15rem;
  }
  .topic-nav strong {
    width: 100%;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
  }
  .card .media {
    aspect-ratio: 1.82;
  }
  .section-head {
    margin-top: 1.7rem;
    gap: .65rem;
  }
  .section-head .text-link {
    font-size: .77rem;
  }
  .newsletter {
    gap: 1rem;
    padding: 1.1rem;
    margin-top: 2rem;
  }
  .article-aside {
    position: static;
  }
  .footer-grid {
    gap: 1.25rem;
  }
  .footer-grid>div:first-child,.footer-notice {
    grid-column: 1/-1;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .btn {
    font-size: .78rem;
    padding: .55rem .63rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}
