/*
Theme Name: Tiny House News 1.0.6.25
Theme URI: https://tinyhousenews.org/
Author: Tiny House News
Author URI: https://tinyhousenews.org/
Description: A classic WordPress theme for TINY HOUSE NEWS: affordable housing pathways, cooperative solutions, static location browsing, savings-share rental assistance, tiny houses, shared housing co-ops, and worker co-op opportunities. Design direction based on Theme 1.0 homepage concept #2: Georgia headings, Arial body/UI, central wilderness imagery, inland lakes/streams, and coast-to-inland relocation contrast.
Version: 1.0.6.25
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiny-house-news
Tags: blog, custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, block-styles, accessibility-ready
*/

:root {
  --thn-forest: #0f3424;
  --thn-forest-2: #173f2d;
  --thn-pine: #25553e;
  --thn-sage: #6f8b64;
  --thn-moss: #a9b66e;
  --thn-paper: #f7f2e4;
  --thn-paper-2: #fffaf0;
  --thn-tan: #e8d7ad;
  --thn-line: #c9b98e;
  --thn-lake: #5d98a7;
  --thn-lake-dark: #1f5e6a;
  --thn-sky: #ddecf0;
  --thn-ink: #102018;
  --thn-muted: #5d6359;
  --thn-clay: #b95e42;
  --thn-gold: #d8b765;
  --thn-heading: Georgia, Cambria, serif;
  --thn-body: Arial, Helvetica, sans-serif;
  --thn-ui: Arial, Helvetica, sans-serif;
  --thn-radius: 18px;
  --thn-shadow: 0 20px 70px rgba(15, 52, 36, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--thn-ink);
  background:
    radial-gradient(circle at 20% 5%, rgba(209, 226, 192, 0.65), transparent 32rem),
    linear-gradient(180deg, #fbf7e8 0%, var(--thn-paper) 46%, #edf5ea 100%);
  font-family: var(--thn-body);
  font-size: 16px;
  line-height: 1.58;
}
a { color: var(--thn-lake-dark); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--thn-forest); }
img { max-width: 100%; height: auto; }

.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.thn-container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -44px;
  left: 12px;
  background: var(--thn-forest);
  color: white;
  padding: 10px 14px;
  z-index: 1000;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247, 242, 228, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 52, 36, 0.14);
}
body.admin-bar .site-header { top: 32px; }
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 218px;
  text-decoration: none;
  color: var(--thn-ink);
}
.site-logo-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}
.site-title {
  margin: 0;
  font-family: var(--thn-ui);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  text-transform: uppercase;
  line-height: 1;
}
.site-tagline {
  margin: 5px 0 0;
  color: var(--thn-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}
.main-navigation { display: flex; align-items: center; gap: 12px; }
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  display: block;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--thn-ink);
  text-decoration: none;
  font-family: var(--thn-ui);
  font-weight: 700;
  font-size: 0.79rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: rgba(95, 152, 167, 0.16);
  color: var(--thn-forest);
}
.thn-header-cta,
.wp-block-button__link,
.thn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--thn-forest);
  color: #fff;
  padding: 11px 16px;
  text-decoration: none;
  font-family: var(--thn-ui);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 52, 36, 0.2);
}
.thn-header-cta:hover,
.thn-button:hover,
.wp-block-button__link:hover { background: var(--thn-lake-dark); color: #fff; }

.thn-header-cta.channel-watch {
  background: #d91515;
  color: #fff;
  border: 1px solid rgba(122, 0, 0, 0.22);
  box-shadow: 0 8px 18px rgba(172, 0, 0, 0.22);
}
.thn-header-cta.channel-watch:hover {
  background: #b90000;
  color: #fff;
}
.thn-play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.42em solid transparent;
  border-bottom: 0.42em solid transparent;
  border-left: 0.68em solid #fff;
  transform: translateX(1px);
}
.thn-blank-page {
  min-height: 42vh;
}
.thn-blank-page .entry-header {
  padding-bottom: 56px;
}
.thn-button.secondary { background: var(--thn-paper-2); color: var(--thn-forest); border: 1px solid rgba(15, 52, 36, 0.28); box-shadow: none; }
.thn-button.secondary:hover { background: #fff; color: var(--thn-lake-dark); }
.menu-toggle { display: none; }

.site-main { flex: 1; }

.thn-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(15, 52, 36, 0.12);
}
.thn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(247, 242, 228, 0.94) 0%, rgba(247, 242, 228, 0.82) 39%, rgba(247, 242, 228, 0.15) 69%, rgba(247, 242, 228, 0.35) 100%),
    url('assets/svg/wilderness-hero.svg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.thn-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(247, 242, 228, 0.95));
  z-index: 1;
}
.thn-hero-content {
  position: relative;
  z-index: 2;
  padding: 78px 0 44px;
  display: grid;
  grid-template-columns: minmax(300px, 550px) 1fr;
  gap: 36px;
  align-items: end;
}
.thn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 7px 12px;
  background: rgba(15, 52, 36, 0.08);
  border: 1px solid rgba(15, 52, 36, 0.16);
  border-radius: 999px;
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.thn-hero h1,
.entry-title,
.page-title {
  font-family: var(--thn-heading);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
  color: var(--thn-ink);
  font-weight: 700;
}
.thn-hero .lead {
  max-width: 46rem;
  margin: 0 0 26px;
  font-size: clamp(1.03rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: #21332b;
}
.thn-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.thn-hero-note {
  display: grid;
  gap: 12px;
  align-self: end;
  justify-self: end;
  max-width: 410px;
}
.thn-mini-card {
  border-radius: var(--thn-radius);
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(15, 52, 36, 0.18);
  box-shadow: var(--thn-shadow);
  padding: 18px;
}
.thn-mini-card strong { display: block; color: var(--thn-forest); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; }
.thn-mini-card p { margin: 8px 0 0; }

.thn-section { padding: 70px 0; }
.thn-section.compact { padding: 44px 0; }
.thn-section-title {
  font-family: var(--thn-heading);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.thn-section-kicker {
  margin: 0 0 10px;
  color: var(--thn-lake-dark);
  font-family: var(--thn-ui);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
.thn-section-intro { max-width: 760px; margin: 0 0 30px; color: #3e4d44; font-size: 1.06rem; }

.thn-pathway-grid,
.thn-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.thn-card {
  position: relative;
  min-height: 100%;
  border-radius: var(--thn-radius);
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(15, 52, 36, 0.18);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 52, 36, 0.08);
}
.thn-card-inner { padding: 22px; }
.thn-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  background: rgba(95, 152, 167, 0.16);
  color: var(--thn-forest);
  font-size: 1.5rem;
}
.thn-card h3 {
  margin: 0 0 8px;
  font-family: var(--thn-ui);
  font-size: 1.05rem;
  line-height: 1.12;
  color: var(--thn-forest);
}
.thn-card p { margin: 0; color: #415047; font-size: 0.94rem; }
.thn-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.thn-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(15, 52, 36, 0.08);
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-size: 0.72rem;
  font-weight: 800;
}

.thn-search-panel {
  border-radius: 28px;
  padding: clamp(22px, 4vw, 40px);
  background: linear-gradient(135deg, rgba(15, 52, 36, 0.96), rgba(31, 94, 106, 0.94));
  color: #fff;
  box-shadow: var(--thn-shadow);
}
.thn-search-panel .thn-section-title { color: #fff; }
.thn-search-panel .thn-section-intro { color: rgba(255,255,255,0.86); }
.thn-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.thn-field { display: grid; gap: 8px; }
.thn-field label {
  font-family: var(--thn-ui);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.thn-field input,
.thn-field select,
.thn-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 52, 36, 0.2);
  padding: 12px 13px;
  font-family: var(--thn-ui);
  font-size: 0.95rem;
  background: #fffaf0;
  color: var(--thn-ink);
}
.thn-search-panel .thn-field input,
.thn-search-panel .thn-field select { border-color: rgba(255,255,255,0.28); }
.thn-field input[type="range"] { padding: 0; accent-color: var(--thn-moss); }
.thn-range-value { font-weight: 900; color: #f3e2a8; }

.thn-coast-inland {
  background: linear-gradient(180deg, rgba(255,250,240,0.55), rgba(223,235,216,0.75));
  border-block: 1px solid rgba(15, 52, 36, 0.12);
}
.thn-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.thn-image-card {
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(15,52,36,0.16);
  box-shadow: var(--thn-shadow);
  background: var(--thn-sky);
}
.thn-image-card.coast {
  background-image: url('assets/svg/coast-to-inland.svg');
  background-size: cover;
  background-position: left center;
}
.thn-image-card.inland {
  background-image: url('assets/svg/coast-to-inland.svg');
  background-size: cover;
  background-position: right center;
}
.thn-image-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 52, 36, 0.88);
  color: white;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.thn-map-static {
  border-radius: 28px;
  min-height: 360px;
  background: #e2efd7 url('assets/svg/static-us-map.svg') center/contain no-repeat;
  border: 1px solid rgba(15, 52, 36, 0.16);
  box-shadow: var(--thn-shadow);
  position: relative;
  overflow: hidden;
}
.thn-map-static::after {
  content: "Static map image — filter listings below";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  color: var(--thn-forest);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thn-listing-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.thn-filter-box {
  position: sticky;
  top: 96px;
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,250,240,0.94);
  border: 1px solid rgba(15, 52, 36, 0.16);
  box-shadow: 0 10px 35px rgba(15, 52, 36, 0.08);
}
body.admin-bar .thn-filter-box { top: 128px; }
.thn-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.thn-opportunity-card .thn-card-inner { display: grid; gap: 10px; }
.thn-opportunity-card h2,
.thn-opportunity-card h3 { margin: 0; font-family: var(--thn-heading); font-size: 1.55rem; line-height: 1.05; letter-spacing: -0.025em; }
.thn-opportunity-card .location { color: var(--thn-lake-dark); font-weight: 900; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; }
.thn-cost-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 6px 0;
}
.thn-cost-box {
  border-radius: 16px;
  padding: 12px;
  background: rgba(95, 152, 167, 0.12);
}
.thn-cost-box span { display: block; color: var(--thn-muted); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }
.thn-cost-box strong { display: block; color: var(--thn-forest); font-size: 1.18rem; }
.thn-opportunity-link { margin-top: 8px; }

.thn-calculator {
  border-radius: 28px;
  background: rgba(255,250,240,0.95);
  border: 1px solid rgba(15,52,36,0.16);
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--thn-shadow);
}
.thn-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.thn-calc-output {
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(15,52,36,0.96), rgba(31,94,106,0.93));
  color: white;
}
.thn-calc-output dl { margin: 0; display: grid; gap: 10px; }
.thn-calc-output div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(255,255,255,0.16); padding-bottom: 10px; }
.thn-calc-output dt { color: rgba(255,255,255,0.76); }
.thn-calc-output dd { margin: 0; font-weight: 900; }

