/*
Theme Name:  Feel Good Nieuws
Theme URI:   https://feelgoodradio.nl
Description: Regionieuws voor Rijswijk, Pijnacker-Nootdorp en Leidschendam-Voorburg
Version:     1.0.0
Author:      Feel Good Radio
Author URI:  https://feelgoodradio.nl
Text Domain: feelgoodnieuws
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg: #cdd2b0;
    --bg-deep: #c2c8a2;
    --paper: #f5f1e2;
    --paper-soft: #efe9d6;
    --ink: #2b3320;
    --ink-soft: #55603e;
    --muted: #79825e;
    --line: #bcc29c;
    --accent: #4f6b32;
    --accent-deep: #3b5223;
    --accent-soft: #e2e9cf;
    --live: #b04a2f;
    --fgshadow: 0 10px 30px -16px rgba(43, 51, 32, .45);
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255, 250, 225, .5), transparent 60%),
        radial-gradient(900px 500px at -5% 110%, rgba(79, 107, 50, .18), transparent 55%),
        linear-gradient(160deg, #cdd2b0, #c2c8a2);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.fg-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 26px 60px;
}

/* ============================================================
   HEADER
   ============================================================ */
.fg-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.fg-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
}

.fg-logo .mark {
    background: var(--accent);
    color: #f5f1e2;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 6px;
    transform: rotate(-2deg);
    display: inline-block;
}

.fg-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.fg-search input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 999px;
    padding: 10px 16px 10px 40px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    box-shadow: var(--fgshadow);
}

.fg-search input::placeholder { color: var(--muted); }

.fg-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.fg-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--fgshadow);
    white-space: nowrap;
}

/* ============================================================
   REGION TABS NAV
   ============================================================ */
.fg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.fg-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 17px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--fgshadow);
    transition: background .15s, color .15s;
}

.fg-tab.sel,
.fg-tab:hover {
    background: var(--accent);
    color: #f5f1e2;
    border-color: var(--accent);
}

/* ============================================================
   PAGE HEAD (archive/category/search titles)
   ============================================================ */
.fg-pagehead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.fg-pagehead h1 {
    font-family: 'Fraunces', serif;
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--ink);
    margin: 0;
}

.fg-add {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-deep);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* ============================================================
   MAIN LAYOUT: 2/3 content + 1/3 sidebar
   ============================================================ */
.fg-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 4px;
}

@media (max-width: 980px) {
    .fg-layout { grid-template-columns: 1fr; }
}

.fg-content { min-width: 0; }
.fg-content .fg-overlay-card { margin-bottom: 26px; }

/* ============================================================
   HERO OVERLAY CARD (front page featured post)
   ============================================================ */
.fg-overlay-card {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--fgshadow);
    border: 1px solid rgba(43, 51, 32, .1);
    aspect-ratio: 16 / 10;
    display: block;
}

.fg-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.95) saturate(1.25);
    transition: transform .4s ease;
}

.fg-overlay-card:hover .fg-hero-img { transform: scale(1.05); }

.fg-hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 38, 18, .05) 30%, rgba(22, 28, 12, .5) 62%, rgba(18, 24, 10, .88) 100%);
}

.fg-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
    color: #f6f3e6;
}

.fg-hero-kicker {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: .95;
}

.fg-hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -.3px;
    line-height: 1.13;
    font-size: 34px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
    margin: 0;
}

.fg-hero-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    font-size: 13.5px;
    font-weight: 500;
    opacity: .92;
}

/* ============================================================
   VIDEO PLAY OVERLAY
   ============================================================ */
.fg-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(20, 26, 11, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.fg-play svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    margin-left: 3px;
}

.fg-thumb .fg-play { width: 44px; height: 44px; }
.fg-thumb .fg-play svg { width: 18px; height: 18px; margin-left: 2px; }

/* ============================================================
   NEWS CARD GRID
   ============================================================ */
.fg-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

@media (max-width: 560px) {
    .fg-grid2 { grid-template-columns: 1fr; }
}

.fg-card { cursor: pointer; }

.fg-card-link { display: block; }

.fg-thumb {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--fgshadow);
    border: 1px solid rgba(43, 51, 32, .08);
    aspect-ratio: 16 / 10;
    background: var(--bg);
}

.fg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.25);
}

.fg-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(60, 72, 38, .04), rgba(60, 72, 38, .16));
    mix-blend-mode: multiply;
}

.fg-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
}

.fg-kicker {
    margin-top: 12px;
    font-size: 13px;
    color: var(--accent-deep);
    font-weight: 700;
}

