/*
Theme Name: HorseName
Theme URI: https://horsename.com
Author: HorseName Team
Author URI: https://horsename.com
Description: A clean, modern WordPress theme for the HorseName horse naming tool and blog. Includes name generator, favorites system, blog listing, and single post templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horsename
Tags: blog, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ══════════════════════════════════════════════
   RESET & ROOT
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FAF8F3;
  --warm-white: #FFFFFF;
  --tan: #C9A86C;
  --tan-light: #F0E8D8;
  --tan-mid: #E2D0B0;
  --brown: #6B4C2A;
  --brown-dark: #3D2B1A;
  --text: #2A2015;
  --muted: #8A7A65;
  --border: #E8DDD0;
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   SHARED UTILITIES
══════════════════════════════════════════════ */
.hn-container { max-width: 1260px; margin: 0 auto; padding: 0 2.5rem; }
.hn-container--narrow { max-width: 1000px; margin: 0 auto; padding: 0 2.5rem; }
.hn-divider { height: 1px; background: var(--border); max-width: 1260px; margin: 0 auto 72px; }
.hn-pill { font-size: 12px; padding: 5px 12px; border-radius: 20px; background: white; color: var(--brown); border: 1px solid var(--tan-mid); font-weight: 500; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Buttons */
.hn-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--brown-dark); color: white; border: none; border-radius: 9px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; text-decoration: none; }
.hn-btn:hover { background: var(--brown); color: white; text-decoration: none; }
.hn-btn--outline { background: white; color: var(--brown-dark); border: 1px solid var(--border); }
.hn-btn--outline:hover { border-color: var(--tan); background: var(--tan-light); color: var(--brown-dark); }
.hn-btn--danger { background: white; color: #c0392b; border: 1px solid #e8d0d0; }
.hn-btn--danger:hover { background: #fdf0f0; border-color: #e0a0a0; }
.hn-btn--tan { background: var(--tan); color: var(--brown-dark); }
.hn-btn--tan:hover { opacity: 0.88; }

/* Section header */
.hn-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.hn-section-header h2 { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 400; color: var(--brown-dark); letter-spacing: -0.4px; }
.hn-see-all { font-size: 14px; color: var(--tan); text-decoration: none; font-weight: 500; }
.hn-see-all:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 300;
  overflow: visible;
  gap: 2rem;
}

.site-branding { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-branding:hover { text-decoration: none; }
.site-logo-icon { width: 32px; height: 32px; background: var(--brown-dark); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.site-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; color: var(--brown-dark); letter-spacing: -0.3px; margin: 0; }
.site-title span { color: var(--tan); }

.main-navigation { display: flex; align-items: center; gap: 2rem; }
.main-navigation ul { list-style: none; display: flex; gap: 2rem; align-items: center; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-navigation ul a { font-size: 15px; color: var(--muted); transition: color 0.2s; text-decoration: none; white-space: nowrap; }
.main-navigation ul a:hover { color: var(--text); text-decoration: none; }
.main-navigation ul .current-menu-item > a,
.main-navigation ul .current-page-ancestor > a { color: var(--text); font-weight: 500; }

.nav-favorites-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brown-dark); color: white;
  padding: 9px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: none; font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.nav-favorites-btn:hover { opacity: 0.82; color: white; text-decoration: none; }

.fav-badge {
  background: var(--tan); color: var(--brown-dark);
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; opacity: 0; transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}
.fav-badge.visible { opacity: 1; transform: scale(1); }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer { background: var(--brown-dark); color: rgba(255,255,255,0.55); text-align: center; padding: 32px 2rem; font-size: 13px; margin-bottom: 0; }
.site-footer ~ *, .hn-toast { margin-bottom: 0; padding-bottom: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; padding: 0; }
.site-footer { margin-top: auto; }
.site-footer strong { color: white; font-weight: 500; }
.site-footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
.site-footer a:hover { color: rgba(255,255,255,0.7); }
.site-footer .footer-sep { margin: 0 8px; }

/* ══════════════════════════════════════════════
   FRONT PAGE — HERO
══════════════════════════════════════════════ */
.front-hero { padding: 64px 2.5rem 36px; max-width: 960px; margin: 0 auto; text-align: center; }
.front-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(36px, 5.5vw, 58px); font-weight: 400; line-height: 1.15; color: var(--brown-dark); margin-bottom: 18px; letter-spacing: -1px; }
.front-hero h1 em { font-style: italic; color: var(--tan); }
.front-hero p { font-size: 18px; font-weight: 300; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ══════════════════════════════════════════════
   NAME GENERATOR TOOL
══════════════════════════════════════════════ */
.tool-wrapper { max-width: 1060px; margin: 32px auto 0; padding: 0 2.5rem 80px; }
.tool-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 2px 28px rgba(42,32,21,0.07); }
.tool-header { padding: 26px 32px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tool-header h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 500; color: var(--brown-dark); }
.tool-header p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.tool-header-pills { display: flex; gap: 6px; }
.tool-body { padding: 26px 32px; }

.filters-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; margin-bottom: 20px; }
.filter-group label { display: block; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 7px; }
.filter-group select, .filter-group input[type="text"] { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text); background: var(--cream); appearance: none; -webkit-appearance: none; outline: none; transition: border-color 0.2s; cursor: pointer; }
.filter-group select:hover, .filter-group input:hover { border-color: var(--tan-mid); }
.filter-group select:focus, .filter-group input:focus { border-color: var(--tan); background: white; }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); pointer-events: none; }

