/* ====================================================================
   NWArocks — Dark Theme Stylesheet
   Complete dark-palette presentation layer.
   Variables defined in style.css :root block.
   ==================================================================== */


/* ────────────────────────────────────────────────────────────────────
   1. GLOBAL BASE
   ──────────────────────────────────────────────────────────────────── */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-main);
  text-decoration: none;
  text-underline-offset: .2em;
  transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}

a:hover {
  color: var(--accent);
}

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: .5em;
  font-weight: 700;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

h3 {
  font-size: 1.1rem;
}

h4 { font-size: 1rem; }
h5 { font-size: .95rem; }
h6 { font-size: .9rem; }

p {
  margin-bottom: 1.2em;
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }

blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5em 0;
  padding: .5em 1.5em;
  color: var(--text-muted);
  font-style: italic;
}

pre, code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .9em;
}

pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1em;
  overflow-x: auto;
  margin-bottom: 1.5em;
  border-radius: 4px;
}

code {
  background: var(--bg-alt);
  padding: .15em .4em;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ────────────────────────────────────────────────────────────────────
   2. CONTENT WIDTH HELPERS
   ──────────────────────────────────────────────────────────────────── */

.content-width {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.reading-width {
  max-width: var(--reading-max);
}

.narrow {
  max-width: var(--reading-max);
  margin: 0 auto;
}

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#container {
  flex: 1;
  padding: 2rem 0;
  --bg-main: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-card: #ffffff;
  --text-main: #1a1a1e;
  --text-muted: rgba(26,26,30,.65);
  --border: rgba(26,26,30,.12);
  --shadow: 0 10px 28px rgba(0,0,0,.08);
  background: var(--bg-main);
  color: var(--text-main);
}

#content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1rem;
}


/* ────────────────────────────────────────────────────────────────────
   3. HEADER / NAV
   ──────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(15, 15, 16, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Brand */
.site-branding .site-name {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.site-brand,
.site-branding .site-name a {
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text-main);
  text-decoration: none;
}

.site-branding .site-name a:hover {
  color: var(--accent);
}

/* Brand mark — small accent circle before brand text */
.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(157, 34, 53, .18);
  margin-right: .45em;
  vertical-align: middle;
}

/* Desktop primary nav */
.primary-nav,
.main-navigation ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.primary-nav a,
.main-navigation a {
  display: block;
  opacity: .9;
  padding: .35rem .4rem;
  border-radius: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus,
.main-navigation a:hover,
.main-navigation a:focus {
  opacity: 1;
  background: rgba(244, 244, 245, .06);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.primary-nav .current-menu-item > a {
  opacity: 1;
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

/* Dropdown sub-menus */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
  z-index: 1001;
  flex-direction: column;
  box-shadow: var(--shadow);
  padding: .25rem 0;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
  display: flex;
}

.main-navigation ul ul a {
  padding: .55rem .9rem;
  font-size: .9rem;
  border-radius: 0;
}

.main-navigation ul ul li:first-child a {
  border-radius: 8px 8px 0 0;
}

.main-navigation ul ul li:last-child a {
  border-radius: 0 0 8px 8px;
}

/* Mobile toggle — hidden by default */
.nav-toggle,
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 1002;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: transform .3s ease, opacity .3s ease;
}

/* Mobile panel — hidden by default */
.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  padding: 1rem;
}


/* ────────────────────────────────────────────────────────────────────
   4. FOOTER
   ──────────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid,
.footer-columns {
  display: grid;
  grid-template-columns: 2fr;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: .8em;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  padding: .2em 0;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: .8em;
}

.footer-social {
  display: flex;
  gap: 1em;
  margin-top: .8em;
}

.footer-social a {
  font-size: .85rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  opacity: .85;
  font-size: .95rem;
  color: var(--text-muted);
}


/* ────────────────────────────────────────────────────────────────────
   5. HOMEPAGE LAYOUT — Eventbrite-inspired
   ──────────────────────────────────────────────────────────────────── */

/* Hero — full-width centered, generous vertical space */
.hp-hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(157,34,53,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 0%, rgba(157,34,53,.08) 0%, transparent 50%),
    var(--bg-main);
}