.fg-head {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -.2px;
    line-height: 1.16;
    margin: 6px 0 0;
    font-size: 23px;
    color: var(--ink);
}

.fg-head a { color: inherit; text-decoration: none; }

.fg-card:hover .fg-head,
.fg-card:hover .fg-head a { color: var(--accent-deep); }

.fg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.fg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.fg-side-card {
    background: rgba(245, 241, 226, .42);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 16px;
}

.fg-side-h {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 12px;
}

.fg-side-btn {
    margin-top: 12px;
    width: 100%;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent-deep);
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, color .15s;
    display: block;
    text-align: center;
}

.fg-side-btn:hover {
    background: var(--accent);
    color: #f5f1e2;
}

/* Widget buttons — any button inside a sidebar card that isn't already
   specifically styled (radio play button, poll option, newsletter button). */
.fg-side-card button:not(.fg-rp-play):not(.fg-poll-opt):not(.fg-side-btn),
.fg-side-card input[type="submit"],
.fg-side-card input[type="button"],
.fg-side-card input[type="reset"] {
    margin-top: 12px;
    width: 100%;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent-deep);
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, color .15s;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.fg-side-card button:not(.fg-rp-play):not(.fg-poll-opt):not(.fg-side-btn):hover,
.fg-side-card input[type="submit"]:hover,
.fg-side-card input[type="button"]:hover,
.fg-side-card input[type="reset"]:hover {
    background: var(--accent);
    color: #f5f1e2;
}

/* Widget text inputs, textareas and selects — match the newsletter input style.
   Excludes buttons, checkboxes, radios and hidden fields. */
.fg-side-card input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.fg-side-card textarea,
.fg-side-card select {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 10px;
    padding: 10px 13px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    display: block;
    margin-top: 8px;
}

.fg-side-card input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.fg-side-card textarea:focus,
.fg-side-card select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 107, 50, .15);
}

.fg-side-card input::placeholder,
.fg-side-card textarea::placeholder {
    color: var(--muted);
}

.fg-side-card textarea {
    resize: vertical;
    min-height: 90px;
}

.fg-side-card select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2379825e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ============================================================
   RADIO PLAYER
   ============================================================ */
.fg-radio-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fg-radio-head {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-deep);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.fg-player {
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.fg-player:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.fg-art {
    flex-shrink: 0;
    width: 54px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--g1), var(--g2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 16px -8px rgba(43, 51, 32, .6);
}

.fg-rp-info {
    flex: 1;
    min-width: 0;
}

.fg-rp-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.15;
    color: var(--ink);
}

.fg-rp-now {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fg-rp-play {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: #f5f1e2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -8px rgba(59, 82, 35, .9);
    transition: transform .15s;
}

.fg-rp-play:hover { transform: scale(1.08); }
.fg-rp-play .ic-pause { display: none; }
.fg-player.playing .fg-rp-play { background: var(--accent-deep); }
.fg-player.playing .ic-play { display: none; }
.fg-player.playing .ic-pause { display: block; }

.eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
}

.eq i {
    width: 3px;
    height: 4px;
    background: var(--accent);
    border-radius: 1px;
    opacity: .35;
}

.fg-player.playing .eq i {
    animation: fgbounce .9s ease-in-out infinite;
    opacity: 1;
}

.fg-player.playing .eq i:nth-child(2) { animation-delay: .15s; }
.fg-player.playing .eq i:nth-child(3) { animation-delay: .3s; }
.fg-player.playing .eq i:nth-child(4) { animation-delay: .45s; }

@keyframes fgbounce {
    0%, 100% { height: 4px; }
    50% { height: 11px; }
}

/* ============================================================
   SIDEBAR WIDGETS: ADVERTISE
   ============================================================ */
.fg-ad-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ============================================================
   SIDEBAR WIDGETS: WEATHER & TRAFFIC
   ============================================================ */