.entry-header { padding: 64px 0 30px; }
.entry-content { padding-bottom: 70px; }
.entry-content > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1180px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2,
.entry-content h3 {
  font-family: var(--thn-heading);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.entry-content h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.entry-content h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
.entry-content p { font-size: 1.05rem; }

.site-footer {
  margin-top: auto;
  background: var(--thn-forest);
  color: rgba(255,255,255,0.88);
  padding: 44px 0;
}
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.site-footer a { color: #fff; }
.footer-title { margin: 0 0 8px; color: white; font-family: var(--thn-ui); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 900; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 0; }
  .header-inner { min-height: 64px; }
  .menu-toggle {
    display: inline-flex;
    border: 1px solid rgba(15, 52, 36, 0.2);
    border-radius: 999px;
    padding: 9px 12px;
    background: transparent;
    color: var(--thn-forest);
    font-weight: 900;
  }
  .main-navigation ul {
    position: absolute;
    inset: 64px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,250,240,0.98);
    border: 1px solid rgba(15,52,36,0.16);
    border-radius: 18px;
    box-shadow: var(--thn-shadow);
    padding: 8px;
  }
  .main-navigation.toggled ul { display: flex; }
  .thn-header-cta { display: inline-flex; }
  .thn-hero-content { grid-template-columns: 1fr; padding-top: 54px; }
  .thn-hero-note { justify-self: start; }
  .thn-pathway-grid, .thn-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thn-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thn-split, .thn-calc-grid, .thn-listing-layout { grid-template-columns: 1fr; }
  .thn-filter-box { position: relative; top: auto; }
  .thn-results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .thn-container { width: min(100% - 24px, 1180px); }
  .site-branding { min-width: 0; }
  .site-tagline { display: none; }
  .thn-hero { min-height: 560px; }
  .thn-hero::before { background-position: 64% center; }
  .thn-pathway-grid, .thn-card-grid, .thn-search-grid, .thn-cost-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* === Tiny House News 1.0.4.3 homepage style-guide pass === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 236, 0.97);
  border-bottom: 1px solid rgba(15, 52, 36, 0.14);
  backdrop-filter: blur(10px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(250px, 300px) 1fr auto;
  align-items: center;
  gap: 16px;
}
.site-branding {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}
.site-logo-mark,
.site-logo-image,
.custom-logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
}
.site-branding > span { display: none; }
.main-navigation ul {
  justify-content: center;
  gap: 4px;
}
.main-navigation a {
  padding: 8px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.thn-header-cta {
  padding: 9px 15px;
  font-size: 0.75rem;
  min-width: 112px;
}

.thn-home-104 {
  background: #f7f2e4;
}
.thn-home-stage {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  padding: 16px 0 12px;
}
.admin-bar .thn-home-stage { min-height: calc(100svh - 96px); }
.thn-home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(224px, 31svh, 286px);
  border-radius: 0;
  border: 1px solid rgba(15, 52, 36, 0.16);
  background:
    linear-gradient(90deg, rgba(247,242,228,0.98) 0%, rgba(247,242,228,0.92) 31%, rgba(247,242,228,0.34) 52%, rgba(247,242,228,0.04) 100%),
    var(--thn-hero-image);
  background-size: cover;
  background-position: center center;
  box-shadow: 0 16px 48px rgba(15, 52, 36, 0.16);
}
.thn-home-copy {
  width: min(500px, 52%);
  padding: clamp(22px, 3.1vw, 34px) 0 clamp(18px, 2.6vw, 28px) clamp(24px, 3.8vw, 42px);
}
.thn-home-copy h1 {
  font-family: var(--thn-heading);
  font-size: clamp(2.35rem, 4.25vw, 4.18rem);
  line-height: 0.96;
  margin: 0 0 12px;
  letter-spacing: -0.055em;
  color: var(--thn-ink);
  text-shadow: 0 1px 0 rgba(255,250,240,0.65);
}
.thn-home-copy p {
  max-width: 31rem;
  margin: 0 0 15px;
  font-family: var(--thn-body);
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  line-height: 1.34;
  color: #17251d;
}
.thn-home-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.thn-home-actions .thn-button {
  padding: 9px 15px;
  font-size: 0.78rem;
  box-shadow: none;
}
.thn-home-pathways {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(15, 52, 36, 0.20);
  border-top: 0;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 12px 28px rgba(15, 52, 36, 0.10);
}
.thn-home-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  gap: 5px;
  min-height: 98px;
  padding: 10px 16px 9px;
  color: var(--thn-ink);
  text-align: center;
  text-decoration: none;
  border-right: 1px solid rgba(15, 52, 36, 0.20);
  background: rgba(255,255,255,0.32);
  transition: background 0.18s ease, transform 0.18s ease;
}
.thn-home-card:last-child { border-right: 0; }
.thn-home-card:hover {
  background: rgba(221, 236, 240, 0.72);
  color: var(--thn-forest);
  transform: translateY(-1px);
}
.thn-home-card .thn-card-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 52, 36, 0.08);
  color: var(--thn-forest);
  font-size: 1.08rem;
  line-height: 1;
  margin: 0;
}
.thn-home-card strong {
  display: block;
  font-family: var(--thn-ui);
  font-size: 0.90rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--thn-forest);
}
.thn-home-card span:last-child {
  display: block;
  max-width: 13rem;
  font-family: var(--thn-body);
  font-size: 0.74rem;
  line-height: 1.22;
  color: #23362d;
}
.thn-coast-banner {
  min-height: 86px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(140px, 0.4fr);
  align-items: end;
  gap: 18px;
  padding: 15px 18px 14px;
  color: #fffaf0;
  text-decoration: none;
  border: 1px solid rgba(15, 52, 36, 0.30);
  border-top: 0;
  box-shadow: 0 12px 28px rgba(15, 52, 36, 0.12);
  background:
    linear-gradient(90deg, rgba(6, 36, 23, 0.88) 0%, rgba(7, 45, 31, 0.78) 31%, rgba(7, 48, 34, 0.32) 58%, rgba(7, 48, 34, 0.58) 100%),
    url('https://www.tinyhousenews.org/wp-content/uploads/2026/06/thn-coast-inland-banner-1043.jpg');
  background-size: cover;
  background-position: center center;
}
.thn-coast-banner:hover { color: #fff; filter: saturate(1.02); }
.thn-coast-text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.thn-coast-text strong {
  font-family: var(--thn-ui);
  font-size: 0.82rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.thn-coast-text span {
  font-size: 0.76rem;
  line-height: 1.12;
  opacity: 0.92;
}
.thn-coast-arrow {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,250,240,0.88);
  color: var(--thn-forest);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(0,0,0,0.16);
}
.thn-coast-label {
  position: relative;
  z-index: 1;
  justify-self: end;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(250,247,236,0.88);
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home .site-footer {
  display: none;
}

@media (max-width: 980px) {
  .admin-bar .site-header { top: 0; }
  .header-inner { grid-template-columns: 1fr auto; min-height: 66px; }
  .site-logo-image, .custom-logo { height: 50px; max-width: 230px; }
  .main-navigation { order: 3; grid-column: 1 / -1; width: 100%; }
  .main-navigation ul { justify-content: flex-start; overflow-x: auto; padding-bottom: 7px; }
  .thn-header-cta { min-width: 0; padding-inline: 13px; }
  .thn-home-stage { min-height: auto; width: min(100% - 24px, 720px); padding-top: 12px; }
  .admin-bar .thn-home-stage { min-height: auto; }
  .thn-home-hero { min-height: 285px; background-position: center center; }
  .thn-home-copy { width: 72%; }
  .thn-home-pathways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thn-home-card { min-height: 116px; }
  .thn-home-card:nth-child(2) { border-right: 0; }
  .thn-home-card:nth-child(-n+2) { border-bottom: 1px solid rgba(15, 52, 36, 0.20); }
  .thn-coast-banner { grid-template-columns: 1fr auto; align-items: center; }
  .thn-coast-label { display: none; }
}
@media (max-width: 560px) {
  .site-header { position: relative; top: auto; }
  .admin-bar .site-header { top: auto; }
  .header-inner { gap: 10px; }
  .site-logo-image, .custom-logo { height: 46px; max-width: 210px; }
  .thn-header-cta { display: inline-flex; font-size: 0.72rem; padding: 8px 11px; }
  .thn-home-hero {
    background:
      linear-gradient(90deg, rgba(247,242,228,0.96) 0%, rgba(247,242,228,0.86) 70%, rgba(247,242,228,0.30) 100%),
      var(--thn-hero-image);
    background-size: cover;
    background-position: 62% center;
  }
  .thn-home-copy { width: 100%; padding: 23px 21px; }
  .thn-home-copy h1 { font-size: 2.35rem; }
  .thn-home-pathways { grid-template-columns: 1fr; }
  .thn-home-card,
  .thn-home-card:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(15, 52, 36, 0.20); }
  .thn-home-card:last-child { border-bottom: 0; }
  .thn-coast-banner { grid-template-columns: 1fr; min-height: 98px; align-items: end; background-position: center; }
  .thn-coast-arrow { display: none; }
}


/* === Tiny House News 1.0.4.3 homepage vertical fit pass ===
   Layout-only update: tighter header, no header-to-hero gap, slightly shorter hero.
*/
.site-header {
  min-height: 66px;
}

.header-inner {
  min-height: 66px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo-image,
.custom-logo {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.main-navigation a {
  padding-top: 8px;
  padding-bottom: 8px;
}

.thn-header-cta {
  min-height: 42px;
  padding: 0.72rem 1.35rem;
}

.home .site-main,
.front-page .site-main {
  padding-top: 0;
}

.thn-home-stage {
  margin-top: 0;
}

.thn-hero {
  min-height: 328px;
  margin-top: 0;
}

.thn-hero-copy {
  padding-top: 28px;
  padding-bottom: 24px;
}

.thn-hero h1,
.thn-hero-title {
  line-height: 0.94;
  margin-bottom: 0.72rem;
}

.thn-hero p,
.thn-hero-copy p {
  margin-bottom: 1.0rem;
}

.thn-pathway-strip {
  min-height: 100px;
}

.thn-pathway-card {
  padding-top: 13px;
  padding-bottom: 12px;
}

.thn-pathway-card .thn-card-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 7px;
}

.thn-pathway-card h2,
.thn-pathway-card h3 {
  margin-bottom: 3px;
}

.thn-coast-inland-banner,
.thn-home-banner {
  min-height: 78px;
}

@media (min-width: 1000px) {
  body:not(.admin-bar) .thn-home-stage {
    max-height: calc(100vh - 70px);
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .site-header,
  .header-inner {
    min-height: auto;
  }

  .site-logo-image,
  .custom-logo {
    max-height: 44px;
  }

  .thn-hero {
    min-height: 420px;
  }

  body:not(.admin-bar) .thn-home-stage {
    max-height: none;
    overflow: visible;
  }
}


/* === Tiny House News 1.0.4.3 homepage breathing-room pass ===
   Bigger cards, bright coast-to-inland banner below the first fold, light about copy,
   and footer restored on the homepage.
*/
.thn-home-1043 .thn-home-stage {
  min-height: auto;
  max-height: none;
  overflow: visible;
  padding-top: 10px;
  padding-bottom: 0;
}

body:not(.admin-bar) .thn-home-1043 .thn-home-stage {
  max-height: none;
  overflow: visible;
}

.thn-home-1043 .thn-home-hero {
  min-height: clamp(285px, 42svh, 372px);
}

.thn-home-1043 .thn-home-copy {
  width: min(520px, 54%);
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(24px, 3.2vw, 40px);
}

.thn-home-1043 .thn-home-copy h1 {
  font-size: clamp(2.65rem, 4.65vw, 4.65rem);
}

.thn-home-1043 .thn-home-copy p {
  font-size: clamp(0.92rem, 1.08vw, 1.05rem);
  line-height: 1.42;
}

.thn-home-1043 .thn-home-card {
  min-height: 134px;
  padding: 18px 20px 17px;
  gap: 7px;
}

.thn-home-1043 .thn-home-card .thn-card-icon {
  width: 34px;
  height: 34px;
  font-size: 1.16rem;
}

.thn-home-1043 .thn-home-card strong {
  font-size: 1.02rem;
  line-height: 1.08;
}

.thn-home-1043 .thn-home-card span:last-child {
  max-width: 15rem;
  font-size: 0.84rem;
  line-height: 1.27;
}

.thn-coast-section {
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto 0;
}

.thn-home-1043 .thn-coast-banner-art {
  display: block;
  width: 100%;
  min-height: clamp(250px, 32vw, 430px);
  padding: 0;
  border: 1px solid rgba(15, 52, 36, 0.18);
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(15, 52, 36, 0.18);
  background-image: url('https://www.tinyhousenews.org/wp-content/uploads/2026/06/thn-coast-inland-banner-1043.jpg');
  background-size: cover;
  background-position: center center;
}

.thn-home-1043 .thn-coast-banner-art:hover {
  filter: saturate(1.04) contrast(1.02);
}

.thn-home-about {
  max-width: 980px;
  padding-top: 34px;
  padding-bottom: 58px;
}

.thn-home-about .thn-kicker {
  margin-bottom: 10px;
}

.thn-home-about p:last-child {
  max-width: 850px;
  margin: 0;
  color: #263a31;
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  line-height: 1.72;
}

.home .site-footer {
  display: block;
}

@media (max-width: 980px) {
  .thn-home-1043 .thn-home-hero {
    min-height: 355px;
  }

  .thn-home-1043 .thn-home-copy {
    width: 74%;
  }

  .thn-home-1043 .thn-home-card {
    min-height: 140px;
  }

  .thn-coast-section {
    width: min(100% - 24px, 720px);
    margin-top: 28px;
  }

  .thn-home-1043 .thn-coast-banner-art {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .thn-home-1043 .thn-home-copy {
    width: 100%;
  }

  .thn-home-1043 .thn-home-copy h1 {
    font-size: 2.55rem;
  }

  .thn-home-1043 .thn-home-card {
    min-height: 126px;
  }

  .thn-home-1043 .thn-coast-banner-art {
    min-height: 300px;
    background-position: center center;
  }

  .thn-home-about {
    padding-top: 26px;
    padding-bottom: 42px;
  }
}

/* Tiny House News 1.0.5.4: bigger top navigation and first section/topic page hierarchy. */
.main-navigation a {
  padding: 9px 12px;
  font-size: clamp(0.98rem, 1.03vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
}

.thn-header-cta {
  font-size: clamp(0.9rem, 0.92vw, 0.98rem);
  font-weight: 900;
}

.thn-link-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.thn-section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  padding: 26px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 52, 36, 0.14);
  box-shadow: var(--thn-shadow-soft);
  color: var(--thn-ink);
  text-decoration: none;
}

.thn-section-link:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 152, 167, 0.45);
}

.thn-section-link-title {
  font-family: var(--thn-heading);
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--thn-forest);
}

