/*
 * HorseName Static Theme
 * A clean, modern theme for the HorseName horse naming tool and blog.
 * Includes name generator, favorites system, blog listing, and single post templates.
 */

/* ══════════════════════════════════════════════
   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; text-decoration: none; flex-shrink: 0; }
.site-branding:hover { text-decoration: none; }
.site-logo-img { height: 50px; width: auto; display: block; }
.site-logo-icon { display: none; }
.site-title { display: none; }

.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; }

/* Dropdown menus */
.main-navigation li { position: relative; }
.main-navigation .menu-item-has-children > a::after { content: ''; display: inline-block; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 5px; vertical-align: 1px; }
.main-navigation ul ul.sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 8px 0; min-width: 220px; z-index: 300; flex-direction: column; gap: 0; }
.main-navigation ul ul.sub-menu li { width: 100%; }
.main-navigation ul ul.sub-menu a { display: block; padding: 8px 16px; font-size: 14px !important; white-space: nowrap; }
.main-navigation ul ul.sub-menu a:hover { background: var(--cream); color: var(--text); }
.main-navigation li:hover > ul.sub-menu { display: flex; }

.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.5); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: rgba(255,255,255,0.85); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 14px; }
.footer-copyright { color: rgba(255,255,255,0.35); font-size: 12px; margin: 0; }

/* ══════════════════════════════════════════════
   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; text-decoration: none; display: block; }
.name-card .name:hover { text-decoration: underline; }
.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-name a { color: inherit; text-decoration: none; }
.detail-name a:hover { text-decoration: underline; }
.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); }

/* ══════════════════════════════════════════════
   NEW HORSE NAMES SECTION
══════════════════════════════════════════════ */
.hn-new-date { font-size: 12px; color: var(--muted); font-weight: 400; }
.hn-new-names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hn-new-name-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; cursor: pointer;
}
.hn-new-name-card:hover { border-color: var(--tan-mid); box-shadow: 0 4px 16px rgba(42,32,21,0.08); transform: translateY(-2px); text-decoration: none; }
.hn-new-name-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--tan); }
.hn-new-name-title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 500; color: var(--brown-dark); }
.hn-new-name-tag { font-size: 12px; 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; margin-top: -30px; background: white; display: inline-block; padding: 4px 10px; border-radius: 6px; position: relative; }
.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
══════════════════════════════════════════════ */
.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; }

/* 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-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); }

/* Tables */
.post-article table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.post-article table th,
.post-article table td { padding: 12px 16px; text-align: left; border: 1px solid var(--border); font-weight: 300; color: var(--text); line-height: 1.6; }
.post-article table th { background: var(--cream); font-weight: 500; color: var(--brown-dark); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.post-article table tr:nth-child(even) td { background: var(--tan-light); }
.post-article table tr:hover td { background: var(--cream); }

/* 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); }

/* 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
══════════════════════════════════════════════ */
.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; text-decoration: none; display: block; }
.fav-item .fav-name:hover { text-decoration: underline; }
.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; max-height: 80vh; overflow-y: auto; }
  .main-navigation.open ul { flex-direction: column; gap: 1rem; }
  .main-navigation ul ul.sub-menu { position: static; box-shadow: none; border: none; border-radius: 0; padding: 0 0 0 1rem; min-width: 0; }
  .main-navigation li:hover > ul.sub-menu { display: none; }
  .main-navigation .menu-item-has-children.open > ul.sub-menu { display: flex; flex-direction: column; gap: 0.75rem; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .nav-favorites-btn span.fav-badge { display: none; }
  .nav-favorites-btn { padding: 7px 12px; font-size: 0; min-width: 44px; min-height: 44px; justify-content: center; }
  .nav-favorites-btn svg { margin: 0; }
  .site-header { padding: 0 1rem; gap: 0.75rem; }
  .post-banner h1 { font-size: clamp(24px, 6vw, 36px); }
  .featured-body { padding: 24px; }

  /* Reduce container padding for small screens */
  .hn-container { padding: 0 1.25rem; }
  .hn-container--narrow { padding: 0 1.25rem; }
  .tool-wrapper { padding: 0 1rem 60px; }
  .how-section { padding: 0 1.25rem 60px; }
  .listing-section { padding: 0 1.25rem 60px; }
  .blog-controls { padding: 0 1.25rem 32px; }
  .featured-wrapper { padding: 0 1.25rem 40px; }
  .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .front-hero { padding: 48px 1.25rem 28px; }
  .fav-page-hero { padding: 40px 1.25rem 28px; }
  .fav-toolbar { padding: 0 1.25rem 20px; }
  .fav-grid-wrapper { padding: 0 1.25rem 60px; }
  .comments-area { padding: 0 1.25rem 60px; }

  /* Name detail panel: stack vertically */
  .name-detail { flex-direction: column; padding: 16px; }
  .detail-meaning { max-width: 100%; }
  .detail-actions { width: 100%; }
  .save-btn { width: 100%; justify-content: center; }

  /* Trending / popular items */
  .hn-divider { margin-bottom: 48px; }

  /* Author bio: stack on mobile */
  .author-bio { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .filters-row { grid-template-columns: 1fr !important; }
  .names-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; }
  .front-hero h1 { font-size: 28px; }
  .front-hero p { font-size: 16px; }
  .tool-header h2 { font-size: 18px; }
  .tool-header-pills { display: none; }
  .hn-section-header { flex-direction: column; gap: 4px; }
  .hn-section-header h2 { font-size: 24px; }
  .blog-hero h1 { font-size: 28px !important; }
  .blog-hero p { font-size: 16px !important; }
  .fav-page-hero h1 { font-size: 26px; }
  .post-banner-content { padding: 60px 1.25rem 36px; }
  .post-layout { padding: 40px 1.25rem 60px; }
  .fav-grid { grid-template-columns: 1fr !important; }
}

