/* Blocksy supplies palette, typography, and the global shell. */
:where(.tl-content, .editor-styles-wrapper) {
  --tl-brand: var(--theme-palette-color-1, #275548);
  --tl-accent: var(--theme-palette-color-2, #924d35);
  --tl-ink: var(--theme-palette-color-3, #242e28);
  --tl-heading: var(--theme-palette-color-4, #1c372d);
  --tl-line: var(--theme-palette-color-5, #d7dfd5);
  --tl-panel: var(--theme-palette-color-6, #edf4ee);
  --tl-cream: var(--theme-palette-color-7, #f8f4e9);
  --tl-paper: var(--theme-palette-color-8, #fff);
  --tl-gutter: clamp(1rem, 4.4vw, 4rem);
  --tl-shell: min(1280px, calc(100% - var(--tl-gutter) * 2));
  color: var(--tl-ink);
}

.tl-content { background: var(--tl-paper); }
.tl-content :is(h1,h2,h3), .tl-home .wp-block-heading {
  font-family: var(--theme-font-family, "Palatino Linotype", Palatino, serif);
  font-weight: 400;
  color: var(--tl-heading);
  line-height: 1.07;
  letter-spacing: -.035em;
}
.tl-content h1 { font-size: clamp(2.2rem, 4.5vw, 4.3rem); }
.tl-content h2, .tl-home h2 { font-size: clamp(1.85rem, 3.1vw, 3.2rem); }
.tl-content h3 { font-size: clamp(1.26rem, 2vw, 1.75rem); }
.tl-content :is(h1,h2,h3) { text-wrap: balance; margin-block: 0 .65em; }
.tl-content p { line-height: 1.7; }
.tl-content :is(p,figure) { margin-block: 0; }
.tl-content a { text-underline-offset: .22em; }
.tl-content ::selection { background: var(--tl-panel); color: var(--tl-heading); }
.tl-content :focus-visible, .tl-blocksy .tl-locale-item a:focus-visible {
  outline: 2px solid var(--theme-palette-color-2, #924d35);
  outline-offset: 4px;
}
.tl-content [hidden] { display: none !important; }
.tl-content .wrap, .tl-home > :where(.tl-paths, .tl-journal, .tl-trust) {
  width: var(--tl-shell);
  margin-inline: auto;
}
.tl-content :where(.button, .wp-block-button__link) {
  --theme-button-background-hover-color: var(--tl-brand);
  --theme-button-text-hover-color: var(--tl-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  padding: .76rem 1.27rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: var(--tl-brand);
  color: var(--tl-paper);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-size: .91rem;
  line-height: 1.35;
  font-weight: 650;
  transition: background-color .2s ease, color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .tl-content :where(.button, .wp-block-button__link) { --theme-button-background-hover-color: var(--tl-accent); }
}
.tl-content .prototype-banner {
  padding: .62rem var(--tl-gutter);
  color: var(--tl-ink);
  font-size: .82rem;
  background: var(--tl-panel);
  text-align: center;
}

.tl-home {
  --tl-section-space: clamp(2.25rem, 2.6vw + 1.6rem, 4rem);
  --tl-section-gap: clamp(1.25rem, 2.3vw, 2rem);
  padding-block-end: var(--tl-section-space);
}
/* The sections set their own rhythm instead of inheriting Blocksy's flow margins. */
:root .tl-home > * { margin-block: 0; }
.tl-home .tl-hero {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  background: var(--tl-cream);
  padding-inline: max(var(--tl-gutter), calc((100% - 1280px) / 2));
  padding-block: clamp(1.8rem, 3.8vw, 3.4rem);
}
.tl-hero-copy { min-width: 0; }
.tl-content .tl-hero h1, .tl-home .tl-hero h1 {
  font-size: clamp(2.55rem, 4.5vw, 4.25rem);
  margin: 0 0 .38em;
  max-width: 15ch;
  text-wrap: balance;
}
.tl-hero-copy > p { max-width: 39ch; font-size: clamp(1rem, 1.42vw, 1.16rem); }
.tl-home .tl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.2rem;
  align-items: center;
  margin-block-start: 1.5rem;
}
.tl-hero-actions :is(.wp-block-buttons, .tl-editorial-link) { margin-block: 0; }
.tl-home .wp-block-buttons .wp-block-button__link { min-block-size: 44px; }
.tl-hero-actions .tl-editorial-link a { text-decoration: underline; }
.tl-home :is(.tl-hero-media, .tl-journal-media, .tl-path-media) { margin: 0; min-width: 0; }
.tl-home :is(.tl-hero-media, .tl-journal-media, .tl-path-media) img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.tl-hero-media img { aspect-ratio: 1.55; border-radius: .6rem; }
.tl-journal-media img { aspect-ratio: 1.35; object-position: 50% 76%; border-radius: .5rem; }
.tl-home figcaption { margin-top: .56rem; text-align: start; font-size: .76rem; color: var(--tl-ink); }
.tl-media-placeholder { min-height: 15rem; display: grid; place-items: center; background: var(--tl-panel); border: 1px solid var(--tl-line); }

.tl-home .tl-paths, .tl-home .tl-journal {
  padding-block: var(--tl-section-space);
}
.tl-section-lead {
  display: grid;
  grid-template-columns: 1fr minmax(0, .64fr);
  gap: .7rem 2rem;
  align-items: end;
  margin-bottom: 1.8rem;
}
.tl-section-lead > p, .tl-feature-copy > p, .tl-journal-copy > p, .tl-trust > p { max-width: 43ch; }
.tl-section-lead h2 { margin: 0; }
.tl-home .tl-path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) repeat(2, minmax(0, 1fr));
  gap: clamp(.7rem, 1.4vw, 1.25rem);
}
.tl-path {
  display: grid;
  grid-template-columns: clamp(3.8rem, 7vw, 6rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(.65rem, 1.2vw, 1rem);
  min-width: 0;
  padding: clamp(.8rem, 1.3vw, 1.2rem);
  border: 1px solid var(--tl-line);
  border-radius: .75rem;
}
.tl-home .tl-path-grid > .tl-path { margin-block: 0; }
.tl-path > .tl-path-visual, .tl-path > .tl-path-body { margin: 0; }
.tl-path-visual img, .tl-card-media img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: .38rem;
}
.tl-path-feature {
  grid-row: span 3;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  background: var(--tl-panel);
  border: 0;
  padding: 0;
  overflow: hidden;
}
.tl-path-feature .tl-path-media img { aspect-ratio: 1.79; }
.tl-path-feature figcaption { margin-inline: 1.15rem; }
.tl-path-feature .tl-path-body { padding: .75rem 1.15rem 1.2rem; }
.tl-path .tl-path-body .tl-editorial-link a { min-block-size: 44px; }
.tl-path-feature .tl-editorial-link a {
  font-family: var(--theme-font-family, Palatino, serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.65vw, 2.4rem);
}
.tl-path:last-child { grid-column: span 2; }
.tl-home .tl-editorial-link { margin-block: 0 .26rem; }
.tl-editorial-link a {
  color: var(--tl-brand);
  font-weight: 650;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  line-height: 1.3;
}
.tl-editorial-link a:hover { color: var(--tl-accent); text-decoration: underline; }
.tl-path-body > p:last-child { font-size: 1rem; line-height: 1.56; }

.tl-home .tl-feature {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(1.5rem, 4.5vw, 4rem);
  padding-inline: max(var(--tl-gutter), calc((100% - 1280px) / 2));
  padding-block: var(--tl-section-space);
  background: var(--tl-panel);
  color: var(--tl-ink);
}
.tl-feature-copy .wp-block-buttons { margin-top: 1.5rem; }
.tl-feature .tl-space-study { background: var(--tl-paper); padding: clamp(1rem, 3vw, 2rem); border-radius: .75rem; }

.tl-home .tl-journal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--tl-section-gap); }
.tl-home .tl-finder + .tl-journal { padding-block-start: calc(var(--tl-section-space) / 2); }
.tl-journal-copy > p:first-of-type { margin-bottom: 1.25rem; }
.tl-journal-copy .tl-editorial-link { border-top: 1px solid var(--tl-line); padding-block: .4rem; margin-block: 0; }
.tl-journal-copy .tl-editorial-link a { min-height: 44px; text-decoration: underline; }
.tl-home .tl-trust {
  border-radius: .6rem;
  background: var(--tl-cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  padding: clamp(1.4rem, 3.2vw, 2.75rem);
}
.tl-home .tl-trust h2 { grid-row: span 2; margin: 0; }

.tl-content .page-intro { padding-block: clamp(2.25rem, 4.3vw, 4rem) clamp(1.5rem, 2.7vw, 2.5rem); }
.tl-content .page-intro h1 { max-width: 18ch; }
.tl-content :is(.intro, .reading-copy) { max-width: 66ch; }
.tl-content .intro { font-size: clamp(1.03rem, 1.46vw, 1.28rem); }
.tl-content .intro:empty, .tl-content .eyebrow { display: none; }
.tl-content .page-content, .tl-content :is(.guide-page, .policy-page, .checker-layout) { padding-bottom: clamp(3rem, 7vw, 6rem); }
.tl-content .reading-copy :is(p, ul, ol), .tl-content .guide-steps :is(p, ul, ol) { margin-block: 0 1.16rem; }
.tl-content .reading-copy :is(h2,h3), .tl-content .guide-steps h2 { margin-block: 1.7em .5em; }
.tl-content :is(.guide-layout,.checker-layout) { display: grid; grid-template-columns: minmax(0, 1.33fr) minmax(0, .67fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.tl-content :is(.guide-layout,.checker-layout) > * { min-width: 0; }
.tl-content .guide-layout { grid-template-areas: "steps diagram"; }
.tl-content .guide-layout:has(.guide-steps:only-child) { grid-template-areas: "steps"; grid-template-columns: 1fr; }
.guide-steps { grid-area: steps; }
.tl-content :is(.hero-art,.footprint,.tl-category-note) { background: var(--tl-panel); padding: clamp(1rem, 2vw, 1.65rem); }
.tl-content :is(.hero-art,.footprint) svg { display: block; width: 100%; height: auto; }
.tl-content :is(.hero-art,.footprint) figcaption { line-height: 1.6; margin-top: .85rem; font-size: .86rem; }
.tl-content .measure-figure {
  grid-area: diagram;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr));
  gap: .75rem;
  background: var(--tl-cream);
  border-radius: .6rem;
}
.measure-figure svg { max-width: 15rem; margin-inline: auto; }
.measure-figure svg + p { margin-block-start: .4rem; font-size: .875rem; line-height: 1.55; }
.measure-figure figcaption { grid-column: 1 / -1; }
.measure-figure .measure-boundary { fill: var(--tl-paper); stroke: var(--tl-brand); stroke-width: 1.5; }
.measure-figure .measure-guide { fill: none; stroke: var(--tl-brand); stroke-width: 1.8; stroke-linecap: round; }
.measure-figure .measure-obstacle { fill: var(--tl-panel); stroke: var(--tl-accent); stroke-width: 1.6; }
.measure-figure .measure-pipe { fill: none; stroke: var(--tl-accent); stroke-width: 2; }
.tl-content .journey-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-block: 1.3rem; }
.tl-content .card-grid, .tl-content .extra-categories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-block: 0 1.5rem; }
.tl-content :is(.card, .extra-categories a) { min-width: 0; padding: 1.2rem; border: 1px solid var(--tl-line); border-radius: .5rem; text-decoration: none; color: var(--tl-heading); }
.tl-content .card:first-child { background: var(--tl-panel); }
.tl-content :is(.card, .extra-categories a):hover { background: var(--tl-cream); }
.tl-content .card :is(h2,h3) { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.tl-space-hub > section + section { margin-block-start: clamp(1.7rem, 5vw, 3.6rem); }
.tl-content .tl-space-hub .card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: .85rem;
  background: var(--tl-paper);
}
.tl-content .tl-space-hub .card:where(:hover, :focus-visible) { background: var(--tl-cream); }
.tl-content .tl-space-hub .card-zone-feature { background: var(--tl-panel); }
.tl-space-hub h3 { margin-block: 0 .5rem; }
.tl-card-media { display: block; }
.tl-card-media img { aspect-ratio: 2.2; object-fit: cover; }
.card-zone-feature .tl-card-media img { object-position: 50% 62%; }
.tl-card-caption { display: block; margin-block-start: .4rem; font-size: .8rem; }
.tl-space-hub > .text-link { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 721px) {
  .tl-content .tl-hub-areas .card-grid { grid-template-columns: 1.21fr 1fr 1fr; }
}
.tl-content .solution-comparison {
  width: 100%;
  margin-block: .8rem 1.35rem;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}
.tl-content .solution-comparison :is(td, th) {
  padding: .9rem;
  text-align: start;
  vertical-align: top;
  border: 1px solid var(--tl-line);
}
.tl-content .solution-comparison thead th { background: var(--tl-panel); }
.tl-content .solution-comparison tbody th { background: var(--tl-cream); color: var(--tl-heading); }
.tl-content .comparison-attribute { display: none; }
.tl-content .comparison-controls button, .tl-content .print-button { background: transparent; color: var(--tl-brand); min-height: 44px; border: 1px solid var(--tl-line); padding: .55rem .8rem; }
.tl-content .comparison-controls button:hover { background: var(--tl-panel); }
.tl-content .comparison-controls button[aria-pressed="true"] { background: var(--tl-brand); color: var(--tl-paper); }
.tl-content .print-button { margin-top: .8rem; }
.tl-content .search-form > div { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.tl-content .search-form input { width: min(100%, 29rem); }
.tl-content .search-results { margin-block: 1.6rem; display: grid; max-width: 43rem; }
.tl-content .search-results a { padding: .85rem 0; border-top: 1px solid var(--tl-line); }
.tl-content .policy-page .text-link { display: inline-block; margin-top: 1.3rem; }

@media screen and (max-width: 46rem) {
  .tl-content .solution-comparison { display: block; }
  /* Keep column headers available to assistive technology in the stacked view. */
  .tl-content .solution-comparison thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tl-content .solution-comparison tbody { display: grid; gap: .8rem; }
  .tl-content .solution-comparison tbody tr {
    display: grid;
    border-radius: .65rem;
    background: color-mix(in srgb, var(--tl-panel) 42%, var(--tl-paper));
  }
  .tl-content .solution-comparison tbody :is(th, td) { display: block; border: 0; }
  .tl-content .solution-comparison tbody th { border-radius: .6rem .6rem 0 0; }
  .tl-content .solution-comparison tbody td + td { border-top: 1px solid var(--tl-line); }
  .tl-content .comparison-attribute {
    display: block;
    margin-block-end: .2rem;
    color: var(--tl-heading);
    font-size: .875rem;
    font-weight: 700;
  }
}
@media (max-width: 850px) {
  .tl-home .tl-hero, .tl-home .tl-feature { gap: 1.6rem; }
  .tl-home .tl-path-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tl-path-feature { grid-row: auto; grid-column: 1 / -1; }
  .tl-path-feature .tl-path-media img { aspect-ratio: 2.25; }
}
@media (max-width: 545px) {
  .tl-home .tl-path-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-home .tl-path-grid > .tl-path { grid-column: auto; }
  .tl-path-feature .tl-path-media img { aspect-ratio: 1.95; }
  .tl-content .tl-space-hub .card:not(.card-zone-feature) {
    grid-template-columns: clamp(4.25rem, 21vw, 7rem) minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .tl-space-hub .card:not(.card-zone-feature) .tl-card-media img { aspect-ratio: 270 / 168; }
}
@media (max-width: 720px) {
  .tl-home .tl-hero, .tl-home .tl-feature, .tl-home .tl-journal, .tl-home .tl-trust,
  .tl-content :is(.guide-layout,.checker-layout), .tl-section-lead { grid-template-columns: 1fr; }
  .tl-home .tl-hero { padding-block: 1.6rem 1.5rem; gap: 1.45rem; }
  .tl-content .tl-hero h1, .tl-home .tl-hero h1 { font-size: clamp(2.15rem, 8.7vw, 3.6rem); }
  .tl-home .tl-hero-media img { aspect-ratio: 1.57; }
  .tl-home .tl-hero-actions { margin-block-start: 1.15rem; }
  .tl-content .guide-layout:has(.measure-figure) { grid-template-areas: "diagram" "steps"; }
  .tl-content :is(.card-grid,.extra-categories) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-content *, .tl-content *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .tl-blocksy :is(header,footer,.prototype-banner,.print-button,.fit-form .form-actions,.fit-notes) { display: none !important; }
  .tl-content .checker-layout { display: block; width: 100%; }
}
