:root {
    /* Backgrounds */
    --color-background: #f5f5f5;
    --color-surface: #ffffff;
    --color-surface-alt: #eeeeee;
    --color-surface-deep: #101317;

    /* Text */
    --color-text: #17191c;
    --color-text-muted: #666c73;
    --color-on-image: #fff;
    --color-on-primary: #fff;

    /* Borders */
    --color-border: #d8dadd;
    --color-border-hover: #3b444d;

    /* Brand / Accent */
    --color-primary: #51adeb;
    --color-primary-hover: #2f8fca;
    --color-primary-soft: rgba(81,173,235,.16);
    --color-danger: #b51f2e;
    --color-danger-text: #ff6372;

    /* Navigation */
    --color-nav: #ffffff;
    --color-nav-hover: #f0f1f2;

    /* Footer */
    --color-footer: #151719;
    --color-footer-text: #f0f2f4;
    --color-footer-text-muted: #aeb5bc;
    --color-footer-text-subtle: #7f878f;
    --color-footer-text-faint: #8c949d;

    /* Other themed surfaces */
    --color-brand-slogan: #4b9bd5;
    --color-hero-surface: #151b21;
    --color-hero-gradient-start: #1c2025;
    --color-hero-gradient-end: #090b0d;
    --color-hero-text: #d8dde1;
    --color-hero-text-muted: #d0d5da;
    --color-status-error: #a83b48;

    /* Hero overlays and contrast states */
    --color-overlay-strong: rgba(0,0,0,.84);
    --color-overlay-medium: rgba(0,0,0,.56);
    --color-overlay-light: rgba(0,0,0,.10);
    --color-primary-overlay: rgba(81,173,235,.22);
    --color-on-primary-muted: rgba(255,255,255,.72);
    --color-on-primary-soft: rgba(255,255,255,.78);
    --color-on-primary-border: rgba(255,255,255,.28);
    --color-footer-border: rgba(255,255,255,.12);

    /* Existing component aliases */
    --bg: var(--color-background);
    --surface: var(--color-surface);
    --surface-2: var(--color-surface-alt);
    --text: var(--color-text);
    --muted: var(--color-text-muted);
    --border: var(--color-border);
    --accent: var(--color-primary);
    --accent-dark: var(--color-primary-hover);
    --accent-soft: var(--color-primary-soft);
    --nav: var(--color-nav);
    --nav-hover: var(--color-nav-hover);
    --footer: var(--color-footer);

    --max: 1280px;
    --shadow: 0 10px 28px rgba(0,0,0,.08);
}

html[data-theme="dark"] {
    --color-background: #0b0d0f;
    --color-surface: #12161a;
    --color-surface-alt: #171c21;
    --color-text: #f4f5f6;
    --color-text-muted: #a7adb4;
    --color-border: #293038;
    --color-primary: #f51f35;
    --color-primary-hover: #c91429;
    --color-primary-soft: rgba(245,31,53,.12);
    --color-nav: #101419;
    --color-nav-hover: #1b2026;
    --color-footer: #090b0d;
    --shadow: 0 14px 35px rgba(0,0,0,.24);
}

/* Activate with data-palette="red" on the html element. */
html[data-palette="red"] {
    --color-primary: #df172d;
    --color-primary-hover: #b80f23;
    --color-primary-soft: rgba(223,23,45,.08);
    --color-primary-overlay: rgba(245,31,53,.22);
    --color-on-primary: #fff;
    --color-on-primary-muted: rgba(255,255,255,.72);
    --color-on-primary-soft: rgba(255,255,255,.78);
    --color-on-primary-border: rgba(255,255,255,.28);
}

/* Alternative palettes: activate with data-palette="blue" on the html element. */
html[data-palette="blue"] {
    --color-primary: #95b8d1;
    --color-primary-hover: #789bb6;
    --color-primary-soft: rgba(149,184,209,.18);
    --color-primary-overlay: rgba(149,184,209,.22);
    --color-on-primary: #17191c;
    --color-on-primary-muted: rgba(23,25,28,.72);
    --color-on-primary-soft: rgba(23,25,28,.78);
    --color-on-primary-border: rgba(23,25,28,.28);
}

