/* Around Thomasville 24.7.2 Heritage UI
   Restores the tighter, illustrated Thomasville visual language from the original mockups
   while preserving the WCAG-oriented 16px reading baseline and reusable app components. */
:root{
  --heritage-heading:"Bahnschrift Condensed","Arial Narrow","Aptos Narrow","Roboto Condensed",Arial,sans-serif;
  --heritage-body:"Segoe UI",Tahoma,Arial,sans-serif;
  --sidebar-w:210px;
  --radius:8px;
  --radius-sm:6px;
  --shadow:0 10px 24px rgba(4,28,32,.18);
  --shadow-sm:0 4px 12px rgba(4,28,32,.16);
  --paper:#f7f1e5;
  --cream:#f4eddd;
  --navy:#14394a;
  --teal:#0a4b53;
  --teal-2:#0c5b61;
  --gold:#d9bd72;
  --gold-2:#b59042;
  --burgundy:#713646;
}

body.public-page{font-family:var(--heritage-body);font-size:16px;line-height:1.5;background:#0b3c42 url('../images/bg-oak.png') center 18%/cover fixed no-repeat;color:#fff}
body.public-page:before{background:linear-gradient(90deg,rgba(7,36,40,.06),rgba(7,36,40,.12) 55%,rgba(7,36,40,.06));}
.public-page h1,.public-page h2,.public-page h3,.public-page h4,.public-page .brand strong,.public-page .nav-title,.public-page .side-nav a,.public-page .btn,.public-page .section-link,.public-page .eyebrow,.public-page .category-card strong,.public-page .business-card h2,.public-page .business-card h3,.public-page .featured-card h3,.public-page .home-content-card h3{font-family:var(--heritage-heading);font-stretch:condensed;letter-spacing:.015em}

/* Sidebar — light translucent Thomasville panel from the original concept. */
.public-shell{grid-template-columns:var(--sidebar-w) minmax(0,1fr)}
.sidebar{padding:12px 10px 10px;background:rgba(222,232,229,.88);backdrop-filter:blur(13px) saturate(.88);-webkit-backdrop-filter:blur(13px) saturate(.88);border-right:1px solid rgba(255,255,255,.58);box-shadow:10px 0 30px rgba(0,31,38,.13);color:#183847}
.brand{gap:8px;padding:2px 7px 11px;margin:0 0 7px;border-bottom:0}
.brand-emblem{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;position:relative;color:#174655;font-family:var(--heritage-heading);font-size:23px;font-weight:800;transform:rotate(-8deg)}
.brand-emblem:before,.brand-emblem:after{content:"";position:absolute;background:#6e938b;border-radius:999px;opacity:.55}
.brand-emblem:before{width:27px;height:5px;transform:rotate(-28deg)}
.brand-emblem:after{width:5px;height:27px;transform:rotate(-28deg)}
.brand-emblem span{position:relative;z-index:1}
.brand-copy strong{display:block;text-transform:uppercase;font-size:17px;line-height:1.05;color:#173746;font-weight:800}
.brand-copy small{display:block;margin-top:3px;color:#506a71;font-size:14px!important;line-height:1.2}
.mobile-menu-button{font-family:var(--heritage-heading)}
.side-nav{display:block}
.nav-group{margin:9px 0 13px}
.nav-title{margin:0 0 3px;padding:0 7px;text-transform:uppercase;color:#173847;font-size:15px!important;line-height:1.25;font-weight:900;letter-spacing:.025em}
.side-nav a{display:flex;align-items:center;gap:8px;min-height:38px;padding:6px 7px;border-radius:6px;color:#173847;font-size:16px!important;line-height:1.2;font-weight:650;text-decoration:none}
.side-nav a:hover,.side-nav a:focus-visible{background:rgba(255,255,255,.42);text-decoration:none}
.side-nav a.active{background:linear-gradient(90deg,rgba(220,190,111,.92),rgba(198,213,205,.52));box-shadow:inset 0 0 0 1px rgba(255,255,255,.36)}
.nav-glyph{width:18px;flex:0 0 18px;text-align:center;color:#16495b;font-weight:900;font-family:Arial,sans-serif}
.sidebar-cta{padding-top:8px}
.sidebar-cta a{min-height:44px;padding:9px 10px;border-radius:5px;background:linear-gradient(#174d5d,#0d3e4b);border:1px solid #1f5661;color:#fff;font-family:var(--heritage-heading);font-size:16px;font-weight:800;box-shadow:0 2px 6px rgba(6,35,42,.25)}

/* Public content geometry — tighter and more integrated with the background artwork. */
.public-main{min-height:100vh}
.public-content{padding:18px 24px 34px}
.content-wrap{max-width:1160px}
.home-page{padding-top:10px}
.home-hero{text-align:center;padding:4px 0 12px}
.home-hero>.eyebrow{display:none}
.home-hero h1{font-size:clamp(2rem,4vw,2.85rem);line-height:1;margin:.15rem 0 .45rem;color:#fff;text-shadow:0 3px 8px rgba(0,0,0,.65);font-weight:900}
.home-hero-intro{max-width:780px;margin:0 auto 10px;color:#f6f7f2;font-size:1rem;line-height:1.45;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.home-stat-strip{max-width:850px;margin:8px auto 0;grid-template-columns:repeat(4,minmax(0,1fr));border-radius:5px;background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.25)}
.home-stat-strip span{padding:6px 8px;background:rgba(3,49,55,.73);font-size:1rem!important}
.home-stat-strip strong{font-size:1.15rem}

/* Search strip — compact connected dark-teal bar. */
.search-strip{grid-template-columns:minmax(280px,1.5fr) minmax(220px,1fr) auto auto;max-width:860px;margin:0 auto 8px;border-radius:5px;background:rgba(4,51,58,.93);border:1px solid rgba(224,201,142,.62);box-shadow:0 5px 15px rgba(0,22,28,.35);overflow:visible}
.search-field{min-height:48px;padding:0 11px;border-right:1px solid rgba(255,255,255,.18);position:relative}
.search-field label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.search-field input{height:48px;font-size:16px}
.search-strip>.btn{min-height:48px;border-radius:0;padding:8px 15px;font-size:16px;letter-spacing:.015em}
.search-strip>.btn-primary{background:linear-gradient(#e0c67c,#c9a95b);color:#183640;border-color:#ead795}
.search-strip>.btn-secondary{background:rgba(7,59,64,.96);border-color:#bfa15a;color:#fff}
.search-suggestions{border-radius:4px}

/* Homepage categories — circular icon + label, no SaaS-style rectangular card. */
.home-section{margin:8px 0 18px}
.home-section-heading{margin-bottom:8px}
.home-section-heading h2{font-size:1.55rem;line-height:1.1;text-shadow:0 2px 5px rgba(0,0,0,.42)}
.home-section-heading .eyebrow{font-size:1rem!important;margin-bottom:0}
.section-link{font-size:16px}
.home-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 18px;max-width:900px;margin:0 auto}
.home-category-grid .category-card{min-height:60px;padding:5px 4px;background:transparent;border:0;border-radius:0;box-shadow:none;color:#fff;transform:none!important}
.home-category-grid .category-card:hover,.home-category-grid .category-card:focus-visible{background:rgba(5,50,55,.24);border-radius:6px}
.home-category-grid .category-icon{width:46px;height:46px;flex-basis:46px;border:2px solid #d5b866;background:#0e5559;color:#f2d982;box-shadow:0 2px 6px rgba(0,0,0,.35);font-size:20px}
.home-category-grid .category-icon.burgundy{background:#703345}
.home-category-grid .category-copy{line-height:1.1}
.home-category-grid .category-card strong{font-size:18px;line-height:1.1;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.55)}
.home-category-grid .category-card .category-copy>span{font-size:16px!important;line-height:1.12;color:#f8f4e5!important;text-shadow:0 1px 2px rgba(0,0,0,.55)}
.home-category-grid .category-count{font-size:14px!important;color:#efda9b!important;margin-top:2px}

/* Featured listing area — compact cream cards, closer to the original first-screen design. */
.home-surface{padding:14px 16px 16px;border-radius:6px;background:rgba(8,58,61,.20);border:0;box-shadow:none;color:#fff}
.home-surface .home-section-heading h2{color:#fff;text-shadow:0 2px 5px rgba(0,0,0,.45)}
.home-surface .eyebrow{color:#f0d58d}
.home-surface .section-link.dark{color:#fff}
.home-page #featured .business-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.home-page #featured .business-card{display:block;min-height:180px;padding:11px;border-radius:6px;background:rgba(249,245,235,.97);border:1px solid #d8cdb8;box-shadow:0 5px 10px rgba(0,0,0,.22);color:#233a40}
.home-page #featured .business-thumb{display:none}
.home-page #featured .business-card h3{font-size:18px;line-height:1.05;margin-bottom:5px;text-transform:uppercase}
.home-page #featured .business-card p{font-size:16px!important;line-height:1.3;margin:4px 0}
.home-page #featured .business-meta{font-size:16px!important}
.home-page #featured .business-freshness{font-size:14px!important}
.home-page #featured .card-actions{margin-top:7px}
.home-page #featured .text-link{min-height:38px;font-size:16px}
.home-page #featured .icon-button{min-height:38px}

/* Additional categories keep the same jewel-icon visual language. */
.home-page #more-categories .category-grid,.home-page .more-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 18px}

/* Interior pages — cream editorial surfaces with restrained corners, not generic SaaS cards. */
.page-hero{padding:18px 20px;border-radius:7px;margin-bottom:14px;background:rgba(4,49,55,.84);border:1px solid rgba(255,255,255,.18);box-shadow:0 6px 18px rgba(0,0,0,.2)}
.page-hero h1{font-size:clamp(2rem,4vw,2.8rem);letter-spacing:.01em}
.page-hero p{font-size:1rem;line-height:1.55}
.content-panel,.content-card,.home-community-panel{border-radius:7px;background:rgba(249,246,237,.97);border:1px solid rgba(222,212,190,.9);box-shadow:0 5px 14px rgba(0,0,0,.16)}
.content-panel{padding:18px}
.section-heading{font-size:1.65rem}

/* Category directory cards on interior pages remain readable but use the heritage palette. */
.category-grid:not(.home-category-grid){gap:10px}
.category-grid:not(.home-category-grid) .category-card{min-height:72px;padding:10px;border-radius:7px;background:rgba(6,54,59,.92);border:1px solid rgba(224,199,128,.35);box-shadow:0 3px 10px rgba(0,0,0,.18)}
.category-grid:not(.home-category-grid) .category-icon{width:44px;height:44px;flex-basis:44px}

/* General business cards — tighter cream paper treatment. */
.business-grid{gap:12px}
.business-card{grid-template-columns:74px 1fr;gap:11px;padding:12px;border-radius:7px;background:rgba(249,246,237,.98);border:1px solid #d7ccba;box-shadow:0 4px 12px rgba(0,0,0,.16)}
.business-thumb{width:74px;height:74px;border-radius:6px;background:linear-gradient(145deg,#dce6e2,#bdcfca);font-size:22px}
.business-card h2,.business-card h3{font-size:1.2rem;line-height:1.05}
.business-card p,.business-meta,.business-freshness{font-size:16px!important;line-height:1.35}

/* Buttons, forms and chips retain accessible targets with less pill/SaaS styling. */
.btn{border-radius:5px;font-family:var(--heritage-heading);font-size:16px;letter-spacing:.015em}
.chip,.verified-label,.claimed-label,.sponsor-label,.status-badge,.badge{border-radius:5px!important}
.form-grid input,.form-grid select,.form-grid textarea,.field input,.field select,.field textarea{border-radius:5px}

/* Join/footer return to a continuous dark-teal foundation. */
.join-directory{border-radius:0;margin:18px -24px 0;padding:18px 24px;background:linear-gradient(90deg,rgba(4,63,68,.98),rgba(6,71,75,.97));border:0;border-top:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.16);box-shadow:none}
.join-directory h2{font-size:1.7rem}
.join-steps li>span{width:38px;height:38px;border-radius:4px;background:transparent;color:#d5bc77;font-size:1.7rem}
.join-actions .btn{border-radius:5px}
.site-footer{background:rgba(3,60,65,.98)!important;border-radius:0!important;margin:0 -24px -34px!important;color:#fff!important}
.site-footer a{color:#fff}

/* Community panels lower on the homepage should feel editorial, not dashboard-like. */
.home-community-grid{gap:12px;margin-bottom:18px}
.home-community-panel{padding:15px}
.home-content-card{border-radius:5px;padding:12px}
.home-content-card h3{font-size:1.15rem}

/* Ads are visually separated but do not dominate the template. */
.adsense-unit{background:rgba(249,246,237,.88);border-radius:5px;padding:.55rem .7rem;min-height:76px}
.adsense-label{font-size:14px!important;color:#5a615d}

/* Mobile/tablet */
@media(max-width:1080px){
  :root{--sidebar-w:190px}
  .home-page #featured .business-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .public-shell{display:block}
  .sidebar{position:relative;height:auto;width:100%;padding:10px 12px}
  .brand{max-width:360px}
  .nav-group{margin:8px 0}
  .side-nav a{min-height:44px}
  .public-content{padding:14px 14px 28px}
  .search-strip{grid-template-columns:1fr;overflow:hidden}
  .search-field{border-right:0;border-bottom:1px solid rgba(255,255,255,.18)}
  .search-strip>.btn{border-radius:0}
  .join-directory{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}
  .site-footer{margin-left:-14px!important;margin-right:-14px!important;margin-bottom:-28px!important}
}
@media(max-width:620px){
  .home-category-grid,.home-page #featured .business-grid{grid-template-columns:1fr}
  .home-category-grid .category-card{min-height:64px}
  .home-stat-strip{grid-template-columns:1fr 1fr}
  .home-community-grid{grid-template-columns:1fr}
  .page-hero h1{font-size:2rem}
}

@media(prefers-reduced-motion:reduce){.category-card,.business-card{transform:none!important}}
@media(forced-colors:active){body.public-page{background:Canvas}.sidebar,.page-hero,.content-panel,.business-card,.category-card{forced-color-adjust:auto}}
