/*
Theme Name: HowToHub
Theme URI: https://example.com/howtohub
Author: HowToHub
Description: A clean, easy-to-navigate how-to blog theme for multiple topics. Features mega-menu navigation, category browsing, step-by-step article layouts, and affiliate product sidebars.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: howtohub
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --navy:        #1B2A4A;
  --navy-dark:   #111D33;
  --amber:       #E8940A;
  --amber-light: #FDF3DC;
  --white:       #FAFAF7;
  --gray-50:     #F7F7F5;
  --gray-100:    #F0F0EC;
  --gray-200:    #E2E2DC;
  --gray-400:    #ACACAA;
  --gray-600:    #666660;
  --text:        #1E1E1E;
  --text-light:  #555550;
  --green:       #2A7A56;
  --red:         #C0392B;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Plus Jakarta Sans', system-ui, sans-serif;

  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07);
  --shadow:      0 3px 14px rgba(0,0,0,0.09);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.13);
  --max-width:   1180px;
  --header-h:    68px;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.78;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); transition: color .15s; }
a:hover { color: var(--amber); }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy);
}
p { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
li { margin-bottom: .35rem; }

/* =============================================
   LAYOUT HELPERS
   ============================================= */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}
@media (max-width: 860px) {
  .content-sidebar { grid-template-columns: 1fr; }
}

/* =============================================
   ── HEADER ──
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-dark);
  border-bottom: 3px solid var(--amber);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1.5rem;
}

/* Logo */
.site-branding a { text-decoration: none; display: flex; flex-direction: column; }
.site-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.site-title .accent { color: var(--amber); }
.site-tagline {
  font-family: var(--font-ui);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 380px;
}
.header-search form {
  display: flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 99px;
  overflow: hidden;
}
.header-search input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  padding: .45rem .9rem;
  font-family: var(--font-ui);
  font-size: .82rem;
  color: #fff;
  width: 100%;
}
.header-search input::placeholder { color: rgba(255,255,255,.4); }
.header-search button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.55);
  padding: 0 .9rem;
  cursor: pointer;
  font-size: 1rem;
  transition: color .15s;
}
.header-search button:hover { color: var(--amber); }

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  color: #fff;
  padding: .4rem .7rem;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* =============================================
   ── NAVIGATION BAR (below header) ──
   ============================================= */
.nav-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-bar-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.primary-nav > ul {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0;
}
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: block;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: .85rem 1rem;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a {
  color: var(--amber);
  background: rgba(255,255,255,.06);
}

/* Dropdown */
.primary-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: .5rem 0;
  z-index: 300;
}
.primary-nav ul ul li a {
  display: block;
  font-family: var(--font-ui);
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: .55rem 1.2rem;
  transition: background .12s, color .12s;
}
.primary-nav ul ul li a:hover { background: rgba(255,255,255,.07); color: var(--amber); }
.primary-nav > ul > li:hover > ul { display: block; }

/* Breadcrumbs */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: .55rem 1.25rem;
}
.breadcrumb-bar .wrap {
  font-family: var(--font-ui);
  font-size: .74rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--navy); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--amber); }
.breadcrumb-sep { opacity: .4; }

/* =============================================
   ── HERO ──
   ============================================= */
.site-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #253A65 100%);
  padding: 4.5rem 1.25rem 4rem;
  text-align: center;
}
.site-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: .8rem;
}
.site-hero h1 em { font-style: normal; color: var(--amber); }
.site-hero p {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: rgba(255,255,255,.68);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.hero-pill {
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .5rem 1.15rem;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.hero-pill:hover {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

/* =============================================
   ── TOPIC STRIP ──
   ============================================= */
.topic-strip {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  scrollbar-width: none;
}
.topic-strip::-webkit-scrollbar { display: none; }
.topic-strip-inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  white-space: nowrap;
}
.topic-label {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  flex-shrink: 0;
  margin-right: .25rem;
}
.topic-chip {
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 99px;
  text-decoration: none;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
  transition: background .13s, color .13s, border-color .13s;
}
.topic-chip:hover, .topic-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* =============================================
   ── POST CARDS ──
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.post-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, #2E4A7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.card-cat-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--navy);
  padding: .22rem .65rem;
  border-radius: 99px;
}
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.3;
  flex: 1;
}
.card-title a { text-decoration: none; color: var(--navy); }
.card-title a:hover { color: var(--amber); }
.card-excerpt {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: .9rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--gray-100);
}
.card-meta {
  font-family: var(--font-ui);
  font-size: .71rem;
  color: var(--gray-400);
}
.card-link {
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: .28rem .75rem;
  transition: background .13s, color .13s;
}
.card-link:hover {
  background: var(--navy);
  color: #fff;
}

