@charset "UTF-8";
/* Site-wide frame + portal pages. */
/*
 * This is the single stylesheet entry point for generated pages. Keep the
 * shared editorial foundation in style.css; portal and site-frame rules below
 * layer on top of that foundation without requiring a second <link>.
 */
@import url('../style.css');
/* ---------- Emergency Strip ---------- */
.emergency-strip {
  background: var(--limestone); color: var(--muted); text-align: center;
  padding: 0.45rem 1rem; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.02em; border-bottom: 1px solid var(--line);
}
.emergency-strip a { align-items: center; color: var(--oxblood); display: inline-flex; gap: .45rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(122, 46, 29, 0.35); text-decoration-thickness: 1px; }
.emergency-strip a:hover { text-decoration-color: var(--oxblood); }
.content-icon { display: inline-block; flex: 0 0 18px; height: 18px; vertical-align: -.22em; width: 18px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap; padding: 1.25rem 1.5rem;
}
.brand {
  display: inline-flex; align-items: center;
  font-size: 1.5rem; font-weight: 600; text-decoration: none;
  color: var(--green-dark);
}
.brand-icon { width: 32px; height: 32px; color: var(--brass); transition: transform 0.3s; margin-right: 0.6rem; }
.brand:hover .brand-icon { transform: scale(1.05); }
.brand span { font-style: italic; font-weight: 400; color: var(--green); margin-left: 0.18em; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-left: auto; }

/* Mobile-only quote + burger cluster; hidden on desktop so wide layouts are untouched. */
.header-actions { display: none; align-items: center; gap: 0.75rem; margin-left: auto; }
.btn-quote .quote-short { display: none; }
.nav-toggle { display: none; }
html.js .nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; background: transparent;
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--green-dark); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--brass); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav > a, .site-nav .nav-item > a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 0.5rem 0; transition: color 0.2s; border-bottom: 2px solid transparent;
}
.site-nav > a:hover, .site-nav .nav-item > a:hover, .site-nav > a.active {
  color: var(--green-dark); border-bottom-color: var(--brass);
}
.site-header .btn-quote {
  background: transparent; color: var(--green-dark) !important; text-decoration: none;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.55rem 1.15rem; border-radius: 2px; border: 1px solid var(--brass); font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
}
.site-nav .btn-quote { margin-left: 0.5rem; }
.site-header .btn-quote:hover { background: var(--green-dark); color: var(--paper) !important; border-color: var(--green-dark); border-bottom-color: var(--green-dark); }

/* Services dropdown */
.nav-item.has-menu { position: relative; }
.nav-item.has-menu > a::after {
  content: ""; display: inline-block; width: 0.42em; height: 0.42em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.18em); margin-left: 0.45em; opacity: 0.65;
}
.nav-item.has-menu .menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  z-index: 50; min-width: 14rem; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--green-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); padding: 0.5rem 0;
}
.nav-item.has-menu:hover .menu, .nav-item.has-menu:focus-within .menu { display: block; }
.nav-item.has-menu .menu a {
  display: block; color: var(--ink); text-decoration: none;
  padding: 0.75rem 1.5rem; font-size: 0.95rem; border-bottom: none;
}
.nav-item.has-menu .menu a:hover, .nav-item.has-menu .menu a:focus-visible {
  background: var(--limestone); color: var(--green-dark);
}

@media (max-width: 900px) {
  /* One-line row: brand, compact quote button, burger. The nav becomes a full-width panel below. */
  .site-header .inner { flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.85rem 1rem; }
  .brand { font-size: 1.3rem; }
  .brand-icon { width: 26px; height: 26px; margin-right: 0.45rem; }
  .header-actions { display: flex; }
  .header-actions .btn-quote { padding: 0.5rem 0.85rem; font-size: 0.74rem; white-space: nowrap; }
  .site-nav { order: 10; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; }
  .site-nav > a, .site-nav .nav-item > a { display: block; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav > a:hover, .site-nav .nav-item > a:hover, .site-nav > a.active { border-bottom-color: var(--line); }
  .site-nav .btn-quote { display: none; } /* the row's quote button stays visible instead */
  .nav-item.has-menu .menu { display: block; position: static; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--brass); background: transparent; padding: 0 0 0.35rem 1rem; margin: 0.35rem 0 0.5rem; }
  .nav-item.has-menu .menu a { padding: 0.6rem 0.25rem; font-size: 0.95rem; }
  /* With JS available the panel is collapsed behind the burger; without JS it stays visible. */
  html.js .site-header .site-nav { display: none; }
  html.js .site-header.nav-open .site-nav { display: flex; padding: 0.25rem 0 0.75rem; }
}
@media (max-width: 380px) {
  /* Compact everything so brand + quote + burger measure well under 320px. */
  .header-actions .btn-quote .quote-full { display: none; }
  .header-actions .btn-quote .quote-short { display: inline; }
  .site-header .inner { padding: 0.7rem 0.75rem; gap: 0.5rem 0.5rem; }
  .brand { font-size: 1.12rem; }
  .brand-icon { width: 21px; height: 21px; margin-right: 0.35rem; }
  .header-actions { gap: 0.5rem; }
  .header-actions .btn-quote { padding: 0.45rem 0.65rem; font-size: 0.7rem; letter-spacing: 0.04em; }
  .nav-toggle { width: 40px; height: 40px; padding: 0 10px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(170deg, #1c4029 0%, var(--green-dark) 38%, #0c1f13 100%);
  color: var(--limestone);
  border-top: 3px solid var(--brass);
  padding: 5rem 1.5rem 2rem; margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3.5rem;
}
.footer-grid h2 {
  font-family: 'Poppins', sans-serif; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--brass); margin: 0 0 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid rgba(200, 163, 101, 0.25);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.7rem; }
.footer-grid a {
  color: var(--limestone); text-decoration: none; opacity: 0.75; font-size: 0.93rem;
  transition: opacity 0.2s, color 0.2s;
}
.footer-grid a:hover { opacity: 1; color: var(--brass-light); text-decoration: underline; text-decoration-color: rgba(214, 184, 133, 0.5); text-underline-offset: 3px; }
.footer-grid a:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 2px; opacity: 1; }
.footer-grid p { opacity: 0.75; font-size: 0.93rem; line-height: 1.8; }
.f-brand {
  display: inline-flex; align-items: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem !important;
  color: var(--paper) !important; margin: 0 0 1rem !important; opacity: 1 !important;
}
.f-brand .brand-icon { width: 32px; height: 32px; color: var(--brass); margin-right: 0.5rem; }
.f-brand span { font-style: italic; font-weight: 400; color: var(--brass-light); margin-left: 0.18em; }
.site-footer .fine {
  max-width: 1200px; margin: 3.5rem auto 0; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.12); text-align: left;
  font-size: 0.82rem; opacity: 0.55; letter-spacing: 0.02em;
}
.legal-links { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin-top: .8rem; }
.legal-links button {
  appearance: none; background: none; border: 0; color: var(--cream); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline; text-decoration-color: rgba(232,184,93,.45);
  text-underline-offset: 3px;
}
.legal-links button:hover, .legal-links button:focus-visible { color: var(--sun); opacity: 1; }
body.legal-modal-open { overflow: hidden; }
.legal-modal {
  background: var(--cream); border: 0; color: var(--bark); height: min(84vh, 760px);
  max-height: 84vh; max-width: min(820px, calc(100vw - 2rem)); padding: 0; width: 100%;
  box-shadow: 0 24px 90px rgba(7,31,25,.38);
}
.legal-modal::backdrop { background: rgba(8,35,29,.76); backdrop-filter: blur(3px); }
.legal-modal-shell { display: grid; grid-template-rows: auto minmax(0,1fr); height: 100%; }
.legal-modal header {
  background: var(--forest); color: var(--cream); padding: 1.5rem clamp(1.2rem,4vw,2.6rem);
  position: relative;
}
.legal-modal header .eyebrow { color: var(--sun); margin: 0 0 .45rem; }
.legal-modal header h2 { color: var(--cream); font-size: clamp(2rem,5vw,3.4rem); margin: 0; padding-right: 3rem; }
.legal-close {
  align-items: center; appearance: none; background: transparent; border: 1px solid rgba(247,242,232,.45);
  color: var(--cream); cursor: pointer; display: flex; font: 300 1.8rem/1 "DM Sans",sans-serif;
  height: 42px; justify-content: center; position: absolute; right: 1.2rem; top: 1.2rem; width: 42px;
}
.legal-close:hover, .legal-close:focus-visible { background: var(--clay); border-color: var(--clay); }
.legal-copy { overflow-y: auto; padding: clamp(1.3rem,4vw,2.7rem); }
.legal-copy h3 {
  color: var(--forest); font: 600 1.35rem/1.2 "Playfair Display",serif; margin: 1.8rem 0 .55rem;
}
.legal-copy p, .legal-copy li { font-size: .93rem; line-height: 1.7; }
.legal-copy ul { padding-left: 1.25rem; }
.legal-copy a { overflow-wrap: anywhere; }
.legal-template-note {
  background: #f6e9c9; border-left: 3px solid var(--sun); color: #594622;
  margin: 0 0 1.3rem; padding: .9rem 1rem;
}
.legal-updated { color: var(--muted); font-size: .78rem!important; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .legal-modal { height: calc(100dvh - 1rem); max-height: calc(100dvh - 1rem); max-width: calc(100vw - 1rem); }
}