.thn-section-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--thn-sun);
  color: var(--thn-forest);
  font-size: 1.55rem;
  font-weight: 900;
}

.thn-back-crumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 24px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 52, 36, 0.14);
  color: var(--thn-forest);
  text-decoration: none;
  font-family: var(--thn-ui);
  font-size: 0.96rem;
  font-weight: 900;
}

.thn-back-crumb span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--thn-forest);
  color: #fff;
  line-height: 1;
}

.thn-back-crumb:hover {
  background: #fff;
  transform: translateX(-2px);
}

@media (max-width: 980px) {
  .main-navigation a {
    font-size: 0.96rem;
  }
}

@media (max-width: 720px) {
  .thn-link-panel {
    grid-template-columns: 1fr;
  }

  .thn-section-link {
    min-height: 112px;
  }
}

/* Tiny House News 1.0.5.4: starter content, Pay-It-Forward calculator page, and mobile banner fix. */
:root {
  --thn-sun: #f4db91;
  --thn-shadow-soft: 0 14px 36px rgba(15, 52, 36, 0.10);
}

.thn-starter-page .entry-header {
  padding-top: clamp(52px, 6vw, 76px);
  padding-bottom: clamp(70px, 8vw, 110px);
}

.thn-starter-page .entry-title,
.thn-pay-forward-page .entry-title {
  max-width: 1100px;
}

.thn-starter-intro {
  max-width: 890px;
  margin: 22px 0 0;
  color: #24382f;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.72;
}

.thn-pay-forward-page {
  background:
    radial-gradient(circle at 10% 6%, rgba(209, 226, 192, 0.55), transparent 29rem),
    linear-gradient(180deg, #fbf7e8 0%, var(--thn-paper) 54%, #f4f0df 100%);
}

.thn-pay-hero {
  padding-top: clamp(42px, 5vw, 66px);
  padding-bottom: 20px;
}

.thn-pay-forward-page .entry-title {
  font-size: clamp(3rem, 5.15vw, 5.2rem);
  line-height: 0.94;
  margin-bottom: 20px;
}

.thn-pay-intro {
  max-width: 835px;
  margin: 0 0 18px;
  color: #1c2e25;
  font-size: clamp(1.02rem, 1.24vw, 1.18rem);
  line-height: 1.64;
}

.thn-calculator-prompt {
  max-width: 900px;
  margin: 0;
  color: var(--thn-forest);
  font-size: clamp(1.03rem, 1.25vw, 1.17rem);
  line-height: 1.45;
  font-weight: 900;
}

.thn-pay-calculator {
  margin: 10px 0 24px;
  padding: clamp(22px, 3.2vw, 40px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 52, 36, 0.17);
  box-shadow: 0 22px 58px rgba(15, 52, 36, 0.12);
}

.thn-pay-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 4vw, 48px);
  row-gap: 22px;
}

.thn-pay-field {
  display: grid;
  gap: 9px;
  font-family: var(--thn-ui);
  color: #14271e;
  font-size: 1rem;
  line-height: 1.25;
}

.thn-pay-field span {
  font-weight: 500;
}

.thn-pay-field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(15, 52, 36, 0.24);
  background: rgba(255, 255, 255, 0.84);
  color: #17251d;
  font-family: var(--thn-heading);
  font-size: clamp(1.18rem, 1.9vw, 1.55rem);
  line-height: 1;
}

.thn-pay-field input[readonly] {
  background: rgba(247, 242, 228, 0.65);
}

.thn-pay-term-fieldset {
  margin: 25px 0 0;
  padding: 0;
  border: 0;
}

.thn-pay-term-fieldset legend {
  margin: 0 0 13px;
  color: #14271e;
  font-family: var(--thn-ui);
  font-size: 1rem;
}

.thn-pay-term-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.thn-pay-term-button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(15, 52, 36, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #14271e;
  font-family: var(--thn-ui);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
}

.thn-pay-term-button.is-selected {
  background: var(--thn-forest);
  border-color: var(--thn-forest);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 52, 36, 0.23);
}

.thn-pay-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 52, 36, 0.14);
}

.thn-pay-result-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  column-gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 18px 20px;
  border-radius: 13px;
  background: rgba(246, 244, 223, 0.86);
  border: 1px solid rgba(15, 52, 36, 0.12);
}

.thn-pay-result-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: rgba(76, 121, 58, 0.93);
  color: #fff;
  font-family: var(--thn-ui);
  font-size: 1.7rem;
  font-weight: 900;
}

.thn-pay-result-label {
  grid-area: label;
  color: #1b2e25;
  font-family: var(--thn-ui);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.22;
}

.thn-pay-result-card strong {
  grid-area: value;
  display: block;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.thn-pay-relief-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid rgba(15, 52, 36, 0.14);
  color: #1f3028;
  font-family: var(--thn-ui);
  font-size: 1rem;
  text-align: center;
}

.thn-pay-relief-row > div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.thn-pay-relief-row strong {
  color: var(--thn-forest);
  font-size: 1.18rem;
  font-weight: 900;
}

.thn-pay-small-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(76, 121, 58, 0.16);
  border: 1px solid rgba(76, 121, 58, 0.24);
  color: var(--thn-forest);
  font-weight: 900;
}

.thn-pay-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin: 0 0 36px;
  padding: 22px 28px;
  border-radius: 18px;
  background: rgba(255, 245, 204, 0.62);
  border: 1px solid rgba(184, 142, 46, 0.28);
}

.thn-pay-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  color: var(--thn-forest);
  font-size: 2.7rem;
  line-height: 1;
}

.thn-pay-note h2 {
  margin: 0 0 2px;
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.2;
  font-weight: 900;
}

.thn-pay-note p {
  margin: 0;
  color: #1c2d24;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.45;
}

.thn-home-1043 .thn-coast-banner-art {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background-image: none;
  background: none;
}

.thn-home-1043 .thn-coast-banner-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

@media (max-width: 980px) {
  .thn-home-1043 .thn-coast-banner-art {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .thn-pay-form-grid,
  .thn-pay-results,
  .thn-pay-relief-row {
    grid-template-columns: 1fr;
  }

  .thn-pay-term-options {
    gap: 10px;
  }

  .thn-pay-result-card {
    min-height: 100px;
  }

  .thn-pay-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .thn-pay-hero {
    padding-top: 34px;
  }

  .thn-pay-forward-page .entry-title {
    font-size: clamp(2.5rem, 13vw, 3.4rem);
  }

  .thn-pay-calculator {
    padding: 18px;
    border-radius: 22px;
  }

  .thn-pay-term-options {
    grid-template-columns: 1fr;
  }

  .thn-home-1043 .thn-coast-banner-art,
  .thn-home-1043 .thn-coast-banner-art img {
    border-radius: 16px;
  }
}

/* Tiny House News 1.0.5.4: percentage slider for Pay-It-Forward calculator. */
.thn-pay-percent-control {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(247, 242, 228, 0.58);
  border: 1px solid rgba(15, 52, 36, 0.12);
}

.thn-pay-percent-control label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  color: #14271e;
  font-family: var(--thn-ui);
  font-size: 1rem;
  line-height: 1.25;
}

.thn-pay-percent-control label span {
  font-weight: 700;
}

.thn-pay-percent-control label strong {
  color: var(--thn-forest);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 900;
  white-space: nowrap;
}

.thn-pay-percent-control input[type="range"] {
  width: 100%;
  accent-color: var(--thn-forest);
  cursor: pointer;
}

.thn-pay-percent-control p {
  margin: 10px 0 0;
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 900;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .thn-pay-percent-control {
    padding: 16px;
  }

  .thn-pay-percent-control label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* Tiny House News 1.0.5.5: compact Pay-It-Forward calculator pass. */
.thn-pay-calculator {
  margin: 8px 0 18px;
  padding: clamp(14px, 1.8vw, 22px);
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: 14px 20px;
}

.thn-pay-form-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 12px;
}

.thn-pay-field {
  gap: 5px;
  font-size: 0.92rem;
}

.thn-pay-field input {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
}

.thn-pay-percent-control {
  grid-column: 1;
  margin-top: 0;
  padding: 13px 16px;
  border-radius: 14px;
}