/* Activate with data-palette="sky" on the html element. */
html[data-palette="sky"] {
    --color-primary: #51adeb;
    --color-primary-hover: #2f8fca;
    --color-primary-soft: rgba(81,173,235,.16);
    --color-primary-overlay: rgba(81,173,235,.22);
    --color-on-primary: #17191c;
    --color-on-primary-muted: rgba(23,25,28,.72);
    --color-on-primary-soft: rgba(23,25,28,.78);
    --color-on-primary-border: rgba(23,25,28,.28);
}

/* Activate with data-palette="lavender" on the html element. */
html[data-palette="lavender"] {
    --color-primary: #c0baf3;
    --color-primary-hover: #938be0;
    --color-primary-soft: rgba(192,186,243,.18);
    --color-primary-overlay: rgba(192,186,243,.22);
    --color-on-primary: #17191c;
    --color-on-primary-muted: rgba(23,25,28,.72);
    --color-on-primary-soft: rgba(23,25,28,.78);
    --color-on-primary-border: rgba(23,25,28,.28);
}

/* Activate with data-palette="green" on the html element. */
html[data-palette="green"] {
    --color-primary: #69b578;
    --color-primary-hover: #478f58;
    --color-primary-soft: rgba(105,181,120,.16);
    --color-primary-overlay: rgba(105,181,120,.22);
    --color-on-primary: #17191c;
    --color-on-primary-muted: rgba(23,25,28,.72);
    --color-on-primary-soft: rgba(23,25,28,.78);
    --color-on-primary-border: rgba(23,25,28,.28);
}

/* Activate with data-palette="orange" on the html element. */
html[data-palette="orange"] {
    --color-primary: #efa45b;
    --color-primary-hover: #c87932;
    --color-primary-soft: rgba(239,164,91,.16);
    --color-primary-overlay: rgba(239,164,91,.22);
    --color-on-primary: #17191c;
    --color-on-primary-muted: rgba(23,25,28,.72);
    --color-on-primary-soft: rgba(23,25,28,.78);
    --color-on-primary-border: rgba(23,25,28,.28);
}

/* Activate with data-palette="teal" on the html element. */
html[data-palette="teal"] {
    --color-primary: #54b9ad;
    --color-primary-hover: #348e84;
    --color-primary-soft: rgba(84,185,173,.16);
    --color-primary-overlay: rgba(84,185,173,.22);
    --color-on-primary: #17191c;
    --color-on-primary-muted: rgba(23,25,28,.72);
    --color-on-primary-soft: rgba(23,25,28,.78);
    --color-on-primary-border: rgba(23,25,28,.28);
}

/* Activate with data-palette="violet" on the html element. */
html[data-palette="violet"] {
    --color-primary: #a98cda;
    --color-primary-hover: #8062b5;
    --color-primary-soft: rgba(169,140,218,.16);
    --color-primary-overlay: rgba(169,140,218,.22);
    --color-on-primary: #17191c;
    --color-on-primary-muted: rgba(23,25,28,.72);
    --color-on-primary-soft: rgba(23,25,28,.78);
    --color-on-primary-border: rgba(23,25,28,.28);
}

