/* ==========================================================================
   Broadifi Tech - theme styles
   Token order: reset, tokens, nav, hero, cards, sidebar, post, footer, media
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* --broadifi-accent is printed in wp_head by the Customizer setting.
     The fallback here keeps the theme correct if that filter is removed. */
  --broadifi-accent: #2e7cf6;
  --accent-dark: #0f56c9;
  --link-dark: #1d5fd1;

  --ink: #10233f;
  --body-ink: #1e2f47;
  --secondary: #44546b;
  --muted: #6b7a90;
  --muted-2: #8595ab;

  --navy: #0d2c5e;
  --kicker-blue: #8db6f9;

  --page-bg: #f7f8fa;
  --surface: #ffffff;
  --panel: #e8ecf2;
  --fill-avatar: #dce7fa;
  --fill-tag: #e6eefc;
  --fill-shape: #bcd4fb;
  --fill-shape-2: #cfe0fb;
  --tag-gray: #f1f4f9;
  --stripe-a: #e3e9f2;
  --stripe-b: #edf1f7;
  --numeral: #d4ddea;
  --yellow: #f3c64e;

  --hairline: rgba(16, 35, 63, .08);
  --border: rgba(16, 35, 63, .12);
  --border-strong: rgba(16, 35, 63, .16);

  --shadow-hero: 0 24px 60px -24px rgba(16, 35, 63, .35);
  --shadow-card: 0 12px 28px -12px rgba(16, 35, 63, .3);

  --shell: 1160px;
  --article: 680px;
  --article-header: 720px;
  --cover: 980px;
  --pad: 24px;
  --nav-h: 68px;

  --font-ui: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.single-view { background: var(--surface); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--broadifi-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --------------------------------------------------------------------------
   3. Site header / nav
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  flex: 0 0 38px;
  background: var(--surface);
}
.brand__mark img,
.brand__mark svg { width: 38px; height: 38px; object-fit: cover; display: block; }
.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--broadifi-accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0 auto;
}
.nav-menu li { position: relative; }
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  transition: color .16s ease;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a { color: var(--ink); }

.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 190px;
  padding: 8px 0;
  margin-top: 10px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu .sub-menu a { display: block; padding: 8px 16px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-search {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--secondary);
  transition: border-color .16s ease, color .16s ease;
}
.nav-search:hover { border-color: var(--broadifi-accent); color: var(--broadifi-accent); }

.subscribe-pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 100px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease;
}
.subscribe-pill:hover { background: var(--broadifi-accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Search drawer */
.nav-search-panel {
  display: none;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .96);
  padding: 18px 0;
}
.nav-search-panel.is-open { display: block; }
.nav-search-panel .search-field {
  width: 100%;
  height: 46px;
  padding: 0 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}
.nav-search-panel .search-field:focus { border-color: var(--broadifi-accent); outline: none; }
.nav-search-panel .search-submit { display: none; }

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero { margin: 40px 0 52px; }

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: var(--navy);
}

.hero-split__text {
  background: var(--navy);
  padding: 54px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kicker-blue);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-ui);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
}
.hero-title a { color: inherit; }

.hero-excerpt {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
  max-width: 46ch;
}

.hero-cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  align-self: flex-start;
}
.hero-cta__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--broadifi-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease;
}
.hero-cta:hover .hero-cta__circle { transform: translateX(3px); }
.hero-cta__circle svg { width: 16px; height: 16px; stroke: #fff; }

.hero-split__art {
  background: var(--panel);
  position: relative;
  min-height: 380px;
}
.hero-split__art svg { width: 100%; height: 100%; display: block; }

/* Wide image variant */
.hero-wide {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: var(--navy);
}
.hero-wide__media { aspect-ratio: 16 / 7; }
.hero-wide__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-wide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 22, 48, .92), rgba(7, 22, 48, .55) 45%, transparent 75%);
}
.hero-wide__text {
  position: absolute;
  left: 0; bottom: 0;
  padding: 46px 52px;
  max-width: 760px;
}
.hero-wide .hero-excerpt { color: rgba(255, 255, 255, .78); }

/* --------------------------------------------------------------------------
   5. Layout: content + sidebar
   -------------------------------------------------------------------------- */
.listing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-bottom: 72px;
}
body.has-sidebar .listing-layout { grid-template-columns: 2fr 1fr; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  transition: color .16s ease;
}
.section-link:hover { color: var(--broadifi-accent); }

