/*
Theme Name: Home Product Daily
Theme URI: https://homeproductdaily.com/
Author: Home Product Daily
Author URI: https://homeproductdaily.com/
Description: A fast, accessible, AdSense-ready WordPress theme for home product review publications. Covers furniture, home decor, kitchen & dining, appliances, cleaning, smart home, garden, and DIY — with built-in ad slots (including mobile sticky anchor), native social sharing, Schema.org markup, and E-E-A-T author bios. Boxed layout keeps content off the screen edges on every device.
Version: 1.0.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homeproduct
Tags: blog, news, custom-logo, custom-menu, featured-images, translation-ready, two-columns, right-sidebar
*/

/* ---------------------------------------------------------------------------
 * Tokens — warm home palette: terracotta accent + stone ink + cream tints
 * -------------------------------------------------------------------------*/
:root {
    --ink: #1c1917;           /* stone-900 — headings, key text */
    --ink-soft: #292524;      /* stone-800 — secondary text */
    --body: #292524;          /* stone-800 — body prose */
    --muted: #57534e;         /* stone-600 — meta, captions */
    --line: #e7e5e4;          /* stone-200 — hairlines */
    --paper: #ffffff;         /* card surface */
    --soft: #fff7ed;          /* orange-50 — soft section tint, warm cream */
    --softer: #fafaf9;        /* stone-50 — page background (boxed look) */
    --accent: #c2410c;        /* orange-700 — terracotta, primary */
    --accent-dark: #9a3412;   /* orange-800 — hover */
    --earth: #0e7490;         /* cyan-700 — cool secondary, like a kitchen accent */
    --earth-soft: #ecfeff;    /* cyan-50 — callouts */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(28, 25, 23, .05), 0 1px 2px rgba(28, 25, 23, .07);
    --shadow-lg: 0 20px 50px rgba(28, 25, 23, .14);
    --font-serif: "Lora", "PT Serif", "Source Serif 4", "Source Serif Pro", Charter, "Bitstream Charter", Cambria, Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1180px;
    --container-narrow: 720px;
    --gutter: clamp(1.75rem, 6vw, 2.5rem);  /* min 28px on phones — clear safe margin */
}

/* ---------------------------------------------------------------------------
 * Reset + base
 * -------------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--softer);  /* soft page bg — emphasizes boxed content */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 .5em;
    font-weight: 600;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
p { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code { background: var(--soft); padding: .15em .35em; border-radius: 4px; font-size: .9em; }

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 0 0 6px 6px;
    z-index: 100000;
}
.skip-link:focus { left: 1rem; color: #fff; }

/* ---------------------------------------------------------------------------
 * Boxed layout — content never touches the screen edges
 * -------------------------------------------------------------------------*/
.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.wrap--narrow { max-width: var(--container-narrow); }

.eyebrow {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .7rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------------------------------------------------------------------------
 * Header / nav
 * -------------------------------------------------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 8px rgba(20, 83, 45, .06); }
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: .9rem;
    padding-bottom: .9rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -.01em;
    font-family: var(--font-serif);
}
.site-logo:hover { color: var(--accent-dark); text-decoration: none; }
.site-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.primary-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .94rem;
    padding: .4rem 0;
    position: relative;
}
.primary-nav a:hover { color: var(--accent-dark); text-decoration: none; }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: .5rem;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.primary-nav .sub-menu a {
    display: block;
    padding: .5rem .75rem;
    border-radius: 4px;
    font-size: .9rem;
}
.primary-nav .sub-menu a:hover { background: var(--soft); }
.nav-cta { display: none; }
@media (min-width: 880px) {
    .primary-nav { display: block; }
    .nav-cta { display: inline-block; }
}
.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
    font-family: inherit;
    font-size: .9rem;
    cursor: pointer;
    color: var(--ink);
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
@media (min-width: 880px) { .menu-toggle { display: none; } }
.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 1rem 0;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
    display: block;
    padding: .65rem 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}
.mobile-menu .sub-menu { padding-left: 1rem; }
.mobile-menu .sub-menu a { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------------------
 * Hero
 * -------------------------------------------------------------------------*/
.hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(180deg, var(--soft) 0%, var(--softer) 100%);
    border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: 760px; }
.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    margin-bottom: .75rem;
}
.hero__lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--ink-soft);
    margin: 0 0 1.5rem;
    line-height: 1.55;
}
.hero__ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Page hero (smaller) */
.page-hero {
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem);
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--ink-soft); margin: 0; max-width: 720px; }

/* ---------------------------------------------------------------------------
 * Section helpers
 * -------------------------------------------------------------------------*/
.section {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    background: var(--paper);
}
.section--soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head__link { font-weight: 600; font-size: .9rem; }

/* ---------------------------------------------------------------------------
 * Post cards / grid
 * -------------------------------------------------------------------------*/
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 600px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.post-card__thumb {
    aspect-ratio: 16 / 9;
    background: var(--soft);
    overflow: hidden;
    position: relative;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb--placeholder {
    background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    opacity: .92;
}
.post-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card__cat {
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-weight: 700;
}
.post-card__title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--accent-dark); text-decoration: none; }
.post-card__excerpt { color: var(--body); margin: 0; font-size: .95rem; flex: 1; }
.post-card__meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .82rem;
    color: var(--muted);
    margin-top: .25rem;
}

