/*
Theme Name: SignalLine
Theme URI: https://example.com/signalline
Author: Imad Afzal
Author URI: https://imadafzal.com
Description: A personal blogging theme built around a telecom/IT signal motif. Ticker bar for latest industry headlines, signal-bar trending indicators, and a warm serif/grotesque type pairing for a voice that's both personal and professional. Built for writers who cover the telecom & IT beat and want their own point of view alongside it.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: signalline
Tags: blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root {
  --ink: #101826;
  --ink-soft: #1b2430;
  --paper: #eff3f3;
  --paper-raised: #ffffff;
  --line: #d7dfdf;
  --signal-cyan: #00c2b8;
  --signal-cyan-dim: #0a8f88;
  --signal-amber: #ff6b35;
  --muted: #55636b;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --radius: 3px;
  --content-width: 1180px;
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-cyan-dim); text-decoration: none; }
a:hover { color: var(--signal-amber); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
:focus-visible { outline: 2px solid var(--signal-cyan); outline-offset: 2px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   2. SIGNAL BARS — signature element
   Used as: logo mark, trending indicator, loading/live state
   ========================================================= */
.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.signal-bars i {
  display: block;
  width: 4px;
  background: var(--signal-cyan);
  border-radius: 1px;
}
.signal-bars i:nth-child(1) { height: 30%; }
.signal-bars i:nth-child(2) { height: 55%; }
.signal-bars i:nth-child(3) { height: 75%; }
.signal-bars i:nth-child(4) { height: 100%; }
.signal-bars.is-live i { animation: pulse-bar 1.2s ease-in-out infinite; }
.signal-bars.is-live i:nth-child(1) { animation-delay: 0s; }
.signal-bars.is-live i:nth-child(2) { animation-delay: .15s; }
.signal-bars.is-live i:nth-child(3) { animation-delay: .3s; }
.signal-bars.is-live i:nth-child(4) { animation-delay: .45s; }
@keyframes pulse-bar {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-bars.is-live i { animation: none; opacity: 1; }
}

/* Trending indicator on post cards: bars filled = strength 1-4 */
.signal-strength { display: inline-flex; gap: 2px; height: 12px; vertical-align: middle; }
.signal-strength i { width: 3px; background: var(--line); border-radius: 1px; }
.signal-strength i:nth-child(1) { height: 30%; }
.signal-strength i:nth-child(2) { height: 55%; }
.signal-strength i:nth-child(3) { height: 75%; }
.signal-strength i:nth-child(4) { height: 100%; }
.signal-strength[data-strength="1"] i:nth-child(1) { background: var(--signal-amber); }
.signal-strength[data-strength="2"] i:nth-child(-n+2) { background: var(--signal-amber); }
.signal-strength[data-strength="3"] i:nth-child(-n+3) { background: var(--signal-amber); }
.signal-strength[data-strength="4"] i { background: var(--signal-amber); }

/* =========================================================
   3. TICKER BAR — latest telecom/IT headlines
   ========================================================= */
.ticker {
  background: var(--ink);
  color: #cfe9e7;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.ticker__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--signal-cyan-dim);
  color: #061414;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ticker__track {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}
.ticker__track ul {
  display: flex;
  gap: 48px;
  animation: ticker-scroll 32s linear infinite;
  padding-right: 48px;
}
.ticker:hover .ticker__track ul { animation-play-state: paused; }
.ticker__track a { color: #cfe9e7; }
.ticker__track a:hover { color: var(--signal-amber); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track ul { animation: none; overflow-x: auto; }
}

/* =========================================================
   4. HEADER
   ========================================================= */
.site-header { background: var(--paper-raised); border-bottom: 1px solid var(--line); }
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
  flex-wrap: wrap;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding a { color: var(--ink); display: flex; align-items: center; gap: 10px; }
.site-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}
.site-description {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
  letter-spacing: .02em;
}

.primary-nav ul { display: flex; flex-wrap: wrap; gap: 4px; position: relative; }
.primary-nav li { position: relative; }
.primary-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: var(--paper);
  color: var(--signal-cyan-dim);
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16,24,38,.08);
  z-index: 20;
  padding: 6px;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { font-size: 14px; padding: 8px 10px; }