.thn-pay-percent-control label {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.thn-pay-percent-control label strong {
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
}

.thn-pay-percent-control p {
  margin-top: 6px;
  font-size: 0.93rem;
  line-height: 1.28;
}

.thn-pay-term-fieldset {
  grid-column: 2;
  margin: 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(247, 242, 228, 0.48);
  border: 1px solid rgba(15, 52, 36, 0.12);
}

.thn-pay-term-fieldset legend {
  margin: 0 0 9px;
  font-size: 0.92rem;
}

.thn-pay-term-options {
  gap: 8px;
}

.thn-pay-term-button {
  min-height: 38px;
  font-size: 0.88rem;
}

.thn-pay-term-button.is-selected {
  box-shadow: 0 7px 16px rgba(15, 52, 36, 0.20);
}

.thn-pay-results {
  grid-column: 1 / -1;
  gap: 14px;
  margin-top: 0;
  padding-top: 14px;
}

.thn-pay-result-card {
  min-height: 82px;
  padding: 12px 14px;
  column-gap: 12px;
  border-radius: 12px;
}

.thn-pay-result-icon {
  width: 48px;
  height: 48px;
  font-size: 1.18rem;
}

.thn-pay-result-label {
  font-size: 0.9rem;
}

.thn-pay-result-card strong {
  font-size: clamp(1.65rem, 2.35vw, 2.35rem);
}

.thn-pay-relief-row {
  grid-column: 1 / -1;
  gap: 12px;
  margin-top: 0;
  padding-top: 12px;
  font-size: 0.94rem;
}

.thn-pay-relief-row > div {
  gap: 8px;
}

.thn-pay-relief-row strong {
  font-size: 1.08rem;
}

.thn-pay-small-icon {
  width: 30px;
  height: 30px;
}

.thn-pay-note {
  margin-bottom: 28px;
  padding: 17px 22px;
  border-radius: 16px;
}

.thn-pay-note-icon {
  width: 52px;
  height: 52px;
  font-size: 2.1rem;
}

@media (max-width: 980px) {
  .thn-pay-calculator {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .thn-pay-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thn-pay-percent-control,
  .thn-pay-term-fieldset {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .thn-pay-results,
  .thn-pay-relief-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .thn-pay-calculator {
    padding: 14px;
    border-radius: 20px;
  }

  .thn-pay-form-grid {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .thn-pay-field input {
    min-height: 42px;
  }

  .thn-pay-percent-control,
  .thn-pay-term-fieldset {
    padding: 12px;
  }

  .thn-pay-percent-control label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .thn-pay-term-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .thn-pay-result-card {
    min-height: 74px;
  }
}

/* Tiny House News 1.0.6: Multimedia hub, artwork carousel, and Deep Research starter library. */
.thn-multimedia-page .entry-header,
.thn-media-child-page .entry-header {
  padding-top: clamp(52px, 6vw, 76px);
}

.thn-multimedia-link-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thn-art-carousel-section,
.thn-research-list {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.thn-art-carousel-heading,
.thn-research-list > .thn-section-kicker,
.thn-research-list > h2 {
  max-width: 860px;
}

.thn-art-carousel-heading h2,
.thn-research-list h2 {
  margin: 0;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.thn-art-carousel-heading p:not(.thn-section-kicker) {
  max-width: 720px;
  margin: 12px 0 22px;
  color: #2d4036;
  font-size: 1.05rem;
  line-height: 1.55;
}

.thn-art-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 52, 36, 0.14);
  box-shadow: var(--thn-shadow-soft);
}

.thn-art-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: hidden;
}

.thn-art-slide {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(15, 52, 36, 0.12);
  background: rgba(247, 242, 228, 0.55);
  color: var(--thn-forest);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.thn-art-slide:hover,
.thn-art-slide:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(95, 152, 167, 0.45);
  background: rgba(255, 250, 240, 0.95);
  outline: none;
}

.thn-art-slide-image-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 52, 36, 0.08);
}

.thn-art-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thn-art-slide-title {
  display: block;
  font-family: var(--thn-ui);
  font-weight: 900;
  line-height: 1.2;
}

.thn-art-carousel-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 52, 36, 0.16);
  background: var(--thn-forest);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 52, 36, 0.16);
}

.thn-art-carousel-control:hover,
.thn-art-carousel-control:focus-visible {
  background: var(--thn-lake-dark);
  outline: none;
}

.thn-art-lightbox[hidden] {
  display: none;
}

.thn-art-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(5, 18, 12, 0.82);
}

.thn-art-lightbox figure {
  position: relative;
  width: min(1040px, 100%);
  margin: 0;
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: 24px;
  background: #fffaf0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.thn-art-lightbox img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(15, 52, 36, 0.06);
}

.thn-art-lightbox figcaption {
  padding: 12px 4px 2px;
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-weight: 900;
  text-align: center;
}

.thn-art-lightbox-close {
  position: fixed;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  z-index: 205;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #fffaf0;
  color: var(--thn-forest);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.thn-research-list h2 {
  margin-bottom: 18px;
}

.thn-research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.thn-research-card,
.thn-empty-research-note {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 52, 36, 0.14);
  box-shadow: var(--thn-shadow-soft);
}

.thn-research-card h3,
.thn-empty-research-note h3 {
  margin: 0 0 8px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.thn-research-card h3 a {
  color: inherit;
  text-decoration: none;
}

.thn-research-card p,
.thn-empty-research-note p {
  margin: 0 0 18px;
  color: #2d4036;
}

@media (max-width: 860px) {
  .thn-art-carousel {
    grid-template-columns: 1fr;
  }

  .thn-art-carousel-track,
  .thn-research-grid {
    grid-template-columns: 1fr;
  }

  .thn-art-slide:not(.is-active) {
    display: none;
  }

  .thn-art-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .thn-art-carousel-control.is-prev {
    left: 10px;
  }

  .thn-art-carousel-control.is-next {
    right: 10px;
  }
}

@media (max-width: 720px) {
  .thn-multimedia-link-panel {
    grid-template-columns: 1fr;
  }
}

body.thn-lightbox-open {
  overflow: hidden;
}

.thn-art-slide.is-active {
  border-color: rgba(15, 52, 36, 0.38);
  background: rgba(255, 250, 240, 0.98);
}

/* Tiny House News 1.0.6.3: first research report, blog listing, and Artwork spacing polish. */
.thn-artwork-page .entry-header {
  padding-bottom: clamp(22px, 3.4vw, 38px);
}

.thn-artwork-page .thn-starter-intro {
  margin-top: 16px;
  max-width: 760px;
}

.thn-artwork-page .thn-art-carousel-section {
  padding-top: 0;
}

.thn-artwork-page .thn-art-carousel-heading .thn-section-kicker {
  margin-bottom: 8px;
}

.thn-artwork-page .thn-art-carousel-heading p:not(.thn-section-kicker) {
  margin-top: 0;
}

.thn-blog-list,
.thn-research-list {
  padding-bottom: clamp(58px, 8vw, 104px);
}

.thn-blog-list > .thn-section-kicker,
.thn-blog-list > h2,
.thn-research-list > .thn-section-kicker,
.thn-research-list > h2 {
  max-width: 860px;
}

.thn-blog-list h2,
.thn-research-list h2 {
  margin: 0 0 18px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.thn-blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.thn-blog-grid .thn-research-card {
  max-width: 900px;
}

.thn-card-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--thn-lake-dark);
  font-family: var(--thn-ui);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.thn-card-eyebrow span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(216, 183, 101, 0.36);
  color: var(--thn-forest);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.thn-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.thn-text-link {
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-weight: 900;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

.thn-report-content {
  padding-bottom: clamp(64px, 8vw, 110px);
}

.thn-report-download-card {
  margin-top: 34px;
  padding: clamp(24px, 3.3vw, 36px);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(15, 52, 36, 0.15);
  box-shadow: var(--thn-shadow-soft);
}

.thn-report-download-card h2 {
  margin-top: 0;
}

.thn-report-download-card p {
  max-width: 680px;
}

.wp-block-file {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(247, 242, 228, 0.75);
  border: 1px solid rgba(15, 52, 36, 0.12);
}

.wp-block-file__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  border-radius: 999px;
  background: var(--thn-forest);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--thn-ui);
  font-weight: 800;
  text-decoration: none;
}

.wp-block-file__button:hover,
.wp-block-file__button:focus-visible {
  background: var(--thn-lake-dark);
  color: #fff;
}

@media (max-width: 720px) {
  .thn-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .wp-block-file__button {
    margin: 12px 0 0;
  }
}


/* Tiny House News 1.0.6.3: tighter Deep Research and Blog vertical rhythm. */
.thn-deep-research-page .entry-header,
.thn-blog-page .entry-header {
  padding-top: clamp(44px, 5vw, 64px);
  padding-bottom: clamp(32px, 4.4vw, 52px);
}

.thn-deep-research-page .entry-title,
.thn-blog-page .entry-title {
  font-size: clamp(3.1rem, 5.2vw, 5rem);
}

.thn-deep-research-page .thn-starter-intro {
  margin-top: 18px;
  max-width: 820px;
  line-height: 1.62;
}

.thn-deep-research-page .thn-research-list,
.thn-blog-page .thn-blog-list {
  padding-top: 0;
  padding-bottom: clamp(46px, 6vw, 78px);
}

.thn-deep-research-page .thn-research-list h2,
.thn-blog-page .thn-blog-list h2 {
  margin-bottom: 14px;
}

.thn-deep-research-single .entry-header {
  padding-top: clamp(42px, 5vw, 62px);
  padding-bottom: clamp(24px, 3vw, 38px);
}

.thn-deep-research-single .entry-title {
  max-width: 950px;
  font-size: clamp(3rem, 5.1vw, 4.85rem);
  line-height: 0.95;
}

.thn-deep-research-single .thn-report-content {
  padding-bottom: clamp(50px, 6.5vw, 84px);
}

.thn-deep-research-single .entry-content > p:first-child {
  margin-top: 0;
}

.thn-deep-research-single .entry-content p {
  max-width: 920px;
  font-size: clamp(1rem, 1.18vw, 1.08rem);
  line-height: 1.66;
}

.thn-deep-research-single .thn-report-download-card {
  margin-top: clamp(20px, 2.6vw, 30px);
  padding: clamp(20px, 2.7vw, 30px);
}

.thn-deep-research-single .thn-report-download-card h2 {
  font-size: clamp(1.9rem, 3.1vw, 3rem);
  line-height: 1;
}

@media (max-width: 720px) {
  .thn-deep-research-page .entry-title,
  .thn-blog-page .entry-title,
  .thn-deep-research-single .entry-title {
    font-size: clamp(2.7rem, 12vw, 3.7rem);
  }

  .thn-deep-research-single .entry-header,
  .thn-deep-research-page .entry-header,
  .thn-blog-page .entry-header {
    padding-bottom: 26px;
  }
}

/* Tiny House News 1.0.6.3: Work expansion, Co-op page, homepage CTA labels, and dual Worker Co-op section links. */
.thn-work-link-panel .thn-section-link-title,
.thn-coop-link-panel .thn-section-link-title {
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.thn-portal-intro {
  margin-top: clamp(-18px, -1.4vw, -8px);
  margin-bottom: 20px;
}

.thn-portal-intro p {
  margin: 0;
  color: #24382f;
  font-family: var(--thn-ui);
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
  font-weight: 800;
}

.thn-coop-page .thn-link-panel {
  padding-top: 0;
}

.thn-crumb-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 24px;
}

.thn-crumb-stack .thn-back-crumb {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .thn-work-link-panel .thn-section-link,
  .thn-coop-link-panel .thn-section-link {
    gap: 10px;
    padding: 20px 18px;
  }

  .thn-work-link-panel .thn-section-link-title,
  .thn-coop-link-panel .thn-section-link-title {
    font-size: 1.02rem;
  }

  .thn-work-link-panel .thn-section-link-arrow,
  .thn-coop-link-panel .thn-section-link-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
}

/* Tiny House News 1.0.6.7: homepage banner flip map, mobile list, Goals, and Contact content. */
.thn-location-flip {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  min-height: 0;
  overflow: visible;
  perspective: 1600px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.thn-location-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(.2,.72,.18,1);
}

.thn-location-flip.is-flipped .thn-location-flip-card {
  transform: rotateY(180deg);
}

.thn-location-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 52, 36, 0.18);
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(15, 52, 36, 0.18);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.thn-location-face-front {
  display: block;
  padding: 0;
  cursor: pointer;
  background: transparent;
  appearance: none;
}

.thn-location-face-front img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  object-fit: cover;
}

.thn-location-face-front:hover img,
.thn-location-face-front:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
}

.thn-location-face-front:focus-visible,
.thn-map-back-button:focus-visible,
.thn-map-listings-button:focus-visible,
.thn-mobile-list-controls select:focus-visible {
  outline: 3px solid rgba(216, 183, 101, 0.95);
  outline-offset: 4px;
}

.thn-location-cue {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fffaf0;
  background: rgba(15, 52, 36, 0.78);
  border: 1px solid rgba(255, 250, 240, 0.52);
  font-family: var(--thn-ui);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(15, 52, 36, 0.22);
}