.generate-btn { width: 100%; padding: 13px; background: var(--brown-dark); color: white; border: none; border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s, transform 0.1s; margin-bottom: 22px; }
.generate-btn:hover { background: var(--brown); }
.generate-btn:active { transform: scale(0.99); }

.results-label { font-size: 10.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 11px; }

.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 9px; }
.name-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.1s; position: relative; }
.name-card:hover { border-color: var(--tan); background: var(--tan-light); transform: translateY(-1px); }
.name-card.selected { border-color: var(--tan); background: var(--tan-light); box-shadow: 0 0 0 2px var(--tan); }
.name-card .name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 500; color: var(--brown-dark); margin-bottom: 3px; }
.name-card .tag { font-size: 11px; color: var(--muted); padding-right: 20px; }

.card-heart { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s, transform 0.15s; z-index: 2; }
.card-heart:hover { background: rgba(201,168,108,0.15); transform: scale(1.15); }
.card-heart svg { transition: fill 0.15s, stroke 0.15s; }
.name-card.favorited .card-heart svg { fill: #C9A86C; stroke: #C9A86C; }

.name-detail { margin-top: 18px; padding: 18px 20px; background: var(--tan-light); border: 1px solid var(--tan-mid); border-radius: var(--radius); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-name { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 500; color: var(--brown-dark); margin-bottom: 5px; }
.detail-meaning { font-size: 13px; color: var(--brown); line-height: 1.55; max-width: 400px; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.detail-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.save-btn { display: flex; align-items: center; gap: 7px; padding: 10px 20px; background: var(--brown-dark); color: white; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.save-btn:hover { background: var(--brown); }
.save-btn.saved { background: var(--tan); color: var(--brown-dark); }

/* ══════════════════════════════════════════════
   HOW IT WORKS STEPS
══════════════════════════════════════════════ */
.how-section { max-width: 1260px; margin: 0 auto; padding: 0 2.5rem 80px; text-align: center; }
.how-section .hn-section-header { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 40px; }
.how-section .hn-section-header p { font-size: 15px; font-weight: 300; color: var(--muted); max-width: 480px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; text-align: left; }
.step-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.step-card:hover { box-shadow: 0 6px 24px rgba(42,32,21,0.08); transform: translateY(-2px); }
.step-illustration { height: 200px; background: #F4F6FA; display: flex; align-items: center; justify-content: center; }
.step-content { padding: 24px 26px 26px; }
.step-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--tan); margin-bottom: 8px; }
.step-content h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; color: var(--brown-dark); line-height: 1.35; margin-bottom: 10px; }
.step-content p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════════════════════════
   POPULAR NAMES WIDGET
══════════════════════════════════════════════ */
.popular-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.popular-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; text-decoration: none; }
.popular-item:hover { border-color: var(--tan-mid); box-shadow: 0 2px 12px rgba(42,32,21,0.07); text-decoration: none; }
.popular-item .rank { font-size: 11px; font-weight: 500; color: var(--tan); min-width: 22px; }
.popular-item .pop-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 500; color: var(--brown-dark); flex: 1; padding: 0 8px; }
.popular-item .pop-type { font-size: 11px; color: var(--muted); }