/* Hero height presets */
.hp-hero--height-small  { min-height: 280px; }
.hp-hero--height-medium { min-height: 420px; }
.hp-hero--height-large  { min-height: 560px; }
.hp-hero--height-full   { min-height: 100vh; }
.hp-hero--height-image  { min-height: 0; }

/* Hero content width presets */
.hp-hero--width-narrow  .hp-hero-inner { max-width: 640px; }
.hp-hero--width-default .hp-hero-inner { max-width: 820px; }
.hp-hero--width-wide    .hp-hero-inner { max-width: 1080px; }
.hp-hero--width-full    .hp-hero-inner { max-width: 100%; }

/* Background image mode */
.hp-hero--has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay via ::before */
.hp-hero--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}

.hp-hero--overlay-none::before   { opacity: 0; }
.hp-hero--overlay-light::before  { opacity: .3; }
.hp-hero--overlay-medium::before { opacity: .5; }
.hp-hero--overlay-heavy::before  { opacity: .7; }

.hp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Title size variants */
.hp-hero--size-small .hp-hero-title  { font-size: clamp(1.4rem, 3vw, 2rem); }
.hp-hero--size-medium .hp-hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hp-hero--size-large .hp-hero-title  { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hp-hero--size-xl .hp-hero-title     { font-size: clamp(2.8rem, 6vw, 5rem); }

.hp-hero-title {
  font-weight: 800;
  margin-bottom: .3em;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.hp-hero-lede {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 1.5em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA buttons */
.hp-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.hp-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .75em 2em;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.hp-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.hp-hero-btn--filled {
  background: var(--btn-color);
  color: #fff;
  border: 2px solid var(--btn-color);
}

.hp-hero-btn--outline {
  background: transparent;
  color: var(--btn-color);
  border: 2px solid var(--btn-color);
}

.hp-hero-btn--outline:hover {
  background: var(--btn-color);
  color: #fff;
}



/* ────────────────────────────────────────────────────────────────────
   6. SECTION RHYTHM — Eventbrite spacing
   ──────────────────────────────────────────────────────────────────── */

.hp-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hp-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: none;
}

.hp-section + .hp-section {
  border-top: 1px solid var(--border);
}

.hp-eyebrow {
  display: flex;
  align-items: center;
  gap: .5em;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .6em;
}

.hp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hp-section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.2em;
  letter-spacing: -.02em;
  border-bottom: none;
  padding-bottom: 0;
  text-transform: none;
}


/* ────────────────────────────────────────────────────────────────────
   7. START-HERE GUIDE CARDS — Eventbrite event card style
   ──────────────────────────────────────────────────────────────────── */

.hp-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.hp-guide-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-main);
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hp-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  border-color: rgba(244,244,245,.2);
}

.hp-guide-card-image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}

.hp-guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.hp-guide-card:hover .hp-guide-card-image img {
  transform: scale(1.06);
}

.hp-guide-card-text {
  display: flex;
  flex-direction: column;
  gap: .35em;
  padding: 1em 1.1em 1.2em;
  flex: 1;
}

.hp-guide-card-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text-main);
}

.hp-guide-card:hover .hp-guide-card-title { color: var(--accent); }

.hp-guide-card-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ────────────────────────────────────────────────────────────────────
   8. CITY GRID — Eventbrite destination cards
   ──────────────────────────────────────────────────────────────────── */

.hp-city-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.hp-city-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem 1.2rem;
  border-radius: 12px;
  min-height: 160px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(15,15,16,.92) 0%, rgba(15,15,16,.4) 50%, rgba(15,15,16,.15) 100%),
    linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hp-city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  border-color: var(--accent);
}

.hp-city-card--inactive {
  opacity: .4;
  pointer-events: none;
}

.hp-city-label {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hp-city-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-top: .25em;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.hp-city-card:hover .hp-city-label { color: var(--accent); }

/* City card — tag image background */
.hp-city-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .4s ease;
}

.hp-city-card--has-image {
  background: none;
  border-color: transparent;
}

/* Gradient overlay when image is present */
.hp-city-card--has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(15,15,16,.88) 0%, rgba(15,15,16,.35) 55%, rgba(15,15,16,.1) 100%);
}

.hp-city-card--has-image:hover .hp-city-card-bg {
  transform: scale(1.08);
}