.thn-location-face-back {
  display: grid;
  padding: clamp(12px, 1.5vw, 18px);
  color: var(--thn-forest);
  background:
    radial-gradient(circle at 12% 12%, rgba(221, 236, 240, 0.9), transparent 18rem),
    linear-gradient(135deg, #e7f1df 0%, #fffaf0 60%, #ddecf0 100%);
  transform: rotateY(180deg);
}

.thn-map-back-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid rgba(15, 52, 36, 0.22);
  border-radius: 999px;
  color: var(--thn-forest);
  background: rgba(255, 250, 240, 0.9);
  font-family: var(--thn-ui);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.thn-banner-map {
  position: relative;
  display: grid;
  grid-template-columns: 22% 1fr 22%;
  grid-template-rows: 1fr auto 1fr;
  gap: clamp(6px, 1vw, 12px);
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 8px 4px 4px;
}

.thn-mainland-map {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  min-width: 0;
}

.thn-mainland-map svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
}

.thn-map-mainland-shape {
  fill: #fffaf0;
  stroke: var(--thn-forest);
  stroke-width: 7;
  stroke-linejoin: round;
}

.thn-map-river-line {
  fill: none;
  stroke: rgba(111, 139, 100, 0.62);
  stroke-width: 7;
  stroke-linecap: round;
}

.thn-map-placeholder-dots circle {
  fill: rgba(31, 94, 106, 0.42);
  stroke: #fffaf0;
  stroke-width: 5;
}

.thn-map-inset {
  display: grid;
  align-items: center;
  gap: 2px;
  padding: clamp(7px, 1vw, 11px);
  border: 1px solid rgba(15, 52, 36, 0.25);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.82);
}

.thn-map-inset span,
.thn-map-territories span,
.thn-map-ocean,
.thn-map-note {
  font-family: var(--thn-ui);
}

.thn-map-inset span {
  color: var(--thn-forest);
  font-size: clamp(0.72rem, 1.05vw, 0.95rem);
  font-weight: 900;
  line-height: 1;
}

.thn-map-inset svg {
  display: block;
  width: 100%;
  height: auto;
}

.thn-map-inset svg path,
.thn-map-inset svg circle {
  fill: #fffaf0;
  stroke: var(--thn-forest);
  stroke-width: 5;
}

.thn-map-inset-ak {
  grid-column: 1;
  grid-row: 1;
}

.thn-map-inset-hi {
  grid-column: 1;
  grid-row: 3;
}

