/* =============================================================
   Hamster Haven — Editorial refresh layer
   Loaded after style.css (dependency: cangshuwo-style).
   Purpose: latin-first typography, calmer palette, modern cards,
   unified section headers, readable long-form article styling.
   No layout markup is removed; this file only restyles.
   ============================================================= */

:root {
    /* ---- type ---- */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
            "Noto Sans", "Liberation Sans", sans-serif;
    --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

    /* ---- palette (warm, slightly desaturated, higher contrast) ---- */
    --c-primary: #C2701A;
    --c-primary-light: #FCEBD5;
    --c-primary-dark: #934F0C;
    --c-secondary: #4E7A3A;
    --c-secondary-light: #E6F0DF;
    --c-accent: #D2622F;
    --c-accent-light: #FBE4DA;
    --c-bg: #FBF8F4;
    --c-white: #FFFFFF;
    --c-card: #FFFFFF;
    --c-text: #26211D;
    --c-text-light: #5D544C;
    --c-text-muted: #8B8079;
    --c-border: #E9E1D7;
    --c-border-light: #F2ECE4;

    --shadow-sm: 0 1px 2px rgba(38, 33, 29, .05);
    --shadow-md: 0 4px 14px -4px rgba(38, 33, 29, .12);
    --shadow-lg: 0 18px 40px -20px rgba(38, 33, 29, .28);

    --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-full: 999px;
    --max-w: 1160px;
    --transition: all .22s cubic-bezier(.4, 0, .2, 1);

    /* ribbon / gradient helpers */
    --hh-grad: linear-gradient(135deg, #FDF3E7 0%, #FAF7F2 60%, #F6F1EA 100%);
}

/* ---------- base ---------- */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.72;
    font-size: 16.5px;
    letter-spacing: .002em;
}
h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -.012em; color: var(--c-text); font-weight: 700; }
a { color: var(--c-primary-dark); text-decoration: none; }
a:hover { color: var(--c-primary); }
img { border-radius: 0; }