/* Subtle accent glow on each city card */
.hp-city-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
}

.hp-city-card:hover::before { opacity: 1; }


/* ────────────────────────────────────────────────────────────────────
   9. RECENTLY UPDATED — larger card grid
   ──────────────────────────────────────────────────────────────────── */

.hp-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hp-recent-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text-main);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hp-recent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  border-color: rgba(244,244,245,.2);
}

.hp-recent-card-image {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.hp-recent-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-recent-card-text {
  display: flex;
  flex-direction: column;
  gap: .3em;
  min-width: 0;
}

.hp-recent-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-main);
  line-height: 1.3;
}

.hp-recent-card:hover .hp-recent-title { color: var(--accent); }

.hp-recent-date {
  font-size: .8rem;
  color: var(--text-muted);
}


/* ────────────────────────────────────────────────────────────────────
   10. TOPICS — clean browse grid
   ──────────────────────────────────────────────────────────────────── */

.hp-topic-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hp-topic-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color .2s ease;
}

.hp-topic-group:hover {
  border-color: rgba(244,244,245,.18);
}

.hp-topic-group h3,
.hp-topic-group-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .8em;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hp-topic-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-topic-group li {
  border-bottom: 1px solid var(--border);
}

.hp-topic-group li:last-child { border-bottom: none; }

.hp-topic-group a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55em 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s ease, padding-left .15s ease;
}

.hp-topic-group a:hover {
  color: var(--text-main);
  padding-left: .3em;
}

.hp-topic-count {
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: .15em .5em;
  border-radius: 8px;
  min-width: 1.5em;
  text-align: center;
}


/* ────────────────────────────────────────────────────────────────────
   11. ABOUT SECTION — centered CTA
   ──────────────────────────────────────────────────────────────────── */

.hp-about-content {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.hp-about-content p:last-of-type {
  margin-bottom: .5em;
}

.hp-about-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.hp-about-content a:hover {
  border-bottom-color: var(--accent);
}

.hp-about-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  padding: .6em 1.4em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: all .2s ease;
  margin-top: .5em;
}

.hp-about-link:hover {
  background: var(--accent);
  color: #fff;
}


/* ────────────────────────────────────────────────────────────────────
   12. SINGLE POST / GUIDE ARTICLE
   ──────────────────────────────────────────────────────────────────── */

.guide-article {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

.guide-header {
  margin-bottom: 2rem;
}

.guide-header .entry-title {
  margin-bottom: .3em;
}

.guide-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: .8em;
  font-style: italic;
}

/* Table of Contents */
.guide-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.2em 1.5em;
  margin-bottom: 2em;
  border-radius: 0 4px 4px 0;
}

.guide-toc h2 {
  font-size: 1.1rem;
  margin-bottom: .5em;
  border-bottom: none;
  padding-bottom: 0;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.guide-toc ol {
  list-style: decimal;
  padding-left: 1.2em;
  margin: 0;
}

.guide-toc li {
  padding: .2em 0;
}

.guide-toc a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-main);
}

.guide-toc a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Guide Content */
.guide-content h2 {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.guide-content h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.guide-content h3 {
  margin-top: 1.5em;
  scroll-margin-top: 80px;
}

.guide-content ul,
.guide-content ol {
  margin: 0 0 1.5em 1.5em;
}

.guide-content ul {
  list-style: disc;
}

.guide-content ol {
  list-style: decimal;
}

.guide-content li {
  margin-bottom: .3em;
}

/* Guide hero image — full-width above the title */
.guide-hero-image {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Guide content and sidebar centred for readability */
.guide-content {
  max-width: var(--reading-max);
}

.guide-featured-image {
  margin-bottom: 1.5em;
}

.guide-featured-image img {
  border-radius: 4px;
}

/* Guide Footer */
.guide-footer {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 2px solid var(--border);
}

.guide-taxonomies {
  margin-bottom: 1em;
  font-size: .9rem;
  color: var(--text-muted);
}

.guide-taxonomies a {
  color: var(--text-muted);
}

.guide-taxonomies a:hover {
  color: var(--accent);
}

.guide-verified {
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Guide Body — two-column layout (post + sidebar) */
.guide-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.guide-primary {
  min-width: 0;
}

/* Sidebar */
#sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.widget-area .widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-area .widget-list > li {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.widget-area .widget-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .75em;
  color: var(--text);
}

.widget-area ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-area li {
  padding: .3em 0;
  font-size: .9rem;
}

.widget-area a {
  color: var(--text-muted);
  text-decoration: none;
}

.widget-area a:hover {
  color: var(--accent);
}


/* ────────────────────────────────────────────────────────────────────
   13. ENTRY META
   ──────────────────────────────────────────────────────────────────── */

.entry-meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5em;
}

.entry-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.entry-meta a:hover {
  color: var(--accent);
}

.meta-sep {
  margin: 0 .3em;
}


/* ────────────────────────────────────────────────────────────────────
   14. ARCHIVE GRID + ENTRY CARDS
   ──────────────────────────────────────────────────────────────────── */

/* Archive grid — 3 columns on desktop, 2 tablet, 1 mobile */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Entry card — vertical card with image */
.entry-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.entry-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.entry-card-image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}