/* ══════════════════════════════════════════════
   HOME BLOG PREVIEW CARDS
══════════════════════════════════════════════ */
.blog-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.blog-preview-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; display: block; }
.blog-preview-card:hover { box-shadow: 0 4px 20px rgba(42,32,21,0.09); transform: translateY(-2px); text-decoration: none; }
.blog-preview-img { height: 155px; display: flex; align-items: center; justify-content: center; }
.blog-preview-img.color-1 { background: linear-gradient(135deg, #EDE0CE 0%, #D4B896 100%); }
.blog-preview-img.color-2 { background: linear-gradient(135deg, #D5E5D0 0%, #B2CFA8 100%); }
.blog-preview-img.color-3 { background: linear-gradient(135deg, #E2D5E8 0%, #C4B0D4 100%); }
.blog-preview-body { padding: 18px 20px; }
.blog-preview-cat { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--tan); margin-bottom: 7px; }
.blog-preview-card h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 500; color: var(--brown-dark); line-height: 1.35; margin-bottom: 9px; }
.blog-preview-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 13px; }
.blog-preview-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); padding-top: 13px; border-top: 1px solid var(--border); }
.blog-preview-meta .read-time { background: var(--cream); padding: 3px 9px; border-radius: 20px; font-weight: 500; }

/* ══════════════════════════════════════════════
   BLOG LISTING (archive.php / category.php)
══════════════════════════════════════════════ */
.blog-hero { max-width: 860px; margin: 0 auto; padding: 64px 2rem 48px; text-align: center; }
.blog-hero-eyebrow { display: inline-block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; color: var(--tan); margin-bottom: 18px; }
.blog-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(34px, 5.5vw, 58px); font-weight: 400; line-height: 1.15; color: var(--brown-dark); letter-spacing: -1px; margin-bottom: 18px; }
.blog-hero h1 em { font-style: italic; color: var(--tan); }
.blog-hero p { font-size: 16px; font-weight: 300; color: var(--muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }

.blog-controls { max-width: 1260px; margin: 0 auto; padding: 0 2.5rem 40px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.blog-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; transition: border-color 0.2s; }
.blog-search:focus-within { border-color: var(--tan); }
.blog-search svg { flex-shrink: 0; color: var(--muted); }
.blog-search input { border: none; outline: none; background: transparent; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text); padding: 11px 0; width: 100%; }
.blog-search input::placeholder { color: var(--muted); }
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: white; font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.cat-btn:hover { border-color: var(--tan-mid); color: var(--text); }
.cat-btn.active { background: var(--brown-dark); color: white; border-color: var(--brown-dark); font-weight: 500; }