.hh-i { flex: none; vertical-align: -.18em; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

::selection { background: #FBE3C6; color: #6B3607; }

/* ---------- generic section heading ---------- */
.section-title {
    font-size: clamp(1.32rem, 1.1rem + .8vw, 1.72rem);
    font-weight: 750;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.02em;
}
.section-title::before {
    content: "";
    width: 4px; height: 1.05em;
    border-radius: 3px;
    background: var(--c-primary);
    flex: none;
}
.title-icon { display: none !important; }   /* emoji icon slot retired */
.section-subtitle {
    color: var(--c-text-muted);
    font-size: .95rem;
    margin: 0 0 30px;
    padding-left: 14px;
    max-width: 62ch;
}
.section-more { text-align: center; margin-top: 34px; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
    position: sticky; top: 0; z-index: 90;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-border);
    box-shadow: none;
}
.site-header .container {
    display: flex; align-items: center; gap: 22px;
    min-height: 64px;
}
.site-branding { flex: none; }
.site-title { margin: 0; font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; }
.site-title a { color: var(--c-text); display: inline-flex; align-items: center; gap: 8px; }
.site-title a::before {
    content: "";
    width: 26px; height: 26px; border-radius: 8px;
    background: var(--c-primary);
    -webkit-mask: radial-gradient(circle at 50% 50%, #000 96%, transparent 100%);
    mask: none;
    display: inline-block;
    background-image: linear-gradient(135deg, #E9A03C, #B45F14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.main-navigation { margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: 2px; margin: 0; }
.nav-menu > li > a {
    display: inline-block;
    padding: 8px 13px;
    border-radius: var(--r-full);
    font-size: .92rem;
    font-weight: 600;
    color: var(--c-text-light);
    white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--c-primary-dark);
    background: var(--c-primary-light);
}
.nav-menu .sub-menu {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: 8px; min-width: 210px;
}
.nav-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; }
.nav-menu .sub-menu a:hover { background: var(--c-bg); }
.header-search { flex: none; display: flex; align-items: center; }
.search-toggle {
    width: 40px; height: 40px; border: 1px solid var(--c-border); background: #fff;
    border-radius: var(--r-full); color: var(--c-text-light); cursor: pointer;
    display: grid; place-items: center; transition: var(--transition);
}
.search-toggle:hover { color: var(--c-primary-dark); border-color: var(--c-primary); background: var(--c-primary-light); }
.menu-toggle { display: none; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
    background: #fff; border-bottom: 1px solid var(--c-border-light);
    font-size: .82rem; color: var(--c-text-muted); padding: 9px 0;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { margin: 0 7px; opacity: .55; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--r-full);
    font-size: .94rem; font-weight: 650; line-height: 1;
    border: 1px solid transparent; cursor: pointer;
    transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--c-primary-dark); color: #fff; box-shadow: 0 8px 20px -12px rgba(147,79,12,.9); }
.btn-primary:hover { background: #7C3F06; color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(147,79,12,.95); }
.btn-outline { background: #fff; color: var(--c-primary-dark); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); background: var(--c-primary-light); color: var(--c-primary-dark); transform: translateY(-1px); }

/* =============================================================
   HERO
   ============================================================= */
.hero-section {
    background: var(--hh-grad);
    border-bottom: 1px solid var(--c-border-light);
    padding: 62px 0 66px;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: "";
    position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
    border-radius: 50%; background: radial-gradient(circle, rgba(233,160,60,.16), transparent 68%);
    pointer-events: none;
}
.hero-content {
    display: grid; grid-template-columns: 1.08fr .92fr;
    gap: 54px; align-items: center; position: relative; z-index: 1;
}
.hero-eyebrow {
    display: inline-block; margin: 0 0 14px;
    padding: 5px 12px; border-radius: var(--r-full);
    background: #fff; border: 1px solid var(--c-border);
    color: var(--c-primary-dark); font-size: .76rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.1rem, 1.4rem + 3vw, 3.3rem);
    font-weight: 700; letter-spacing: -.025em; line-height: 1.08;
    margin: 0 0 16px; color: #1F1B17;
}
.hero-slogan {
    font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem);
    color: var(--c-primary-dark); font-weight: 600; margin: 0 0 16px; line-height: 1.45;
}
.hero-desc { color: var(--c-text-light); font-size: 1rem; margin: 0 0 28px; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
    display: flex; flex-wrap: wrap; gap: 30px;
    margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--c-border);
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.hero-stats strong { font-size: 1.42rem; font-weight: 800; color: var(--c-primary-dark); line-height: 1.1; letter-spacing: -.02em; }
.hero-stats span { font-size: .8rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .06em; }

.hero-illustration { position: relative; }
.hero-photo {
    margin: 0; border-radius: 22px; overflow: hidden;
    box-shadow: var(--shadow-lg); background: #fff;
    border: 6px solid #fff;
}
.hero-photo img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo-fallback { display: grid; place-items: center; aspect-ratio: 3/2; color: var(--c-primary); background: #fff; }
.hero-mascot, .hero-bubbles { display: none !important; }

/* =============================================================
   TOOLS
   ============================================================= */
.tools-section { padding: 66px 0 58px; background: #fff; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool-card {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 24px 22px 22px; border-radius: var(--r-lg);
    background: var(--c-bg); border: 1px solid var(--c-border);
    transition: var(--transition); color: var(--c-text);
}
.tool-card:hover {
    transform: translateY(-3px); border-color: var(--c-primary);
    background: #fff; box-shadow: var(--shadow-md); color: var(--c-text);
}
.tool-icon {
    display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 13px; background: var(--c-primary-light); color: var(--c-primary-dark);
    margin-bottom: 12px;
}
.tool-name { font-size: 1.02rem; font-weight: 700; margin: 0; }
.tool-desc { font-size: .875rem; color: var(--c-text-light); margin: 0; line-height: 1.6; }
.tool-arrow { margin-top: 14px; color: var(--c-primary); transition: var(--transition); }
.tool-card:hover .tool-arrow { transform: translateX(4px); }

/* =============================================================
   BREEDS
   ============================================================= */
.breeds-section { padding: 62px 0; background: var(--c-bg); }
.breeds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.breed-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--c-border); border-radius: var(--r-lg);
    overflow: hidden; transition: var(--transition); color: var(--c-text);
}
.breed-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #DCCFBE; color: var(--c-text); }
.breed-image { aspect-ratio: 4 / 3; background: #F3EDE4; overflow: hidden; }
.breed-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.breed-card:hover .breed-image img { transform: scale(1.045); }
.breed-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.breed-name { font-size: 1.05rem; font-weight: 700; margin: 0; }
.breed-trait { font-size: .86rem; color: var(--c-text-light); margin: 0; flex: 1; }
.breed-link {
    margin-top: 12px; font-size: .82rem; font-weight: 650; color: var(--c-primary-dark);
    display: inline-flex; align-items: center; gap: 6px;
}
.breed-card:hover .breed-link { gap: 10px; }

/* =============================================================
   ARTICLE CARDS
   ============================================================= */
.hot-articles { padding: 62px 0; background: #fff; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--c-border); border-radius: var(--r-lg);
    overflow: hidden; transition: var(--transition);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #DCCFBE; }
.card-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #F3EDE4; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.article-card:hover .card-thumb img { transform: scale(1.045); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-category {
    align-self: flex-start; font-size: .7rem; font-weight: 750; letter-spacing: .08em;
    text-transform: uppercase; color: var(--c-primary-dark);
    background: var(--c-primary-light); padding: 4px 9px; border-radius: var(--r-sm);
}
.card-title { font-size: 1.03rem; font-weight: 700; margin: 0; line-height: 1.42; }
.card-title a { color: var(--c-text); }
.card-title a:hover { color: var(--c-primary-dark); }
.card-excerpt { font-size: .875rem; color: var(--c-text-light); margin: 0; flex: 1; line-height: 1.62; }
.card-meta, .latest-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
    font-size: .78rem; color: var(--c-text-muted); margin-top: 4px;
}
.meta-sep { opacity: .5; }

/* =============================================================
   KEEPER NOTES
   ============================================================= */
.owner-whisper { padding: 62px 0; background: var(--c-bg); }
.whisper-card {
    display: flex; gap: 26px; align-items: flex-start;
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 30px 32px; box-shadow: var(--shadow-sm);
}
.whisper-avatar {
    flex: none; display: grid; place-items: center; width: 62px; height: 62px;
    border-radius: 18px; background: var(--c-primary-light); color: var(--c-primary-dark);
}
.whisper-content { flex: 1; }
.whisper-list { display: flex; flex-direction: column; gap: 16px; }
.whisper-item { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; }
.whisper-item + .whisper-item { border-top: 1px solid var(--c-border-light); padding-top: 16px; }
.whisper-date { font-size: .78rem; font-weight: 700; color: var(--c-primary-dark); text-transform: uppercase; letter-spacing: .05em; padding-top: 3px; }
.whisper-text { font-size: .93rem; color: var(--c-text-light); }

/* =============================================================
   CATEGORIES
   ============================================================= */
.categories-section { padding: 62px 0; background: #fff; }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-item {
    display: flex; align-items: stretch; gap: 0; overflow: hidden;
    background: var(--c-bg); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); transition: var(--transition); color: var(--c-text);
}
.category-item:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-md); border-color: #DCCFBE; color: var(--c-text); }
.category-thumb { flex: none; width: 116px; background: #F3EDE4; overflow: hidden; }
.category-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; justify-content: center; min-width: 0; }
.category-icon { display: none !important; }
.category-name { font-size: .98rem; font-weight: 700; }
.category-desc { font-size: .8rem; color: var(--c-text-light); line-height: 1.5; }
.category-count { font-size: .74rem; font-weight: 700; color: var(--c-primary-dark); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }

