/* Brewery Trip theme, November 2026: "Taproom & label".
   Cream label paper, stout brown, malt amber, hop green and a brick-red accent. Fraunces heads like an old
   lager label; Work Sans runs the app parts. Loaded LAST in layout.ts so it restyles the site without
   touching page structure. Fonts are self-hosted (OFL notices at /assets/fonts/OFL-*.txt). */
@font-face{font-family:"Fraunces";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/fraunces-latin-wght-normal.woff2) format("woff2")}
@font-face{font-family:"Fraunces";font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/fonts/fraunces-latin-wght-italic.woff2) format("woff2")}
@font-face{font-family:"Work Sans";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/work-sans-latin-wght-normal.woff2) format("woff2")}

:root{
  --bt-stout:#2a1d17; --bt-stout2:#3b2a21; --bt-porter:#4a3428;
  --bt-malt:#d39a3e; --bt-malt-dk:#a8701f; --bt-straw:#f1d58a;
  --bt-hop:#4f6b2a; --bt-hop-dk:#3b5220; --bt-brick:#9e3b26;
  --bt-paper:#f6efe2; --bt-foam:#fffaf1; --bt-ink:#241a14; --bt-muted:#6b5546; --bt-line:#e2d5bf;
  --color-background:var(--bt-paper); --color-surface:var(--bt-foam); --color-surface-dark:#efe5d3;
  --color-text-primary:var(--bt-ink); --color-text-secondary:var(--bt-muted); --color-text-muted:var(--bt-muted);
  --color-border:var(--bt-line); --color-border-dark:#d4c3a6;
  --color-primary:var(--bt-malt-dk); --color-primary-light:var(--bt-malt); --color-primary-dark:#8a5a15; --color-primary-rgb:168,112,31;
  --color-accent:var(--bt-hop); --color-accent-light:#6a8a3a; --color-accent-dark:var(--bt-hop-dk);
  --font-heading:"Fraunces",Georgia,serif; --font-body:"Work Sans",-apple-system,"Segoe UI",sans-serif;
  --bs-body-font-family:"Work Sans",-apple-system,"Segoe UI",sans-serif; --bs-body-color:var(--bt-ink); --bs-body-bg:var(--bt-paper);
  --bs-link-color:var(--bt-brick); --bs-link-color-rgb:158,59,38; --bs-link-hover-color:var(--bt-stout); --bs-link-hover-color-rgb:42,29,23;
}
html body{font-family:var(--font-body);color:var(--bt-ink);background-color:var(--bt-paper);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='none' stroke='%23eadfca' stroke-width='1.2'%3E%3Cpath d='M30 20c10 8 10 22 0 30-10-8-10-22 0-30zM30 50c10 8 10 22 0 30-10-8-10-22 0-30z'/%3E%3Cpath d='M30 10v80M150 130c10 8 10 22 0 30-10-8-10-22 0-30zm0 30c10 8 10 22 0 30-10-8-10-22 0-30zm0-40v80'/%3E%3C/g%3E%3C/svg%3E")}
h1,h2,h3,h4,h5,.h1,.h2,.h3,.card-title,.spotlight-title,.section-header h2,.cta-content h2{font-family:var(--font-heading);font-variation-settings:"SOFT" 50,"WONK" 0;color:var(--bt-stout);letter-spacing:-.01em}
h1,.h1{font-weight:800}h2,.h2{font-weight:700}
a{color:var(--bt-brick);text-underline-offset:3px}a:hover{color:var(--bt-stout)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.btn:focus-visible{outline:3px solid var(--bt-stout);outline-offset:3px;box-shadow:none}
.navbar a:focus-visible,.site-footer a:focus-visible,.bt-hero a:focus-visible,.bt-hero input:focus-visible,.cta-section a:focus-visible{outline-color:var(--bt-straw)}

/* nav: stout bar with a label stripe */
.navbar{background:var(--bt-stout) !important;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:4px solid var(--bt-malt);box-shadow:0 1px 0 var(--bt-brick),0 6px 18px -10px rgba(0,0,0,.5)}
.navbar-brand{font-family:var(--font-heading) !important;font-weight:800;font-size:1.45rem;letter-spacing:-.01em}
.navbar-brand:hover{color:var(--bt-straw) !important;transform:none}
.navbar .nav-link{color:#eadfca !important;font-weight:500}
.navbar .nav-link:hover,.navbar .nav-link.active{color:var(--bt-straw) !important}
.state-badge{background:var(--bt-hop) !important;color:#fff}

/* buttons */
.btn{font-family:var(--font-body);font-weight:600;border-radius:999px}
.btn-warning{background:var(--bt-malt) !important;border-color:var(--bt-malt) !important;color:var(--bt-stout) !important}
.btn-warning:hover{background:var(--bt-straw) !important;border-color:var(--bt-malt-dk) !important;color:var(--bt-stout) !important}
.btn-outline-dark{border-color:var(--bt-stout);color:var(--bt-stout)}
.btn-outline-dark:hover{background:var(--bt-stout);color:var(--bt-foam)}
.text-warning{color:var(--bt-malt-dk) !important}

/* ---------- home hero (photo) ---------- */
.bt-hero{position:relative;isolation:isolate;overflow:hidden;color:#fff;background:var(--bt-stout);min-height:auto;padding:0;display:block;animation:none}
.bt-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(30,20,15,.86) 0%,rgba(30,20,15,.74) 52%,rgba(30,20,15,.12) 92%);pointer-events:none}
.bt-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:10px;background:repeating-linear-gradient(90deg,var(--bt-malt) 0 40px,var(--bt-stout) 40px 44px,var(--bt-hop) 44px 84px,var(--bt-stout) 84px 88px,var(--bt-brick) 88px 128px,var(--bt-stout) 128px 132px)}
.bt-hero .bt-hero-img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:62% 45%}
.bt-hero .hero-content{text-align:left;max-width:1140px;margin:0 auto;padding:clamp(56px,8vw,110px) 20px clamp(64px,9vw,120px)}
.bt-hero .bt-kicker{display:inline-block;font:700 .82rem/1.2 var(--font-body);letter-spacing:.18em;text-transform:uppercase;color:var(--bt-straw);border:1.5px solid rgba(241,213,138,.6);border-radius:999px;padding:5px 12px;margin:0 0 16px;text-shadow:none}
.bt-hero h1{color:#fff;font-size:clamp(2.6rem,6.4vw,4.9rem);line-height:.98;max-width:13ch;margin:0 0 12px;text-shadow:0 2px 18px rgba(0,0,0,.45);font-variation-settings:"SOFT" 100,"WONK" 1;font-weight:850}
.bt-hero .hero-subtitle{font-family:var(--font-heading);font-style:italic;font-size:clamp(1.15rem,2vw,1.45rem);color:var(--bt-straw);margin:0 0 14px;text-shadow:0 1px 10px rgba(0,0,0,.5)}
.bt-hero .hero-summary{max-width:36rem !important;margin:0 0 18px !important;font-size:1.04rem !important;line-height:1.6 !important;color:#f3ebdc;opacity:1 !important;text-shadow:0 1px 12px rgba(0,0,0,.6)}
.bt-hero .hero-stats{justify-content:flex-start;gap:12px;margin-top:6px}
.bt-hero .hero-stat{background:transparent;backdrop-filter:none;border:2px solid var(--bt-straw);border-radius:12px;padding:8px 18px;min-width:0;display:flex;align-items:baseline;gap:8px}
.bt-hero .hero-stat-value{font-family:var(--font-heading);font-size:2rem;color:#fff;display:inline}
.bt-hero .hero-stat-label{display:inline;color:var(--bt-straw);font-size:.82rem;margin:0}
.bt-hero .search-container{max-width:560px;margin-left:0 !important}
.bt-hero .search-input{border-radius:999px;border:2px solid var(--bt-straw);background:var(--bt-foam);color:var(--bt-ink)}
.bt-herocap{max-width:1140px;margin:12px auto 0;padding:0 20px;font-size:.86rem;line-height:1.5;color:var(--bt-muted)}
.bt-herocap .story{color:var(--bt-ink)}
@media (max-width:1100px){.bt-hero::before{background:rgba(30,20,15,.82)}}
@media (max-width:640px){.bt-hero .bt-hero-img{object-position:40% 50%}.bt-hero .hero-stat-value{font-size:1.6rem}}

/* photos and captions */
.bt-photo{margin:0}.bt-photo img{width:100%;height:auto;display:block;border-radius:14px;background:#e9dfcc}
.bt-photo figcaption{font-size:.85rem;line-height:1.5;color:var(--bt-muted);margin-top:8px}
.bt-photo .story{display:block;color:var(--bt-ink);font-size:.98rem;line-height:1.45;margin-bottom:4px}
.bt-photo q{font-style:italic;quotes:"\201C" "\201D" "\2018" "\2019"}
.bt-photo a{color:var(--bt-muted)}.bt-photo .story a{color:var(--bt-brick)}

/* archive strip: a label-printed band */
.bt-archive{background:var(--bt-stout);color:#eadfca;border-radius:24px;padding:clamp(22px,4vw,40px);margin:3rem auto;position:relative;
  background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 2px,transparent 2px 6px)}
.bt-archive::before{content:"";position:absolute;inset:10px;border:1.5px solid rgba(211,154,62,.45);border-radius:16px;pointer-events:none}
.bt-archive h2{color:#fff;margin:0 0 .4rem;font-size:clamp(1.7rem,3.4vw,2.4rem)}
.bt-archive .intro{color:#d8c9b0;max-width:44rem;margin:0 0 1.2rem}
.bt-archive .shots{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));align-items:start;position:relative}
.bt-archive .bt-photo{background:var(--bt-foam);border-radius:14px;overflow:hidden}
.bt-archive .bt-photo img{border-radius:0;aspect-ratio:4/3;object-fit:cover}
.bt-archive .bt-photo figcaption{padding:10px 14px 14px;margin:0}

/* section headers and chips */
.section-header h2{font-size:clamp(1.6rem,3vw,2.2rem)}
.section-header h2 .bi{color:var(--bt-malt-dk) !important}
.view-all-link{color:var(--bt-brick);font-weight:600}
.region-chip{background:var(--bt-foam);border:2px solid var(--bt-line);color:var(--bt-stout);font-weight:600}
.region-chip:hover{border-color:var(--bt-brick);color:var(--bt-brick)}
.region-chip.highlight{background:var(--bt-hop);border-color:var(--bt-hop);color:#fff}
.region-chip.highlight:hover{background:var(--bt-hop-dk);border-color:var(--bt-hop-dk);color:#fff}
.state-selector-cta .lead{font-family:var(--font-heading);font-style:italic;color:var(--bt-muted)}

/* spotlight: a big beer label */
.featured-spotlight{background:var(--bt-foam);border:2px solid var(--bt-stout);border-radius:20px;box-shadow:6px 6px 0 var(--bt-malt)}
.spotlight-badge{background:var(--bt-brick) !important;color:#fff !important}
.spotlight-region{color:var(--bt-hop) !important;letter-spacing:.14em;font-weight:700}
.spotlight-description q{font-family:var(--font-heading);font-style:italic}

/* brewery cards: label tops instead of random gradients */
.brewery-card{background:var(--bt-foam);border:1px solid var(--bt-line);border-radius:14px;box-shadow:0 10px 22px -18px rgba(42,29,23,.55)}
.brewery-card:hover{transform:translateY(-3px);box-shadow:0 14px 26px -16px rgba(42,29,23,.55)}
.card-img-placeholder.bt-label{height:96px;background:var(--bt-stout);color:var(--bt-straw);font-size:2rem;
  background-image:repeating-linear-gradient(90deg,transparent 0 22px,rgba(255,255,255,.04) 22px 24px);border-bottom:5px solid var(--bt-malt)}
.card-img-placeholder.bt-label[data-tone="hop"]{background-color:var(--bt-hop-dk);border-bottom-color:var(--bt-straw)}
.card-img-placeholder.bt-label[data-tone="brick"]{background-color:var(--bt-brick);border-bottom-color:var(--bt-straw)}
.card-img-placeholder.bt-label[data-tone="porter"]{background-color:var(--bt-porter)}
.card-img-placeholder.bt-label::after{display:none}
.brewery-region-badge{background:var(--bt-foam) !important;color:var(--bt-stout) !important;font-weight:700}
.brewery-type-pill{background:#efe5d3;color:var(--bt-stout)}
.amenity-tag{background:#efe5d3;color:var(--bt-porter)}

/* CTA band and how-it-works */
.cta-section{background:var(--bt-hop-dk) !important;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 10px,transparent 10px 20px) !important;border-top:6px solid var(--bt-malt);border-bottom:6px solid var(--bt-malt)}
.cta-content h2{color:#fff}.cta-content p{color:#eef0e2;opacity:1}
.cta-section .btn-light{background:var(--bt-foam);color:var(--bt-stout);border-color:var(--bt-foam)}
.cta-section .btn-outline-light{color:#fff;border-color:#fff}
.cta-section .btn-outline-light:hover{background:#fff;color:var(--bt-hop-dk)}
.how-it-works-card{background:var(--bt-foam);border:1px solid var(--bt-line);box-shadow:none}
.how-icon{background:var(--bt-stout) !important;color:var(--bt-straw) !important}

/* footer */
.site-footer{background:var(--bt-stout) !important;border-top:6px solid var(--bt-malt)}
.footer-heading{color:var(--bt-straw);font-family:var(--font-heading)}
.footer-text,.footer-links a{color:#d8c9b0}
.footer-links a:hover{color:#fff}

/* mobile bottom nav */
.mobile-bottom-nav{background:var(--bt-stout) !important;border-top:3px solid var(--bt-malt)}
.mobile-bottom-nav .bottom-nav-item{color:#d8c9b0}
.mobile-bottom-nav .bottom-nav-item.active,.mobile-bottom-nav .bottom-nav-item:hover{color:var(--bt-straw)}

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

/* fixes after first preview */
.bt-hero .search-container{background:transparent !important;box-shadow:none !important;padding:0 !important}
.bt-hero #searchResults{background:var(--bt-foam);color:var(--bt-ink);border-radius:14px}
.skip-to-content{position:absolute;left:-9999px;top:8px;z-index:2000;background:var(--bt-foam);color:var(--bt-stout);padding:8px 14px;border-radius:8px;font-weight:600}
.skip-to-content:focus{left:12px}

/* listing, detail and shared pieces */
html body :is(h1,h2,h3,h4){color:var(--bt-stout)}
.hero-title{font-family:var(--font-heading) !important;font-variation-settings:"SOFT" 100,"WONK" 1}
.brewery-grid-card{background:var(--bt-foam);border:1px solid var(--bt-line);border-radius:14px;box-shadow:0 10px 22px -18px rgba(42,29,23,.55)}
.brewery-grid-card:hover{transform:translateY(-3px)}
.brewery-card-header{height:84px;border-bottom:5px solid var(--bt-malt);background-blend-mode:normal}
.brewery-card-header .beer-icon{display:none}
.brewery-card-header .region-badge{background:var(--bt-foam);color:var(--bt-stout);font-weight:700}
.brewery-card-body h2,.brewery-card-body h3{font-size:1.35rem;line-height:1.15;color:var(--bt-stout)}
.brewery-type-pill{display:inline-block;padding:1px 8px;border-radius:999px;font-size:.78rem;font-weight:600;text-transform:lowercase}
.view-btn{background:var(--bt-malt) !important;color:var(--bt-stout) !important;border-radius:999px;font-weight:700}
.view-btn:hover{background:var(--bt-straw) !important}
.has-website{background:#efe5d3;color:var(--bt-hop-dk)}
.filter-card{background:var(--bt-foam);border:1px solid var(--bt-line);box-shadow:none}
.badge[style*="D97706"],.badge[style*="d97706"]{background:var(--bt-hop) !important;color:#fff}
.btn-success{background:var(--bt-hop);border-color:var(--bt-hop)}.btn-success:hover{background:var(--bt-hop-dk);border-color:var(--bt-hop-dk)}
.content-card{background:var(--bt-foam);border:1px solid var(--bt-line)}
.form-control,.form-select{background-color:var(--bt-foam);border-color:var(--bt-line)}

/* phone widths: these overflowed before the theme too */
.trail-stats{flex-wrap:wrap;gap:1rem 1.5rem}
@media (max-width:575px){.row.g-4{--bs-gutter-x:1rem}main h1{overflow-wrap:anywhere}}
@media (max-width:575px){.container.brewery-content{padding-left:12px;padding-right:12px}}
.trail-stop .badge,main .badge.bg-secondary{white-space:normal;text-align:left;line-height:1.35}

/* focus on dark surfaces (Astra round 1) and back to dark inside the light search panel */
.navbar button:focus-visible,.navbar .navbar-toggler:focus-visible,.mobile-bottom-nav a:focus-visible,.bt-hero button:focus-visible,.bt-archive h2 a:focus-visible,.cta-section button:focus-visible{outline:3px solid var(--bt-straw);outline-offset:3px;box-shadow:none}
.bt-hero #searchResults a:focus-visible,.bt-hero #searchResults [role=option]:focus-visible,.bt-archive .bt-photo a:focus-visible{outline-color:var(--bt-stout)}
.navbar .navbar-toggler{border-color:rgba(241,213,138,.6)}
.navbar .navbar-toggler-icon{filter:invert(1) sepia(.4)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto !important}}
/* search results must not be clipped by the hero */
.bt-hero{overflow:visible;z-index:5}
.bt-hero .bt-hero-img{clip-path:inset(0)}
.bt-hero #searchResults{z-index:20;max-height:60vh;overflow-y:auto;box-shadow:0 18px 40px -12px rgba(30,20,15,.6)}
.navbar .nav-link:focus-visible,.navbar-brand:focus-visible{outline:3px solid var(--bt-straw) !important;outline-offset:3px}
.bt-hero .search-input:focus,.bt-hero .search-input:focus-visible{outline:3px solid var(--bt-straw) !important;outline-offset:3px}
input.form-control:focus-visible,select.form-select:focus-visible,.search-input:focus-visible{outline:3px solid var(--bt-stout) !important;outline-offset:2px}
@media (max-width:991.98px){.navbar-collapse,.navbar .navbar-collapse.show,.navbar .navbar-collapse.collapsing{background:var(--bt-stout2) !important;border:1px solid rgba(211,154,62,.35)}.navbar .navbar-nav .nav-link{background:transparent !important;border-color:rgba(211,154,62,.18) !important}}
@media (max-width:640px){.bt-hero .bt-kicker{font-size:.7rem;letter-spacing:.1em;padding:4px 10px}}
.bt-hero #searchResults a:focus-visible{outline-offset:-4px}