/* ---------- Pillar question accordion ---------- */
.q-accordion { margin: 2rem 0; }
.q-item { border: none; border-bottom: 1px solid var(--line); background: transparent; margin: 0; }
.q-item summary {
  cursor: pointer; padding: 1.25rem 0; font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600; color: var(--green-dark); list-style: none;
  position: relative; padding-right: 2rem; transition: color 0.2s;
}
.q-item summary:hover { color: var(--green); }
.q-item summary::-webkit-details-marker { display: none; }
.q-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: 'Poppins', sans-serif; font-size: 1.5rem; color: var(--brass); font-weight: 400;
}
.q-item[open] summary::after { content: "\2013"; }
.q-item[open] summary { border-bottom: none; padding-bottom: 0.5rem; }
.q-item .q-a { padding: 0 0 1.5rem 0; }
.q-capsule { font-size: 1.05rem; line-height: 1.7; color: var(--ink); margin-bottom: 1rem; }
.q-link a {
  font-weight: 600; color: var(--green-dark); text-decoration: underline;
  text-decoration-color: var(--brass); text-underline-offset: 4px;
}
.q-filter { margin: 1rem 0 2rem; }
.q-filter input {
  width: 100%; box-sizing: border-box; padding: 1rem 1.5rem; font: inherit;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  transition: border-color 0.2s;
}
.q-filter input:focus { outline: 2px solid var(--green-dark); outline-offset: 1px; border-color: var(--brass); }
.q-hidden { display: none !important; }

/* ---------- Spoke enhancements ---------- */
.toc-box {
  border: 1px solid var(--line); background: var(--limestone);
  padding: 1.5rem 2rem; margin: 2.5rem 0; border-radius: 2px;
}
.toc-box strong { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--green-dark); display: block; margin-bottom: 1rem; }
.toc-box ol { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; }
.toc-box li { margin: 0.5rem 0; }
.toc-box a { color: var(--ink); text-decoration: none; }
.toc-box a:hover { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--brass); }

.feedback-box { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; text-align: center; }
.feedback-box p strong { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--green-dark); }
.feedback-box button {
  font-family: 'Poppins', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.6rem 1.5rem; margin: 1rem 0.5rem; border-radius: 2px; border: 1px solid var(--brass);
  background: transparent; color: var(--green-dark); cursor: pointer; transition: all 0.2s;
}
.feedback-box button:hover { background: var(--brass); color: var(--paper); }

/* ---------- Portal pages ---------- */
body.portal main { max-width: 1200px; padding: 0 1.5rem 4rem; }
body.portal main > h1:first-child, body.portal main > nav.breadcrumb:first-child { margin-top: 3.5rem; }
.hero { text-align: center; padding: 6rem 0 4rem; position: relative; }
.hero::before {
  content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 2rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none" stroke="%23c8a365" stroke-width="1"><path d="M20 36 V12 M20 28 C14 26 10 20 10 16 C10 12 14 10 17 10 C19 10 20 12 20 12 C20 12 21 10 23 10 C26 10 30 12 30 16 C30 20 26 26 20 28 Z"/></svg>') no-repeat center center;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin: 0 auto 1.5rem; max-width: 900px; }
.hero .sub { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--muted); font-style: italic; max-width: 700px; margin: 0 auto 3rem; }
.hero .editorial-photo--hero {
  max-width: 1040px;
  margin: 0 auto 2.5rem;
  box-shadow: 0 18px 45px rgba(19, 44, 28, .12);
  text-align: left;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 48rem; margin-bottom: 2.5rem; }

body.portal section > h2 { text-align: center; font-size: 2.4rem; margin: 4rem 0 3rem; position: relative; }
body.portal section > h2::after { content: ""; display: block; width: 60px; height: 2px; background: var(--brass); margin: 1.5rem auto 0; }