/* Activate with data-palette="grayscale-2" on the html element. */
html[data-palette="grayscale-2"] {
    --color-primary: #6f747a;
    --color-primary-hover: #50555b;
    --color-primary-soft: rgba(111,116,122,.16);
    --color-primary-overlay: rgba(111,116,122,.22);
    --color-on-primary: #ffffff;
    --color-on-primary-muted: rgba(255,255,255,.72);
    --color-on-primary-soft: rgba(255,255,255,.78);
    --color-on-primary-border: rgba(255,255,255,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

/* Header */
.site-header { position: relative; z-index: 100; background: var(--surface); }
.header-top {
    min-height: 98px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.header-top-inner {
    min-height: 98px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1.3px;
}
.site-brand-copy { display: flex; flex-direction: column; min-width: 0; }
.site-brand-name { display: block; white-space: nowrap; }
.site-brand-name,
.footer-logo { font-family: "Caacupe One", Inter, sans-serif; font-size: 32px; font-weight: 400; letter-spacing: 0; }
.site-brand-slogan,
.footer-brand-slogan {
    display: block;
    color: var(--color-brand-slogan);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.1px;
    line-height: 1.2;
    white-space: nowrap;
}
.site-brand-slogan { margin-top: -3px; }
.site-brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
    transform: translateY(5px);
}
.site-brand-mark-dark { display: none; }
html[data-theme="dark"] .site-brand-mark-dark { display: block; }
html[data-theme="dark"] .site-brand-mark-light { display: none; }
.site-brand-name > span { color: var(--color-text); }
.site-brand-name b { color: var(--accent); }
.site-brand-name small { color: var(--color-footer-text-faint); font-size: 14px; margin-left: 1px; }

.primary-nav {
    flex: 1;
    min-width: 0;
}
.header-top .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 800;
}
.header-top .main-nav li { margin: 0; padding: 0; }
.header-top .main-nav a {
    position: relative;
    display: block;
    padding: 12px 0;
    white-space: nowrap;
    color: var(--text);
    transition: color .2s ease;
}
.header-top .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}
.header-top .main-nav a:hover,
.header-top .main-nav .current-menu-item > a { color: var(--accent); }
.header-top .main-nav a:hover::after,
.header-top .main-nav .current-menu-item > a::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.header-icon,
.mobile-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    font-size: 24px;
    line-height: 1;
}
.header-icon:hover,
.mobile-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.mobile-toggle { display: none; font-size: 23px; }
.mobile-toggle .close-icon { display: none; }
.mobile-toggle[aria-expanded="true"] .menu-icon { display: none; }
.mobile-toggle[aria-expanded="true"] .close-icon { display: inline; }

.header-categories {
    min-height: 44px;
    width: 100%;
    background: var(--nav);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.categories-nav {
    min-height: 44px;
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
    display: flex;
    align-items: center;
    min-width: 0;
}
.category-scroll {
    display: none;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: var(--nav);
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.categories-nav.has-overflow .category-scroll { display: block; }
.category-scroll:disabled { opacity: .35; cursor: default; }
.category-scroll:not(:disabled):hover { color: var(--accent); }
.categories-inner {
    min-height: 44px;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.categories-inner::-webkit-scrollbar { display: none; }
.category-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: max-content;
}
.category-menu li { height: 40px; display: flex; align-items: center; margin: 2px 3px; padding: 0; }
.category-menu a {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-radius: 5px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.category-menu a:hover { background: var(--nav-hover); color: var(--accent); }
.category-menu .current-cat a,
.category-menu .current-menu-item a,
.category-menu .current-menu-ancestor a { background: var(--accent); color: var(--color-on-primary); }
.category-menu .current-cat a:hover,
.category-menu .current-menu-item a:hover,
.category-menu .current-menu-ancestor a:hover { background: var(--accent-dark); color: var(--color-on-primary); }

/* Main */
.site-main { padding: 28px 0 58px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; align-items: start; }
.home-main-column { min-width: 0; }
.hero-card {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--color-hero-surface);
    color: var(--color-on-image);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: var(--shadow);
}
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .76; }
.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, var(--color-overlay-strong) 0%, var(--color-overlay-medium) 42%, var(--color-overlay-light) 100%);
}
.hero-card.no-image { background: linear-gradient(135deg, var(--color-hero-gradient-start), var(--color-hero-gradient-end)); }
.hero-card.no-image::after { background: linear-gradient(135deg, var(--color-primary-overlay), transparent 55%); }
.hero-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}
.hero-category,
.post-category {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 5px;
    background: var(--accent);
    color: var(--color-on-primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.post-category {
    padding: 3px 5px;
    border-bottom: 2px solid var(--accent);
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 8.25px;
    letter-spacing: .45px;
}
.hero-title {
    max-width: 650px;
    margin: 11px 0 8px;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.2px;
    font-weight: 900;
}
.hero-excerpt { max-width: 670px; margin: 0; color: var(--color-hero-text); font-size: 15px; line-height: 1.55; }
.hero-meta { margin-top: 13px; color: var(--color-hero-text-muted); font-size: 12px; }
.hero-meta span { margin: 0 5px; color: var(--accent); }

.secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.secondary-card {
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    transition: transform .2s ease, border-color .2s ease;
}
.secondary-card:hover { transform: translateY(-2px); border-color: var(--color-border-hover); }
.secondary-image { display: block; background: var(--surface-2); }
.secondary-image img { width: 100%; aspect-ratio: 16/7.5; object-fit: cover; }
.secondary-content { padding: 14px 16px 16px; }
.secondary-title { margin: 8px 0 5px; font-size: 19px; line-height: 1.18; font-weight: 850; letter-spacing: -.3px; }
.secondary-title a:hover { color: var(--accent); }
.secondary-excerpt { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.latest-section { margin-top: 32px; }
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
    padding-bottom: 9px;
}
.section-heading h2 {
    position: relative;
    margin: 0;
    padding-left: 13px;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 900;
}
.section-heading h2::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; background: var(--accent); border-radius: 2px; }
.section-heading a { color: var(--accent); font-size: 13px; font-weight: 800; }
.section-heading a:hover { color: var(--text); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.post-card {
    display: grid;
    grid-template-columns: 30% 70%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    transition: transform .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--color-border-hover); }
.post-card > a { display: block; min-height: 100%; background: var(--surface-2); }
.post-card > a > img { width: 100%; height: 100%; object-fit: cover; }
.post-card.no-image > a { background: linear-gradient(135deg, var(--surface-2), var(--color-surface-deep)); }
.post-content { padding: 15px 16px 17px; }
.post-title { margin: 8px 0 6px; font-size: 20px; line-height: 1.2; font-weight: 850; letter-spacing: -.25px; }
.post-title a:hover { color: var(--accent); }
.post-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.post-meta { margin-top: 10px; color: var(--muted); font-size: 11px; }

/* Sidebar */
.sidebar-box {
    padding: 17px;
    margin-bottom: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
}
.sidebar-box h3 {
    position: relative;
    margin: 0 0 13px;
    padding-left: 12px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}
.sidebar-box h3::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 3px; background: var(--accent); }
.search-box { padding: 16px; }
.search-box form { display: flex; gap: 7px; }
.search-box input {
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    background: var(--surface-2);
    color: var(--text);
}
.search-box input:focus { border-color: var(--accent); }
.search-box button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 22px;
}
.search-box button:hover { background: var(--accent-dark); }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li { border-bottom: 1px solid var(--border); }
.category-list li:last-child { border-bottom: 0; }
.category-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 13px; font-weight: 750; }
.category-list a:hover { color: var(--accent); }
.category-list strong { min-width: 27px; padding: 2px 7px; border-radius: 20px; background: var(--surface-2); color: var(--muted); text-align: center; font-size: 10px; }
.recent-list { display: grid; gap: 0; }
.recent-item { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.recent-item:first-child { padding-top: 0; }
.recent-item:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-thumb { width: 72px; height: 62px; overflow: hidden; border-radius: 5px; background: var(--surface-2); }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-title { display: block; font-size: 13px; line-height: 1.35; font-weight: 800; }
.recent-title:hover { color: var(--accent); }
.recent-date { margin-top: 5px; color: var(--muted); font-size: 10px; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { border-bottom: 1px solid var(--border); }
.archive-list li:last-child { border-bottom: 0; }
.archive-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--text); font-size: 13px; font-weight: 700; }
.archive-list a:hover { color: var(--accent); }