.menu-toggle {
  display: none;
  font-family: var(--font-mono);
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}
@media (max-width: 780px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .primary-nav { display: none; width: 100%; order: 3; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav .sub-menu { position: static; box-shadow: none; border: none; padding-left: 12px; }
}

/* =========================================================
   5. LAYOUT — content + sidebar
   ========================================================= */
.site-main-wrap {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 48px;
  padding: 48px 0 72px;
}
@media (max-width: 900px) {
  .site-main-wrap { grid-template-columns: 1fr; }
}

/* Section eyebrow (used only where it encodes a real category, e.g. "TELECOM" vs "IT" vs "JOURNAL") */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--signal-cyan-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.eyebrow::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--signal-cyan-dim);
}

/* Post card */
.post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.post-card--with-thumb { grid-template-columns: 200px 1fr; }
@media (max-width: 560px) {
  .post-card--with-thumb { grid-template-columns: 1fr; }
}
.post-card__thumb { border-radius: var(--radius); overflow: hidden; background: var(--line); }
.post-card__thumb img { transition: transform .4s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__title { font-size: 26px; margin-bottom: 6px; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--signal-cyan-dim); }
.post-card__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.post-card__meta .cat-tag {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--ink-soft);
}
.post-card__excerpt { color: var(--ink-soft); }
.post-card__excerpt p { margin: 0; }
.read-more {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.read-more::after { content: " \2192"; }

/* Featured / sticky post - first post on home gets more room */
.post-card--feature { grid-template-columns: 1fr; }
.post-card--feature .post-card__thumb { aspect-ratio: 16/7; }
.post-card--feature .post-card__title { font-size: 34px; }

/* Pagination */
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; font-family: var(--font-mono); font-size: 14px;
}
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-raised);
}
.pagination a:hover { border-color: var(--signal-cyan); color: var(--signal-cyan-dim); }

/* =========================================================
   6. SIDEBAR
   ========================================================= */