.search-box { max-width: 42rem; margin: 0 auto; position: relative; }
.search-box input {
  width: 100%; box-sizing: border-box; padding: 1.2rem 1.5rem; font: inherit; font-size: 1.1rem;
  border: 1px solid var(--brass); border-radius: 2px; background: var(--paper);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03); transition: all 0.2s;
}
.search-box input:focus { outline: 2px solid var(--green-dark); outline-offset: 1px; border-color: var(--green-dark); box-shadow: 0 4px 20px rgba(19, 44, 28, 0.08); }
.search-results {
  text-align: left; list-style: none; margin: 0.5rem 0 0; padding: 0;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  overflow: hidden; position: absolute; width: 100%; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.search-results:empty { display: none; }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results li:last-child { border-bottom: none; }
.search-results a { display: block; padding: 1rem 1.5rem; text-decoration: none; color: var(--green-dark); }
.search-results a:hover { background: var(--limestone); }
.search-results small { display: block; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; padding: 0; list-style: none; }
.tile { border: 1px solid var(--line); border-radius: 2px; background: var(--paper); padding: 2rem; position: relative; display: flex; flex-direction: column; transition: all 0.3s ease; }
.tile:hover { border-color: var(--brass); box-shadow: 0 10px 30px rgba(19, 44, 28, 0.05); transform: translateY(-2px); }
.tile h3, .tile h2 { align-items: center; display: flex; font-size: 1.6rem; gap: .55rem; margin: 0 0 0.75rem; border: none; text-align: left; }
.tile h2::after { display: none; }
.tile h2 .content-icon { color: var(--brass); }
.tile a { text-decoration: none; color: inherit; }
.tile:not(.tile--multi-link) a::after { content: ""; position: absolute; inset: 0; }
.tile--multi-link a { position: relative; z-index: 1; }
.tile p, .tile small { color: var(--muted); font-size: 0.95rem; margin: 0; line-height: 1.6; }
.tile .count { margin-top: auto; padding-top: 1.5rem; font-size: 0.85rem; color: var(--brass); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.callout-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 2rem; margin: 4rem 0; }
.callout { border-radius: 2px; padding: 3rem 2.5rem; background: var(--green-dark); color: var(--limestone); text-align: center; border: 1px solid var(--green-dark); }
.callout.alt { background: var(--paper); color: var(--green-dark); border: 1px solid var(--line); }
.callout h2 { color: inherit !important; font-size: 2rem !important; margin-top: 0 !important; margin-bottom: 1rem !important; }
.callout h2::after { display: none !important; }
.callout p { color: inherit; opacity: 0.9; margin-bottom: 2rem; font-size: 1.05rem; }
.callout a.btn {
  display: inline-block; background: var(--brass); color: var(--green-dark); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; padding: 1rem 2rem;
  border-radius: 2px; transition: background 0.2s, transform 0.2s;
}
.callout a.btn:hover { background: var(--brass-light); transform: translateY(-2px); }
.callout.alt a.btn { background: var(--green-dark); color: var(--paper); }
.callout.alt a.btn:hover { background: var(--green); }

.strip {
  background: var(--paper); border: 1px dashed var(--brass); border-radius: 2px;
  padding: 2rem 2.5rem; margin: 4rem 0; font-size: 1.05rem; text-align: center;
}
.strip a { font-weight: 600; color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.strip a:hover { color: var(--oxblood); }

/* Forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--green-dark); border-radius: 2px; padding: 2.5rem; max-width: 48rem; margin: 0 auto; }
.form-card label { display: block; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--green-dark); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; box-sizing: border-box; padding: 1rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--limestone); transition: border-color 0.2s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--green-dark); outline-offset: 1px; border-color: var(--brass); background: var(--paper); }
.form-card textarea { min-height: 8rem; }
.form-card button {
  margin-top: 2rem; width: 100%; font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--green-dark); color: var(--paper); border: none; border-radius: 2px; padding: 1rem 2.5rem; cursor: pointer; transition: background 0.2s;
}
.form-card button:hover { background: var(--green); }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1.5rem; line-height: 1.5; }
.hidden-field { display: none; }

/* ---------- Private review administration ---------- */
.admin-page main { max-width: 1200px; padding: 2rem 1.5rem 4rem; }
.admin-heading { border-bottom: 1px solid var(--line); margin-bottom: 2rem; padding-bottom: 1.5rem; }
.admin-heading h1 { margin: 0.2rem 0; }
.admin-heading p:last-child { color: var(--muted); margin: 0; }
.eyebrow { color: var(--brass); font-size: 0.78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; }
.admin-toolbar p { margin: .25rem 0 0; }
.admin-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.admin-section-heading h2 { margin-top: 0; }
.admin-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr); gap: 2rem; align-items: start; }
.admin-list { border: 1px solid var(--line); background: var(--paper); padding: 1.25rem; }
.admin-list label { color: var(--green-dark); display: block; font-weight: 600; margin-bottom: .5rem; }
.admin-list input { box-sizing: border-box; width: 100%; border: 1px solid var(--line); padding: .75rem; font: inherit; }
.admin-list ul { list-style: none; margin: 1rem 0 0; max-height: 62vh; overflow: auto; padding: 0; }
.admin-list li { border-top: 1px solid var(--line); }
.admin-list li button { background: none; border: 0; color: var(--green-dark); cursor: pointer; font: inherit; padding: .75rem 0; text-align: left; width: 100%; }
.admin-list li button:hover, .admin-list li button:focus { color: var(--oxblood); text-decoration: underline; }
.admin-editor { margin: 0; max-width: none; }
.admin-check { background: var(--limestone); border: 1px solid var(--line); padding: .9rem; }
.admin-check input { width: auto !important; margin-right: .5rem; }
.admin-secondary { background: transparent; border: 1px solid var(--brass); color: var(--green-dark); cursor: pointer; font: inherit; padding: .65rem 1rem; }
.admin-secondary:hover, .admin-secondary:focus { background: var(--limestone); }
.admin-page button:disabled { cursor: wait; opacity: .6; }