/* Featured post (first card, full width) */
.post-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card.featured .card-thumb {
  width: 45%;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.post-card.featured .card-body {
  padding: 2rem;
}
.post-card.featured .card-title {
  font-size: 1.4rem;
}
@media (max-width: 640px) {
  .post-card.featured {
    flex-direction: column;
  }
  .post-card.featured .card-thumb { width: 100%; aspect-ratio: 16/9; }
}

/* Section headings */
.section-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--gray-200);
}

/* =============================================
   ── SINGLE POST ──
   ============================================= */
.post-hero {
  background: var(--navy-dark);
  padding: 3rem 1.25rem 2.5rem;
}
.post-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.post-cat-link {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
}
.post-cat-link:hover { color: #fff; }
.post-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: #fff;
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}
.post-meta-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: .76rem;
  color: rgba(255,255,255,.5);
  align-items: center;
}
.post-meta-bar .reading-time {
  background: rgba(255,255,255,.1);
  border-radius: 99px;
  padding: .2rem .65rem;
  color: rgba(255,255,255,.7);
}

/* Featured image */
.post-featured-wrap {
  max-width: 720px;
  margin: -1.5rem auto 0;
  padding: 0 1.25rem;
}
.post-featured-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* Article content */
.entry-content {
  font-size: .98rem;
  line-height: 1.82;
  color: var(--text);
  max-width: 680px;
}
.entry-content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--amber);
}
.entry-content h3 {
  font-size: 1.15rem;
  margin: 1.8rem 0 .6rem;
}
.entry-content p { margin-bottom: 1.2rem; }
.entry-content a { color: var(--navy); font-weight: 600; }
.entry-content blockquote {
  border-left: 4px solid var(--amber);
  background: var(--amber-light);
  padding: 1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

/* Step boxes */
.step-box {
  display: flex;
  gap: 1.1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.25rem 0;
}
.step-num {
  background: var(--navy);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h3 { font-size: .98rem; margin-bottom: .3rem; }
.step-body p  { font-size: .88rem; margin: 0; }

/* Pro tip */
.pro-tip {
  background: var(--amber-light);
  border: 1px solid #F0C55A;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.pro-tip-label {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #7A5200;
  display: block;
  margin-bottom: .3rem;
}

/* Supplies box */
.supplies-box {
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin: 1.8rem 0;
  background: #fff;
}
.supplies-box h3 {
  font-family: var(--font-ui);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.supplies-box ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem 1rem;
}
@media (max-width: 500px) { .supplies-box ul { grid-template-columns: 1fr; } }
.supplies-box li {
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
}
.supplies-box li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* Affiliate disclosure */
.affiliate-note {
  font-family: var(--font-ui);
  font-size: .72rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.55;
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}
.post-nav-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  text-decoration: none;
  display: block;
  transition: background .15s;
}
.post-nav-item:hover { background: var(--navy); }
.post-nav-item:hover .post-nav-label,
.post-nav-item:hover .post-nav-title { color: #fff; }
.post-nav-label {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  display: block;
  margin-bottom: .25rem;
}
.post-nav-title {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.tag-chip {
  font-family: var(--font-ui);
  font-size: .74rem;
  padding: .25rem .75rem;
  background: var(--gray-100);
  border-radius: 99px;
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid var(--gray-200);
  transition: background .13s, color .13s;
}
.tag-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* =============================================
   ── SIDEBAR ──
   ============================================= */
.sidebar { position: sticky; top: calc(var(--header-h) + 12px); }
.widget {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--amber);
  margin-bottom: 1.1rem;
}

/* Product card in sidebar */
.product-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .8rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.product-item:last-child { border-bottom: none; padding-bottom: 0; }
.product-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--gray-100);
  flex-shrink: 0;
}
.product-info { flex: 1; }
.product-name {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .2rem;
}
.product-stars { color: var(--amber); font-size: .72rem; }
.product-price {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
}
.product-buy-btn {
  display: block;
  margin-top: .5rem;
  background: var(--amber);
  color: var(--navy) !important;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  padding: .38rem .7rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .13s, color .13s;
}
.product-buy-btn:hover {
  background: var(--navy);
  color: var(--amber) !important;
}