/* Suppress default tap highlight on iOS for interactive elements */
.name-card,
.popular-item,
.blog-preview-card,
.post-card,
.generate-btn,
.save-btn,
.card-heart,
.hn-btn,
.cat-btn,
.menu-toggle,
.nav-favorites-btn,
.fav-remove-btn,
.fav-share-btn,
.share-btn,
.related-card {
  -webkit-tap-highlight-color: transparent;
}

/* ══════════════════════════════════════════════
   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 */
.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; }

/* ══════════════════════════════════════════════
   HORSE NAMES INNER PAGES (category pages)
══════════════════════════════════════════════ */
.hn-inner-page {
  --hn-sand: #f6f1eb;
  --hn-warm: #ede6dc;
  --hn-bark: #8b7355;
  --hn-bark-light: #a6936f;
  --hn-ink: #2c2418;
  --hn-ink-soft: #5a4e3c;
  --hn-accent: #c4a46c;
  --hn-divider: rgba(139,115,85,0.12);
  --hn-radius: 12px;
}

/* Hero */
.hn-inner-hero {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  animation: hnFadeUp 0.7s ease backwards;
}

.hn-inner-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hn-bark);
  background: var(--hn-warm);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.75rem;
}

.hn-inner-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--hn-ink);
  margin-bottom: 1.5rem;
}

.hn-inner-hero-desc {
  font-size: 1.05rem;
  color: var(--hn-ink-soft);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.hn-inner-hero-desc a { color: var(--hn-bark); }

.hn-inner-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 99px;
  border: 1px solid var(--hn-divider);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(44,36,24,0.04);
  transition: box-shadow 0.3s;
}

.hn-inner-search:focus-within {
  box-shadow: 0 4px 30px rgba(44,36,24,0.08);
  border-color: var(--hn-bark-light);
}

.hn-inner-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--hn-ink);
  background: transparent;
}

.hn-inner-search input::placeholder { color: var(--hn-bark-light); }

.hn-inner-search button {
  background: var(--hn-ink);
  color: var(--cream);
  border: none;
  padding: 0 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.hn-inner-search button:hover { background: var(--hn-bark); }

/* Container */
.hn-inner-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}

/* Section headings */
.hn-inner-article h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--hn-ink);
  margin: clamp(3rem, 6vw, 5rem) 0 0.5rem;
}

.hn-inner-article h2 + p {
  color: var(--hn-ink-soft);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Top 20 table */
.hn-inner-article table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--hn-radius);
  border: 1px solid var(--hn-divider);
  overflow: hidden;
  margin-bottom: 1rem;
}

.hn-inner-article thead { background: var(--hn-sand); }

.hn-inner-article th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hn-bark);
}

.hn-inner-article td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--hn-divider);
  color: var(--hn-ink);
}