/* Informational pages */
.info-page { padding-top: 44px; }
.info-hero {
    max-width: 820px;
    margin: 0 auto 30px;
    padding: 42px clamp(22px, 5vw, 64px) 46px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 7px;
    box-shadow: var(--shadow);
}
.info-kicker,
.info-panel-number,
.contact-detail-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
.info-title { max-width: 680px; margin: 12px 0 14px; font-size: clamp(38px, 6vw, 70px); line-height: 1.02; font-weight: 900; letter-spacing: -1.6px; }
.info-lead { max-width: 650px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.info-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 18px; max-width: 1080px; margin: 0 auto; }
.info-panel { position: relative; min-height: 230px; padding: 27px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.info-panel-wide { grid-column: 1; }
.info-panel h2, .contact-panel h2 { margin: 12px 0 13px; font-size: 27px; line-height: 1.15; }
.info-panel p, .contact-panel p, .contact-note p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.info-panel p:last-child { margin-bottom: 0; }
.info-panel-accent { grid-column: 2; grid-row: span 2; background: var(--accent); border-color: var(--accent); color: var(--color-on-primary); }
.info-panel-accent .info-panel-number { color: var(--color-on-primary-muted); }
.principles-list { display: grid; gap: 15px; margin: 22px 0 0; padding: 0; list-style: none; }
.principles-list li { display: grid; gap: 3px; padding-bottom: 15px; border-bottom: 1px solid var(--color-on-primary-border); }
.principles-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.principles-list strong { font-size: 15px; }
.principles-list span { color: var(--color-on-primary-soft); font-size: 13px; line-height: 1.45; }
.info-panel-dark { display: flex; align-items: center; gap: 24px; min-height: 150px; background: var(--nav); color: var(--text); }
.info-panel-dark > div { flex: 1; }
.info-panel-dark h2 { margin-top: 7px; }
.info-panel-dark .button { flex: 0 0 auto; white-space: nowrap; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 18px; max-width: 1080px; margin: 0 auto; }
.contact-panel, .contact-details, .contact-note { padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.contact-panel { border-left: 4px solid var(--accent); }
.contact-panel h2 { font-size: 36px; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; margin-top: 17px; color: var(--accent); font-size: 19px; font-weight: 800; }
.contact-email:hover { color: var(--text); }
.contact-details { display: grid; align-content: start; gap: 0; }
.contact-detail { padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-detail:first-child { padding-top: 0; }
.contact-detail:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-detail a, .contact-detail p { display: block; margin: 6px 0 0; color: var(--text); font-size: 14px; line-height: 1.5; }
.contact-detail a:hover { color: var(--accent); }
.contact-detail p { color: var(--muted); }
.contact-note { max-width: 1080px; margin: 18px auto 0; background: var(--surface-2); box-shadow: none; }
.contact-note strong { display: block; margin-bottom: 6px; font-size: 15px; }
.contact-note p { margin-bottom: 0; }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 900px) 280px; gap: 28px; align-items: start; justify-content: center; }
.article-wrap { max-width: 900px; margin: 0 auto; padding: clamp(22px, 5vw, 55px); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--shadow); }
.article-kicker { display: inline-flex; padding: 4px 9px; border-radius: 5px; background: var(--accent); color: var(--color-on-primary); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.article-title { margin: 12px 0 10px; font-size: clamp(36px, 5vw, 58px); line-height: 1.06; font-weight: 900; letter-spacing: -1.5px; }
.article-deck { font-size: 20px; color: var(--muted); line-height: 1.5; }
.article-byline { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.article-featured { margin: 25px 0; }
.article-featured img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 6px; }
.article-content { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.9; }
.article-content p { margin: 0 0 1.25em; }
.article-content h2 { font-family: Inter, sans-serif; font-size: 30px; line-height: 1.2; margin: 1.6em 0 .55em; }
.article-content h3 { font-family: Inter, sans-serif; font-size: 24px; line-height: 1.25; margin: 1.5em 0 .5em; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-content blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--accent); background: var(--surface-2); font-style: italic; }
.article-content img { margin: 25px auto; }
.article-content figure { margin: 28px 0; }
.article-content figcaption { font-family: Inter, sans-serif; color: var(--muted); font-size: 13px; }
.article-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); }
.article-sidebar { position: static; align-self: start; }
.article-sidebar .sidebar-box { margin-bottom: 18px; }
.article-comments { width: 100%; }