.thn-map-ocean-left {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  color: rgba(31, 94, 106, 0.72);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thn-map-territories {
  display: grid;
  align-content: center;
  gap: 5px;
}

.thn-map-territories span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 999px;
  color: var(--thn-forest);
  background: rgba(255, 250, 240, 0.74);
  font-size: clamp(0.64rem, 0.95vw, 0.85rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.thn-map-territories-pacific {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  justify-items: start;
  padding-top: 34px;
}

.thn-map-territories-caribbean {
  grid-column: 3;
  grid-row: 1 / 4;
  align-self: end;
  justify-items: start;
  padding-bottom: 16%;
}

.thn-map-note {
  position: absolute;
  left: 50%;
  bottom: 5px;
  max-width: min(560px, 58%);
  margin: 0;
  transform: translateX(-50%);
  color: rgba(15, 52, 36, 0.8);
  font-size: clamp(0.68rem, 0.95vw, 0.88rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.thn-mobile-project-list {
  display: none;
}

.thn-goals-content,
.thn-contact-content {
  padding-bottom: clamp(58px, 8vw, 98px);
}

.thn-goal-card,
.thn-contact-card {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 22px 70px rgba(15, 52, 36, 0.13);
}

.thn-goal-card h2,
.thn-contact-card h2 {
  margin: 0 0 14px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.thn-goal-card p,
.thn-contact-card p {
  color: #25372e;
  font-size: clamp(1.02rem, 1.35vw, 1.17rem);
  line-height: 1.72;
}

.thn-brochure-callout {
  display: grid;
  gap: 4px;
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--thn-forest);
  background: linear-gradient(135deg, rgba(216, 183, 101, 0.28), rgba(221, 236, 240, 0.74));
  border: 1px solid rgba(15, 52, 36, 0.16);
}

.thn-brochure-callout span {
  font-family: var(--thn-ui);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.thn-brochure-callout strong {
  font-family: var(--thn-heading);
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

@media (max-width: 820px) {
  .thn-location-cue {
    right: 12px;
    bottom: 10px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .thn-location-flip.is-flipped {
    aspect-ratio: auto;
    min-height: 355px;
  }

  .thn-location-face-back {
    padding: 14px;
  }

  .thn-banner-map {
    display: none;
  }

  .thn-mobile-project-list {
    display: grid;
    align-content: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    padding: 42px 4px 6px;
  }

  .thn-mobile-list-header h2 {
    margin: 0 0 6px;
    color: var(--thn-forest);
    font-family: var(--thn-heading);
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .thn-mobile-list-header p {
    max-width: 34rem;
    margin: 0;
    color: #25372e;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .thn-mobile-list-controls label {
    display: grid;
    gap: 6px;
    color: var(--thn-forest);
    font-family: var(--thn-ui);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .thn-mobile-list-controls select {
    min-height: 42px;
    width: 100%;
    padding: 0 12px;
    border: 1px solid rgba(15, 52, 36, 0.18);
    border-radius: 13px;
    color: var(--thn-forest);
    background: rgba(255, 250, 240, 0.92);
    font-family: var(--thn-ui);
    font-size: 1rem;
    font-weight: 800;
  }

  .thn-mobile-empty-list {
    display: grid;
    gap: 3px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255, 250, 240, 0.74);
    border: 1px solid rgba(15, 52, 36, 0.13);
  }

  .thn-mobile-empty-list strong,
  .thn-mobile-empty-list span {
    color: #25372e;
    font-family: var(--thn-ui);
    line-height: 1.35;
  }

  .thn-mobile-empty-list strong {
    font-size: 0.98rem;
    font-weight: 900;
  }

  .thn-mobile-empty-list span {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .thn-location-flip {
    border-radius: 16px;
  }

  .thn-location-face {
    border-radius: 16px;
  }

  .thn-location-face-front img {
    border-radius: 15px;
  }

  .thn-location-flip.is-flipped {
    min-height: 380px;
  }

  .thn-map-back-button {
    top: 10px;
    right: 10px;
  }

  .thn-goal-card,
  .thn-contact-card {
    border-radius: 22px;
  }
}

/* Tiny House News 1.0.6.7: polished map image and mobile All Listings route. */
.thn-location-cue-mobile { display: none; }

.thn-banner-map-image {
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f7f2e4;
}

.thn-banner-map-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.thn-all-listings-content {
  padding-bottom: clamp(58px, 8vw, 98px);
}

.thn-all-listings-card {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 22px 70px rgba(15, 52, 36, 0.13);
}

.thn-all-listings-card h2 {
  margin: 0 0 14px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.thn-all-listings-card p {
  color: #25372e;
  font-size: clamp(1.02rem, 1.35vw, 1.17rem);
  line-height: 1.72;
}

.thn-all-listings-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.thn-all-listings-controls span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(15, 52, 36, 0.16);
  border-radius: 999px;
  color: var(--thn-forest);
  background: rgba(232, 215, 173, 0.46);
  font-family: var(--thn-ui);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 820px) {
  .thn-location-cue-desktop { display: none; }
  .thn-location-cue-mobile { display: inline-flex; }

  .thn-location-flip.is-flipped {
    aspect-ratio: 5 / 2;
    min-height: 0;
  }
}

/* Tiny House News 1.0.6.7: desktop flipped-map fit polish. */
.thn-home-1043 .thn-banner-map-image {
  padding: clamp(6px, 0.9vw, 12px);
  overflow: hidden;
}

.thn-home-1043 .thn-banner-map-image img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 14px;
}

@media (min-width: 821px) {
  .thn-home-1043 .thn-location-face-back {
    padding: clamp(8px, 1vw, 12px);
  }

  .thn-home-1043 .thn-map-back-button {
    top: clamp(10px, 1.2vw, 14px);
    right: clamp(10px, 1.2vw, 14px);
  }
}

/* Tiny House News 1.0.6.7: force full desktop map image to fit inside flipped banner. */
@media (min-width: 821px) {
  .thn-home-1043 .thn-location-face-back {
    display: block;
    padding: 0;
    overflow: hidden;
    background: #f8f4e6;
  }

  .thn-home-1043 .thn-banner-map-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #f8f4e6;
  }

  .thn-home-1043 .thn-banner-map-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    border-radius: 22px;
  }

  .thn-home-1043 .thn-map-back-button {
    z-index: 5;
  }
}

/* Tiny House News 1.0.6.25: Goals artwork, research report previews, and artwork lightbox arrows. */
.thn-goals-artwork {
  padding-bottom: clamp(58px, 8vw, 98px);
}

.thn-goals-artwork > h2 {
  margin: 0 0 18px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.thn-goals-art-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.thn-goals-art-card {
  margin: 0;
  padding: clamp(12px, 2vw, 18px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 52, 36, 0.14);
  box-shadow: var(--thn-shadow-soft);
}

.thn-goals-art-card a {
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

.thn-goals-art-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.thn-goals-art-card figcaption {
  margin-top: 10px;
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-weight: 900;
}

.thn-art-carousel-track {
  display: flex;
  flex-wrap: nowrap;
}

.thn-art-slide {
  flex: 0 0 calc((100% - 28px) / 3);
}

.thn-art-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 205;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(46px, 5vw, 62px);
  height: clamp(46px, 5vw, 62px);
  border: 0;
  border-radius: 999px;
  background: var(--thn-forest);
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.thn-art-lightbox-nav:hover,
.thn-art-lightbox-nav:focus-visible {
  background: var(--thn-lake-dark);
  outline: none;
}

.thn-art-lightbox-nav.is-prev {
  left: clamp(12px, 2vw, 30px);
}

.thn-art-lightbox-nav.is-next {
  right: clamp(12px, 2vw, 30px);
}

.thn-deep-research-single .thn-report-content p {
  max-width: 920px;
}

@media (max-width: 860px) {
  .thn-art-carousel-track {
    display: grid;
    grid-template-columns: 1fr;
  }

  .thn-art-slide {
    flex-basis: auto;
  }

  .thn-art-lightbox-nav {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .thn-art-lightbox-nav.is-prev {
    left: calc(50% - 76px);
  }

  .thn-art-lightbox-nav.is-next {
    right: calc(50% - 76px);
  }
}

/* Tiny House News 1.0.6.25: actual raster artwork, goals page spacing, and streamlined research download. */
.thn-goals-artwork {
  padding-top: clamp(18px, 3vw, 36px);
}

.thn-goals-art-intro {
  max-width: 920px;
  margin: 0 0 clamp(24px, 4vw, 42px);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.thn-goals-art-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 62px);
}

.thn-goals-art-feature {
  max-width: 920px;
}

.thn-goals-art-copy {
  max-width: 880px;
  margin-bottom: 14px;
}

.thn-goals-art-copy h3 {
  margin: 0 0 10px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.thn-goals-art-copy p:last-child {
  margin-bottom: 0;
}

.thn-goals-art-card {
  width: 100%;
  max-width: 920px;
}

.thn-goals-art-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.thn-goals-art-card figcaption {
  font-size: 0.92rem;
}

.thn-report-download-card h2 {
  margin-bottom: 18px;
}

/* Tiny House News 1.0.6.25: Aerospace topic page, Sitemap page, and Links page sitemap sentence. */
.thn-aerospace-page .thn-topic-card,
.thn-links-card,
.thn-sitemap-card {
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 22px 70px rgba(15, 52, 36, 0.13);
}

.thn-aerospace-page .thn-topic-card,
.thn-links-card {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 38px);
}

.thn-aerospace-page .thn-topic-card h2,
.thn-links-card h2,
.thn-sitemap-card h2 {
  margin: 0 0 18px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  line-height: 1;
  letter-spacing: -0.045em;
}

.thn-aerospace-page .thn-topic-card h2,
.thn-links-card h2 {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.thn-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thn-topic-list li {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 52, 36, 0.13);
  border-radius: 999px;
  color: var(--thn-forest);
  background: rgba(232, 215, 173, 0.38);
  font-family: var(--thn-ui);
  font-weight: 900;
  line-height: 1.2;
}

.thn-links-content,
.thn-aerospace-page .thn-topic-card,
.thn-sitemap-grid {
  padding-bottom: clamp(58px, 8vw, 98px);
}

.thn-links-card p,
.thn-sitemap-intro p {
  color: #25372e;
  font-size: clamp(1.02rem, 1.35vw, 1.17rem);
  line-height: 1.72;
}

.thn-links-card a,
.thn-sitemap-card a {
  color: var(--thn-forest);
  font-weight: 900;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.thn-sitemap-intro {
  max-width: 920px;
  margin-inline: auto;
  padding-bottom: clamp(20px, 3vw, 36px);
}

.thn-sitemap-intro p {
  margin: 0;
}

.thn-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.thn-sitemap-card {
  padding: clamp(20px, 2.5vw, 30px);
}

.thn-sitemap-card h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
}

.thn-sitemap-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thn-sitemap-card li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 52, 36, 0.10);
}

.thn-sitemap-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.thn-sitemap-card span {
  color: #4d5b52;
  font-family: var(--thn-ui);
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .thn-topic-list,
  .thn-sitemap-grid {
    grid-template-columns: 1fr;
  }

  .thn-topic-list li {
    border-radius: 18px;
  }
}


/* Tiny House News 1.0.6.25: map-side All Listings link and video channel header artwork. */
.thn-map-listings-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(15, 52, 36, 0.22);
  border-radius: 999px;
  color: var(--thn-forest);
  background: rgba(255, 250, 240, 0.9);
  font-family: var(--thn-ui);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 52, 36, 0.16);
}

.thn-map-listings-button:hover,
.thn-map-listings-button:focus-visible {
  color: #fffaf0;
  background: var(--thn-forest);
}

@media (max-width: 820px) {
  .thn-map-listings-button {
    display: none;
  }
}

/* Tiny House News 1.0.6.25: second Artwork carousel. */
.thn-artwork-page .thn-art-carousel-section + .thn-art-carousel-section {
  padding-top: 0;
  margin-top: clamp(-34px, -3vw, -18px);
}

.thn-artwork-page .thn-art-carousel-heading .thn-section-kicker {
  font-size: 0.9rem;
}

/* Tiny House News 1.0.6.25: Deconstruct page artwork and website-tour blog post. */
.thn-deconstruct-art-list {
  display: grid;
  gap: clamp(30px, 4vw, 52px);
  padding-bottom: clamp(58px, 8vw, 104px);
}

.thn-deconstruct-art-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 22px 70px rgba(15, 52, 36, 0.13);
}

.thn-deconstruct-art-copy h2 {
  margin: 0 0 12px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(1.8rem, 3.1vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.thn-deconstruct-art-copy p:last-child {
  margin-bottom: 0;
}

.thn-deconstruct-art-card a {
  display: block;
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.thn-deconstruct-art-card img {
  display: block;
  width: 100%;
  height: auto;
}

.single-post .entry-content,
.post.type-post .entry-content {
  max-width: 920px;
  margin-inline: auto;
  padding: 0 24px clamp(54px, 8vw, 96px);
  color: #15251d;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
}

.single-post .entry-content a {
  color: var(--thn-forest);
  font-weight: 900;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

@media (max-width: 860px) {
  .thn-deconstruct-art-card {
    grid-template-columns: 1fr;
  }
}

/* Tiny House News 1.0.6.25: carousel stability, smaller Deconstruct artwork, and blog category/date polish. */
.thn-art-lightbox figure {
  min-height: 140px;
}

.thn-art-lightbox img[src=""] {
  min-height: 0;
}

.thn-art-lightbox img {
  max-width: 100%;
  margin-inline: auto;
}

.thn-deconstruct-art-card {
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
}

.thn-deconstruct-art-card a {
  max-width: 760px;
  justify-self: center;
}

.thn-deconstruct-art-card img {
  max-height: 560px;
  object-fit: contain;
}

.thn-card-meta {
  gap: 8px 10px;
}

.thn-card-meta .thn-category-pill,
.thn-card-meta .thn-extra-pill {
  letter-spacing: 0.08em;
}

.thn-card-meta .thn-category-pill {
  background: var(--thn-cat-accent, var(--thn-forest));
  color: #fffaf0;
}

.thn-card-meta .thn-extra-pill {
  background: color-mix(in srgb, var(--thn-cat-accent, var(--thn-gold)) 24%, #fffaf0);
  color: var(--thn-forest);
}

.thn-card-meta time {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 0;
  color: #58675e;
  font-family: var(--thn-ui);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thn-cat-card {
  --thn-cat-accent: var(--thn-forest);
  border-top: 5px solid var(--thn-cat-accent);
}

.thn-cat-card-deep-research,
.thn-cat-deep-research {
  --thn-cat-accent: #1f5e6a;
}

.thn-cat-card-blog,
.thn-cat-blog {
  --thn-cat-accent: #b95e42;
}

.thn-cat-card-news,
.thn-cat-news {
  --thn-cat-accent: #577d46;
}

.thn-cat-card-announcements,
.thn-cat-announcements {
  --thn-cat-accent: #7a5aa8;
}

.thn-blog-card h3,
.thn-featured-research-card h3 {
  margin-top: 0;
}

@media (max-width: 860px) {
  .thn-deconstruct-art-card {
    grid-template-columns: 1fr;
  }

  .thn-deconstruct-art-card a {
    max-width: 100%;
  }

  .thn-deconstruct-art-card img {
    max-height: none;
  }
}


/* Tiny House News 1.0.6.25: Tiny House Pathways artwork and unlinked Carousel 03 holding page. */
.thn-pathway-art-section,
.thn-carousel-holding-list {
  padding-bottom: clamp(58px, 8vw, 104px);
}

.thn-pathway-art-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}

.thn-pathway-art-copy h2 {
  margin: 0 0 12px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.thn-pathway-art-card,
.thn-carousel-holding-card {
  margin: 0;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: var(--thn-shadow-soft);
}

.thn-pathway-art-card a,
.thn-carousel-holding-card a {
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.thn-pathway-art-card img,
.thn-carousel-holding-card img {
  display: block;
  width: 100%;
  height: auto;
}

.thn-pathway-art-card figcaption,
.thn-carousel-holding-card figcaption {
  margin-top: 10px;
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-size: 0.92rem;
  font-weight: 900;
}

.thn-carousel-holding-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
}

.thn-carousel-holding-card {
  max-width: 980px;
}

@media (max-width: 860px) {
  .thn-pathway-art-section {
    grid-template-columns: 1fr;
  }
}

/* Tiny House News 1.0.6.25: tighter pathway artwork spacing and Shared Housing Co-ops artwork. */
.thn-art-enhanced-page .entry-header {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.thn-art-enhanced-page .thn-pathway-art-section {
  padding-top: 0;
}

@media (max-width: 860px) {
  .thn-art-enhanced-page .entry-header {
    padding-bottom: 28px;
  }
}


/* Tiny House News 1.0.6.25: homepage acre artwork and Contact page web links. */
.thn-home-acre-art {
  max-width: 1180px;
  padding-top: 0;
  padding-bottom: clamp(48px, 7vw, 88px);
  text-align: center;
}

.thn-home-acre-art img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 560px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(15, 52, 36, 0.14);
}

@media (max-width: 700px) {
  .thn-home-acre-art img {
    width: 100%;
    max-height: none;
  }
}

.thn-contact-web,
.thn-main-places {
  max-width: 920px;
  margin: clamp(24px, 4vw, 42px) auto 0;
}

.thn-contact-web .thn-section-kicker {
  margin-bottom: 14px;
}

.thn-social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.thn-social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px 13px;
  color: var(--thn-ink);
  text-decoration: none;
  border: 1px solid rgba(15, 52, 36, 0.15);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 10px 26px rgba(15, 52, 36, 0.08);
}

.thn-social-card:hover,
.thn-social-card:focus-visible,
.thn-main-place-card:hover,
.thn-main-place-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 94, 106, 0.36);
  box-shadow: 0 16px 34px rgba(15, 52, 36, 0.12);
}

.thn-social-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--thn-paper-2);
  font-family: var(--thn-ui);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  border-radius: 9px;
  background: var(--thn-forest);
}

.thn-social-card:nth-child(1) .thn-social-mark { background: #21c35e; }
.thn-social-card:nth-child(2) .thn-social-mark { background: #e62117; }
.thn-social-card:nth-child(3) .thn-social-mark { background: #111111; }
.thn-social-card:nth-child(4) .thn-social-mark { background: #e45a38; }
.thn-social-card:nth-child(5) .thn-social-mark { background: #d62976; }
.thn-social-card:nth-child(6) .thn-social-mark { background: #111111; }
.thn-social-card:nth-child(7) .thn-social-mark { background: #314358; }
.thn-social-card:nth-child(8) .thn-social-mark { background: #222222; }
.thn-social-card:nth-child(9) .thn-social-mark { background: #f36f21; }
.thn-social-card:nth-child(10) .thn-social-mark { background: #4892b8; }
.thn-social-card:nth-child(11) .thn-social-mark { background: #65b84d; }

.thn-social-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.thn-social-text strong {
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-size: 0.92rem;
  font-weight: 900;
}

.thn-social-text span {
  overflow: hidden;
  color: #4f5b51;
  font-family: var(--thn-ui);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thn-main-places {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(15, 52, 36, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(221, 236, 240, 0.76), rgba(255, 250, 240, 0.82));
  box-shadow: 0 18px 50px rgba(15, 52, 36, 0.10);
}

.thn-main-places h2 {
  margin: 0 0 16px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(1.95rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.thn-main-places-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.thn-main-place-card {
  display: grid;
  gap: 6px;
  min-height: 130px;
  align-content: center;
  padding: clamp(18px, 2.4vw, 26px);
  color: var(--thn-ink);
  text-decoration: none;
  border: 1px solid rgba(15, 52, 36, 0.13);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.88);
}

.thn-main-place-card span {
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thn-main-place-card strong {
  color: var(--thn-lake-dark);
  font-family: var(--thn-heading);
  font-size: clamp(1.55rem, 2.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.thn-main-place-youtube {
  position: relative;
}

.thn-main-place-youtube::after {
  content: '';
  display: block;
  min-height: 0;
}

@media (max-width: 860px) {
  .thn-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thn-main-places-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .thn-social-grid {
    grid-template-columns: 1fr;
  }

  .thn-social-card {
    min-height: 62px;
  }
}

/* Tiny House News 1.0.6.25: automatic category post cards for pathway pages. */
.thn-pathway-posts-section {
  padding-top: clamp(24px, 4.5vw, 58px);
  padding-bottom: clamp(58px, 7vw, 104px);
}

.thn-pathway-posts-heading {
  max-width: 840px;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.thn-pathway-posts-heading h2 {
  margin: 0 0 12px;
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.thn-pathway-posts-heading p:not(.thn-section-kicker) {
  margin: 0;
  max-width: 760px;
  color: #2d4036;
}

.thn-pathway-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.thn-post-preview-card {
  display: flex;
  flex-direction: column;
}

.thn-post-preview-card.has-image {
  padding: 0;
  overflow: hidden;
}

.thn-post-preview-image {
  margin: 0;
  background: rgba(15, 52, 36, 0.08);
}

.thn-post-preview-image a {
  display: block;
}

.thn-post-preview-image img {
  display: block;
  width: 100%;
  height: clamp(180px, 24vw, 260px);
  object-fit: cover;
}

.thn-post-preview-card.has-image .thn-post-preview-body {
  padding: clamp(22px, 3vw, 30px);
}

.thn-post-preview-card.no-image .thn-post-preview-body {
  padding: 0;
}

.thn-post-preview-card h3 a {
  color: inherit;
  text-decoration: none;
}

.thn-pathway-post-empty {
  grid-column: 1 / -1;
}

.thn-cat-housing-coops-posts .thn-category-pill,
.thn-cat-card-housing-coops-posts .thn-category-pill {
  background: rgba(72, 151, 122, 0.20);
  color: var(--thn-forest);
}

@media (max-width: 760px) {
  .thn-pathway-post-grid {
    grid-template-columns: 1fr;
  }
}

/* Tiny House News 1.0.6.25: category-driven blog/page posts, Housing portal panels, and editable Carousel 03. */
.thn-blog-feed-card.has-image.is-side-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.thn-blog-feed-card.has-image.is-side-image .thn-post-preview-body {
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
}

.thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image {
  height: 100%;
  min-height: 238px;
  margin: 0;
}

.thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image a,
.thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img {
  width: 100%;
  height: 100%;
  display: block;
}

.thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img {
  object-fit: cover;
}

.thn-blog-feed-card.no-image .thn-post-preview-body {
  padding: 0;
}

.thn-housing-coops-page + .site-footer,
.thn-housing-coops-page .thn-pathway-posts-section {
  margin-top: 0;
}

.thn-housing-coops-page .thn-pathway-art-section {
  padding-bottom: clamp(22px, 3vw, 34px);
}

.thn-housing-coops-page .thn-pathway-posts-section {
  padding-top: 0;
}

.thn-housing-coops-page .thn-pathway-posts-heading {
  margin-bottom: clamp(14px, 2.2vw, 22px);
}

.thn-housing-portal-page .entry-header {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.thn-housing-portal-page .thn-portal-intro {
  margin-top: 16px;
  margin-bottom: 0;
}

.thn-housing-pathway-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  padding-bottom: clamp(58px, 8vw, 104px);
}

.thn-housing-pathway-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: var(--thn-shadow-soft);
  color: var(--thn-ink);
  text-decoration: none;
}

.thn-housing-pathway-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 152, 167, 0.45);
  box-shadow: var(--thn-shadow);
}

.thn-housing-pathway-image {
  display: block;
  height: clamp(210px, 24vw, 320px);
  overflow: hidden;
  background: rgba(15, 52, 36, 0.08);
}

.thn-housing-pathway-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thn-housing-pathway-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 30px);
}

.thn-housing-pathway-copy .thn-card-eyebrow {
  margin-bottom: 0;
}

.thn-housing-pathway-title {
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.thn-housing-pathway-description {
  color: #25382f;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

.thn-housing-pathway-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(15, 52, 36, 0.92);
  color: #fff;
  font-family: var(--thn-ui);
  font-size: 0.9rem;
  font-weight: 900;
}

.thn-housing-pathway-action span {
  font-size: 1.15rem;
  line-height: 1;
}

.thn-carousel-editor-content {
  padding-bottom: clamp(58px, 8vw, 104px);
}

.thn-carousel-editor-content .wp-block-gallery,
.thn-carousel-editor-content .wp-block-image {
  margin-top: 0;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.thn-carousel-editor-content .wp-block-gallery img,
.thn-carousel-editor-content .wp-block-image img {
  border-radius: 22px;
  box-shadow: var(--thn-shadow-soft);
}

.thn-carousel-editor-content figcaption {
  color: var(--thn-forest);
  font-family: var(--thn-ui);
  font-size: 0.92rem;
  font-weight: 900;
}

@media (max-width: 860px) {
  .thn-blog-feed-card.has-image.is-side-image,
  .thn-housing-pathway-panels {
    grid-template-columns: 1fr;
  }

  .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image {
    min-height: 0;
    max-height: 290px;
  }

  .thn-housing-pathway-image {
    height: clamp(210px, 45vw, 300px);
  }
}

/* Tiny House News 1.0.6.25: compact portal system, fixed-height blog cards, and post category navigation. */
.thn-category-pill {
  text-decoration: none;
}

.thn-category-pill:hover {
  background: var(--thn-forest);
  color: #fff;
}

.thn-blog-single-page .entry-header {
  padding-bottom: clamp(28px, 4vw, 46px);
}

.thn-blog-single-page .thn-post-back-link {
  margin-bottom: 18px;
}

.thn-blog-single-page .thn-card-meta {
  margin-bottom: 16px;
}

.thn-blog-page .thn-blog-feed,
.thn-archive-page .thn-archive-feed {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  padding-bottom: clamp(58px, 8vw, 104px);
}

.thn-blog-page .thn-blog-feed-card,
.thn-archive-page .thn-blog-feed-card {
  min-height: 0;
  height: clamp(228px, 19vw, 260px);
  overflow: hidden;
}

.thn-blog-page .thn-blog-feed-card.has-image.is-side-image,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 31%);
  height: clamp(228px, 19vw, 260px);
  min-height: 0;
  align-items: stretch;
}

.thn-blog-page .thn-blog-feed-card .thn-post-preview-body,
.thn-archive-page .thn-blog-feed-card .thn-post-preview-body,
.thn-blog-page .thn-blog-feed-card.no-image .thn-post-preview-body,
.thn-archive-page .thn-blog-feed-card.no-image .thn-post-preview-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(22px, 2.5vw, 30px);
}

.thn-blog-page .thn-blog-feed-card .thn-card-meta,
.thn-archive-page .thn-blog-feed-card .thn-card-meta {
  margin-bottom: 10px;
}

.thn-blog-page .thn-blog-feed-card h3,
.thn-archive-page .thn-blog-feed-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thn-blog-page .thn-blog-feed-card .thn-post-preview-body > p:not(.thn-card-meta),
.thn-archive-page .thn-blog-feed-card .thn-post-preview-body > p:not(.thn-card-meta) {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thn-blog-page .thn-blog-feed-card .thn-card-actions,
.thn-archive-page .thn-blog-feed-card .thn-card-actions {
  margin-top: auto;
}

.thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image a,
.thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image a,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img {
  height: 100%;
}

.thn-portal-system-page {
  min-height: calc(100vh - 72px);
}

.thn-portal-system-page .entry-header {
  padding-top: clamp(26px, 4vw, 54px);
  padding-bottom: clamp(16px, 2.5vw, 28px);
  text-align: center;
}

.thn-portal-system-page .entry-title {
  margin-bottom: 10px;
  font-size: clamp(3.1rem, 6.4vw, 5rem);
}

.thn-portal-system-page .thn-section-kicker {
  justify-content: center;
}

.thn-portal-system-page .thn-portal-intro {
  max-width: 780px;
  margin: 0 auto;
  color: #22372e;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 500;
  line-height: 1.45;
}

.thn-portal-card-list {
  display: grid;
  gap: 12px;
  max-width: 1040px;
  padding-bottom: clamp(34px, 5vw, 64px);
}

.thn-portal-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.44fr) minmax(0, 0.56fr);
  min-height: 142px;
  overflow: hidden;
  border: 1px solid rgba(15, 52, 36, 0.14);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.93);
  box-shadow: 0 12px 30px rgba(15, 52, 36, 0.09);
  color: var(--thn-ink);
  text-decoration: none;
}

.thn-portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 152, 167, 0.42);
  box-shadow: var(--thn-shadow-soft);
}

.thn-portal-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 142px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 52, 36, 0.13), rgba(95, 152, 167, 0.15));
}

.thn-portal-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
}

.thn-portal-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(15, 52, 36, 0.14);
  color: var(--thn-forest);
  font-size: 2.35rem;
  font-weight: 900;
}

.thn-portal-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: clamp(16px, 2.4vw, 26px);
}

.thn-portal-card-copy .thn-card-eyebrow {
  margin-bottom: 0;
}

.thn-portal-card-title {
  color: var(--thn-forest);
  font-family: var(--thn-heading);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.thn-portal-card-description {
  color: #2a4035;
  font-size: clamp(0.94rem, 1.06vw, 1.03rem);
  line-height: 1.35;
}

.thn-portal-card-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 2px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--thn-forest);
  color: #fff;
  font-family: var(--thn-ui);
  font-size: 0.84rem;
  font-weight: 900;
}

.thn-portal-card-action span {
  line-height: 1;
}

@media (max-width: 860px) {
  .thn-blog-page .thn-blog-feed-card,
  .thn-archive-page .thn-blog-feed-card,
  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image {
    height: auto;
  }

  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image,
  .thn-portal-card {
    grid-template-columns: 1fr;
  }

  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image {
    height: clamp(180px, 52vw, 290px);
  }

  .thn-portal-system-page .entry-header {
    text-align: left;
  }

  .thn-portal-system-page .thn-section-kicker {
    justify-content: flex-start;
  }

  .thn-portal-system-page .thn-portal-intro {
    margin-left: 0;
  }

  .thn-portal-card-media,
  .thn-portal-card-media img {
    min-height: 178px;
    height: 178px;
  }
}

.thn-card-meta .thn-category-pill,
.thn-card-meta .thn-extra-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-family: var(--thn-ui);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.thn-blog-page .thn-featured-research-card.thn-blog-feed-card,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.5vw, 30px);
}

.thn-blog-page .thn-featured-research-card.thn-blog-feed-card h3,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thn-blog-page .thn-featured-research-card.thn-blog-feed-card > p:not(.thn-card-meta),
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card > p:not(.thn-card-meta) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thn-blog-page .thn-featured-research-card.thn-blog-feed-card .thn-card-actions,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card .thn-card-actions {
  margin-top: auto;
}

/* Tiny House News 1.0.6.25: compact portal discipline and blog/post navigation polish. */
:root {
  --thn-portal-card-height: 142px;
  --thn-blog-card-height: 238px;
}

/* Portal pages: no repeated THN eyebrow, tighter first-screen layout. */
.thn-portal-system-page .entry-header {
  padding-top: clamp(10px, 1.6vw, 18px);
  padding-bottom: clamp(10px, 1.6vw, 18px);
  text-align: center;
}

.thn-portal-system-page .entry-title {
  margin: 0 0 6px;
  font-size: clamp(2.7rem, 5.3vw, 4.25rem);
}

.thn-portal-system-page .thn-portal-intro {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.35;
}

.thn-portal-card-list {
  gap: 10px;
  max-width: 1060px;
  padding-bottom: clamp(30px, 4vw, 52px);
}

.thn-portal-card {
  grid-template-columns: 1fr 1fr;
  height: var(--thn-portal-card-height);
  min-height: var(--thn-portal-card-height);
  max-height: var(--thn-portal-card-height);
  border-radius: 14px;
}

.thn-portal-card-media {
  justify-content: flex-start;
  height: var(--thn-portal-card-height);
  min-height: var(--thn-portal-card-height);
  max-height: var(--thn-portal-card-height);
}

.thn-portal-card-media img {
  width: auto;
  min-width: 0;
  max-width: none;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: left center;
}

.thn-portal-card.no-image .thn-portal-card-media {
  justify-content: center;
}

.thn-portal-card-copy {
  justify-content: center;
  gap: 5px;
  padding: 13px 20px;
}

.thn-portal-card-copy .thn-card-eyebrow {
  margin: 0;
  font-size: 0.68rem;
}

.thn-portal-card-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 0.98;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thn-portal-card-description {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thn-portal-card-action {
  padding: 7px 12px;
  font-size: 0.78rem;
}

.thn-portal-card-icon {
  width: 68px;
  height: 68px;
  font-size: 2.1rem;
}

/* Main Blog page: align with compact portal spacing. */
.thn-blog-system-page > .entry-header {
  padding-top: clamp(10px, 1.6vw, 18px);
  padding-bottom: clamp(10px, 1.6vw, 18px);
  text-align: center;
}

.thn-blog-system-page .entry-title {
  margin: 0 0 6px;
  font-size: clamp(2.7rem, 5.3vw, 4.25rem);
}

.thn-blog-system-page .thn-blog-intro {
  max-width: 760px;
  margin: 0 auto;
  color: #22372e;
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  font-weight: 500;
  line-height: 1.35;
}

.thn-blog-page .thn-blog-list {
  padding-top: 0;
  text-align: center;
}

.thn-blog-page .thn-blog-grid,
.thn-blog-page .thn-blog-feed,
.thn-archive-page .thn-archive-feed {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.thn-blog-page .thn-blog-feed-card,
.thn-archive-page .thn-blog-feed-card {
  height: var(--thn-blog-card-height);
  min-height: var(--thn-blog-card-height);
  max-height: var(--thn-blog-card-height);
  overflow: hidden;
}

.thn-blog-page .thn-blog-feed-card.no-image,
.thn-archive-page .thn-blog-feed-card.no-image {
  padding: 0;
}

.thn-blog-page .thn-blog-feed-card.has-image.is-side-image,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 31%);
  height: var(--thn-blog-card-height);
  min-height: var(--thn-blog-card-height);
  max-height: var(--thn-blog-card-height);
}

.thn-blog-page .thn-blog-feed-card .thn-post-preview-body,
.thn-archive-page .thn-blog-feed-card .thn-post-preview-body,
.thn-blog-page .thn-blog-feed-card.no-image .thn-post-preview-body,
.thn-archive-page .thn-blog-feed-card.no-image .thn-post-preview-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 20px 24px;
}

.thn-blog-page .thn-blog-feed-card .thn-card-meta,
.thn-archive-page .thn-blog-feed-card .thn-card-meta {
  margin-bottom: 8px;
}

.thn-blog-page .thn-blog-feed-card h3,
.thn-archive-page .thn-blog-feed-card h3 {
  margin-bottom: 7px;
  font-size: clamp(1.38rem, 2vw, 1.9rem);
}

.thn-blog-page .thn-blog-feed-card .thn-post-preview-body > p:not(.thn-card-meta),
.thn-archive-page .thn-blog-feed-card .thn-post-preview-body > p:not(.thn-card-meta),
.thn-blog-page .thn-featured-research-card.thn-blog-feed-card > p:not(.thn-card-meta),
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card > p:not(.thn-card-meta) {
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
}

.thn-blog-page .thn-blog-feed-card .thn-card-actions,
.thn-archive-page .thn-blog-feed-card .thn-card-actions,
.thn-blog-page .thn-featured-research-card.thn-blog-feed-card .thn-card-actions,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card .thn-card-actions {
  margin-top: auto;
}

.thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.thn-blog-page .thn-featured-research-card.thn-blog-feed-card,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card {
  padding: 20px 24px;
}

.thn-blog-page .thn-featured-research-card.thn-blog-feed-card h3,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card h3 {
  margin-bottom: 7px;
  font-size: clamp(1.38rem, 2vw, 1.9rem);
}

/* Category labels should read as clickable links everywhere they appear. */
a.thn-category-pill,
.thn-card-meta a.thn-category-pill {
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

a.thn-category-pill:hover,
a.thn-category-pill:focus-visible,
.thn-card-meta a.thn-category-pill:hover,
.thn-card-meta a.thn-category-pill:focus-visible {
  background: var(--thn-forest) !important;
  color: #fff !important;
  outline: none;
}

/* Single/research post top navigation. */
.thn-post-back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.thn-deep-research-single .thn-card-meta {
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  :root {
    --thn-blog-card-height: auto;
  }

  .thn-portal-system-page .entry-header,
  .thn-blog-system-page > .entry-header {
    text-align: left;
  }

  .thn-portal-system-page .thn-portal-intro,
  .thn-blog-system-page .thn-blog-intro {
    margin-left: 0;
  }

  .thn-portal-card,
  .thn-blog-page .thn-blog-feed-card,
  .thn-archive-page .thn-blog-feed-card,
  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .thn-portal-card,
  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image {
    grid-template-columns: 1fr;
  }

  .thn-portal-card-media,
  .thn-portal-card-media img {
    height: 176px;
    min-height: 0;
    max-height: 176px;
  }

  .thn-portal-card-media img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
  }

  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image {
    height: clamp(170px, 48vw, 260px);
  }
}

/* Tiny House News 1.0.6.25: portal/card sizing, 5:2 image frames, backlink consistency, and category hover fix. */
:root {
  --thn-portal-card-height: 192px;
  --thn-blog-card-height: 192px;
  --thn-card-standard-width: 980px;
}

/* Standardized top rhythm for portal/index pages: compact but not cramped. */
.thn-portal-system-page .entry-header,
.thn-blog-system-page > .entry-header {
  padding-top: clamp(20px, 2.4vw, 32px);
  padding-bottom: clamp(16px, 2.2vw, 26px);
}

.thn-portal-system-page .entry-title,
.thn-blog-system-page .entry-title {
  margin-bottom: 10px;
}

.thn-portal-system-page .thn-portal-intro,
.thn-blog-system-page .thn-blog-intro {
  margin-top: 0;
}

/* One narrower standard width for portal cards and blog/archive cards. */
.thn-portal-card-list,
.thn-blog-page .thn-blog-grid,
.thn-blog-page .thn-blog-feed,
.thn-archive-page .thn-archive-feed {
  max-width: var(--thn-card-standard-width);
}

.thn-portal-card-list {
  gap: 12px;
}

/* Portal cards: 5:2 image window on the left, text starts at center line. */
.thn-portal-card {
  grid-template-columns: 1fr 1fr;
  height: var(--thn-portal-card-height);
  min-height: var(--thn-portal-card-height);
  max-height: var(--thn-portal-card-height);
}

.thn-portal-card-media {
  width: 100%;
  height: var(--thn-portal-card-height);
  min-height: var(--thn-portal-card-height);
  max-height: var(--thn-portal-card-height);
}

.thn-portal-card.has-image .thn-portal-card-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

.thn-portal-card.no-image .thn-portal-card-media {
  justify-content: center;
}

.thn-portal-card-copy {
  justify-content: center;
  gap: 7px;
  padding: 18px 24px;
}

.thn-portal-card-title {
  font-size: clamp(1.48rem, 2vw, 2.08rem);
}

.thn-portal-card-description {
  font-size: 0.93rem;
  line-height: 1.28;
}

.thn-portal-card-action {
  padding: 8px 13px;
}

/* Blog/archive cards: same standard width and height, with a 5:2 featured image window on the right. */
.thn-blog-page .thn-blog-feed-card,
.thn-archive-page .thn-blog-feed-card,
.thn-blog-page .thn-featured-research-card.thn-blog-feed-card,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card {
  height: var(--thn-blog-card-height);
  min-height: var(--thn-blog-card-height);
  max-height: var(--thn-blog-card-height);
  overflow: hidden;
}

.thn-blog-page .thn-blog-feed-card.has-image.is-side-image,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image {
  grid-template-columns: 1fr 1fr;
  height: var(--thn-blog-card-height);
  min-height: var(--thn-blog-card-height);
  max-height: var(--thn-blog-card-height);
}

.thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image {
  width: 100%;
  height: var(--thn-blog-card-height);
  min-height: var(--thn-blog-card-height);
  max-height: var(--thn-blog-card-height);
  margin: 0;
}

.thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image a,
.thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image a,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img,
.thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img {
  object-fit: cover;
  object-position: center center;
}

.thn-blog-page .thn-blog-feed-card .thn-post-preview-body,
.thn-archive-page .thn-blog-feed-card .thn-post-preview-body,
.thn-blog-page .thn-blog-feed-card.no-image .thn-post-preview-body,
.thn-archive-page .thn-blog-feed-card.no-image .thn-post-preview-body,
.thn-blog-page .thn-featured-research-card.thn-blog-feed-card,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card {
  padding: 18px 24px;
}

.thn-blog-page .thn-blog-feed-card .thn-card-meta,
.thn-archive-page .thn-blog-feed-card .thn-card-meta {
  margin-bottom: 7px;
}

.thn-blog-page .thn-blog-feed-card h3,
.thn-archive-page .thn-blog-feed-card h3,
.thn-blog-page .thn-featured-research-card.thn-blog-feed-card h3,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card h3 {
  margin-bottom: 6px;
  font-size: clamp(1.3rem, 1.8vw, 1.76rem);
  line-height: 1.05;
}

.thn-blog-page .thn-blog-feed-card .thn-post-preview-body > p:not(.thn-card-meta),
.thn-archive-page .thn-blog-feed-card .thn-post-preview-body > p:not(.thn-card-meta),
.thn-blog-page .thn-featured-research-card.thn-blog-feed-card > p:not(.thn-card-meta),
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card > p:not(.thn-card-meta) {
  margin-bottom: 8px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.thn-blog-page .thn-blog-feed-card .thn-card-actions,
.thn-archive-page .thn-blog-feed-card .thn-card-actions,
.thn-blog-page .thn-featured-research-card.thn-blog-feed-card .thn-card-actions,
.thn-archive-page .thn-featured-research-card.thn-blog-feed-card .thn-card-actions {
  margin-top: auto;
}

/* Backlinks: one row, upper-level page names only. */
.thn-crumb-stack,
.thn-post-back-links,
.thn-archive-back-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.thn-crumb-stack .thn-back-crumb,
.thn-post-back-links .thn-back-crumb,
.thn-archive-back-links .thn-back-crumb {
  margin-bottom: 0;
}

/* Category badges: force a visible hover/focus state, especially for Blog. */
.thn-card-meta a.thn-category-pill,
a.thn-category-pill {
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.thn-card-meta a.thn-category-pill:hover,
.thn-card-meta a.thn-category-pill:focus-visible,
a.thn-category-pill:hover,
a.thn-category-pill:focus-visible,
.thn-cat-blog a.thn-category-pill:hover,
.thn-cat-blog a.thn-category-pill:focus-visible,
.thn-cat-card-blog a.thn-category-pill:hover,
.thn-cat-card-blog a.thn-category-pill:focus-visible {
  background: #fffaf0 !important;
  color: var(--thn-forest) !important;
  border-color: var(--thn-forest) !important;
  box-shadow: 0 0 0 2px rgba(15, 52, 36, 0.12) !important;
  transform: translateY(-1px);
  outline: none;
}

/* Category archives should provide a clear route back to Blog without the old oversized spacing feeling disconnected. */
.thn-archive-page .thn-archive-back-links {
  max-width: var(--thn-card-standard-width);
  margin-right: auto;
  margin-left: auto;
  padding-top: clamp(20px, 2.4vw, 32px);
}

@media (max-width: 860px) {
  :root {
    --thn-portal-card-height: auto;
    --thn-blog-card-height: auto;
  }

  .thn-portal-system-page .entry-header,
  .thn-blog-system-page > .entry-header {
    padding-top: clamp(18px, 6vw, 30px);
    padding-bottom: clamp(16px, 5vw, 24px);
  }

  .thn-portal-card,
  .thn-blog-page .thn-blog-feed-card,
  .thn-archive-page .thn-blog-feed-card,
  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image {
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: 1fr;
  }

  .thn-portal-card-media,
  .thn-portal-card.has-image .thn-portal-card-media img,
  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .thn-portal-card.has-image .thn-portal-card-media,
  .thn-portal-card.has-image .thn-portal-card-media img,
  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image {
    aspect-ratio: 5 / 2;
  }

  .thn-portal-card.has-image .thn-portal-card-media img,
  .thn-blog-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img,
  .thn-archive-page .thn-blog-feed-card.has-image.is-side-image .thn-post-preview-image img {
    object-fit: cover;
  }
}