.hn-inner-article td:first-child { color: var(--hn-bark-light); font-weight: 500; width: 3rem; }
.hn-inner-article td:nth-child(2) { font-weight: 500; }
.hn-inner-article td:nth-child(3) { color: var(--hn-ink-soft); font-weight: 300; }

.hn-inner-article tbody tr { transition: background 0.15s; }
.hn-inner-article tbody tr:hover { background: var(--hn-sand); }

/* Style tags in table 4th column */
.hn-inner-article td:nth-child(4) {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hn-bark);
}

/* Name lists (ul) */
.hn-inner-article ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
}

.hn-inner-article li {
  background: #fff;
  border: 1px solid var(--hn-divider);
  border-radius: var(--hn-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(44,36,24,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
  line-height: 1.55;
  font-size: 0.9rem;
  color: var(--hn-ink-soft);
  font-weight: 300;
}

.hn-inner-article li:hover {
  box-shadow: 0 8px 30px rgba(44,36,24,0.06);
  transform: translateY(-2px);
}

.hn-inner-article li strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--hn-ink);
  margin-bottom: 0.25rem;
}
.hn-inner-article li strong a,
.hn-inner-article td strong a { color: inherit; text-decoration: none; }
.hn-inner-article li strong a:hover,
.hn-inner-article td strong a:hover { color: var(--tan, #C9A86C); text-decoration: underline; }

/* Tips section — detect by "Tips" in h2 */
.hn-inner-article h2[id*="tip"] + ul,
.hn-inner-article h2[id*="tip"] + p + ul {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.hn-inner-article h2[id*="tip"] + ul li,
.hn-inner-article h2[id*="tip"] + p + ul li {
  background: var(--hn-sand);
  border: none;
}

/* Explore more links section */
.hn-inner-article a {
  color: var(--hn-bark);
  text-decoration: none;
  transition: color 0.2s;
}

.hn-inner-article a:hover { color: var(--hn-ink); text-decoration: none; }

/* FAQ section — h3 + p pairs */
.hn-inner-article h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--hn-ink);
  padding: 1.25rem 0;
  margin: 0;
  border-bottom: 1px solid var(--hn-divider);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hn-inner-article h3::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--hn-bark);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.hn-inner-article h3.hn-faq-open::after { transform: rotate(45deg); }

.hn-inner-article h3 + p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.9rem;
  color: var(--hn-ink-soft);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.hn-inner-article h3.hn-faq-open + p {
  max-height: 200px;
  padding: 1rem 0;
}

/* First FAQ h3 gets top border */
.hn-inner-article h3:first-of-type {
  border-top: 1px solid var(--hn-divider);
}

/* CTA paragraph at the end */
.hn-inner-article > p:last-of-type {
  text-align: center;
  margin-top: 3rem;
  font-size: 1rem;
  color: var(--hn-ink-soft);
}

/* Animation */
@keyframes hnFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inner page images */
.hn-inner-article figure {
  margin: 2rem 0;
  border-radius: var(--hn-radius);
  overflow: hidden;
}

.hn-inner-article figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--hn-radius);
}

.hn-inner-article figcaption,
.post-article figcaption {
  font-size: 0.75rem;
  color: var(--hn-bark-light, var(--muted));
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 300;
}

/* Image description in handwriting style */
.img-desc {
  display: block;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--hn-ink-soft, #5a4e3c);
  text-align: center;
  margin-top: 0.35rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.img-license {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 0.65rem;
  color: var(--hn-bark-light, #a6936f);
  margin-top: 0.25rem;
  opacity: 0.7;
}

/* Scrollable table wrapper */
.hn-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--hn-radius);
  border: 1px solid var(--hn-divider);
  margin-bottom: 1rem;
}
.hn-table-scroll table {
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  min-width: 500px;
}