.entry-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.entry-card:hover .entry-card-image img {
  transform: scale(1.04);
}

.entry-card-body {
  padding: 1rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.entry-card .entry-title {
  font-size: 1.15rem;
  margin-bottom: .25em;
  line-height: 1.3;
}

.entry-card .entry-title a {
  text-decoration: none;
  color: var(--text-main);
}

.entry-card .entry-title a:hover {
  color: var(--accent);
}

.entry-summary {
  margin-top: .4em;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.entry-footer {
  margin-top: .8em;
  font-size: .85rem;
  color: var(--text-muted);
}

.entry-footer a { color: var(--text-muted); }
.entry-footer a:hover { color: var(--accent); }

.edit-link { font-size: .8rem; }


/* ────────────────────────────────────────────────────────────────────
   15. ARCHIVE / PAGE HEADERS
   ──────────────────────────────────────────────────────────────────── */

.archive-header {
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 2px solid var(--accent);
}

.archive-header .entry-title {
  margin-bottom: .2em;
}

.archive-meta {
  color: var(--text-muted);
  font-size: .95rem;
}

/* Tag archive — image banner */
.archive-header--has-image {
  position: relative;
  border-bottom: none;
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 0;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.archive-header-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.archive-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-header--has-image .archive-header-text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3rem 2rem 1.5rem;
  background: linear-gradient(to top, rgba(15,15,16,.88) 0%, rgba(15,15,16,.4) 60%, transparent 100%);
}

.archive-header--has-image .entry-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.archive-header--has-image .archive-meta {
  color: rgba(255,255,255,.75);
}

.page-header {
  margin-bottom: 1.5em;
}


/* ────────────────────────────────────────────────────────────────────
   16. PAGINATION
   ──────────────────────────────────────────────────────────────────── */

.nav-links {
  display: flex;
  justify-content: center;
  gap: .5em;
  padding: 2em 0;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  display: inline-block;
  padding: .4em .8em;
  border: 1px solid var(--border);
  text-decoration: none;
  border-radius: 3px;
  font-size: .9rem;
  color: var(--text-main);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.nav-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-links .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Post navigation (prev/next) */
.post-navigation {
  margin-top: 1.5em;
}

.post-navigation .nav-links {
  justify-content: space-between;
}

.post-navigation a {
  text-decoration: none;
}


/* ────────────────────────────────────────────────────────────────────
   17. COMMENTS
   ──────────────────────────────────────────────────────────────────── */

#comments {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 1.3rem;
  margin-bottom: 1em;
}

#comments ul {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 1em 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5em;
}

.comment-content {
  font-size: .95rem;
}

.comment-respond {
  margin-top: 2em;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: .3em;
  font-size: .9rem;
  color: var(--text-main);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .6em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1em;
  transition: border-color .2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .7em 1.5em;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.comment-form input[type="submit"]:hover {
  background: var(--accent-dark);
}


/* ────────────────────────────────────────────────────────────────────
   18. SEARCH FORM
   ──────────────────────────────────────────────────────────────────── */

.search-form {
  display: flex;
  gap: .5em;
  max-width: 400px;
}

.search-form .search-field {
  flex: 1;
  padding: .6em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s ease;
}

.search-form .search-field:focus {
  border-color: var(--accent);
  outline: none;
}

.search-form .search-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .6em 1.2em;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color .2s ease;
}

.search-form .search-submit:hover {
  background: var(--accent-dark);
}


/* ────────────────────────────────────────────────────────────────────
   19. BREADCRUMBS
   ──────────────────────────────────────────────────────────────────── */

.breadcrumbs-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: .5rem 0;
  font-size: .85rem;
}