.widget {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.widget-title {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.widget ul li { margin-bottom: 14px; }
.widget ul li:last-child { margin-bottom: 0; }
.widget .rp-item { display: flex; gap: 10px; align-items: baseline; }
.widget .rp-item time {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); flex: 0 0 auto;
}
.widget a { color: var(--ink-soft); font-weight: 600; }
.widget a:hover { color: var(--signal-cyan-dim); }

/* Signal board — category list styled with strength bars, ties motif to navigation */
.signal-board li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.signal-board li:last-child { border-bottom: none; }
.signal-board .count {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}

/* About / bio widget */
.widget-bio { text-align: center; }
.widget-bio img { border-radius: 50%; width: 88px; margin: 0 auto 14px; }
.widget-bio p { font-size: 15px; color: var(--muted); }

/* Newsletter widget */
.widget-subscribe form { display: flex; flex-direction: column; gap: 10px; }
.widget-subscribe input[type="email"] {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px;
}
.widget-subscribe button {
  background: var(--ink); color: #fff; border: none; padding: 10px 12px;
  font-family: var(--font-display); font-weight: 600; border-radius: var(--radius); cursor: pointer;
}
.widget-subscribe button:hover { background: var(--signal-cyan-dim); }

/* =========================================================
   7. SINGLE POST
   ========================================================= */
.single-post__header { margin-bottom: 28px; }
.single-post__title { font-size: 40px; margin-bottom: 12px; }
.single-post__thumb { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.entry-content { font-size: 18px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content blockquote {
  border-left: 3px solid var(--signal-cyan);
  margin: 1.5em 0; padding: 4px 0 4px 20px;
  font-style: italic; color: var(--muted);
}
.entry-content pre {
  background: var(--ink); color: #d5f4f1; padding: 18px; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--font-mono); font-size: 14px;
}
.entry-content code { font-family: var(--font-mono); background: var(--paper); padding: 2px 5px; border-radius: 2px; }
.post-tags { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a {
  font-family: var(--font-mono); font-size: 12px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.post-tags a:hover { border-color: var(--signal-cyan); color: var(--signal-cyan-dim); }

.author-box {
  display: flex; gap: 16px; margin-top: 40px; padding: 22px;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
}
.author-box img { border-radius: 50%; width: 64px; flex: 0 0 auto; }
.author-box h4 { margin-bottom: 4px; font-size: 17px; }
.author-box p { margin: 0; color: var(--muted); font-size: 15px; }

/* Comments */
.comments-area { margin-top: 48px; }
.comment-list { }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.comment-meta time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--font-body); margin-bottom: 12px;
}
.comment-form button {
  background: var(--ink); color: #fff; border: none; padding: 10px 20px;
  font-family: var(--font-display); font-weight: 600; border-radius: var(--radius); cursor: pointer;
}
.comment-form button:hover { background: var(--signal-cyan-dim); }

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #b9c6c4; margin-top: 40px; }
.site-footer .container {
  padding: 48px 24px 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 780px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.site-footer a { color: #b9c6c4; }
.site-footer a:hover { color: var(--signal-cyan); }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 24px;
  font-family: var(--font-mono); font-size: 12.5px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: #cfe9e7; }

/* =========================================================
   9. SEARCH / 404
   ========================================================= */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body);
}
.search-form button {
  background: var(--ink); color: #fff; border: none; padding: 10px 16px;
  border-radius: var(--radius); font-family: var(--font-mono); cursor: pointer;
}
.error-404 { text-align: center; padding: 80px 0; }
.error-404 .signal-bars { height: 60px; gap: 8px; margin-bottom: 24px; }
.error-404 .signal-bars i { width: 12px; }
.error-404 h1 { font-size: 32px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =========================================================
   10. BUTTONS (shared)
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--signal-cyan); color: var(--ink); }
.btn--primary:hover { background: var(--signal-amber); color: #fff; }

.eyebrow--light { color: #cfe9e7; }
.eyebrow--light::before { background: #cfe9e7; }

/* =========================================================
   11. HERO SLIDER
   ========================================================= */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background: var(--ink);
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
}
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero-slide__inner { max-width: 640px; padding: 100px 24px; color: #fff; }
.hero-slide__inner h1 { color: #fff; font-size: 42px; margin-bottom: 16px; }
.hero-slide__desc { color: #d7e6e4; font-size: 18px; margin-bottom: 28px; }

.hero-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(16,24,38,.5); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 18px; cursor: pointer;
  z-index: 5;
}
.hero-slider__arrow:hover { background: var(--signal-cyan-dim); }
.hero-slider__arrow--prev { left: 20px; }
.hero-slider__arrow--next { right: 20px; }

.hero-slider__dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-slider__dot {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.4); cursor: pointer; padding: 0;
}
.hero-slider__dot.is-active { background: var(--signal-cyan); }

@media (max-width: 640px) {
  .hero-slider { min-height: 380px; }
  .hero-slide__inner { padding: 64px 20px; }
  .hero-slide__inner h1 { font-size: 30px; }
}

/* =========================================================
   12. STATIC SECTION
   ========================================================= */
.static-section { padding: 72px 0; }
.static-section__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .static-section__grid { grid-template-columns: 1fr; } }
.static-section__text h2 { font-size: 32px; margin: 8px 0 18px; }
.static-section__text p { color: var(--muted); font-size: 18px; }
.static-section__media img { border-radius: var(--radius); }
.static-section__placeholder {
  background: var(--ink); border-radius: var(--radius);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.static-section__placeholder .signal-bars { height: 48px; gap: 8px; }
.static-section__placeholder .signal-bars i { width: 10px; }

/* =========================================================
   13. SERVICES / CUSTOM SOLUTIONS SECTION
   ========================================================= */
.services-section { background: var(--paper-raised); padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-section__header { max-width: 620px; margin-bottom: 40px; }
.services-section__header h2 { font-size: 32px; margin: 6px 0 12px; }
.services-section__sub { color: var(--muted); font-size: 17px; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
  margin-bottom: 40px;
}
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.service-card h3 { font-size: 20px; margin: 4px 0 2px; }
.service-card p { color: var(--muted); flex: 1; margin: 0; }

.services-section__cta {
  text-align: center; padding-top: 12px; border-top: 1px dashed var(--line);
}
.services-section__cta p { color: var(--muted); margin-top: 12px; font-size: 14.5px; }

/* =========================================================
   14. FIVE-STEP "SIGNAL RAMP"
   ========================================================= */
.steps-section { padding: 72px 0; }
.steps-section h2 { font-size: 32px; margin: 6px 0 36px; max-width: 620px; }

.signal-ramp__nav {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  background: var(--line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 0;
}
.signal-ramp__step {
  background: var(--paper-raised);
  border: none; padding: 20px 12px 16px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted);
}
.signal-ramp__step:hover { background: var(--paper); }
.signal-ramp__step.is-active { background: var(--ink); color: #fff; }
.signal-ramp__bar {
  width: 6px; background: var(--line); border-radius: 2px; align-self: flex-end;
}
.signal-ramp__step.is-active .signal-ramp__bar { background: var(--signal-cyan); }
.signal-ramp__num { font-family: var(--font-mono); font-size: 12px; opacity: .7; }
.signal-ramp__label { font-family: var(--font-display); font-weight: 600; font-size: 14px; text-align: center; }

.signal-ramp__panels {
  background: var(--paper-raised); border: 1px solid var(--line); border-top: none;
  padding: 36px 32px; border-radius: 0 0 var(--radius) var(--radius);
}
.signal-ramp__panel h3 { font-size: 26px; margin: 4px 0 12px; }
.signal-ramp__panel p { color: var(--muted); font-size: 17px; max-width: 640px; }

@media (max-width: 700px) {
  .signal-ramp__nav { grid-template-columns: repeat(5, 1fr); }
  .signal-ramp__label { display: none; }
}

/* =========================================================
   15. LEAD FORM SECTION
   ========================================================= */
.lead-section { background: var(--ink); color: #dfeceb; padding: 72px 0; }
.lead-section__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
@media (max-width: 900px) { .lead-section__grid { grid-template-columns: 1fr; } }
.lead-section__aside h2 { color: #fff; font-size: 30px; margin: 8px 0 14px; }
.lead-section__aside p { color: #b9c6c4; font-size: 17px; }
.lead-section__points { margin-top: 24px; }
.lead-section__points li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #cfe9e7; font-size: 15px; }

.lead-section__form { background: var(--paper-raised); border-radius: var(--radius); padding: 32px; color: var(--ink-soft); }
.lead-form__honeypot { position: absolute; left: -9999px; }
.lead-form__row { margin-bottom: 18px; }
.lead-form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .lead-form__row--split { grid-template-columns: 1fr; } }
.lead-form label { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 16px; background: var(--paper);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--signal-cyan);
}
.lead-form button { width: 100%; margin-top: 4px; }
.lead-form__privacy { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

.form-banner { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 15px; }
.form-banner--success { background: #e1f7f4; color: #0a5c55; border: 1px solid var(--signal-cyan); }
.form-banner--error { background: #fdece3; color: #9c3a12; border: 1px solid var(--signal-amber); }

/* =========================================================
   16. BLOG PAGE TEMPLATE
   ========================================================= */
.blog-page-header { margin-bottom: 20px; }
.blog-page-header h1 { font-size: 36px; }
.blog-page-intro { color: var(--muted); font-size: 18px; max-width: 700px; margin-top: 10px; }
.blog-page-intro > * + * { margin-top: .8em; }

.topic-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.topic-filter__item {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 6px; background: var(--paper-raised);
}
.topic-filter__item:hover { border-color: var(--signal-cyan); color: var(--signal-cyan-dim); }
.topic-filter__item.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.topic-filter__count { color: var(--muted); font-size: 11px; }
.topic-filter__item.is-active .topic-filter__count { color: #cfe9e7; }

.pagination--numbered { justify-content: center; gap: 6px; }
.pagination--numbered .page-numbers {
  padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 14px; background: var(--paper-raised);
}
.pagination--numbered .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination--numbered .page-numbers:hover:not(.current) { border-color: var(--signal-cyan); color: var(--signal-cyan-dim); }