/* Directory */
.pro-card {
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  padding: 1.5rem 2rem; margin: 1rem 0; position: relative;
}
.pro-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brass); opacity: 0; transition: opacity 0.2s; }
.pro-card:hover::before { opacity: 1; }
.pro-card h3 { font-size: 1.7rem; margin: 0 0 0.5rem; }
.pro-card .badges { margin: 0.75rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--limestone); border: 1px solid var(--limestone-dark); border-radius: 2px; padding: 0.3rem 0.8rem; color: var(--green-dark); }
.sample-banner { background: #fdf5e6; border: 1px solid var(--brass-light); border-radius: 2px; padding: 1rem 1.5rem; font-size: 0.95rem; margin: 2rem 0; color: var(--oxblood); }
.dir-filters { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.dir-filters input, .dir-filters select { padding: 1rem; font: inherit; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); flex: 1; min-width: 200px; }

/* TCIA contractor directory */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dir-toolbar { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green-dark); border-radius: 2px; padding: 1.5rem; margin: 1.5rem 0 1rem; }
.dir-global input {
  width: 100%; box-sizing: border-box; padding: 1rem 1.4rem; font: inherit; font-size: 1.05rem;
  border: 1px solid var(--brass); border-radius: 2px; background: var(--limestone);
}
.dir-toolbar input:focus, .dir-toolbar select:focus { outline: 2px solid var(--green-dark); outline-offset: 1px; background: var(--paper); }
.dir-advanced { margin-top: 1rem; }
.dir-advanced summary {
  cursor: pointer; display: inline-block; font-family: 'Poppins', sans-serif; font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-dark);
  border-bottom: 1px solid var(--brass); padding-bottom: 0.15rem;
}
.dir-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.9rem 1rem; margin-top: 1.1rem; }
.dir-fields label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.35rem; }
.dir-fields input, .dir-fields select {
  width: 100%; box-sizing: border-box; padding: 0.6rem 0.75rem; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--limestone);
}
.dir-statusline { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.dir-count { margin: 0; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dir-active { margin: 0; font-size: 0.88rem; color: var(--green-dark); font-style: italic; }
.dir-clear, .dir-noresults button {
  font: inherit; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: transparent; border: 1px solid var(--brass); border-radius: 2px; color: var(--green-dark);
  padding: 0.45rem 0.9rem; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.dir-clear:hover, .dir-noresults button:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--paper); }
.dir-noresults { border: 1px dashed var(--brass); border-radius: 2px; background: var(--paper); padding: 1.5rem 2rem; margin: 2rem 0; color: var(--oxblood); }
.dir-noresults button { margin-left: 0.75rem; }

/* Enriched directory cards */
.dir-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.dir-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  padding: 1.35rem; min-height: 16rem; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.dir-card:hover { border-color: var(--brass); box-shadow: 0 8px 24px rgba(19, 44, 28, .07); transform: translateY(-1px); }
.dir-card-kicker { margin: 0 0 .35rem; color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dir-card h2 { margin: 0; font-size: 1.45rem; line-height: 1.12; }
.dir-card h2 a { color: var(--green-dark); text-decoration: none; }
.dir-card h2 a:hover { color: var(--oxblood); text-decoration: underline; text-decoration-color: var(--brass); }
.dir-card-location { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.dir-card-brand { margin: .55rem 0 0; color: var(--muted); font-size: .88rem; }
.dir-card-brand a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.dir-card .badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.dir-card .badge { font-size: .65rem; padding: .25rem .5rem; }
.badge-bbb { background: #f4ede0; }
.badge-bbb a { color: inherit; }
.badge-rating { font-weight: 400; text-transform: none; letter-spacing: 0; }
.dir-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: auto; }
.dir-card-actions .dir-act { flex: 0 0 auto; }
.dir-card-website, .dir-card-quote, .dir-contact-phone, .dir-contact-website { color: var(--green-dark); font-size: .82rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; overflow-wrap: anywhere; }
.dir-contact-actions { display: flex; flex-wrap: wrap; gap: .55rem .9rem; margin-top: .8rem; }
.dir-contact-phone, .dir-contact-website { display: inline-block; }
.dir-contact-phone:hover, .dir-contact-website:hover { color: var(--oxblood); }
.directory-disclaimer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; line-height: 1.6; margin: 2rem 0; padding-top: 1rem; }

/* ---------- Storm damage desk ---------- */
.storm-heading { max-width: 900px; margin: 3.5rem auto 2rem; }
.storm-heading h1 { margin: .35rem 0 1rem; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.storm-heading .lede { max-width: 58rem; }
.storm-hub-heading { text-align: center; }
.storm-hub-heading .lede { margin-left: auto; margin-right: auto; }
.storm-live-content { max-width: 900px; margin: 0 auto; padding-top: 3.5rem; }
.storm-live-content h1 { margin: .35rem 0 1rem; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.storm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2rem 0 3.5rem; }
.storm-stat-grid > div { display: flex; flex-direction: column; gap: .25rem; background: var(--paper); padding: 1.3rem 1rem; text-align: center; }
.storm-stat-grid b { color: var(--green-dark); font-family: 'Cormorant Garamond', serif; font-size: 2.25rem; line-height: 1; }
.storm-stat-grid span { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.storm-stat-grid .storm-stat-label { align-items: center; display: inline-flex; gap: .35rem; justify-content: center; }
.storm-stat-grid .storm-stat-label .content-icon { color: var(--brass); }
.storm-section { margin: 3.5rem 0; }
body.portal .storm-section > h2 { text-align: left; margin: 0 0 .75rem; font-size: 2rem; }
body.portal .storm-section > h2::after { margin: .75rem 0 0; }
.storm-state-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem 1rem; list-style: none; padding: 0; }
.storm-state-list li { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px solid var(--line); padding: .65rem 0; }
.storm-state-list a, .storm-city-row a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.storm-state-list span, .storm-city-row span { color: var(--muted); font-size: .86rem; }
.storm-city-list { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.storm-city-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.storm-city-row div { display: flex; flex-direction: column; gap: .2rem; }
.storm-city-row b { color: var(--green-dark); font-size: 1.1rem; }
.storm-location-list { columns: 2 300px; column-gap: 2rem; font-size: .88rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.storm-location-list li, .storm-location-list span { break-inside: avoid; display: block; margin: 0 0 .65rem; }
.storm-location-list a, .storm-map-link { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.storm-context { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brass); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 1.5rem 0 0; }
.storm-context-item { color: var(--muted); font-size: .78rem; line-height: 1.5; margin: 0; padding: .75rem 1rem; }
.storm-context-item + .storm-context-item { border-left: 1px solid var(--line); }
.storm-reports { display: grid; gap: 1rem; margin-top: 1.25rem; }
.storm-report-card { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brass); padding: 1.25rem 1.35rem; }
.storm-report-card p { line-height: 1.65; }
.storm-report-meta { color: var(--green-dark); display: flex; flex-wrap: wrap; font-size: .8rem; font-weight: 600; gap: .35rem 1rem; letter-spacing: .04em; text-transform: uppercase; }
.storm-report-meta span { color: var(--muted); }
.storm-report-source { color: var(--muted); font-size: .84rem; }
.storm-company-label { color: var(--oxblood); font-size: .72rem; font-weight: 600; letter-spacing: .08em; margin: 1rem 0 .55rem; text-transform: uppercase; }
.storm-report-companies { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: .2rem; }
.storm-report-companies .storm-company-card { background: var(--limestone); }
.storm-company-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.25rem; }
.storm-company-card { background: var(--paper); border: 1px solid var(--line); padding: 1.15rem; }
.storm-company-card h3 { font-size: 1.25rem; line-height: 1.2; margin: 0; }
.storm-company-card h3 a { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .14em; }
.storm-company-card h3 a:hover { color: var(--oxblood); text-decoration: underline; text-decoration-color: var(--brass); }
.storm-company-location { color: var(--muted); font-size: .88rem; margin: .45rem 0 0; }
.storm-distance { display: block; font-size: .78rem; margin-top: .2rem; }
.storm-company-card .badges { align-items: center; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.storm-company-card .badge { font-size: .63rem; padding: .25rem .5rem; }
.storm-company-website { color: var(--green-dark); font-size: .76rem; font-weight: 600; margin-left: auto; text-decoration: underline; text-decoration-color: var(--brass); }
.storm-empty { color: var(--muted); }
.safety-callout { align-items: flex-start; background: var(--limestone); border-left: 4px solid var(--oxblood); display: flex; gap: 1rem; margin: 2rem 0; padding: 1.25rem 1.35rem; }
.safety-callout > .content-icon { color: var(--oxblood); flex: 0 0 22px; height: 22px; margin-top: .25rem; width: 22px; }
.safety-callout h2 { margin-top: 0; }
.safety-callout p { margin-bottom: 0; }
body.portal .breadcrumb { color: var(--muted); font-size: .84rem; margin: 2rem 0 0; }
body.portal .breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
body.portal .breadcrumb li:not(:last-child)::after { content: " /"; color: var(--brass); margin-left: .35rem; }
body.portal .breadcrumb a { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
body:not(.portal) .breadcrumb { color: var(--muted); font-size: .84rem; margin: 2rem 0 0; }
body:not(.portal) .breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
body:not(.portal) .breadcrumb a { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

@media (max-width: 600px) {
  .storm-live-content { padding-top: 2rem; }
  .storm-city-row { align-items: flex-start; }
  .storm-city-row > span { text-align: right; }
  .storm-location-list { columns: 1; }
  .storm-context { grid-template-columns: 1fr; }
  .storm-context-item + .storm-context-item { border-left: 0; border-top: 1px solid var(--line); }
}
.profile-brand { color: var(--muted); margin: 0 0 .8rem; }
.profile-brand a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.profile-contact-label { color: var(--muted); font-size: .85rem; }
.profile-links, .profile-locations { margin: 0 0 2rem; }
.profile-links h2, .profile-locations h2 { margin-bottom: .55rem; }
.profile-links p { line-height: 1.9; }
.profile-links a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.profile-locations ul { margin: 0; padding-left: 1.2rem; }
.profile-locations li { margin: .45rem 0; }
.brand-map { margin: 1rem 0 2rem; }
.brand-map-points { columns: 2; list-style: none; margin: .8rem 0 0; padding: 0; }
.brand-map-points li { break-inside: avoid; margin: .35rem 0; font-size: .84rem; }
.brand-map-points a { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* Table */
.dir-table-wrap { margin: 1rem 0 2.5rem; }
.dir-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 0.93rem; }
.dir-table thead th {
  position: sticky; top: 0; z-index: 30; background: var(--green-dark); color: var(--limestone);
  text-align: left; padding: 0; border-bottom: 2px solid var(--brass);
  font-family: 'Poppins', sans-serif; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em;
}
.dir-table thead th, .dir-table thead th button { font-weight: 600; }
.dir-table thead th:not(:has(button)) { padding: 0.85rem 1rem; }
.dir-table thead th button {
  font: inherit; color: inherit; background: none; border: none; cursor: pointer;
  width: 100%; text-align: left; padding: 0.85rem 1rem; letter-spacing: inherit; text-transform: inherit;
}
.dir-table thead th button::after { content: "↕"; opacity: 0.45; margin-left: 0.45em; font-size: 0.9em; }
.dir-table thead th button.sorted::after { content: "↑"; opacity: 1; color: var(--brass-light); }
.dir-table thead th button.sorted.desc::after { content: "↓"; }
.dir-table thead th button:hover, .dir-table thead th button:focus-visible { background: rgba(200, 163, 101, 0.18); outline-offset: -2px; }
.dir-table tbody tr { border-bottom: 1px solid var(--line); }
.dir-table tbody tr:nth-child(even) { background: var(--limestone); }
.dir-table tbody tr:hover { background: rgba(200, 163, 101, 0.12); }
.dir-table tbody th, .dir-table tbody td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; }
.dir-table tbody th { font-family: 'Cormorant Garamond', serif; font-size: 1.12rem; font-weight: 600; color: var(--green-dark); }
.dir-table td a { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; overflow-wrap: anywhere; }
.dir-table td a:hover { color: var(--oxblood); }
.dir-none { color: var(--muted); font-size: 0.85rem; }
.dir-contact-cell { min-width: 13rem; }
.dir-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-right: 0.4rem; border: 1px solid var(--brass);
  border-radius: 50%; color: var(--green-dark); background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dir-act svg { width: 17px; height: 17px; }
.dir-act:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--paper); }
.dir-act:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.dir-accr .badge { margin: 0 0.35rem 0.25rem 0; }
.badge-util { background: #f4ede0; }

/* Mobile: stacked records instead of a squeezed table */
@media (max-width: 760px) {
  .dir-table, .dir-table tbody, .dir-table tbody tr, .dir-table tbody th, .dir-table tbody td { display: block; }
  .dir-table { border: none; background: transparent; }
  .dir-table thead { display: none; }
  .dir-table tbody tr {
    border: 1px solid var(--line); border-radius: 2px; background: var(--paper) !important;
    padding: 1rem 1.25rem; margin-bottom: 0.9rem;
  }
  .dir-table tbody tr.q-hidden { display: none; }
  .dir-table tbody th, .dir-table tbody td { padding: 0.15rem 0; }
  .dir-table tbody th { font-size: 1.3rem; margin-bottom: 0.2rem; }
  .dir-table tbody td:empty { display: none; }
  .dir-table tbody td::before {
    content: attr(data-label); display: inline-block; min-width: 4.6rem;
    font-family: 'Poppins', sans-serif; font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-right: 0.5rem;
  }
  .dir-table tbody td[data-label="City"], .dir-table tbody td[data-label="State"] { display: inline-block; }
  .dir-table tbody td[data-label="City"]::before, .dir-table tbody td[data-label="State"]::before { display: none; }
  .dir-table tbody td[data-label="State"]:not(:empty)::before { content: ", "; display: inline; min-width: 0; margin: 0; color: var(--ink); text-transform: none; font: inherit; }
  .dir-table tbody td[data-label="City"] { color: var(--muted); }
  .dir-table tbody td[data-label="State"] { color: var(--muted); }
  .dir-table tbody td[data-label="Contact"] { padding-top: 0.6rem; }
  .dir-table tbody td[data-label="Contact"]::before { vertical-align: middle; }
  .dir-act { width: 42px; height: 42px; margin-right: 0.6rem; }
  .dir-act svg { width: 20px; height: 20px; }
}

/* Quote form: pre-addressed contractor note */
.pro-note {
  background: var(--limestone); border-left: 3px solid var(--brass);
  padding: 0.9rem 1.2rem; margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--green-dark);
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.5rem; }
  .form-card { padding: 1.5rem; }
  .callout { padding: 2rem 1.5rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-section-heading { flex-direction: column; }
  .admin-list ul { max-height: 18rem; }
  .dir-cards { grid-template-columns: 1fr; }
  .brand-map-points { columns: 1; }
}
/* ---------------------------------------------------------------- company profile pages */
.dir-name { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--limestone-dark); text-underline-offset: 3px; }
.dir-name:hover { color: var(--green-dark); text-decoration-color: var(--brass); }
.dir-name:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }

.profile { max-width: 780px; margin: 0 auto; }
.profile-head { margin: 1.5rem 0 2rem; }
.profile-head h1 { margin: 0.35rem 0 0.75rem; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.profile-about { margin: 0 0 2rem; }
.profile-about h2 { margin-bottom: 0.6rem; }
.profile-about p { margin: 0 0 0.6rem; }
.profile-services { margin: 0 0 2rem; }
.profile-services h2 { margin-bottom: 0.7rem; }
.profile-services > p { margin: 0.55rem 0 0; }
.service-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none;
}
.service-tags li {
  margin: 0; padding: 0.35rem 0.65rem; border: 1px solid var(--limestone-dark);
  border-radius: 999px; background: var(--limestone); font-size: 0.88rem;
}
.service-tags a {
  color: var(--green-dark); font-weight: 600; text-decoration: none;
}
.service-tags a:hover { color: var(--oxblood); text-decoration: underline; }
.profile-source { font-size: 0.85rem; color: var(--muted); font-style: italic; margin: 0; }
.profile-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
  margin: 0 0 2rem;
}
.profile-fact { background: var(--limestone); border: 1px solid var(--limestone-dark); border-radius: 2px; padding: 1rem 1.2rem; }
.profile-fact h3 {
  margin: 0 0 0.4rem; font-family: 'Poppins', sans-serif; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.profile-fact p { margin: 0; font-size: 0.98rem; }
.profile-fact a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; overflow-wrap: anywhere; }
.profile-contact-note { margin-top: 0.6rem; }
.profile-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }
.btn-profile-quote {
  display: inline-block; background: var(--green-dark); color: var(--paper); font-family: 'Poppins', sans-serif;
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.75rem 1.4rem; border-radius: 2px; text-decoration: none;
}
.btn-profile-quote:hover { background: var(--green); color: var(--paper); }
.btn-profile-quote:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.profile-cta-row .dir-act { width: 44px; height: 44px; }
.profile-cta-row .dir-act svg { width: 20px; height: 20px; }
.profile-location { margin: 0 0 2rem; }
.profile-location h2 { margin-bottom: 0.8rem; }
.profile-location-grid { display: grid; grid-template-columns: minmax(220px, 260px) 1fr; gap: 1rem; align-items: start; }
.profile-map iframe {
  width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--limestone-dark); border-radius: 2px; display: block;
  background: var(--limestone);
}
.profile-map .profile-source { margin-top: 0.5rem; }
.profile-map a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.profile-map a:hover { color: var(--oxblood); }
.profile-map-none { align-self: center; padding: 1rem 0; }
.profile-back { margin: 2rem 0 0; }
.profile-back a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