/* --------------------------------------------------------------------------
   6. Post cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px 32px;
}
.related-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card { display: flex; flex-direction: column; }

.card__media-wrap { position: relative; }

.card__media {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--stripe-b);
  transition: box-shadow .2s ease;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__media { box-shadow: var(--shadow-card); }

.card__cat {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  transition: color .16s ease;
}
.card__cat:hover { color: var(--broadifi-accent); }

.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 16px 0 10px;
  flex-wrap: wrap;
}
.byline__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--fill-avatar);
  overflow: hidden;
  flex: 0 0 22px;
}
.byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline__author { font-weight: 600; color: var(--secondary); }
.byline__sep { color: var(--muted-2); }

.card__title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
.card__title a { transition: color .16s ease; }
.card__title a:hover { color: var(--broadifi-accent); }

.card__excerpt {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary);
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Image placeholder (striped) */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--stripe-a) 0 10px,
    var(--stripe-b) 10px 20px
  );
}
.ph span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: rgba(255, 255, 255, .78);
  padding: 4px 10px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   7. Buttons / pagination
   -------------------------------------------------------------------------- */
.pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 26px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.pill-outline:hover { border-color: var(--broadifi-accent); color: var(--broadifi-accent); }
.pill-outline[disabled] { opacity: .5; cursor: default; }

.load-more-wrap { display: flex; justify-content: center; margin-top: 48px; }
.load-more-wrap.is-done { display: none; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--broadifi-accent);
  color: var(--broadifi-accent);
}

/* --------------------------------------------------------------------------
   8. Sidebar
   -------------------------------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 44px; }
.widget-title,
.sidebar .section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
}

.trending { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.trending li { display: flex; gap: 16px; align-items: flex-start; }
.trending__num {
  font-family: var(--font-ui);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--numeral);
  flex: 0 0 auto;
  letter-spacing: -.03em;
}
.trending__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: color .16s ease;
}
.trending__title:hover { color: var(--broadifi-accent); }
.trending__meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--secondary);
  transition: border-color .16s ease, color .16s ease;
}
.chip:hover { border-color: var(--broadifi-accent); color: var(--broadifi-accent); }

.newsletter {
  background: var(--navy);
  border-radius: 20px;
  padding: 28px 26px;
  color: #fff;
}
.newsletter__title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.newsletter__copy {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}
.newsletter__form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.newsletter__input {
  height: 42px;
  padding: 0 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter__input:focus { outline: none; border-color: var(--broadifi-accent); }
.newsletter__btn {
  height: 42px;
  border: 0;
  border-radius: 100px;
  background: var(--broadifi-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease;
}
.newsletter__btn:hover { background: var(--accent-dark); }

/* Generic widget fallbacks so any WP widget still looks at home */
.sidebar .widget ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sidebar .widget a { color: var(--secondary); font-size: 14.5px; }
.sidebar .widget a:hover { color: var(--broadifi-accent); }

/* --------------------------------------------------------------------------
   9. Single post
   -------------------------------------------------------------------------- */
.progress-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: 3px;
  width: 0;
  background: var(--broadifi-accent);
  z-index: 70;
  transition: width .1s linear;
}

.article-header {
  max-width: var(--article-header);
  margin: 56px auto 0;
  text-align: center;
}
.article-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--broadifi-accent);
}
.article-kicker .sep { color: var(--muted-2); margin: 0 8px; }
.article-kicker .date { color: var(--muted); }

.article-title {
  margin-top: 18px;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--ink);
}
.article-sub {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--secondary);
}

.article-byline {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}
.article-byline__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--fill-avatar);
  overflow: hidden;
  flex: 0 0 44px;
}
.article-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-byline__name { font-size: 15px; font-weight: 600; color: var(--ink); }
.article-byline__meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.follow-link {
  color: var(--broadifi-accent);
  font-weight: 600;
  font-size: 14px;
  margin-left: 10px;
}
.follow-link:hover { color: var(--accent-dark); }

.article-cover {
  max-width: var(--cover);
  margin: 44px auto 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--stripe-b);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  max-width: var(--article);
  margin: 46px auto 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--body-ink);
}
.article-body > * + * { margin-top: 28px; }
.article-body p { margin: 0; }
.article-body a { color: var(--link-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-dark); }

.article-body h2 {
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-top: 46px;
}
.article-body h3 {
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 38px;
}

.article-body > p:first-of-type::first-letter {
  font-family: var(--font-ui);
  font-size: 64px;
  font-weight: 800;
  line-height: .82;
  color: var(--broadifi-accent);
  float: left;
  padding: 6px 12px 0 0;
}