/* Featured post */
.featured-wrapper { max-width: 1260px; margin: 0 auto; padding: 0 2.5rem 48px; }
.featured-card { background: white; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; text-decoration: none; transition: box-shadow 0.25s, transform 0.2s; }
.featured-card:hover { box-shadow: 0 8px 40px rgba(42,32,21,0.1); transform: translateY(-2px); text-decoration: none; }
.featured-img { background: linear-gradient(145deg, #EDE0CE 0%, #C9A86C 60%, #A07840 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; min-height: 300px; }
.featured-img-pattern { position: absolute; inset: 0; opacity: 0.08; background-image: repeating-linear-gradient(45deg, var(--brown-dark) 0, var(--brown-dark) 1px, transparent 0, transparent 50%); background-size: 14px 14px; }
.featured-img .wp-post-image { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-badge { position: absolute; top: 20px; left: 20px; background: var(--brown-dark); color: white; font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius: 20px; z-index: 1; }
.featured-body { padding: 44px 44px 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-cat { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--tan); margin-bottom: 14px; }
.featured-body h2 { font-family: 'Playfair Display', serif; font-size: clamp(22px, 3vw, 32px); font-weight: 400; color: var(--brown-dark); line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 16px; }
.featured-body .excerpt { font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.featured-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.featured-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--tan-mid); flex-shrink: 0; }

/* Post grid */
.listing-section { max-width: 1260px; margin: 0 auto; padding: 0 2.5rem 80px; }
.listing-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.listing-header h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 400; color: var(--brown-dark); letter-spacing: -0.3px; }
.listing-count { font-size: 13px; color: var(--muted); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.post-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; text-decoration: none; }
.post-card:hover { box-shadow: 0 6px 28px rgba(42,32,21,0.09); transform: translateY(-3px); text-decoration: none; }
.post-thumb { height: 180px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.post-thumb.color-1 { background: linear-gradient(135deg, #EDE0CE 0%, #D4B896 100%); }
.post-thumb.color-2 { background: linear-gradient(135deg, #D5E5D0 0%, #B2CFA8 100%); }
.post-thumb.color-3 { background: linear-gradient(135deg, #E2D5E8 0%, #C4B0D4 100%); }
.post-thumb.color-4 { background: linear-gradient(135deg, #D0E2EE 0%, #A8C4DA 100%); }
.post-thumb.color-5 { background: linear-gradient(135deg, #EEE5D0 0%, #D9C9A2 100%); }
.post-thumb.color-6 { background: linear-gradient(135deg, #E8D5D5 0%, #D4A8A8 100%); }
.post-thumb .wp-post-image { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-cat { position: absolute; bottom: 12px; left: 14px; background: rgba(61,43,26,0.75); color: rgba(255,255,255,0.92); font-size: 10px; font-weight: 500; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase; backdrop-filter: blur(4px); }
.post-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; color: var(--brown-dark); line-height: 1.35; margin-bottom: 10px; flex: 1; }
.post-card .excerpt { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.post-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.post-author { display: flex; align-items: center; gap: 8px; }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--tan-light); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: var(--brown); overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info .author-name { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.2; }
.author-info .post-date { font-size: 11px; color: var(--muted); }
.read-time-tag { font-size: 11px; color: var(--muted); background: var(--cream); padding: 3px 9px; border-radius: 20px; border: 1px solid var(--border); white-space: nowrap; }

/* WordPress pagination */
.hn-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 40px 0 0; }
.hn-pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: white; font-size: 14px; color: var(--muted); text-decoration: none; transition: all 0.15s; }
.hn-pagination .page-numbers:hover { border-color: var(--tan); color: var(--brown); text-decoration: none; }
.hn-pagination .page-numbers.current { background: var(--brown-dark); color: white; border-color: var(--brown-dark); font-weight: 500; }
.hn-pagination .page-numbers.dots { border: none; background: none; cursor: default; }

/* ══════════════════════════════════════════════
   SINGLE POST (single.php)
══════════════════════════════════════════════ */
.single-post-page { background: var(--warm-white); }

.post-banner { background: linear-gradient(145deg, #EDE0CE 0%, #C9A86C 55%, #9A7035 100%); position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.post-banner.has-thumbnail { background: var(--brown-dark); }
.post-banner.has-thumbnail .wp-post-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.post-banner-pattern { position: absolute; inset: 0; opacity: 0.07; background-image: repeating-linear-gradient(45deg, var(--brown-dark) 0, var(--brown-dark) 1px, transparent 0, transparent 50%); background-size: 14px 14px; pointer-events: none; }
.post-banner-content { position: relative; max-width: 820px; margin: 0 auto; padding: 80px 2rem 52px; width: 100%; z-index: 1; }
.post-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 24px; flex-wrap: wrap; }
.post-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.post-breadcrumb a:hover { color: white; text-decoration: none; }
.post-breadcrumb .sep { color: rgba(255,255,255,0.4); }
.post-banner-cat { display: inline-block; background: rgba(255,255,255,0.2); color: white; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.25); text-decoration: none; }
.post-banner-cat:hover { background: rgba(255,255,255,0.3); color: white; text-decoration: none; }
.post-banner h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 5vw, 50px); font-weight: 400; color: white; line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 24px; max-width: 680px; }
.post-banner-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.post-banner-author { display: flex; align-items: center; gap: 10px; }
.banner-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: white; border: 2px solid rgba(255,255,255,0.4); overflow: hidden; flex-shrink: 0; }
.banner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.banner-author-name { font-size: 14px; font-weight: 500; color: white; line-height: 1.2; }
.banner-author-role { font-size: 12px; color: rgba(255,255,255,0.65); }
.banner-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.7); }

/* Post layout */
.post-layout { max-width: 1260px; margin: 0 auto; padding: 60px 2rem 80px; display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.post-article { min-width: 0; }
.post-article .lead { font-size: 19px; font-weight: 300; color: var(--text); line-height: 1.75; margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.post-article h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 400; color: var(--brown-dark); letter-spacing: -0.4px; margin: 44px 0 18px; line-height: 1.25; }
.post-article h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; color: var(--brown-dark); margin: 32px 0 14px; }
.post-article h4 { font-size: 16px; font-weight: 500; color: var(--brown-dark); margin: 24px 0 10px; }
.post-article p { font-size: 16px; font-weight: 300; color: #3A2E22; line-height: 1.8; margin-bottom: 22px; }
.post-article strong { font-weight: 500; color: var(--text); }
.post-article em { font-style: italic; }
.post-article a { color: var(--tan); text-decoration: underline; text-underline-offset: 3px; }
.post-article ul, .post-article ol { margin: 0 0 22px 24px; }
.post-article li { font-size: 16px; font-weight: 300; color: #3A2E22; line-height: 1.8; margin-bottom: 6px; }
.post-article blockquote { border-left: 3px solid var(--tan); padding: 20px 28px; margin: 36px 0; background: var(--tan-light); border-radius: 0 var(--radius) var(--radius) 0; }
.post-article blockquote p { font-family: 'Playfair Display', serif; font-size: 20px; font-style: italic; font-weight: 400; color: var(--brown-dark); line-height: 1.5; margin: 0 0 8px; }
.post-article blockquote cite { font-size: 12px; color: var(--muted); font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: 0.6px; }
.post-article figure { margin: 32px 0; }
.post-article figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.post-article .wp-block-image img { border-radius: var(--radius); }

/* Info box */
.post-infobox { background: white; border: 1px solid var(--tan-mid); border-radius: var(--radius); padding: 22px 26px; margin: 32px 0; display: flex; gap: 16px; }
.post-infobox-icon { width: 36px; height: 36px; background: var(--tan-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.post-infobox-body h4 { font-size: 14px; font-weight: 500; color: var(--brown-dark); margin-bottom: 6px; }
.post-infobox-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Names callout */
.names-callout { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.names-callout-title { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; color: var(--tan); margin-bottom: 16px; }
.names-callout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.name-callout-item { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: border-color 0.2s, background 0.15s; text-decoration: none; display: block; }
.name-callout-item:hover { border-color: var(--tan); background: var(--tan-light); text-decoration: none; }
.name-callout-item .nc-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 500; color: var(--brown-dark); }
.name-callout-item .nc-tag { font-size: 11px; color: var(--muted); }

/* Share row */
.share-row { display: flex; align-items: center; gap: 12px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.share-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.share-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: border-color 0.2s, color 0.2s, background 0.2s; text-decoration: none; }
.share-btn:hover { border-color: var(--tan); color: var(--brown); background: var(--tan-light); text-decoration: none; }

/* Author bio */
.author-bio { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; gap: 20px; margin: 40px 0; align-items: flex-start; }
.author-bio-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--tan-light); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; color: var(--brown); flex-shrink: 0; overflow: hidden; }
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-body h4 { font-size: 15px; font-weight: 500; color: var(--brown-dark); margin-bottom: 4px; }
.author-bio-body .author-bio-role { font-size: 12px; color: var(--tan); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.author-bio-body p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }

/* Related posts */
.related-section { padding: 40px 0 0; }
.related-section h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 400; color: var(--brown-dark); margin-bottom: 20px; letter-spacing: -0.3px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; transition: border-color 0.2s, box-shadow 0.2s; display: flex; gap: 14px; align-items: flex-start; text-decoration: none; }
.related-card:hover { border-color: var(--tan-mid); box-shadow: 0 2px 14px rgba(42,32,21,0.07); text-decoration: none; }
.related-thumb { width: 52px; height: 52px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb.color-1 { background: linear-gradient(135deg, #EDE0CE 0%, #D4B896 100%); }
.related-thumb.color-2 { background: linear-gradient(135deg, #D5E5D0 0%, #B2CFA8 100%); }
.related-thumb.color-3 { background: linear-gradient(135deg, #E2D5E8 0%, #C4B0D4 100%); }
.related-thumb.color-4 { background: linear-gradient(135deg, #D0E2EE 0%, #A8C4DA 100%); }
.related-card h4 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 500; color: var(--brown-dark); line-height: 1.35; margin-bottom: 5px; }
.related-card .rel-meta { font-size: 11px; color: var(--muted); }

/* Sidebar */
.post-sidebar { position: sticky; top: 88px; }
.sidebar-widget { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.sidebar-widget h4 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 500; color: var(--brown-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { font-size: 13px; color: var(--muted); text-decoration: none; display: flex; gap: 10px; align-items: flex-start; transition: color 0.2s; line-height: 1.4; }
.toc-list a:hover { color: var(--brown); text-decoration: none; }
.toc-list a.active { color: var(--brown-dark); font-weight: 500; }
.toc-num { font-size: 11px; color: var(--tan); font-weight: 500; min-width: 16px; margin-top: 1px; }
.sidebar-names { display: flex; flex-direction: column; gap: 8px; }
.sidebar-name-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--cream); border-radius: var(--radius-sm); transition: background 0.15s; text-decoration: none; }
.sidebar-name-item:hover { background: var(--tan-light); text-decoration: none; }
.sidebar-name-item .sn-name { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 500; color: var(--brown-dark); }
.sidebar-name-item .sn-tag { font-size: 11px; color: var(--muted); }

/* Newsletter widget */
.newsletter-widget { background: var(--brown-dark); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.newsletter-widget h4 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 400; color: white; margin-bottom: 8px; border: none; padding: 0; }
.newsletter-widget p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.55; margin-bottom: 16px; }
.nl-input { width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; background: rgba(255,255,255,0.08); font-family: 'DM Sans', sans-serif; font-size: 13px; color: white; outline: none; margin-bottom: 10px; transition: border-color 0.2s; }
.nl-input::placeholder { color: rgba(255,255,255,0.4); }
.nl-input:focus { border-color: var(--tan); }

/* WordPress comments */
.comments-area { max-width: 720px; margin: 48px auto 0; padding: 0 2.5rem 80px; }
.comments-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 400; color: var(--brown-dark); margin-bottom: 32px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment { border-bottom: 1px solid var(--border); padding: 24px 0; }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 500; font-size: 14px; color: var(--brown-dark); }
.comment-meta { font-size: 12px; color: var(--muted); }
.comment-content p { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.comment-reply-link { font-size: 12px; color: var(--tan); font-weight: 500; }
.comment-respond h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 400; color: var(--brown-dark); margin-bottom: 20px; }
.comment-form label { display: block; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text); background: white; outline: none; transition: border-color 0.2s; margin-bottom: 16px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--tan); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit { background: var(--brown-dark); color: white; border: none; border-radius: var(--radius-sm); padding: 12px 28px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.comment-form .submit:hover { background: var(--brown); }

/* ══════════════════════════════════════════════
   FAVORITES PAGE (page-favorites.php)
══════════════════════════════════════════════ */
.fav-page-hero { padding: 52px 2rem 36px; max-width: 900px; margin: 0 auto; }
.fav-page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 400; color: var(--brown-dark); letter-spacing: -0.6px; margin-bottom: 10px; }
.fav-page-hero h1 em { font-style: italic; color: var(--tan); }
.fav-page-hero p { font-size: 15px; font-weight: 300; color: var(--muted); }
.fav-toolbar { max-width: 900px; margin: 0 auto; padding: 0 2.5rem 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fav-count-pill { background: var(--tan-light); color: var(--brown); border: 1px solid var(--tan-mid); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 20px; display: flex; align-items: center; gap: 6px; }
.fav-actions { display: flex; gap: 10px; }
.fav-grid-wrapper { max-width: 900px; margin: 0 auto; padding: 0 2.5rem 80px; }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.fav-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; position: relative; transition: box-shadow 0.2s, transform 0.15s; animation: fadeSlideIn 0.25s ease both; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fav-item:hover { box-shadow: 0 4px 18px rgba(42,32,21,0.08); transform: translateY(-2px); }
.fav-item .fav-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; color: var(--brown-dark); margin-bottom: 4px; padding-right: 28px; }
.fav-item .fav-tag { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.fav-item .fav-meaning { font-size: 12px; color: var(--brown); line-height: 1.55; margin-bottom: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.fav-remove-btn { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; color: var(--muted); }
.fav-remove-btn:hover { background: #fdf0f0; color: #c0392b; }
.fav-share-btn { font-size: 12px; color: var(--tan); font-weight: 500; background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; padding: 0; display: flex; align-items: center; gap: 5px; }
.fav-share-btn:hover { color: var(--brown); }
.fav-note-input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text); background: var(--cream); resize: none; outline: none; transition: border-color 0.2s; margin-top: 8px; line-height: 1.5; }
.fav-note-input:focus { border-color: var(--tan); background: white; }
.fav-note-input::placeholder { color: var(--muted); }
.fav-empty { text-align: center; padding: 80px 2rem; max-width: 420px; margin: 0 auto; }
.fav-empty-icon { width: 64px; height: 64px; background: var(--tan-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.fav-empty h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 400; color: var(--brown-dark); margin-bottom: 10px; }
.fav-empty p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }

/* ══════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════ */
.hn-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--brown-dark); color: white; padding: 12px 20px; border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.25s, transform 0.25s; z-index: 500; white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,0.2); pointer-events: none; }
.hn-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hn-toast .toast-link { color: var(--tan); font-weight: 500; cursor: pointer; pointer-events: all; text-decoration: underline; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
  .post-sidebar { position: static; }
}
@media (max-width: 840px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 200px; }
  .related-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 1.5rem; }
  nav ul { gap: 1rem; }
}
@media (max-width: 640px) {
  .filters-row { grid-template-columns: 1fr 1fr; }
  .tool-body, .tool-header { padding: 16px; }
  .main-navigation { display: none; }
  .main-navigation.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; z-index: 299; }
  .main-navigation.open ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: flex; }
  .post-banner h1 { font-size: clamp(24px, 6vw, 36px); }
  .featured-body { padding: 24px; }
}

/* ══════════════════════════════════════════════
   WORDPRESS OVERRIDES
   Override WP core / Gutenberg styles that
   conflict with the theme layout.
══════════════════════════════════════════════ */

/* WordPress wraps content in .entry-content which
   can cap width — remove any max-width constraints
   on our custom layout wrappers */
.wp-site-blocks,
.is-layout-constrained,
.is-layout-flow {
  max-width: none !important;
  padding: 0 !important;
}

/* Gutenberg block padding — remove default block spacing */
.wp-block-group,
.wp-block-group__inner-container,
.wp-block-post-content,
.entry-content {
  max-width: none;
  padding: 0;
}

/* Ensure our grid layouts aren't broken by WP adding
   display:block to anchor tags */
.popular-list,
.blog-preview-grid,
.posts-grid,
.names-grid,
.filters-row,
.steps-grid,
.related-grid,
.fav-grid {
  display: grid !important;
}

.popular-list  { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; gap: 10px !important; }
.blog-preview-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 22px !important; }
.posts-grid    { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 24px !important; }
.steps-grid    { grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
.related-grid  { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
.names-grid    { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)) !important; gap: 9px !important; }
.filters-row   { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)) !important; gap: 12px !important; }
.fav-grid      { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; gap: 14px !important; }

/* Ensure section containers fill the width properly */
.section,
.how-section,
.tool-wrapper,
.featured-wrapper,
.listing-section,
.blog-hero,
.blog-controls,
.fav-page-hero,
.fav-toolbar,
.fav-grid-wrapper {
  width: 100%;
  box-sizing: border-box;
}

/* Remove WP default body margin/padding sometimes added */
body.home,
body.front-page,
body.blog,
body.single,
body.page {
  margin: 0;
  padding: 0;
}

/* WordPress default paragraph margin reset inside our components */
.tool-card p,
.step-content p,
.name-detail p,
.post-card p,
.blog-preview-card p,
.featured-body p {
  margin-bottom: 0;
}

/* Ensure anchor tags in grids display correctly */
.blog-preview-card,
.post-card,
.popular-item,
.related-card,
.sidebar-name-item {
  display: flex !important;
  text-decoration: none !important;
  color: inherit !important;
}

.blog-preview-card { flex-direction: column !important; }
.post-card         { flex-direction: column !important; }
.popular-item      { flex-direction: row   !important; align-items: center !important; }

/* WordPress sometimes adds extra padding to <ul> inside nav */
.main-navigation ul,
.toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Footer — remove WP default widget styling */
.site-footer .widget,
.site-footer .widget_archive,
.site-footer .widget_categories {
  display: none !important;
}

@media (max-width: 900px) {
  .blog-preview-grid { grid-template-columns: 1fr 1fr !important; }
  .steps-grid        { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .blog-preview-grid { grid-template-columns: 1fr !important; }
  .popular-list      { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
}

/* ══════════════════════════════════════════════
   FONT SIZE & READABILITY UPGRADES
══════════════════════════════════════════════ */

/* Body base */
body { font-size: 17px; }

/* Popular items */
.popular-item .rank    { font-size: 12px; }
.popular-item .pop-name { font-size: 16px; }
.popular-item .pop-type { font-size: 12px; }

/* Blog preview cards */
.blog-preview-cat  { font-size: 11px; }
.blog-preview-card h3 { font-size: 19px !important; }
.blog-preview-card p  { font-size: 14px !important; line-height: 1.65; }
.blog-preview-meta    { font-size: 12px; }

/* Post grid cards */
.post-card h3   { font-size: 19px !important; }
.post-card .excerpt { font-size: 14px !important; }
.post-thumb-cat { font-size: 11px; }
.author-info .author-name { font-size: 13px; }
.author-info .post-date   { font-size: 12px; }
.read-time-tag  { font-size: 12px; }

/* Name tool */
.results-label  { font-size: 11px; }
.name-card .name { font-size: 17px; }
.name-card .tag  { font-size: 12px; }
.detail-name     { font-size: 26px; }
.detail-meaning  { font-size: 14px; line-height: 1.6; }

/* Blog hero */
.blog-hero h1 { font-size: clamp(36px, 6vw, 62px) !important; }
.blog-hero p  { font-size: 18px !important; }

/* Featured card */
.featured-body h2 { font-size: clamp(24px, 3.2vw, 36px) !important; }
.featured-body .excerpt { font-size: 16px !important; }
.featured-meta { font-size: 13px; }

/* Listing section */
.listing-header h3  { font-size: 24px; }
.listing-count      { font-size: 14px; }

/* How it works */
.step-label   { font-size: 12px; }
.step-content h3 { font-size: 20px; }
.step-content p  { font-size: 15px; }

/* Single post article */
.post-article .lead { font-size: 20px; }
.post-article p     { font-size: 17px; }
.post-article h2    { font-size: 28px; }
.post-article h3    { font-size: 22px; }

/* Sidebar */
.sidebar-name-item .sn-name { font-size: 15px; }
.sidebar-name-item .sn-tag  { font-size: 12px; }
.toc-list a         { font-size: 14px; }

/* Site footer */
.site-footer { font-size: 14px; }

/* How section heading */
.how-section .hn-section-header h2 { font-size: 30px; }

/* Ensure wider max-widths in overrides section too */
.how-section      { max-width: 1260px !important; }
.blog-controls    { max-width: 1260px !important; }
.featured-wrapper { max-width: 1260px !important; }
.listing-section  { max-width: 1260px !important; }
.post-layout      { max-width: 1260px !important; }
.fav-page-hero, .fav-toolbar, .fav-grid-wrapper { max-width: 1060px !important; }
.section { max-width: 1060px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 2.5rem; padding-right: 2.5rem; }

/* Blog controls search font */
.blog-search input { font-size: 15px; }
.cat-btn { font-size: 14px; }

/* Nav link font size override */
.main-navigation ul a { font-size: 15px !important; }