.fg-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fg-weather-now {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fg-weather-icon { font-size: 34px; line-height: 1; }

.fg-weather-temp {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}

.fg-weather-text {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
}

.fg-weather-loc {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    max-width: 92px;
    line-height: 1.3;
}

.fg-traffic-h {
    margin: 15px 0 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 13px;
}

.fg-traffic {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fg-traf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.fg-traf-name { color: var(--ink); }

.fg-traf-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.fg-traf-status.ok {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.fg-traf-status.warn {
    background: #f0d9c2;
    color: #8a4a1f;
}

.fg-traf-note {
    margin-top: 10px;
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.45;
    font-style: italic;
}

.fg-traf-loading {
    font-size: 12.5px;
    color: var(--muted);
}

/* ============================================================
   SIDEBAR WIDGETS: POLL
   ============================================================ */
.fg-poll-q {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 12px;
}

.fg-poll-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fg-poll-opt {
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.fg-poll-opt:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.fg-poll-res { margin-bottom: 10px; }

.fg-poll-res-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--ink);
}

.fg-poll-res.mine .fg-poll-res-top { color: var(--accent-deep); }

.fg-poll-bar {
    height: 8px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.fg-poll-bar i {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width .5s ease;
}

.fg-poll-res.mine .fg-poll-bar i { background: var(--accent-deep); }

.fg-poll-total {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 6px;
}

/* ============================================================
   SIDEBAR WIDGETS: NEWSLETTER
   ============================================================ */
.fg-news-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.fg-news-input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 10px;
    padding: 10px 13px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
}

.fg-news-input::placeholder { color: var(--muted); }

.fg-news-msg {
    font-size: 12px;
    color: var(--live);
    margin-top: 8px;
    min-height: 1em;
}

.fg-news-done {
    font-size: 13.5px;
    color: var(--accent-deep);
    font-weight: 600;
    line-height: 1.45;
    margin-top: 4px;
}

/* ============================================================
   SINGLE POST: BACK NAVIGATION
   ============================================================ */
.fg-article-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.fg-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 17px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--fgshadow);
    transition: transform .15s;
    text-decoration: none;
}

.fg-back:hover { transform: translateX(-2px); color: var(--ink); }

/* ============================================================
   SINGLE POST: ARTICLE CARD
   ============================================================ */
.fg-article-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--fgshadow);
    overflow: hidden;
    max-width: 920px;
    margin: 0 auto;
}

.fg-article-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: var(--bg);
}

.fg-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.25);
}

.fg-article-body { padding: 30px 38px 42px; }

.fg-article-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 12px;
}

.fg-article-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -.6px;
    line-height: 1.12;
    font-size: 40px;
    color: var(--ink);
    margin: 0 0 16px;
}

.fg-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.fg-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fg-article-content {
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
}

.fg-article-content > *:first-child { margin-top: 0; }
.fg-article-content p { margin: 0 0 1.15em; }

.fg-article-content h2,
.fg-article-content h3,
.fg-article-content h4 {
    font-family: 'Fraunces', serif;
    color: var(--ink);
    letter-spacing: -.3px;
    line-height: 1.2;
    margin: 1.5em 0 .5em;
}

.fg-article-content h2 { font-size: 27px; }
.fg-article-content h3 { font-size: 22px; }

.fg-article-content a {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fg-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 13px;
    margin: 1.3em 0;
    filter: saturate(1.25);
}

.fg-article-content figure { margin: 1.3em 0; }
.fg-article-content figcaption { font-size: 13px; color: var(--muted); margin-top: 7px; text-align: center; }

.fg-article-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 13px;
    margin: 1.3em 0;
}

.fg-article-content ul,
.fg-article-content ol {
    margin: 0 0 1.15em;
    padding-left: 1.4em;
}

.fg-article-content li { margin-bottom: .45em; }

.fg-article-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.3em 0;
    padding: .5em 0 .5em 1.3em;
    color: var(--ink-soft);
    font-style: italic;
    font-size: 18px;
}

@media (max-width: 680px) {
    .fg-article-body { padding: 24px 22px 32px; }
    .fg-article-title { font-size: 30px; }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.fg-empty {
    padding: 60px 40px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    grid-column: 1 / -1;
}

.fg-empty p { margin-bottom: 24px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.fg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 10px;
    grid-column: 1 / -1;
}

.fg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: var(--paper);
    box-shadow: var(--fgshadow);
    transition: background .15s, color .15s;
}

.fg-pagination .page-numbers.current,
.fg-pagination .page-numbers:hover {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
}

.fg-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

/* ============================================================
   PAGE LINKS (within single posts)
   ============================================================ */
.fg-page-links {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fg-page-links a,
.fg-page-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--paper);
    color: var(--ink);
}

.fg-page-links a:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.fg-footer {
    background: var(--paper-soft);
    border-top: 1px solid var(--line);
    padding: 32px 26px;
    text-align: center;
}

.fg-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 16px;
    list-style: none;
    padding: 0;
}

.fg-footer-nav li { margin: 0; }

.fg-footer-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
}

.fg-footer-nav a:hover { color: var(--accent); }

.fg-footer-copy {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

/* ============================================================
   WORDPRESS ALIGNMENT & BLOCK CLASSES
   ============================================================ */
.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin: 1em auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.3em;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 7px;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 12px 20px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--fgshadow);
}