.article-body blockquote {
  margin: 40px 0;
  padding-left: 26px;
  border-left: 3px solid var(--broadifi-accent);
  font-size: 24px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.article-body blockquote p { margin: 0; }
.article-body blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body figure { margin: 40px 0; }
.article-body figure img { border-radius: 16px; }
.article-body figcaption,
.article-body .wp-caption-text {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li + li { margin-top: 10px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body img { border-radius: 16px; }
.article-body pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  background: var(--tag-gray);
  border-radius: 16px;
  padding: 20px 22px;
  overflow-x: auto;
}
.article-body code { font-family: var(--font-mono); font-size: .88em; }
.article-body hr { border: 0; border-top: 1px solid var(--hairline); margin: 44px 0; }
.alignwide { max-width: var(--cover); margin-left: calc((var(--article) - var(--cover)) / 2); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Tags */
.article-tags {
  max-width: var(--article);
  margin: 44px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 100px;
  background: var(--tag-gray);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--secondary);
  transition: background .16s ease, color .16s ease;
}
.tag-pill:hover { background: var(--fill-tag); color: var(--broadifi-accent); }

/* Reaction bar */
.reactions {
  max-width: var(--article);
  margin: 40px auto 0;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--secondary);
}
.reactions__spacer { margin-left: auto; }
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  color: var(--secondary);
  font-size: 14px;
  transition: color .16s ease, transform .12s ease;
}
.reaction-btn:hover { color: var(--ink); }
.reaction-btn.is-clapped { color: var(--broadifi-accent); }
.reaction-btn.is-bumped { transform: scale(1.12); }
.reaction-btn .emoji { font-size: 17px; line-height: 1; }

/* Author card */
.author-card {
  max-width: var(--article);
  margin: 44px auto 0;
  background: var(--page-bg);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.author-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--fill-avatar);
  overflow: hidden;
  flex: 0 0 56px;
}
.author-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card__label {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.author-card__name { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.author-card__bio {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--secondary);
}
.follow-pill {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 100px;
  background: var(--broadifi-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease;
}
.follow-pill:hover { background: var(--accent-dark); }

/* More from Broadifi */
.more-band {
  background: var(--page-bg);
  margin-top: 80px;
  padding: 64px 0 72px;
}

/* Comments */
.comments-area { max-width: var(--article); margin: 56px auto 0; }
.comments-area .comment-list { list-style: none; }
.comments-area .comment-list ol { list-style: none; padding-left: 28px; }
.comments-area .comment-body { padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.comments-area .comment-author img { border-radius: 50%; }
.comments-area .comment-meta { font-size: 13px; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  background: var(--surface);
}
.comment-form textarea { border-radius: 16px; }
.comment-form .submit {
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 100px;
  background: var(--broadifi-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   10. Page / archive / search / 404
   -------------------------------------------------------------------------- */
.page-hero { max-width: var(--article-header); margin: 56px auto 0; text-align: center; }
.page-hero .article-title { margin-top: 12px; }
.page-hero__desc { margin-top: 16px; font-family: var(--font-serif); font-size: 18px; color: var(--secondary); }
.plain-section { padding: 0 0 80px; }
.empty-state {
  max-width: var(--article);
  margin: 60px auto;
  text-align: center;
}
.empty-state__title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.empty-state__copy { margin-top: 12px; font-family: var(--font-serif); font-size: 17px; color: var(--secondary); }
.empty-state form { margin-top: 24px; display: flex; gap: 10px; justify-content: center; }
.empty-state .search-field {
  height: 44px; padding: 0 20px; border-radius: 100px;
  border: 1px solid var(--border); font-family: var(--font-ui); font-size: 15px;
  min-width: 260px;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: transparent;
}
body.single-view .site-footer { background: var(--surface); }
.site-footer__inner {
  padding: 30px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer__left { display: flex; align-items: center; gap: 12px; }
.site-footer__copy { font-size: 13.5px; color: var(--muted); }
.footer-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer-menu a { font-size: 13.5px; color: var(--secondary); transition: color .16s ease; }
.footer-menu a:hover { color: var(--broadifi-accent); }

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.has-sidebar .listing-layout { grid-template-columns: 1fr; }
  .hero-split__text { padding: 44px 38px; }
  .hero-wide__text { padding: 38px 38px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 24px 18px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; font-size: 15px; }
  .nav-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; margin: 0; padding: 0 0 0 14px;
  }
  .site-nav__inner { gap: 12px; }
  .article-cover { border-radius: 16px; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  .hero { margin: 26px 0 40px; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__art { min-height: 220px; order: 2; }
  .hero-split__text { padding: 34px 26px; order: 1; }
  .hero-wide__text { padding: 26px 24px; }
  .hero-wide__media { aspect-ratio: 4 / 3; }
  .card-grid, .related-grid { grid-template-columns: 1fr; gap: 32px; }
  .listing-layout { gap: 44px; }
  .article-body { font-size: 18px; }
  .article-cover { aspect-ratio: 16 / 9; }
  .author-card { flex-wrap: wrap; }
  .follow-pill { margin-left: 0; }
  .reactions { gap: 14px; }
  .subscribe-pill { padding: 0 15px; }
  .more-band { padding: 48px 0 56px; }
  .footer-menu { margin-left: 0; gap: 18px; }
}