/* Recent posts in sidebar */
.sidebar-post {
  display: flex;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}
.sidebar-post a {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: block;
  line-height: 1.35;
  margin-bottom: .15rem;
}
.sidebar-post a:hover { color: var(--amber); }
.sidebar-post-date {
  font-family: var(--font-ui);
  font-size: .68rem;
  color: var(--gray-400);
}

/* Category widget */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem 0;
  border-bottom: 1px solid var(--gray-100);
  margin: 0;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  font-family: var(--font-ui);
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.cat-list a:hover { color: var(--amber); }
.cat-count {
  font-family: var(--font-ui);
  font-size: .68rem;
  background: var(--gray-100);
  border-radius: 99px;
  padding: .12rem .5rem;
  color: var(--gray-600);
}

/* =============================================
   ── PAGINATION ──
   ============================================= */
.pagination {
  display: flex;
  gap: .4rem;
  justify-content: center;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .6rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--gray-200);
  transition: background .13s, color .13s;
}
.pagination a:hover, .pagination .current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* =============================================
   ── COMMENTS ──
   ============================================= */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}
.comments-section h2 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.comment-author-name { font-weight: 700; font-size: .88rem; }
.comment-date { font-family: var(--font-ui); font-size: .7rem; color: var(--gray-400); margin-bottom: .5rem; }
.comment-text p { font-size: .88rem; margin: 0; }

.comment-respond { margin-top: 2rem; }
.comment-respond h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.comment-form label {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-light);
  display: block;
  margin-bottom: .3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .6rem .9rem;
  font-family: var(--font-ui);
  font-size: .88rem;
  color: var(--text);
  background: #fff;
  margin-bottom: .85rem;
  transition: border-color .13s;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.comment-form textarea { height: 110px; resize: vertical; }
.comment-form input[type="submit"] {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .84rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: .65rem 1.6rem;
  cursor: pointer;
  transition: background .13s;
}
.comment-form input[type="submit"]:hover { background: var(--amber); color: var(--navy); }

/* =============================================
   ── 404 / SEARCH ──
   ============================================= */
.error-page, .search-page {
  text-align: center;
  padding: 5rem 1.25rem;
}
.error-icon { font-size: 5rem; margin-bottom: 1rem; }
.error-page h1 { font-size: 2rem; margin-bottom: .75rem; }
.error-page p { color: var(--text-light); max-width: 400px; margin: 0 auto 2rem; }
.search-form-large {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 99px;
  overflow: hidden;
  border: 2px solid var(--navy);
}
.search-form-large input {
  flex: 1;
  border: none;
  outline: none;
  padding: .75rem 1.2rem;
  font-family: var(--font-ui);
  font-size: .95rem;
}
.search-form-large button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 0 1.4rem;
  font-family: var(--font-ui);
  font-weight: 700;
  cursor: pointer;
  transition: background .13s;
}
.search-form-large button:hover { background: var(--amber); color: var(--navy); }

/* =============================================
   ── FOOTER ──
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  margin-top: 4rem;
}
.footer-top {
  padding: 3.5rem 1.25rem 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-title { color: #fff; font-size: 1.3rem; }
.footer-brand p {
  font-size: .83rem;
  margin-top: .75rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .13s;
}
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem;
}
.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-family: var(--font-ui);
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}
.footer-disclosure { max-width: 640px; line-height: 1.6; }

/* =============================================
   ── MOBILE ──
   ============================================= */
@media (max-width: 700px) {
  :root { --header-h: 60px; }
  .header-search { display: none; }
  .menu-toggle { display: block; }
  .nav-bar { display: none; }
  .nav-bar.open { display: block; }
  .primary-nav > ul { flex-direction: column; padding: .5rem 0; }
  .primary-nav > ul > li > a { padding: .7rem 1.25rem; }
  .primary-nav ul ul { position: static; border: none; border-radius: 0; box-shadow: none; background: rgba(0,0,0,.2); }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}