.breadcrumbs-bar .content-width {
  padding: 0 1rem;
}

.breadcrumbs {
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}


/* ────────────────────────────────────────────────────────────────────
   20. WORDPRESS BLOCKS
   ──────────────────────────────────────────────────────────────────── */

.wp-block-image {
  margin-bottom: 1.5em;
}

.wp-block-image img {
  border-radius: 4px;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-right {
  text-align: right;
}

.has-text-align-left {
  text-align: left;
}


/* ────────────────────────────────────────────────────────────────────
   21. RESPONSIVE
   ──────────────────────────────────────────────────────────────────── */

/* -- Tablet breakpoint -------------------------------------------- */
@media screen and (max-width: 980px) {

  /* Hero goes single column */
  .hero-inner,
  .hp-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-links,
  .hp-hero-links {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    min-height: 180px;
  }

  /* City grid: 2 columns */
  .city-grid,
  .hp-city-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Topic columns: 1 column */
  .topic-columns {
    grid-template-columns: 1fr;
  }

  /* Category grid: 1 column */
  .hp-category-grid {
    grid-template-columns: 1fr;
  }

  /* Guide two-col list: single column */
  .guide-list.two-col {
    columns: 1;
  }

  /* Footer: 2 columns */
  .footer-grid,
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    grid-auto-flow: row;
  }
}

/* -- Mobile breakpoint -------------------------------------------- */
@media screen and (max-width: 640px) {

  body {
    font-size: 16px;
  }

  /* Recently-updated stacks vertically */
  .recent-list li,
  .hp-recent-item {
    flex-direction: column;
    gap: .15em;
  }

  .hp-recent-date {
    font-size: .78rem;
  }

  /* Footer: single column */
  .footer-grid,
  .footer-columns {
    grid-template-columns: 1fr;
    grid-auto-columns: 1fr;
    grid-auto-flow: row;
    gap: 1.5rem;
  }

  /* Show mobile toggle */
  .nav-toggle,
  .menu-toggle {
    display: inline-flex;
  }

  /* Hide desktop nav */
  .primary-nav,
  .main-navigation {
    display: none;
  }

  /* Mobile navigation slide-out */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-main);
    padding: 4rem 1.5rem 2rem;
    transition: right .3s ease;
    z-index: 1001;
    overflow-y: auto;
    border-left: 1px solid var(--border);
  }

  .main-navigation.toggled {
    display: block;
    right: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation a {
    padding: .8rem 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .main-navigation ul ul {
    position: static;
    display: flex;
    border: none;
    box-shadow: none;
    padding-left: 1em;
    border-radius: 0;
    background: transparent;
  }

  .main-navigation ul ul a {
    font-size: .9rem;
    border-radius: 0;
  }

  /* Mobile menu overlay */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1000;
  }

  .menu-overlay.active {
    display: block;
  }

  /* Hamburger animation when open */
  .menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile panel visible */
  .mobile-panel.is-open {
    display: block;
  }

  /* Homepage hero adjustments */
  .hp-hero {
    padding: 2rem 0 1.25rem;
  }

  .hp-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hp-body {
    padding: 0 1rem;
  }

  .hp-section {
    padding: 2rem 0;
  }

  /* City grid: 2 columns at mobile too */
  .hp-city-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .6em;
  }

  /* Content padding */
  #content,
  .content-width {
    padding: 0 1rem;
  }

  .header-inner {
    padding: 0 1rem;
  }

  /* Guide TOC tighter on mobile */
  .guide-toc {
    padding: 1em;
  }

  /* Pagination spacing */
  .nav-links {
    gap: .3em;
  }
}