/* Featured first post on homepage */
.post-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
@media (min-width: 760px) { .post-featured { grid-template-columns: 5fr 6fr; } }
.post-featured__thumb {
    aspect-ratio: 16 / 9;
    background: var(--soft);
    overflow: hidden;
}
.post-featured__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-featured__thumb--placeholder {
    background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
}
.post-featured__body { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .6rem; justify-content: center; }
.post-featured__title { font-size: clamp(1.5rem, 3vw, 1.85rem); margin: 0; }
.post-featured__title a { color: inherit; }
.post-featured__excerpt { color: var(--body); font-size: 1rem; margin: 0; }

/* ---------------------------------------------------------------------------
 * Category badges
 * -------------------------------------------------------------------------*/
.cat-pill {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 30px;
    background: var(--soft);
    color: var(--accent-dark);
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
}
.cat-pill:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------------------------------------------------------------------------
 * Category grid (homepage section)
 * -------------------------------------------------------------------------*/
.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.cat-card h3 { margin: 0 0 .25rem; color: var(--accent-dark); }
.cat-card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------------------
 * Single post layout — content + sticky sidebar
 * -------------------------------------------------------------------------*/
.single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
}
@media (min-width: 1024px) {
    .single-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
}
.single-post-main { min-width: 0; }
.single-post-header { margin-bottom: 1.5rem; }
.single-post-header__meta { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: .75rem; align-items: center; }
.single-post-header__meta a { color: var(--accent-dark); font-weight: 600; }
.single-post-header h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: .5rem; }
.single-post-header__lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.single-post-thumb {
    aspect-ratio: 16 / 9;
    background: var(--soft);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.single-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-post-thumb--placeholder {
    background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
}
.single-post-content { font-size: 1.05rem; line-height: 1.75; color: var(--body); max-width: 720px; }
.single-post-content h2 { margin-top: 2rem; margin-bottom: .75rem; color: var(--ink); }
.single-post-content h3 { margin-top: 1.5rem; margin-bottom: .5rem; color: var(--ink); }
.single-post-content p, .single-post-content ul, .single-post-content ol { margin-bottom: 1.2em; }
.single-post-content ul, .single-post-content ol { padding-left: 1.5em; }
.single-post-content li { margin-bottom: .35em; }
.single-post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--ink);
    background: var(--soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.single-post-content img {
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}
.single-post-content a { font-weight: 500; }
.single-post-content code { font-size: .9em; }
.single-post-content strong { color: var(--ink); }

/* Post tags */
.post-tags { margin: 2rem 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.post-tags__label { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: .25rem; }
.post-tags a {
    background: var(--soft);
    padding: .3rem .65rem;
    border-radius: 30px;
    font-size: .8rem;
    color: var(--ink-soft);
}
.post-tags a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Prev/next nav */
.post-nav { display: grid; gap: 1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a {
    display: block;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
    background: #fff;
}
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: .25rem; }
.post-nav__next { text-align: right; }

/* ---------------------------------------------------------------------------
 * Social share buttons (top + bottom of single posts)
 * -------------------------------------------------------------------------*/
.share-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .75rem 0;
    margin: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.share-row__label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
    margin-right: .25rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    transition: background .15s, color .15s, transform .1s;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    font-family: inherit;
}
.share-btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); text-decoration: none; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-row--bottom { margin-top: 2rem; }

/* ---------------------------------------------------------------------------
 * Author bio (E-E-A-T)
 * -------------------------------------------------------------------------*/
.author-bio {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 600px) { .author-bio { grid-template-columns: auto 1fr; } }
.author-bio__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.author-bio__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-bio__name { font-size: 1.1rem; margin: 0 0 .15rem; font-family: var(--font-sans); font-weight: 700; }
.author-bio__credentials { font-size: .85rem; color: var(--accent-dark); font-weight: 600; margin: 0 0 .5rem; }
.author-bio__desc { font-size: .92rem; color: var(--body); margin: 0; line-height: 1.55; }

/* Reviewed by line */
.reviewed-by {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    background: rgba(22, 163, 74, .12);
    color: var(--accent-dark);
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 600;
    margin: .5rem 0;
}
.reviewed-by::before { content: "✓"; font-weight: 700; }

/* ---------------------------------------------------------------------------
 * Home tip / general callout — drop-in callout box for in-article tips
 * -------------------------------------------------------------------------*/