/* Responsive */
@media (max-width: 768px) {
  .hn-inner-hero { padding: clamp(2.5rem, 8vw, 4rem) 1.25rem clamp(2rem, 4vw, 3rem); }
  .hn-inner-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hn-inner-hero-desc { font-size: 0.95rem; }
  .hn-inner-container { padding: 0 1.25rem 3rem; }
  .hn-inner-article h2 { font-size: clamp(1.4rem, 5vw, 2rem); margin-top: 2.5rem; }
  .hn-inner-article h3 { font-size: 1.05rem; padding: 1rem 0; }

  /* Table: scroll handled by .hn-table-scroll wrapper */
  .hn-inner-article th, .hn-inner-article td { padding: 0.65rem 0.75rem; font-size: 0.8rem; white-space: nowrap; }

  /* Name cards: single column */
  .hn-inner-article ul { grid-template-columns: 1fr; gap: 0.75rem; }
  .hn-inner-article li { padding: 1rem 1.25rem; }
  .hn-inner-article li strong { font-size: 1.1rem; }

  /* Search bar */
  .hn-inner-search { max-width: 100%; border-radius: 12px; }
  .hn-inner-search input { padding: 0.85rem 1rem; font-size: 0.9rem; }
  .hn-inner-search button { padding: 0 1.25rem; font-size: 0.8rem; border-radius: 0 12px 12px 0; }

  /* FAQ answers */
  .hn-inner-article h3 + p { font-size: 0.85rem; }

  /* Images */
  .hn-inner-article figure { margin: 1.5rem 0; }
  .hn-inner-article figure img { border-radius: 8px; }

  /* Touch targets: ensure links/buttons have minimum 44px tap area */
  .hn-inner-article h3 { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 480px) {
  .hn-inner-hero h1 { font-size: 1.75rem; }
  .hn-inner-badge { font-size: 0.65rem; padding: 0.35rem 0.85rem; }
  .hn-inner-article th { font-size: 0.65rem; }
  .hn-inner-article td { font-size: 0.75rem; padding: 0.5rem 0.65rem; }
}

/* ══════════════════════════════════════════════
   PAGE LAYOUT — static pages
══════════════════════════════════════════════ */
.post-layout--page {
  max-width: 820px;
  margin: 60px auto;
  padding: 0 2rem 80px;
  display: block;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400;
  color: var(--brown-dark);
  letter-spacing: -0.6px;
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════ */
.error-404-page {
  text-align: center;
  padding: 100px 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.error-404-code {
  font-size: 80px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--tan);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.error-404-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════
   NO RESULTS / EMPTY STATES
══════════════════════════════════════════════ */
.no-results {
  text-align: center;
  padding: 60px 0;
}

.no-results p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.no-results-text {
  color: var(--muted);
  padding: 40px 0;
}

/* ══════════════════════════════════════════════
   BREADCRUMBS — inner horse name pages
══════════════════════════════════════════════ */
.hn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px clamp(1.5rem, 5vw, 4rem) 0;
  max-width: 820px;
  margin: 0 auto;
  flex-wrap: wrap;
}

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

.hn-breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.hn-bread-sep {
  color: var(--border);
}

/* ══════════════════════════════════════════════
   SINGLE POST — breadcrumb current title
══════════════════════════════════════════════ */
.post-breadcrumb .breadcrumb-current {
  color: rgba(255, 255, 255, 0.85);
}

/* ══════════════════════════════════════════════
   PAGE SEARCH HIGHLIGHT
══════════════════════════════════════════════ */
.hn-search-highlight {
  background: var(--hn-accent, #c4a46c);
  color: #fff;
  border-radius: 6px;
  transition: background 0.3s;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — GRID & LAYOUT FIXES
   Ensures all grids, cards, and sections adapt
   properly across all breakpoints.
══════════════════════════════════════════════ */

/* ── Large tablets / small desktops ── */
@media (max-width: 900px) {
  .blog-preview-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .hn-new-names-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ── Tablets ── */
@media (max-width: 768px) {
  /* Popular list */
  .popular-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }

  /* Blog preview */
  .blog-preview-card { flex-direction: column; }
  .blog-preview-img { height: 140px; }

  /* Favorites */
  .fav-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fav-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  /* Post layout */
  .post-layout { padding: 40px 1.5rem 60px; }
  .post-layout--page { padding: 0 1.5rem 60px; margin-top: 40px; }

  /* Post banner */
  .post-banner { min-height: 320px; }
  .post-banner-content { padding: 60px 1.5rem 40px; }
  .post-banner h1 { font-size: clamp(24px, 5vw, 40px); }
  .post-banner-meta { gap: 12px; }

  /* Blog controls */
  .blog-controls { flex-direction: column; align-items: stretch; }
  .blog-search { min-width: 100%; }
  .cat-filters { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .cat-btn { flex-shrink: 0; }

  /* Blog hero */
  .blog-hero { padding: 48px 1.5rem 36px; }

  /* Featured card */
  .featured-card { min-height: auto; }
  .featured-body { padding: 28px; }
  .featured-body h2 { font-size: clamp(20px, 4vw, 28px); }

  /* Posts grid */
  .posts-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Related grid (single post) */
  .related-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-links { gap: 8px 16px; }
  .site-footer { padding: 24px 1.25rem; }
}

/* ── Small screens / large phones ── */
@media (max-width: 600px) {
  .blog-preview-grid { grid-template-columns: 1fr; }
  .blog-preview-card h3 { margin-top: 29px; }
  .steps-grid { grid-template-columns: 1fr; }
  .popular-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .hn-new-names-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  /* Name cards on homepage */
  .names-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

  /* Fav grid */
  .fav-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Step cards */
  .step-illustration { height: 160px; }
  .step-content { padding: 18px 20px 22px; }

  /* Blog post layout */
  .post-layout { grid-template-columns: 1fr; gap: 32px; }

  /* Author bio */
  .author-bio { flex-direction: column; align-items: center; text-align: center; gap: 14px; }

  /* Share row */
  .share-row { flex-wrap: wrap; }
}

/* ── Phones ── */
@media (max-width: 480px) {
  /* Header */
  .site-logo-img { height: 36px; }

  /* Hero */
  .front-hero { padding: 36px 1rem 20px; }
  .front-hero h1 { font-size: 26px; letter-spacing: -0.5px; }
  .front-hero p { font-size: 15px; }

  /* Tool */
  .tool-wrapper { padding: 0 0.75rem 48px; margin-top: 20px; }
  .tool-card { border-radius: 14px; }
  .tool-body, .tool-header { padding: 14px; }
  .tool-header h2 { font-size: 17px; }
  .tool-header p { font-size: 13px; }
  .tool-header-pills { display: none; }
  .filters-row { grid-template-columns: 1fr; gap: 10px; }
  .filter-group label { font-size: 10px; margin-bottom: 5px; }
  .filter-group select, .filter-group input[type="text"] { padding: 10px 12px; font-size: 14px; }
  .generate-btn { padding: 12px; font-size: 14px; }

  /* Name cards */
  .names-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .name-card { padding: 10px 12px; }
  .name-card .name { font-size: 14px; }
  .name-card .tag { font-size: 10px; }
  .card-heart { top: 6px; right: 6px; width: 24px; height: 24px; }

  /* Name detail */
  .name-detail { padding: 14px; margin-top: 14px; }
  .detail-name { font-size: 20px; }
  .detail-meaning { font-size: 12px; }
  .detail-tags { gap: 4px; }
  .detail-tags .hn-pill { font-size: 10px; padding: 3px 8px; }
  .save-btn { padding: 9px 16px; font-size: 12px; }

  /* Results label */
  .results-label { font-size: 10px; margin-bottom: 8px; }

  /* How section */
  .how-section { padding: 0 0.75rem 48px; }
  .how-section .hn-section-header h2 { font-size: 22px; }
  .how-section .hn-section-header p { font-size: 13px; }

  /* Section headers */
  .hn-section-header { flex-direction: column; gap: 4px; margin-bottom: 18px; }
  .hn-section-header h3 { font-size: 20px; }

  /* Popular / Trending */
  .section { padding-left: 0.75rem; padding-right: 0.75rem; }
  .popular-list { grid-template-columns: 1fr; gap: 6px; }
  .popular-item { padding: 11px 14px; border-radius: 10px; }
  .popular-item .pop-name { font-size: 14px; }

  /* New names */
  .hn-new-names-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hn-new-name-card { padding: 14px 12px; }
  .hn-new-name-title { font-size: 15px; }
  .hn-new-name-tag { font-size: 11px; }

  /* Blog preview */
  .blog-preview-grid { gap: 14px; }
  .blog-preview-card { border-radius: 10px; }
  .blog-preview-img { height: 120px; }
  .blog-preview-body { padding: 14px 16px; }
  .blog-preview-card h3 { font-size: 16px; margin-top: 24px; }
  .blog-preview-card p { font-size: 13px; }

  /* Dividers */
  .hn-divider { margin-bottom: 36px; }

  /* Blog listing */
  .blog-hero { padding: 36px 1rem 28px; }
  .blog-hero h1 { font-size: 24px; }
  .blog-hero p { font-size: 14px; }
  .blog-controls { padding: 0 0.75rem 24px; }
  .featured-wrapper { padding: 0 0.75rem 32px; }
  .featured-body { padding: 20px; }
  .listing-section { padding: 0 0.75rem 48px; }
  .listing-header h3 { font-size: 20px; }

  /* Post cards */
  .post-card { border-radius: 10px; }
  .post-thumb { height: 150px; }
  .post-body { padding: 16px; }
  .post-card h3 { font-size: 16px; }
  .post-card .excerpt { font-size: 13px; margin-bottom: 14px; }
  .post-footer { padding-top: 12px; }

  /* Single post */
  .post-banner { min-height: 260px; }
  .post-banner-content { padding: 48px 1rem 28px; }
  .post-banner h1 { font-size: clamp(20px, 6vw, 30px); }
  .post-banner-meta { flex-direction: column; gap: 6px; }
  .post-banner-author { gap: 8px; }
  .banner-avatar { width: 32px; height: 32px; font-size: 11px; }
  .banner-author-name { font-size: 13px; }
  .banner-meta-item { font-size: 12px; }
  .post-layout { padding: 28px 1rem 48px; }
  .post-article p { font-size: 15px; }
  .post-article h2 { font-size: 22px; }
  .post-article h3 { font-size: 18px; }
  .post-article .lead { font-size: 16px; }

  /* Favorites */
  .fav-page-hero { padding: 32px 0.75rem 20px; }
  .fav-page-hero h1 { font-size: 24px; }
  .fav-toolbar { padding: 0 0.75rem 16px; }
  .fav-grid-wrapper { padding: 0 0.75rem 48px; }
  .fav-grid { grid-template-columns: 1fr; gap: 10px; }
  .fav-item { padding: 14px; }
  .fav-item .fav-name { font-size: 17px; }
  .fav-item .fav-meaning { font-size: 11px; }
  .fav-note-input { font-size: 11px; }
  .fav-page-intro { padding: 0 0.75rem 24px; }
  .fav-page-intro h2 { font-size: 18px; }
  .fav-page-intro h3 { font-size: 16px; }
  .fav-page-intro p { font-size: 14px; }

  /* Footer */
  .site-footer { padding: 20px 0.75rem; font-size: 12px; }
  .footer-links { gap: 6px 14px; font-size: 12px; }
  .footer-copyright { font-size: 11px; }

  /* 404 */
  .error-404-page { padding: 60px 1rem; }
  .error-404-code { font-size: 60px; }
  .error-404-title { font-size: 22px; }
  .error-404-desc { font-size: 14px; }

  /* Static pages */
  .post-layout--page { padding: 0 1rem 48px; margin-top: 32px; }
  .page-title { font-size: 24px; margin-bottom: 20px; }
  .post-article table { font-size: 13px; }
  .post-article table th, .post-article table td { padding: 8px 10px; }

  /* Category / inner pages */
  .hn-inner-hero h1 { font-size: clamp(1.5rem, 7vw, 2.5rem); }
  .hn-inner-badge { font-size: 0.6rem; }
  .hn-breadcrumb { padding: 14px 0.75rem 0; font-size: 12px; }

  /* Toast */
  .hn-toast { font-size: 13px; padding: 10px 16px; bottom: 16px; border-radius: 8px; }
}

/* ── Very small phones ── */
@media (max-width: 360px) {
  .site-header { height: 56px; padding: 0 0.5rem; }
  .site-logo-img { height: 30px; }
  .nav-favorites-btn { min-width: 36px; min-height: 36px; padding: 6px; }
  .menu-toggle { min-width: 36px; min-height: 36px; }

  .front-hero h1 { font-size: 22px; }
  .tool-wrapper { padding: 0 0.5rem 40px; }
  .names-grid { grid-template-columns: 1fr; }
  .name-card .name { font-size: 15px; }
  .detail-name { font-size: 18px; }

  .popular-item .pop-name { font-size: 13px; }
  .hn-new-names-grid { grid-template-columns: 1fr; }

  .section { padding-left: 0.5rem; padding-right: 0.5rem; }
  .how-section { padding: 0 0.5rem 36px; }

  .blog-preview-body { padding: 12px 14px; }
  .blog-preview-card h3 { font-size: 15px; }
}

/* ── Flexbox body for sticky footer ── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
.site-footer { margin-top: auto; }