/* -- Small phone breakpoint --------------------------------------- */
@media screen and (max-width: 480px) {

  h1 {
    font-size: 1.5rem;
    letter-spacing: -.01em;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  .site-branding .site-name,
  .site-brand {
    font-size: 1.2rem;
  }

  .hp-hero-title {
    font-size: 1.5rem;
  }

  .hp-hero-desc {
    font-size: 1rem;
  }

  .hp-city-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hp-city-card {
    padding: .9em .6em;
  }

  .hp-city-name {
    font-size: .95rem;
  }
}


/* ────────────────────────────────────────────────────────────────────
   22. NEW TEMPLATE CLASS ALIASES
   ──────────────────────────────────────────────────────────────────── */

/* Inline desktop nav (flat <a> tags from walker) */
.site-nav {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.site-nav .nav-link {
  display: inline-block;
  opacity: .9;
  padding: .35rem .5rem;
  border-radius: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  opacity: 1;
  background: rgba(244, 244, 245, .06);
}

.site-nav .current-menu-item,
.site-nav .current_page_item {
  opacity: 1;
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

.site-brand a {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .02em;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1;
}

.site-brand a:hover { color: var(--accent); }

/* Mobile panel (hidden panel below header) */
.mobile-panel[hidden] { display: none; }

.mobile-panel:not([hidden]) {
  display: block;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  padding: 1rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav li:last-child { border-bottom: none; }

.mobile-nav a {
  display: block;
  padding: .8rem 0;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
}

.mobile-nav a:hover { color: var(--accent); }

/* Nav toggle SVG colour */
.nav-toggle svg { color: var(--text-main); }

/* (hp-* component styles are in sections 5–11 above) */

/* Footer link */
.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-size: .9rem;
}

.footer-link:hover { text-decoration: underline; }

/* Footer grid without inner wrapper */
.site-footer > .footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer > .footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}

/* Responsive overrides — Eventbrite-style grids */
@media screen and (max-width: 1100px) {
  .hp-guide-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-city-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 980px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-recent-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-topic-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .guide-body { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
  .hp-city-grid  { grid-template-columns: repeat(2, 1fr); }
  .site-footer > .footer-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .guide-hero-image img { height: auto; }
}

@media screen and (max-width: 640px) {
  .archive-grid { grid-template-columns: 1fr; }
  .hp-guide-grid { grid-template-columns: 1fr; }
  .hp-city-grid  { grid-template-columns: 1fr; }
  .hp-recent-grid { grid-template-columns: 1fr; }
  .hp-hero-btn { font-size: .9rem; padding: .65em 1.6em; }
  .site-footer > .footer-grid,
  .footer-grid { grid-template-columns: 1fr; grid-auto-flow: row; }
}


/* ────────────────────────────────────────────────────────────────────
   23. PRINT
   ──────────────────────────────────────────────────────────────────── */

@media print {

  .site-header,
  .site-footer,
  .main-navigation,
  .primary-nav,
  .nav-toggle,
  .menu-toggle,
  .breadcrumbs-bar,
  .nwa-search,
  .guide-toc,
  .mobile-panel,
  .comments,
  .comment-respond,
  .nav-links,
  .edit-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
  }

  .guide-content h2 {
    border-top-color: #ccc;
  }

  .guide-footer {
    border-top-color: #ccc;
  }
}


/* ────────────────────────────────────────────────────────────────────
   24. LIVE SEARCH
   ──────────────────────────────────────────────────────────────────── */

.nwa-search {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
  z-index: 998;
  position: relative;
}

.nwa-search-inner {
  position: relative;
}

.nwa-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

/* Magnifier icon */
.nwa-search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color .2s ease, filter .2s ease;
  z-index: 2;
}

/* Input */
.nwa-search-input {
  width: 100%;
  padding: .7rem 3rem .7rem 2.8rem;
  background: var(--bg-main);
  border: 2px solid var(--border);
  border-radius: var(--radius, 8px);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .3s ease, background-color .2s ease;
  animation: nwa-pulse-border 2s ease-in-out infinite;
}

.nwa-search-input::placeholder {
  color: var(--text-muted);
  opacity: .7;
}

/* Idle pulse animation on border */
@keyframes nwa-pulse-border {
  0%, 100% { border-color: var(--border); }
  50% { border-color: var(--accent); }
}

/* Focus glow — stop pulse, add multi-layer red glow */
.nwa-search-input:focus {
  animation: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(157, 34, 53, .25),
    0 0 16px rgba(157, 34, 53, .15),
    0 0 32px rgba(157, 34, 53, .08);
}

/* Icon glows on focus via :has() */
.nwa-search-field:has(.nwa-search-input:focus) .nwa-search-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 4px rgba(157, 34, 53, .5));
}