@media (max-width: 600px) {
  .profile-facts { grid-template-columns: 1fr; }
  .profile-location-grid { grid-template-columns: 1fr; }
  .profile-map-none { padding: 0; align-self: start; }
}

/* ---- state directory pages ---- */
.dir-states { margin: 2.5rem 0; }
.dir-states h2 { margin-bottom: 0.4rem; }
.dir-state-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.35rem 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: 0.95rem;
}
.dir-state-list a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.dir-state-list a:hover { color: var(--oxblood); }
.dir-state-count { color: var(--muted); font-size: 0.85em; }

/* ---- lead form error + admin leads dashboard ---- */
.form-error { color: var(--oxblood); font-weight: 600; }
.admin-leads { margin: 0 0 2rem; }
.admin-directory-health { margin: 0 0 2rem; }
.admin-link-health { margin: 0 0 2rem; }
.health-grid { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: .35rem 1rem; margin: 1rem 0 0; }
.health-grid dt { color: var(--muted); }
.health-grid dd { margin: 0; color: var(--green-dark); font-weight: 600; text-align: right; }
.link-health-list { display: grid; gap: .75rem; margin-top: 1rem; }
.link-health-card { border: 1px solid var(--line); border-left: 4px solid var(--oxblood); background: var(--limestone); padding: .8rem 1rem; }
.link-health-card h3 { align-items: baseline; display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 .35rem; }
.link-health-card a { overflow-wrap: anywhere; }
.link-health-card .form-note { margin: .35rem 0 0; }
.link-health-kind { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.lead-card { border: 1px solid var(--limestone-dark); border-radius: 2px; padding: 0.9rem 1.1rem; margin: 0 0 0.9rem; background: var(--limestone); }
.lead-card header { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 0.5rem; }
.lead-card .badge {
  font-family: 'Poppins', sans-serif; font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.15rem 0.5rem; border-radius: 2px; background: var(--green-dark); color: #fff;
}
.lead-card.lead-pro .badge { background: var(--brass); color: #1e1a14; }
.lead-card.lead-contact .badge { background: var(--green); color: var(--paper); }
.lead-card header small { color: var(--muted); }
.lead-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 0.9rem; margin: 0; font-size: 0.92rem; }
.lead-card dt { font-weight: 600; color: var(--muted); }
.lead-card dd { margin: 0; overflow-wrap: anywhere; }
.lead-details { margin: 0.6rem 0 0; font-size: 0.95rem; white-space: pre-wrap; }

/* ---------- Canopy design system ---------- */
:root {
  --forest: #173d32; --deep: #0f2b25; --moss: #718666; --lichen: #dfe8d6;
  --clay: #b76542; --sun: #e8b85d; --bark: #332a24; --cream: #f7f2e8;
  --mist: #e9eee8; --green: var(--forest); --green-dark: var(--deep);
  --limestone: var(--cream); --limestone-dark: var(--lichen); --paper: #fffdf8;
  --ink: var(--bark); --muted: #536256; --line: rgba(23,61,50,.16);
  --brass: var(--sun); --brass-light: #f0ce85; --oxblood: var(--clay);
}

.text-center { text-align: center; }
body { background: var(--cream); color: var(--bark); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.65; }
h1, h2, h3, h4, .brand, .f-brand { font-family: "Playfair Display", Georgia, serif; }
h1, h2, h3, h4 { color: var(--forest); letter-spacing: -.04em; }
a { color: var(--forest); }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.emergency-strip { background: var(--deep); color: var(--cream); border: 0; padding: .58rem 1rem; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.emergency-strip a { color: var(--sun); text-decoration-color: rgba(232,184,93,.5); }
.site-header { background: rgba(247,242,232,.94); border-color: var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.site-header .inner { max-width: none; padding: 1.1rem clamp(1.15rem,4vw,4.15rem); gap: 2rem; }
.brand { color: var(--forest); font-family: "DM Sans", sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: -.05em; }
.brand span { color: var(--forest); font-style: normal; font-weight: 700; margin-left: 0; }
.brand-icon { color: var(--forest); height: 34px; margin-right: .65rem; width: 34px; }
.site-nav { gap: clamp(.8rem,2.1vw,2.1rem); }
.site-nav > a, .site-nav .nav-item > a { color: var(--forest); font-size: .78rem; font-weight: 700; padding: .35rem 0; }
.site-nav > a:hover, .site-nav .nav-item > a:hover, .site-nav > a.active { color: var(--clay); border-bottom-color: var(--clay); }
.site-header .btn-quote { background: var(--forest); border-color: var(--forest); color: var(--cream)!important; font-size: .72rem; padding: .7rem 1rem; }
.site-header .btn-quote:hover { background: var(--clay); border-color: var(--clay); }
.nav-item.has-menu .menu { background: var(--cream); border-color: var(--line); border-top-color: var(--forest); border-radius: 0; }
.nav-item.has-menu .menu a { color: var(--forest); font-family: "DM Sans", sans-serif; font-size: .82rem; }
.nav-item.has-menu .menu a:hover, .nav-item.has-menu .menu a:focus-visible { background: var(--lichen); color: var(--clay); }

.site-footer { background: #0c2420; border: 0; margin-top: 0; padding: 3.5rem clamp(1.15rem,6.7vw,6.6rem) 2rem; }
.footer-grid { max-width: 1400px; gap: 2.5rem; }
.footer-grid h2 { color: var(--sun); font-family: "DM Sans", sans-serif; font-size: .66rem; }
.footer-grid a { color: var(--cream); font-size: .82rem; }
.footer-grid p { font-size: .86rem; line-height: 1.7; }
.f-brand { color: var(--cream)!important; font-family: "DM Sans", sans-serif!important; font-size: 1.15rem!important; font-weight: 700; }
.f-brand span { color: var(--cream); font-style: normal; font-weight: 700; }
.site-footer .fine { font-size: .72rem; margin-top: 2.5rem; }

/* Editorial, directory, profile, form and live-storm surfaces share square Canopy cards. */
main { max-width: 900px; padding: clamp(3rem,7vw,6.5rem) 1.25rem; }
body.portal main { max-width: 1400px; padding: clamp(3rem,6vw,6.5rem) clamp(1.15rem,6.7vw,6.6rem); }
body.portal main > h1:first-child, body.portal main > nav.breadcrumb:first-child { margin-top: 0; }
h1 { font-size: clamp(2.7rem,5.5vw,5rem); font-weight: 500; line-height: .99; }
h2 { font-size: clamp(2rem,3.4vw,3.6rem); font-weight: 500; line-height: 1.04; }
h3 { font-weight: 500; }
.lede { font-size: 1.05rem; line-height: 1.7; }
.breadcrumb, .eyebrow { color: var(--clay); font-family: "DM Sans", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .13em; }
.capsule, .toc-box, .pro-block { border-radius: 0; border-color: var(--line); border-top-color: var(--forest); background: var(--mist); }
.editorial-photo { border-radius: 0; border: 0; }
.editorial-photo::after { background: var(--sun); }
.q-item summary, .toc-box strong, .feedback-box p strong { font-family: "Playfair Display", serif; color: var(--forest); }
.q-item summary { font-size: 1.35rem; }
.q-item summary::after { color: var(--clay); font-family: "DM Sans", sans-serif; }
.cta { background: var(--forest); border: 0; border-radius: 0; color: var(--cream); }
.cta a { color: var(--sun); }

.tile, .dir-card, .pro-card, .storm-report-card, .storm-company-card, .form-card, .dir-toolbar { border-color: var(--line); border-radius: 0; background: #fffdf8; }
.tile:hover, .dir-card:hover { border-color: var(--clay); box-shadow: none; }
.tile h2, .tile h3, .dir-card h2, .pro-card h3 { font-family: "Playfair Display", serif; }
.tile .count, .badge, .dir-card-kicker { color: var(--clay); }
.badge { border-radius: 0; background: var(--lichen); border-color: var(--lichen); }
.form-card { border-top: 3px solid var(--forest); max-width: 46rem; }
.form-card label { color: var(--forest); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.form-card input, .form-card select, .form-card textarea, .dir-filters input, .dir-filters select, .dir-global input, .dir-fields input, .dir-fields select { border-radius: 0; background: var(--cream); border-color: var(--line); }
.form-card button, .callout a.btn, .home-actions .btn { border-radius: 0; background: var(--forest); color: var(--cream); }
.form-card button:hover, .callout a.btn:hover, .home-actions .btn:hover { background: var(--clay); }
.strip { border: 1px solid var(--line); border-radius: 0; background: var(--mist); text-align: left; }

/* Approved homepage composition. Existing hooks remain intact for search and no-JS content. */
body.portal main:has(.canopy-home-hero) { max-width: none; padding: 0; }
.canopy-home-hero { background: var(--mist); display: grid; grid-template-columns: minmax(0,1.04fr) minmax(320px,.96fr); min-height: 600px; padding: 0; text-align: left; }
.canopy-home-hero::before { display: none; }
.home-hero-copy { align-items: flex-start; display: flex; flex-direction: column; justify-content: center; padding: clamp(3.75rem,8vw,7rem) clamp(1.5rem,7vw,7rem); }
.home-kicker { align-items: center; color: var(--clay); display: flex; font-size: .68rem; font-weight: 700; letter-spacing: .17em; margin: 0 0 1.2rem; text-transform: uppercase; }
.home-kicker::before { background: currentColor; content: ""; height: 1px; margin-right: .65rem; width: 34px; }
.canopy-home-hero h1 { font-size: clamp(3.2rem,6.2vw,5.8rem); margin: 0 0 1.4rem; max-width: 650px; }
.canopy-home-hero h1 em { color: var(--clay); }
.canopy-home-hero .sub { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 1.05rem; font-style: normal; line-height: 1.65; margin: 0 0 1.5rem; max-width: 480px; }
.home-actions { display: flex; gap: .8rem; margin: 0 0 1.6rem; }
.home-actions .btn, .text-action { align-items: center; display: inline-flex; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: .75rem 1rem; text-decoration: none; }
.text-action { border: 1px solid var(--forest); color: var(--forest); }
.home-hero-copy .search-box { margin: 0; max-width: 530px; width: 100%; }
.search-box input { border-color: var(--line); border-radius: 0; font-size: .95rem; padding: .9rem 1rem; }
.home-hero-image { height: 600px; min-height: 600px; overflow: hidden; position: relative; }
.home-hero-image .editorial-photo--hero { box-shadow: none; height: 100%; margin: 0; max-width: none; }
.home-hero-image .editorial-photo--hero img { height: 100%; object-fit: cover; }
.home-hero-image figcaption, .home-hero-image .editorial-photo::after { display: none; }
.hero-note { background: rgba(247,242,232,.96); border-left: 4px solid var(--sun); bottom: clamp(1.25rem,3vw,2.5rem); box-shadow: 0 12px 30px rgba(7,31,25,.28); color: var(--forest); left: clamp(1.25rem,4vw,3.5rem); margin: 0; max-width: min(31rem,calc(100% - 2.5rem)); padding: 1.2rem 3rem 1.15rem 1.4rem; position: absolute; z-index: 2; }
.hero-note p { font-family: "Playfair Display", serif; font-size: clamp(1.1rem,2vw,1.45rem); line-height: 1.38; margin: 0 0 .7rem; }
.hero-note cite { color: var(--forest); display: block; font-family: "DM Sans", sans-serif; font-size: .68rem; font-style: normal; font-weight: 700; letter-spacing: .08em; }
.hero-note .quote-mark { color: var(--forest); font-family: "Playfair Display", serif; font-size: 3.2rem; line-height: 1; position: absolute; }
.hero-note .quote-mark--open { left: -.45rem; top: -.65rem; }
.hero-note .quote-mark--close { bottom: -.95rem; right: .45rem; }
.home-trust-strip { align-items: center; background: var(--forest); color: var(--cream); display: flex; font-size: .75rem; justify-content: space-between; padding: 1rem clamp(1.15rem,6.7vw,6.6rem); }
.home-trust-strip span { opacity: .75; }.home-trust-strip b { color: var(--sun); font-weight: 600; }
.home-questions, .home-services { padding: clamp(4rem,8vw,6.5rem) clamp(1.15rem,6.7vw,6.6rem); }
.home-questions { background: #e5eadf; }.home-services { background: var(--forest); }
.home-section-head { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2.5rem; }.home-section-head h2 { margin: 0; max-width: 680px; }.home-section-head > p { color: var(--muted); margin: 0; max-width: 410px; }
.home-services h2 { color: var(--cream); }.home-services .home-kicker { color: var(--sun); }.home-services .home-section-head > p { color: rgba(247,242,232,.75); }
.home-questions .tile-grid { grid-template-columns: repeat(3,1fr); }.home-questions .tile { background: transparent; border-width: 1px 0; padding: 1.25rem 0; }.home-questions .tile h3 { font-size: 1.35rem; }.home-services .tile-grid { grid-template-columns: repeat(4,1fr); }.home-services .tile { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); min-height: 190px; }.home-services .tile h2, .home-services .tile h2 span, .home-services .tile p { color: var(--cream); }.home-services .tile p { opacity: .7; }.home-services .tile .content-icon { color: var(--sun); }

/* Preserve the approved compact Find a Pro composition. */
.dir-city-finder {
  align-items: end;
  background: var(--cream);
  border-left: 3px solid var(--brass);
  display: flex;
  gap: .75rem;
  margin: 1rem 0;
  max-width: 40rem;
  padding: .8rem 1rem;
}
.dir-city-finder > div { flex: 1 1 auto; min-width: 0; }
.dir-city-finder label {
  color: var(--muted);
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .3rem;
  text-transform: uppercase;
}
.dir-city-finder select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  min-height: 2.55rem;
  padding: .55rem .65rem;
  width: 100%;
}
.dir-city-finder select:focus { outline: 2px solid var(--green-dark); outline-offset: 1px; }
.dir-city-finder .btn { flex: 0 0 auto; min-height: 2.55rem; }

@media (min-width: 760px) {
  body.portal main:has([data-dir-cards]) {
    padding-left: clamp(2rem, 4.5vw, 4rem);
    padding-right: clamp(2rem, 4.5vw, 4rem);
  }
  body.portal main:has([data-dir-cards]) > h1 {
    font-size: clamp(3.2rem, 6.3vw, 4.5rem);
    margin-bottom: .55rem;
  }
  body.portal main:has([data-dir-cards]) > .lede {
    font-size: .9rem;
    margin-bottom: 1.8rem;
    max-width: 52rem;
  }
  body.portal main:has([data-dir-cards]) .dir-toolbar { padding: 1rem; }
  body.portal main:has([data-dir-cards]) .dir-global input { padding: .8rem 1rem; }
  body.portal main:has([data-dir-cards]) .dir-fields {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .8rem;
  }
  body.portal main:has([data-dir-cards]) .dir-fields input,
  body.portal main:has([data-dir-cards]) .dir-fields select {
    font-size: .78rem;
    padding: .52rem .6rem;
  }
  body.portal main:has([data-dir-cards]) .dir-fields label { font-size: .61rem; }
  body.portal main:has([data-dir-cards]) .dir-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
  }
  body.portal main:has([data-dir-cards]) .dir-card {
    gap: .8rem;
    min-height: 13rem;
    padding: 1rem;
  }
  body.portal main:has([data-dir-cards]) .dir-card h2 { font-size: 1.18rem; }
  body.portal main:has([data-dir-cards]) .dir-card-kicker { font-size: .6rem; }
  body.portal main:has([data-dir-cards]) .dir-card .badge {
    font-size: .53rem;
    padding: .2rem .38rem;
  }
  body.portal main:has([data-dir-cards]) .dir-card-actions,
  body.portal main:has([data-dir-cards]) .dir-contact-actions {
    justify-content: flex-end;
    text-align: right;
  }
  body.portal main:has([data-dir-cards]) .dir-contact-actions {
    gap: .35rem .65rem;
    margin-top: 0;
  }
  body.portal main:has([data-dir-cards]) .dir-contact-phone,
  body.portal main:has([data-dir-cards]) .dir-contact-website { font-size: .68rem; }
}

@media (max-width: 900px) {
  .site-header .inner { padding: .85rem 1.15rem; }.site-header .btn-quote { padding: .58rem .75rem; }
  .nav-toggle { border-radius: 0; }.nav-item.has-menu .menu { border-left-color: var(--sun); }
  .canopy-home-hero { grid-template-columns: 1fr; }.home-hero-copy { padding: 4rem 1.35rem 3rem; }.home-hero-image { height: 390px; min-height: 390px; }
  .home-section-head { align-items: start; display: block; }.home-section-head > p { margin-top: 1rem; }
  .home-questions .tile-grid { grid-template-columns: 1fr; }.home-services .tile-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 550px) {
  .dir-city-finder { align-items: stretch; flex-direction: column; }
  .dir-city-finder .btn { width: 100%; }
  .emergency-strip { text-align: left; }.home-actions { flex-wrap: wrap; }.home-services .tile-grid { grid-template-columns: 1fr; }
  .home-trust-strip { align-items: flex-start; flex-direction: column; gap: .35rem; }.site-footer { padding-top: 2.7rem; }
  .hero-note { bottom: 1rem; left: 1rem; max-width: calc(100% - 2rem); padding: 1rem 2.5rem 1rem 1.15rem; }
  .hero-note p { font-size: 1.05rem; }
}