/* =============================================================
   LATEST LIST
   ============================================================= */
.latest-articles { padding: 62px 0 70px; background: var(--c-bg); }
.latest-list { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.latest-item {
    display: flex; align-items: center; gap: 18px; padding: 15px 20px;
    border-bottom: 1px solid var(--c-border-light); transition: var(--transition); margin: 0;
}
.latest-item:last-child { border-bottom: 0; }
.latest-item:hover { background: #FDFBF8; }
.latest-number {
    flex: none; width: 30px; text-align: center; font-size: .95rem; font-weight: 800;
    color: var(--c-text-muted); font-variant-numeric: tabular-nums;
}
.latest-number.top3 { color: var(--c-primary-dark); }
.latest-thumb { flex: none; width: 116px; aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; background: #F3EDE4; }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.latest-info { min-width: 0; }
.latest-title { font-size: .98rem; font-weight: 650; margin: 0 0 5px; line-height: 1.45; }
.latest-title a { color: var(--c-text); }
.latest-title a:hover { color: var(--c-primary-dark); }

/* =============================================================
   FRIEND LINKS + CTA
   ============================================================= */
.friend-links-section { padding: 54px 0; background: #fff; }
.links-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.link-item {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 18px 10px; border: 1px solid var(--c-border); border-radius: var(--r-md);
    background: var(--c-bg); transition: var(--transition); color: var(--c-text-light);
}
.link-item:hover { background: #fff; border-color: var(--c-primary); color: var(--c-primary-dark); transform: translateY(-2px); }
.link-icon img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.link-name { font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.35; }

.cta-section {
    padding: 66px 0;
    background: linear-gradient(135deg, #2B241E 0%, #3C3128 100%);
    color: #F6EFE6;
}
.cta-content { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-title { font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); color: #fff; margin: 0 0 12px; }
.cta-desc { color: #CDBFB1; font-size: 1rem; margin: 0 0 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.cta-search { flex: 1 1 320px; max-width: 420px; }
.cta-section .btn-primary { background: #E9A03C; color: #2B241E; }
.cta-section .btn-primary:hover { background: #F2B25A; color: #2B241E; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: #221D19; color: #A99C8F; padding: 58px 0 0; font-size: .88rem; }
.footer-widgets { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; padding-bottom: 42px; }
.footer-logo { display: flex; align-items: center; gap: 9px; font-size: 1.08rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo .logo-icon { display: none; }
.footer-desc { color: #8E8276; line-height: 1.72; margin: 0; }
.site-footer .widget-title { font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 16px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #A99C8F; }
.site-footer a:hover { color: #E9A03C; }
.site-footer .widget { background: none; border: 0; padding: 0; box-shadow: none; }
.footer-bottom {
    border-top: 1px solid #362E27; padding: 20px 0 26px;
    display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
}
.copyright p { margin: 0; font-size: .82rem; }
.footer-friend-links { font-size: .78rem; color: #7A6E63; line-height: 1.8; }
.footer-friend-links a { color: #8E8276; }

.back-to-top {
    position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px;
    display: grid; place-items: center; border-radius: var(--r-full);
    background: var(--c-primary-dark); color: #fff; font-size: 1.05rem;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: var(--transition);
}
.back-to-top.show, .back-to-top.is-visible { opacity: 1; visibility: visible; }

/* =============================================================
   SINGLE POST / PAGE CONTENT
   ============================================================= */
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w); gap: 44px; padding: 40px 0 66px; }
.main-content { min-width: 0; }

.post-header { margin-bottom: 26px; }
.post-header h1 {
    font-family: var(--font-head);
    font-size: clamp(1.62rem, 1.25rem + 1.7vw, 2.35rem);
    line-height: 1.22; letter-spacing: -.022em; margin: 0 0 14px; color: #1F1B17;
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--c-text-muted); }
.post-meta a { color: var(--c-text-muted); }
.post-meta a:hover { color: var(--c-primary); }
.post-featured-image { margin: 0 0 30px; border-radius: var(--r-lg); overflow: hidden; background: #F3EDE4; }
.post-featured-image img { width: 100%; height: auto; display: block; }

.post-body { font-size: 1.045rem; line-height: 1.78; color: #302A25; }
.post-body > * + * { margin-top: 20px; }
.post-body h2 {
    font-size: clamp(1.24rem, 1.05rem + .75vw, 1.52rem);
    margin: 46px 0 16px; padding-top: 8px; letter-spacing: -.018em; line-height: 1.3;
}
.post-body h2::before {
    content: ""; display: block; width: 42px; height: 3px; border-radius: 3px;
    background: var(--c-primary); margin-bottom: 14px;
}
.post-body h3 { font-size: 1.13rem; margin: 32px 0 12px; letter-spacing: -.012em; }
.post-body h4 { font-size: 1.02rem; margin: 24px 0 10px; }
.post-body p { margin: 0; }
.post-body a { color: var(--c-primary-dark); text-decoration: underline; text-decoration-color: rgba(194,112,26,.35); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--c-primary); }
.post-body ul, .post-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.post-body ul { list-style: none; padding-left: 2px; }
.post-body ul > li { position: relative; padding-left: 24px; }
.post-body ul > li::before {
    content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px;
    border-radius: 50%; background: var(--c-primary); opacity: .8;
}
.post-body ol { list-style: decimal; }
.post-body ol > li::marker { color: var(--c-primary-dark); font-weight: 700; }
.post-body li > ul, .post-body li > ol { margin-top: 9px; }
.post-body strong { color: #1F1B17; font-weight: 680; }
.post-body blockquote {
    margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--c-primary);
    background: #FDFAF6; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--c-text-light);
    font-style: normal;
}
.post-body hr { border: 0; border-top: 1px solid var(--c-border); margin: 40px 0; }

/* tables inside articles */
.post-body .wp-block-table, .post-body table { margin: 28px 0; }
.post-body table {
    width: 100%; border-collapse: collapse; font-size: .92rem;
    border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden;
    display: table;
}
.post-body thead th {
    background: #F6F1E9; text-align: left; font-weight: 700; color: #1F1B17;
    padding: 12px 14px; border-bottom: 1px solid var(--c-border); font-size: .86rem;
    letter-spacing: .01em;
}
.post-body tbody td { padding: 11px 14px; border-bottom: 1px solid var(--c-border-light); vertical-align: top; }
.post-body tbody tr:last-child td { border-bottom: 0; }
.post-body tbody tr:nth-child(even) { background: #FDFCFA; }

/* quick answer callout used by the new guides */
.quick-answer {
    margin: 0 0 30px; padding: 20px 22px 20px 24px;
    background: #F4F8F1; border: 1px solid #DCE7D4; border-left: 4px solid var(--c-secondary);
    border-radius: var(--r-md); font-size: 1rem; line-height: 1.68; color: #2C3A26;
}
.quick-answer p { margin: 0; }
.quick-answer strong { color: #2F4A22; }

/* FAQ block inside article body */
.post-body .post-qa-section { margin-top: 44px; }
.post-qa-title { display: flex; align-items: center; gap: 10px; }
.post-qa-title > span { display: none; }
.post-qa-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.post-qa-item { padding: 18px 20px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.post-qa-question { font-weight: 700; color: #1F1B17; display: flex; gap: 9px; }
.post-qa-answer { margin-top: 8px; color: var(--c-text-light); display: flex; gap: 9px; }
.post-qa-q-icon, .post-qa-a-icon { flex: none; font-weight: 800; color: var(--c-primary-dark); }

/* tags, like, author, post nav, related */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.post-tags a {
    font-size: .78rem; padding: 5px 12px; border-radius: var(--r-full);
    background: var(--c-bg); border: 1px solid var(--c-border); color: var(--c-text-light);
}
.post-tags a:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.post-like { display: flex; justify-content: center; margin: 34px 0; }
.like-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px;
    border-radius: var(--r-full); border: 1px solid var(--c-border); background: #fff;
    cursor: pointer; font-weight: 650; color: var(--c-text-light); transition: var(--transition);
}
.like-btn:hover, .like-btn.liked { border-color: var(--c-primary); background: var(--c-primary-light); color: var(--c-primary-dark); }
.like-icon { display: none; }

.author-box {
    display: flex; gap: 18px; align-items: flex-start; margin: 40px 0 0;
    padding: 24px; border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-border);
}
.author-avatar img, .author-avatar { width: 56px; height: 56px; border-radius: var(--r-full); flex: none; }
.author-name { font-weight: 750; margin: 0 0 5px; }
.author-desc { font-size: .9rem; color: var(--c-text-light); margin: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 0; }
.post-nav a {
    display: block; padding: 18px 20px; border: 1px solid var(--c-border);
    border-radius: var(--r-md); background: #fff; transition: var(--transition);
}
.post-nav a:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.post-nav-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); font-weight: 700; }
.post-nav-title { font-size: .95rem; font-weight: 650; color: var(--c-text); margin-top: 6px; line-height: 1.45; }
.nav-next { text-align: right; }

.related-posts { margin: 52px 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
    display: block; background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--r-md); overflow: hidden; transition: var(--transition);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #DCCFBE; }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.related-info { padding: 14px 16px 16px; }
.related-card .related-info > *:first-child { font-size: .92rem; font-weight: 650; line-height: 1.45; color: var(--c-text); }
.related-meta { font-size: .74rem; color: var(--c-text-muted); margin-top: 7px; }

/* =============================================================
   SIDEBAR
   ============================================================= */
.widget {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
    padding: 22px; margin: 0 0 20px; box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em;
    color: var(--c-text); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border-light);
}
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list a, .cat-list li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: .89rem; color: var(--c-text-light); }
.cat-list a:hover { background: var(--c-bg); color: var(--c-primary-dark); }
.cat-count { font-size: .76rem; color: var(--c-text-muted); }
.tools-list li a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-sm); font-size: .89rem; color: var(--c-text-light); }
.tools-list li a:hover { background: var(--c-bg); color: var(--c-primary-dark); }
.tools-list .tool-icon { display: grid; place-items: center; width: auto; height: auto; background: none; color: var(--c-primary); margin: 0; }
.post-rank { color: var(--c-text-muted); }
.post-thumb-placeholder { display: grid; place-items: center; background: #F3EDE4; color: var(--c-primary); border-radius: var(--r-sm); }
.post-list-views { font-size: .74rem; color: var(--c-text-muted); }
.owner-says-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-primary-light); color: var(--c-primary-dark); margin-bottom: 10px; }
.owner-says-text { font-size: .88rem; color: var(--c-text-light); }
.owner-says-update { font-size: .8rem; color: var(--c-text-muted); background: var(--c-bg); border-radius: var(--r-sm); padding: 10px 12px; margin-top: 12px; }

.pagination { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 40px 0 0; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px;
    border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff;
    font-size: .88rem; font-weight: 600; color: var(--c-text-light);
}
.pagination .current, .pagination a:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }

/* archive header */
.archive-header { margin: 0 0 30px; padding-bottom: 20px; border-bottom: 1px solid var(--c-border); }
.archive-title { font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 8px; }
.archive-description { color: var(--c-text-light); font-size: .95rem; margin: 0; max-width: 68ch; }
.archive-meta { font-size: .8rem; color: var(--c-text-muted); margin-top: 10px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--c-text-muted); }
.empty-state-icon { font-size: 0; display: grid; place-items: center; margin-bottom: 14px; color: var(--c-primary); }
.empty-state-icon::before { content: ""; width: 54px; height: 54px; border-radius: var(--r-full); background: var(--c-primary-light); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 36px; }
    .hero-illustration { order: -1; max-width: 520px; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .breeds-grid, .articles-grid, .categories-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
    .links-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-widgets { grid-template-columns: 1fr 1fr; gap: 30px; }
    .main-layout { grid-template-columns: 1fr; gap: 0; }
    .sidebar, #secondary { margin-top: 40px; }
}
@media (max-width: 860px) {
    .nav-menu { display: none; }
    .menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; cursor: pointer; }
    .main-navigation { margin-left: auto; }
    .menu-toggle[aria-expanded="true"] + .nav-menu,
    .nav-menu.is-open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--c-border); padding: 10px 16px 16px; gap: 2px; box-shadow: var(--shadow-lg); }
    .site-header .container { position: relative; flex-wrap: wrap; }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .hero-section { padding: 40px 0 46px; }
    .hero-stats { gap: 20px; }
    .tools-grid, .breeds-grid, .articles-grid, .categories-grid, .related-grid, .links-grid, .footer-widgets { grid-template-columns: 1fr; }
    .category-item { flex-direction: row; }
    .category-thumb { width: 100px; }
    .latest-thumb { width: 88px; }
    .latest-item { gap: 13px; padding: 13px 14px; }
    .post-nav { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }
    .whisper-card { flex-direction: column; gap: 18px; padding: 24px 20px; }
    .whisper-item { grid-template-columns: 1fr; gap: 4px; }
    .post-body { font-size: 1rem; }
    .post-body ul, .post-body ol { padding-left: 16px; }
    .back-to-top { right: 14px; bottom: 14px; }
}