/* Buttons / forms */
.button, .wp-block-button__link, .login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--color-on-primary);
    font-weight: 800;
    border-radius: 6px;
}
.button:hover, .wp-block-button__link:hover, .login-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--color-on-primary); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.button.danger { background: var(--color-danger); border-color: var(--color-danger); color: var(--color-on-primary); }

/* Comments / discussion */
.comments-area { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--border); }
.comments-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.comments-kicker { display: block; margin-bottom: 2px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; }
.comments-title { margin: 0; font-size: 30px; line-height: 1.15; }
.comments-note { color: var(--muted); font-size: 12px; font-weight: 700; }
.comment-list { display: grid; gap: 12px; }
.comment-card { padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-card:last-child { border-bottom: 0; }
.comment-inner { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 13px; }
.comment-avatar img { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); }
.comment-main { min-width: 0; }
.comment-header { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.comment-author { font-weight: 900; font-size: 14px; }
.comment-date { color: var(--muted); font-size: 11px; }
.comment-body { margin-top: 7px; font-size: 15px; line-height: 1.7; }
.comment-body p { margin: 0 0 9px; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.comment-actions { margin-top: 9px; }
.comment-actions a { color: var(--accent); font-size: 12px; font-weight: 900; }
.comment-actions a:hover { color: var(--accent-dark); }
.comment-card .children { margin: 10px 0 0 61px; padding-left: 15px; border-left: 2px solid var(--border); }
.comments-empty { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; padding: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; }
.comments-empty strong { font-size: 14px; }
.comments-empty span { color: var(--muted); font-size: 13px; }
.comment-form-wrap { margin-top: 28px; padding: 24px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; }
.comment-form-wrap .comment-reply-title { margin: 0 0 6px; font-size: 25px; line-height: 1.2; }
.comment-notes { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.required { color: var(--accent); }
.newspress-comment-form { display: grid; gap: 14px; }
.newspress-comment-form .comment-field { display: grid; gap: 6px; }
.newspress-comment-form label { font-size: 13px; font-weight: 800; }
.newspress-comment-form textarea,
.newspress-comment-form input[type="text"],
.newspress-comment-form input[type="email"],
.newspress-comment-form input[type="url"] { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); outline: none; }
.newspress-comment-form textarea { min-height: 170px; resize: vertical; }
.newspress-comment-form textarea:focus,
.newspress-comment-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.newspress-comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.newspress-comment-form .comment-form-cookies-consent input { margin-top: 4px; accent-color: var(--accent); }
.newspress-comment-form .form-submit { margin: 0; }
.comment-submit { border: 0 !important; padding: 10px 16px !important; background: var(--accent) !important; color: var(--color-on-primary) !important; }
.comments-pagination { margin-top: 18px; }
.comments-pagination .nav-links { justify-content: flex-start; }

/* Forms / CRUD */
.form-card { max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); padding: clamp(20px,4vw,40px); border-radius: 7px; box-shadow: var(--shadow); }
.form-card h1 { font-size: 40px; line-height: 1.1; margin-top: 0; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 800; margin-bottom: 7px; }
.field input[type=text], .field input[type=url], .field textarea, .field select { width: 100%; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 11px; border-radius: 6px; }
.field textarea { min-height: 240px; resize: vertical; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notice { padding: 12px 15px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 18px; border-radius: 6px; }
.notice.error { border-color: var(--color-status-error); }
.post-manager { background: var(--surface); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.manager-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.manager-row:last-child { border-bottom: 0; }
.manager-title { font-size: 19px; font-weight: 800; }
.manager-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.small-button { padding: 7px 10px; border: 1px solid var(--border); border-radius: 5px; font-size: 13px; font-weight: 800; background: transparent; color: var(--text); }
.small-button:hover { color: var(--accent); border-color: var(--accent); }
.small-button.danger { color: var(--color-danger-text); }
.admin-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }

/* Pagination / footer */
.pagination { margin-top: 25px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.nav-links a, .nav-links span { padding: 7px 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; }
.nav-links a:hover { color: var(--accent); border-color: var(--accent); }
.nav-links .current { background: var(--accent); color: var(--color-on-primary); border-color: var(--accent); }

.site-footer { margin-top: 20px; padding: 54px 0 0; background: var(--footer); color: var(--color-footer-text); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 44px; }
.footer-logo { display: inline-flex; align-items: baseline; margin-bottom: 5px; font-size: 32px; font-weight: 400; letter-spacing: 0; }
.footer-logo b { color: var(--accent); }
.footer-logo small { color: var(--color-footer-text-faint); font-size: 14px; margin-left: 1px; }
.footer-brand-slogan { margin: -7px 0 13px; font-size: 9px; }
.footer-brand p { max-width: 400px; margin: 0; color: var(--color-footer-text-muted); font-size: 13px; line-height: 1.75; }
.footer-brand > strong { display: inline-block; margin-top: 16px; color: var(--color-footer-text); font-size: 11px; letter-spacing: .4px; }
.footer-title { position: relative; margin: 0 0 16px; padding-left: 11px; color: var(--color-footer-text); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .9px; }
.footer-title::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 3px; background: var(--accent); }
.footer-links { display: grid; gap: 8px; font-size: 13px; }
.footer-links a { color: var(--color-footer-text-muted); transition: color .2s ease, transform .2s ease; }
.footer-links a:hover { color: var(--color-footer-text); transform: translateX(3px); }
.footer-social-links a { font-weight: 700; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; border-top: 1px solid var(--color-footer-border); }
.copyright { margin: 0; color: var(--color-footer-text-subtle); font-size: 11px; }
.footer-bottom-links { display: flex; align-items: center; gap: 14px; color: var(--color-footer-text-subtle); font-size: 11px; }
.footer-bottom-links a:hover { color: var(--color-footer-text); }

.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100%; }

@media (max-width: 1100px) {
    .home-grid, .content-grid { grid-template-columns: minmax(0, 1fr) 300px; }
    .header-top .main-nav { gap: 22px; }
    .site-brand { font-size: 24px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 900px) {
    .header-top-inner { min-height: 76px; }
    .header-top { min-height: 76px; }
    .site-brand { margin-right: auto; }
    .mobile-toggle { display: grid; order: 2; }
    .header-actions { order: 3; }
    .header-top .main-nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 8px 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 15px 30px rgba(0,0,0,.25);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }
    .header-top .main-nav.is-open { display: flex; }
    .header-top .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--border); }
    .header-top .main-nav a::after { display: none; }
    .header-top .main-nav li:last-child a { border-bottom: 0; }
    .header-icon { display: none; }
    .categories-nav { width: min(calc(100% - 20px), var(--max)); }
    .category-menu a { padding: 0 17px; }
    .home-grid, .content-grid { grid-template-columns: 1fr; }
    .home-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .home-sidebar .sidebar-box { margin-bottom: 0; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}