/* Loading spinner */
.nwa-search-spinner {
  position: absolute;
  right: 3rem;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  display: none;
  z-index: 2;
}

.nwa-search-spinner.is-active {
  display: block;
  animation: nwa-spin .6s linear infinite;
}

@keyframes nwa-spin {
  to { transform: rotate(360deg); }
}

/* Keyboard shortcut badge */
.nwa-search-kbd {
  position: absolute;
  right: 1rem;
  padding: .15em .5em;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  line-height: 1;
  pointer-events: none;
  opacity: .7;
  transition: opacity .2s ease;
  z-index: 2;
}

/* Hide kbd when input is focused or has value */
.nwa-search-field:has(.nwa-search-input:focus) .nwa-search-kbd,
.nwa-search-kbd.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Results dropdown ── */

.nwa-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius, 8px) var(--radius, 8px);
  max-height: 420px;
  overflow-y: auto;
  z-index: 999;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.nwa-search-results:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

/* Individual result item */
.nwa-search-result {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1rem;
  text-decoration: none;
  color: var(--text-main);
  border-left: 3px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
  opacity: 0;
  animation: nwa-result-in .25s ease forwards;
}

.nwa-search-result + .nwa-search-result {
  border-top: 1px solid var(--border);
}

.nwa-search-result:hover,
.nwa-search-result.is-active {
  background: var(--bg-alt);
  border-left-color: var(--accent);
}

/* Staggered entrance animation */
@keyframes nwa-result-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Result thumbnail */
.nwa-search-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
}

/* Result text */
.nwa-search-result-text {
  min-width: 0;
  flex: 1;
}

.nwa-search-result-title {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nwa-search-result-excerpt {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Highlighted match text */
.nwa-search-result mark {
  background: rgba(157, 34, 53, .2);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 .1em;
}

/* "View all results" footer link */
.nwa-search-all {
  display: block;
  padding: .7rem 1rem;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background-color .15s ease;
}

.nwa-search-all:hover {
  background: var(--bg-alt);
}

/* No results / error message */
.nwa-search-message {
  padding: 1.2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Responsive (≤640px) ── */

@media screen and (max-width: 640px) {
  .nwa-search-input {
    font-size: .95rem;
    padding: .6rem 2.5rem .6rem 2.5rem;
  }

  .nwa-search-icon {
    left: .75rem;
    width: 16px;
    height: 16px;
  }

  .nwa-search-kbd {
    display: none;
  }

  .nwa-search-result {
    padding: .6rem .75rem;
    gap: .6rem;
  }

  .nwa-search-thumb {
    width: 40px;
    height: 40px;
  }
}

/* ── Author profile page (author.php) ─────────────────────────────── */
.author-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
}
.author-avatar img {
  display: block;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.author-intro { flex: 1; min-width: 0; }
.author-intro .entry-title { margin: 0 0 .35em; }
.author-bio { color: var(--text-muted); line-height: 1.6; max-width: var(--reading-max); }
.author-bio p { margin: 0 0 .6em; }
.author-links {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  margin-top: .8em; font-size: .9rem;
}
.author-website { color: var(--accent); text-decoration: none; font-weight: 600; }
.author-website:hover { text-decoration: underline; }
.author-postcount { color: var(--text-muted); }
.author-latest .section-title { font-size: 1.3rem; margin: 0 0 1rem; }
@media (max-width: 600px) {
  .author-header { flex-direction: column; gap: 1rem; }
}

/* Accessible visually-hidden text (SEO H1, labels) */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}

/* Header logo (custom-logo) */
.site-brand .custom-logo-link { display: inline-block; line-height: 0; }
.site-brand .custom-logo { height: 52px; width: auto; display: block; margin: 8px 0; }
@media (max-width: 600px) { .site-brand .custom-logo { height: 42px; } }
