/* ============================================================
   RecordNests — Clean Editorial Theme
   Soft cards, readable typography, same brand colors.
   ============================================================ */

:root {
    --ink: #14141a;
    --bg: #f7f7f5;
    --surface: #ffffff;
    --muted: #64646f;
    --accent: #39ff14;
    --accent-ink: #0d0d12;
    --accent-dark: #1a8a0c;
    --border: #e4e4e0;
    --border-strong: #d6d6d1;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(20,20,26,.05), 0 1px 1px rgba(20,20,26,.04);
    --shadow-md: 0 10px 26px rgba(20,20,26,.09);
    --shadow-hover: 0 14px 30px rgba(20,20,26,.13);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    padding: 11px 18px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border-strong); box-shadow: none; }
.btn-outline:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    background: var(--ink);
    box-shadow: 0 1px 0 rgba(57,255,20,.25), var(--shadow-sm);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; }
.logo .icon { width: 26px; height: 26px; color: var(--accent); }
.logo span.hub { color: var(--accent); }
.logo-img { height: 34px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav-head { display: none; }
.nav-close { display: none; }
.main-nav a {
    display: flex; align-items: center; gap: 8px;
    color: #c8c8d2;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background .15s ease, color .15s ease;
}
.main-nav a .icon { display: none; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-search-link { display: none; }
.nav-backdrop { display: none; }

.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }
.header-search { display: flex; align-items: center; gap: 10px; }
.header-search a { display: flex; }
.header-search .icon { color: #c8c8d2; width: 19px; height: 19px; transition: color .15s ease; }
.header-search a:hover .icon { color: #fff; }

/* ---------- Hero ---------- */
.hero {
    background: var(--ink);
    color: #fff;
    padding: 44px 0 50px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); max-width: 720px; color: #fff; }
.hero p { color: #a8a8b4; font-size: 16px; max-width: 560px; margin: 12px 0 22px; line-height: 1.6; }

/* ---------- Category chips ---------- */
.cat-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.cat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--border-strong);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cat-chip .icon { width: 16px; height: 16px; }
.cat-chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Section headings ---------- */
.section { padding-top: 36px; padding-bottom: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.section-head h2 { font-size: 24px; }
.section-head a { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 4px; color: var(--accent-dark); }

/* ---------- Post grid & cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.post-grid > .card, .featured-card { min-width: 0; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }

.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(13,13,18,.82); color: #fff; backdrop-filter: blur(2px);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 4px 9px; border-radius: 6px;
}
.card-rating {
    position: absolute; top: 10px; right: 10px;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 800; font-size: 13px;
    padding: 4px 9px; border-radius: 6px;
    display: flex; align-items: center; gap: 4px;
}
.card-rating .icon { width: 13px; height: 13px; }

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-dark); }
.card-body h3 { font-size: 18px; }
.card-body p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; line-height: 1.5; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.card-price { font-weight: 700; font-size: 15px; }
.card-foot .btn { padding: 8px 13px; font-size: 12px; }

/* Featured big card */
.featured-card { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.featured-card .card-media { aspect-ratio: auto; height: 100%; }
.featured-card .card-body { padding: 28px; justify-content: center; }
.featured-card h3 { font-size: 27px; }

/* ---------- Single Post ---------- */
.post-hero {
    position: relative; background: var(--ink); color: #fff;
    background-size: cover; background-position: center;
    display: flex; align-items: flex-end;
    min-height: 200px;
}
.post-hero.has-image { min-height: 420px; }
.post-hero-overlay { display: none; }
.post-hero.has-image .post-hero-overlay {
    display: block; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,14,.92) 15%, rgba(10,10,14,.55) 55%, rgba(10,10,14,.1) 100%);
}
.post-hero-content { position: relative; z-index: 1; padding: 32px 20px; width: 100%; }
.post-hero:not(.has-image) .post-hero-content { padding: 32px 20px; }
.post-hero .card-cat { color: var(--accent); }
.post-hero h1 { color: #fff; font-size: clamp(26px, 4.2vw, 40px); margin-bottom: 6px; }
.post-meta { display: flex; gap: 16px; color: #a8a8b4; font-size: 13px; margin-top: 12px; flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 5px; }
.post-meta .icon { width: 15px; height: 15px; }

.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding-top: 30px; padding-bottom: 30px; align-items: start; }
.post-layout .sidebar { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
/* CSS Grid items default to min-width:auto, meaning they refuse to shrink below the
   widest unbreakable content inside them (e.g. a data table). Without this, a wide
   table anywhere in the article silently forces this entire column — and everything
   next to it — wider than the screen on mobile. This is the actual fix for that. */
.post-body { min-width: 0; }
.post-body img { border-radius: var(--radius); margin: 16px 0; box-shadow: var(--shadow-sm); max-width: 100%; }
.post-body h2 { font-size: 22px; margin-top: 30px; }
.post-body p { margin: 0 0 15px; color: #292930; }

.post-content-body { max-width: 720px; font-size: 16.5px; line-height: 1.75; min-width: 0; }
.post-content-body h2 { font-size: 22px; margin-top: 32px; }
.post-content-body h3 { font-size: 18px; margin-top: 24px; }
.post-content-body ul, .post-content-body ol { padding-left: 22px; margin: 0 0 15px; }
.post-content-body li { margin-bottom: 5px; }
/* Image galleries inserted from the admin editor (2+ photos with arrows) */
.rn-carousel { position: relative; border-radius: var(--radius); overflow: hidden; margin: 22px 0; background: #000; box-shadow: var(--shadow-sm); }
.rn-carousel-track { display: flex; transition: transform .35s ease; }
.rn-carousel-slide { flex: 0 0 100%; }
.rn-carousel-slide img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; }
.rn-carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: rgba(0,0,0,.5); color: #fff; font-size: 22px; line-height: 1;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .15s ease;
}
.rn-carousel-btn:hover { background: rgba(0,0,0,.75); }
.rn-carousel-prev { left: 10px; }
.rn-carousel-next { right: 10px; }
.rn-carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.rn-carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .15s ease, transform .15s ease; }
.rn-carousel-dot.active { background: #fff; transform: scale(1.3); }

.post-content-body blockquote {
    margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--accent);
    background: #f5f5f0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #383840;
}

/* Tables inserted via the admin editor — wrapped so a wide table scrolls
   instead of breaking the page layout on mobile. */
.post-content-body { overflow-x: auto; }
.post-content-body table {
    border-collapse: collapse; width: 100%; margin: 18px 0;
    font-size: 14px; min-width: 420px; border-radius: var(--radius-sm); overflow: hidden;
}
.post-content-body table caption { caption-side: top; font-weight: 700; margin-bottom: 8px; text-align: left; }
.post-content-body th, .post-content-body td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.post-content-body th { background: var(--ink); color: #fff; font-weight: 700; }
.post-content-body table.rn-table-striped tbody tr:nth-child(odd) { background: #f5f5f0; }
.post-content-body table.rn-table-bordered, .post-content-body table.rn-table-bordered th, .post-content-body table.rn-table-bordered td {
    border: 1px solid var(--ink);
}

.rating-box { border: 1px solid var(--border); box-shadow: var(--shadow-md); border-radius: var(--radius); padding: 20px; text-align: center; background: var(--surface); margin-bottom: 18px; }
.rating-box .score { font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 700; color: var(--ink); }
.rating-box .score span { font-size: 18px; color: var(--muted); }
.rating-box .btn { margin-top: 12px; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; min-width: 0; }
.pc-box { border-radius: var(--radius); padding: 16px; border: 1px solid transparent; min-width: 0; }
.pc-box.pros { background: #eefaea; border-color: #d3eec8; }
.pc-box.cons { background: #fdefee; border-color: #f3d6d3; }
.pc-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.pc-box ul { margin: 0; padding: 0; list-style: none; }
.pc-box li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 7px; line-height: 1.4; }
.pc-box li .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.pc-box.pros .icon { color: #279e17; }
.pc-box.cons .icon { color: #d3453d; }

.sidebar-box { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.sidebar-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sidebar-post { display: flex; gap: 10px; margin-bottom: 14px; border-radius: var(--radius-sm); transition: background .15s ease; }
.sidebar-post:hover { background: #f5f5f2; }
.sidebar-post img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.sidebar-post h5 { font-size: 13px; font-weight: 600; margin: 0; line-height: 1.35; }

/* ---------- Mobile "right box" drawer (rating / buy / related) ---------- */
.sidebar-fab {
    display: none;
    position: fixed; right: 18px; bottom: 18px; z-index: 120;
    align-items: center; gap: 8px;
    background: var(--accent); color: var(--accent-ink);
    border: none; border-radius: 999px;
    padding: 13px 20px; font-weight: 700; font-size: 13px;
    box-shadow: var(--shadow-hover); cursor: pointer;
}
.sidebar-fab .icon { width: 16px; height: 16px; }
.sidebar-drawer-close { display: none; }
.sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(15,15,20,.55); z-index: 149;
}
.sidebar-backdrop.show { display: block; }

/* Empty by default (no visible placeholder) — reserves no space until real ad code is
   dropped inside it, at which point it just displays normally with whatever margin below. */
.ad-slot:empty { display: none; }
.ad-slot { margin: 24px 0; text-align: center; overflow: hidden; }

/* ---------- Reader rating ---------- */
.reader-rate-box {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    border: 1px solid var(--border); background: var(--surface);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 20px; margin: 28px 0;
    flex-wrap: nowrap;
}
.reader-rate-box > div:first-child { min-width: 0; }
.star-rate { display: flex; flex-direction: row-reverse; gap: 2px; flex-shrink: 0; margin: 0; }
.star-rate input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rate label { width: 26px; height: 26px; cursor: pointer; color: #dcdce0; }
.star-rate label .icon { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; }
.star-rate input:checked ~ label,
.star-rate label:hover,
.star-rate label:hover ~ label { color: #f5a623; }

@media (max-width: 480px) {
    .reader-rate-box { flex-direction: column; align-items: flex-start; }
    .star-rate label { width: 28px; height: 28px; }
}

/* ---------- Comments ---------- */
.comments-section { margin-top: 40px; }
.comments-section h3 { font-size: 19px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.comment-form { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.comment-list { display: flex; flex-direction: column; gap: 4px; }
.comment-item {
    display: flex; gap: 12px; padding: 16px 4px;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; font-size: 13px; margin-bottom: 4px; color: var(--muted); }
.comment-head strong { color: var(--ink); font-size: 14px; }
.comment-item p { margin: 0; font-size: 14.5px; color: #292930; line-height: 1.55; }
.comment-empty {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 10px; padding: 30px 10px; color: var(--muted);
    border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.comment-empty .icon { width: 24px; height: 24px; opacity: .5; }
.comment-empty p { margin: 0; font-size: 14px; }

/* ---------- Static pages (About / Privacy / Contact / Disclosure) ---------- */
.page-content { max-width: 760px; margin: 0 auto; padding-top: 32px; padding-bottom: 60px; }
.page-content h2 { font-size: 21px; margin-top: 32px; }
.page-content h3 { font-size: 16px; margin-top: 22px; }
.page-content p { color: #292930; margin: 0 0 15px; line-height: 1.7; }
.page-content ul, .page-content ol { margin: 0 0 15px; padding-left: 22px; color: #292930; }
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--ink); }
.page-content a.inline-link { text-decoration: underline; font-weight: 600; color: var(--accent-dark); }
.updated-note { display: inline-block; background: #eee; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; margin-bottom: 18px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 32px; padding-bottom: 60px; }
.form-box { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 24px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; border: 1px solid var(--border-strong); padding: 11px 13px; font-family: inherit;
    font-size: 14px; border-radius: var(--radius-sm); background: #fff; transition: border-color .15s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--ink); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.form-note.success { background: #eefaea; color: #1a6b0c; }
.form-note.error { background: #fdefee; color: #a3352e; }
.contact-info-box p { font-size: 14px; }
.contact-info-box .icon { color: var(--accent-ink); background: var(--accent); border-radius: 50%; padding: 7px; width: 32px; height: 32px; }
.contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }

.search-form { display: flex; gap: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-md); max-width: 560px; overflow: hidden; }
.search-form input { flex: 1; border: none; padding: 14px 18px; font-size: 15px; font-family: inherit; }
.search-form input:focus { outline: none; }
.search-form button { border: none; background: var(--accent); padding: 0 20px; cursor: pointer; color: var(--accent-ink); display: flex; align-items: center; }

@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a8a8b4; padding: 42px 0 20px; margin-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.footer-grid a { display: block; color: #a8a8b4; font-size: 14px; margin-bottom: 9px; transition: color .15s ease; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #85858f; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card .card-media { aspect-ratio: 16/9; }
    .post-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* "Right boxes" become a right-side drawer instead of stacking under the article.
       Uses `right` (not `transform`) to slide in/out — some mobile browsers let a
       transformed `position:fixed` element still inflate the page's scrollable
       width, which showed up as a blank strip on the right edge of every page. */
    .sidebar-fab { display: flex; }
    .post-body { padding-bottom: 70px; }
    .post-layout .sidebar {
        position: fixed; top: 0; right: -360px; bottom: 0; left: auto; z-index: 150;
        width: 86%; max-width: 340px; max-height: none;
        background: var(--bg);
        padding: 60px 16px 30px;
        overflow-y: auto;
        transition: right .28s ease;
        box-shadow: -14px 0 34px rgba(15,15,20,.18);
    }
    .post-layout .sidebar.open { right: 0; }
    .sidebar-drawer-close {
        display: flex; align-items: center; justify-content: center;
        position: absolute; top: 14px; right: 14px;
        width: 34px; height: 34px; border-radius: 50%;
        background: var(--ink); color: #fff; border: none; cursor: pointer;
    }
}

@media (max-width: 640px) {
    .main-nav {
        position: fixed; top: 0; right: -320px; bottom: 0; left: auto; z-index: 200;
        width: 86%; max-width: 300px;
        background: var(--ink); flex-direction: column; align-items: stretch;
        padding: 8px 10px 20px; gap: 2px;
        overflow-y: auto;
        transition: right .28s ease;
        box-shadow: -14px 0 34px rgba(0,0,0,.3);
    }
    .main-nav.open { right: 0; }
    .main-nav-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 14px 8px 16px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .main-nav-head .logo-img { height: 28px; }
    .nav-close {
        display: flex; align-items: center; justify-content: center;
        width: 32px; height: 32px; border-radius: 50%;
        background: rgba(255,255,255,.08); border: none; color: #fff; cursor: pointer;
    }
    .main-nav a { padding: 12px 10px; font-size: 15px; border-radius: var(--radius-sm); }
    .main-nav a .icon { display: block; width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
    .nav-search-link { display: flex; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
    .nav-backdrop {
        display: none; position: fixed; inset: 0; background: rgba(10,10,14,.55); z-index: 199;
    }
    .nav-backdrop.show { display: block; }

    .nav-toggle { display: block; }
    .header-search span.label { display: none; }

    .wrap { padding: 0 14px; }
    .post-grid { grid-template-columns: 1fr; }
    .post-grid.cols-2 { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding: 28px 0 32px; }
    .hero p { font-size: 15px; }

    .section { padding: 24px 0; }
    .section-head h2 { font-size: 20px; }

    .card-body { padding: 14px; }
    .card-body h3 { font-size: 17px; }
    .featured-card .card-body { padding: 18px; }
    .featured-card h3 { font-size: 21px; }

    .post-hero.has-image { min-height: 280px; }
    .post-hero-content { padding: 20px 14px; }
    .post-layout { padding-top: 20px; padding-bottom: 20px; gap: 18px; }
    .post-content-body { font-size: 16px; }
    .post-content-body table { min-width: 340px; }
    .pros-cons { gap: 10px; }
    .pc-box { padding: 13px; }
    .rating-box { padding: 16px; }
    .rating-box .score { font-size: 34px; }

    .comment-form, .form-box, .sidebar-box { padding: 15px; }
    .reader-rate-box { padding: 14px 16px; flex-direction: column; align-items: flex-start; }
    .star-rate label { width: 26px; height: 26px; }

    .page-content { padding-top: 22px; padding-bottom: 40px; }

    /* Prevent iOS Safari auto-zoom on form focus */
    .form-group input, .form-group textarea, .search-form input { font-size: 16px; }
}

@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-tag { font-size: 11px; }
    .btn { padding: 9px 14px; font-size: 13px; }
    .card-rating { font-size: 12px; padding: 3px 7px; }
    .logo-img { height: 28px; }
}