@media (min-width: 621px) and (max-width: 900px) {
    .article-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 620px) {
    .container { width: calc(100% - 20px); }
    .header-top-inner { min-height: 70px; }
    .header-top { min-height: 70px; }
    .site-brand { font-size: 22px; letter-spacing: -.9px; gap: 0; }
    .site-brand-name { font-size: 24px; }
    .site-brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
    .header-top .main-nav { top: 70px; }
    .header-actions { gap: 0; }
    .mobile-toggle { width: 36px; height: 36px; }
    .header-categories, .categories-inner { min-height: 40px; }
    .category-menu li, .category-menu a { height: 36px; }
    .category-menu li { margin: 2px; }
    .category-menu a { padding: 0 14px; font-size: 12px; }
    .site-main { padding-top: 18px; }
    .info-page { padding-top: 20px; }
    .info-hero { margin-bottom: 18px; padding: 28px 20px 30px; }
    .info-title { font-size: 39px; letter-spacing: -.8px; }
    .info-lead { font-size: 16px; }
    .info-grid, .contact-grid { grid-template-columns: 1fr; gap: 14px; }
    .info-panel-wide, .info-panel-accent { grid-column: auto; grid-row: auto; }
    .info-panel { min-height: 0; padding: 22px; }
    .info-panel-dark { display: block; }
    .info-panel-dark .button { margin-top: 10px; }
    .contact-panel, .contact-details, .contact-note { padding: 22px; }
    .contact-panel h2 { font-size: 30px; }
    .hero-card { height: 290px; }
    .hero-overlay { padding: 20px; }
    .hero-title { font-size: 31px; letter-spacing: -.8px; }
    .hero-excerpt { font-size: 13px; }
    .secondary-grid, .posts-grid { grid-template-columns: 1fr; }
    .secondary-card { display: grid; grid-template-columns: 110px minmax(0,1fr); }
    .secondary-image img { width: 110px; height: 100%; aspect-ratio: auto; min-height: 135px; }
    .secondary-content { padding: 12px; }
    .secondary-excerpt { display: none; }
    .secondary-title { font-size: 17px; }
    .home-sidebar { grid-template-columns: 1fr; }
    .home-sidebar .sidebar-box { margin-bottom: 0; }
    .section-heading h2 { font-size: 22px; }
    .article-wrap { padding: 22px 18px; }
    .article-title { font-size: 35px; }
    .article-content { font-size: 18px; }
    .comments-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .comments-title { font-size: 26px; }
    .comments-note { font-size: 11px; }
    .comment-form-wrap { padding: 18px; }
    .comment-inner { grid-template-columns: 40px minmax(0,1fr); gap: 10px; }
    .comment-avatar img { width: 40px; height: 40px; }
    .comment-card .children { margin-left: 45px; padding-left: 10px; }
    .manager-row { grid-template-columns: 1fr; }
    .manager-actions { justify-content: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
    .site-footer { padding-top: 40px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
    .footer-bottom-links { flex-wrap: wrap; }
}