.product-tip {
    background: var(--earth-soft);
    border-left: 4px solid var(--earth);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    font-size: .95rem;
    color: #78350f;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.product-tip strong { color: #92400e; }

.home-tip {
    background: var(--soft);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    font-size: .95rem;
    color: var(--ink-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.home-tip strong { color: var(--ink); }

/* ---------------------------------------------------------------------------
 * Sidebar
 * -------------------------------------------------------------------------*/
.single-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) {
    .sidebar-sticky { position: sticky; top: 90px; }
}
.widget {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.widget__heading {
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 .75rem;
    font-family: var(--font-sans);
    font-weight: 700;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--ink); font-size: .92rem; font-weight: 500; }

/* ---------------------------------------------------------------------------
 * Related posts
 * -------------------------------------------------------------------------*/
.related-posts { margin: 3rem auto; padding: 2.5rem 0; border-top: 1px solid var(--line); background: var(--paper); }
.related-posts__heading { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: 0 0 1.5rem; }
.related-posts__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 720px) { .related-posts__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------------------
 * Forms (contact)
 * -------------------------------------------------------------------------*/
.contact-form { display: grid; gap: 1rem; max-width: 600px; }
.contact-form label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; display: block; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--body);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .field-help { font-size: .82rem; color: var(--muted); margin-top: .25rem; }

.contact-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 720px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { padding: 1.25rem; background: var(--soft); border-radius: var(--radius); border: 1px solid var(--line); }
.contact-card h3 { font-size: 1rem; margin: 0 0 .25rem; }
.contact-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.contact-card a { font-weight: 600; }

/* ---------------------------------------------------------------------------
 * Pagination
 * -------------------------------------------------------------------------*/
.pagination { display: flex; gap: .5rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    background: #fff;
}
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* ---------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------*/
.site-footer { background: var(--ink); color: #d1d5db; padding: 3rem 0 1rem; margin-top: 4rem; }
.site-footer a { color: #f9fafb; }
.site-footer a:hover { color: #86efac; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand h3 { color: #fff; margin-top: 0; font-family: var(--font-sans); font-size: 1.1rem; }
.footer-brand p { font-size: .92rem; color: #9ca3af; }
.footer-col h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin: 0 0 .75rem;
    font-family: var(--font-sans);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; font-size: .92rem; }
.footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .82rem;
    color: #6b7280;
}

/* ---------------------------------------------------------------------------
 * 404 / search
 * -------------------------------------------------------------------------*/
.error-404 { padding: 4rem 0; text-align: center; background: #fff; }
.error-404 h1 { font-size: clamp(3rem, 8vw, 5rem); color: var(--accent); margin-bottom: .25rem; }
.error-404 p { color: var(--body); margin-bottom: 1.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }

.search-form { display: flex; gap: .5rem; max-width: 480px; margin: 1rem auto; }
.search-form input[type="search"] { flex: 1; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit; }

/* ---------------------------------------------------------------------------
 * Ad containers
 * -------------------------------------------------------------------------*/
.hpd-ad {
    margin: 1.25rem auto;
    max-width: 970px;
    text-align: center;
}
.hpd-ad__label {
    display: block;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .4rem;
}
.hpd-ad__inner ins.adsbygoogle { display: block; margin: 0 auto; }
.hpd-ad--header {
    margin: 0;
    padding: .75rem var(--gutter);
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}
.hpd-ad-wrap { padding-top: 1rem; }
.hpd-ad-pair { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0 auto 1.5rem; }
@media (min-width: 880px) { .hpd-ad-pair { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.hpd-ad-pair .hpd-ad { margin: 0; }
.hpd-ad--in-article {
    margin: 2rem auto;
    padding: 1rem;
    background: var(--soft);
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    border-radius: var(--radius-sm);
}
.hpd-ad--sidebar { margin: 0; }
.hpd-ad--sidebar .hpd-ad__label { text-align: left; }
.hpd-ad--between {
    margin: 2.5rem auto;
    padding: 1rem;
    background: var(--soft);
    border-radius: var(--radius);
}
.hpd-ad-wrap:empty,
.hpd-ad-pair:empty { display: none; }

/* Mobile sticky anchor ad — fixed at bottom of viewport on small screens only */
.hpd-ad--mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 8px rgba(20, 83, 45, .08);
    padding: .5rem .75rem;
    text-align: center;
    margin: 0;
    max-width: none;
}
.hpd-ad--mobile-sticky .hpd-ad__inner { min-height: 50px; display: flex; align-items: center; justify-content: center; }
.hpd-ad--mobile-sticky .hpd-ad__label { font-size: .6rem; margin: 0 0 .25rem; }
.hpd-ad--mobile-sticky__close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(20, 83, 45, .08);
    border: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hpd-ad--mobile-sticky__close:hover { background: rgba(20, 83, 45, .15); }
@media (min-width: 720px) {
    .hpd-ad--mobile-sticky { display: none; }   /* mobile-only */
}
body.has-mobile-sticky-ad { padding-bottom: 90px; }   /* keep content above sticky ad */
@media (min-width: 720px) {
    body.has-mobile-sticky-ad { padding-bottom: 0; }
}

/* ---------------------------------------------------------------------------
 * Comments-disabled note
 * -------------------------------------------------------------------------*/
.no-comments-note {
    background: var(--soft);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: .9rem;
    margin: 2rem 0;
    text-align: center;
}

/* ---------------------------------------------------------------------------
 * Utility
 * -------------------------------------------------------------------------*/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
