/*
Theme Name: dds_ngokelly.com
Theme URI: https://ngokelly.com/
Author: Nora G. O'Kelly
Description: A dark editorial theme for an independent journal about historic houses and estates, architectural heritage and restoration practice. Graphite-blue surfaces, copper rules and a museum-catalogue rhythm.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngok
*/

/* Hidden-state rules first (JS toggles the [hidden] attribute) */
.ngok-cookie[hidden] { display: none !important; }

:root {
    --ngok-bg: #14171c;
    --ngok-bg-alt: #1b2027;
    --ngok-bg-head: #101318;
    --ngok-bg-foot: #0d1013;
    --ngok-bg-aside: #181c22;
    --ngok-text: #e8e4dc;
    --ngok-copper: #c87f3a;
    --ngok-copper-soft: rgba(200, 127, 58, .35);
    --ngok-patina: #7fa8a0;
    --ngok-muted: #8a8f98;
    --ngok-line: #2a3038;
    --ngok-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
    --ngok-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ngok-glow: 0 0 0 1px rgba(200, 127, 58, .55), 0 6px 22px -4px rgba(200, 127, 58, .45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ngok-text);
    background-color: var(--ngok-bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 240'%3E%3Cg fill='none' stroke='%23c87f3a' stroke-opacity='.11' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M20 86 160 18l140 68z'/%3E%3Cpath d='M44 80 160 30l116 50'/%3E%3Ccircle cx='160' cy='58' r='9'/%3E%3Cpath d='M16 92h288M22 100h276'/%3E%3Cpath d='M42 106h20v110H42zM102 106h20v110h-20zM198 106h20v110h-20zM258 106h20v110h-20z'/%3E%3Cpath d='M38 104h28M98 104h28M194 104h28M254 104h28M38 218h28M98 218h28M194 218h28M254 218h28'/%3E%3Cpath d='M12 224h296M4 234h312'/%3E%3Cpath d='M146 216v-58a14 14 0 0 1 28 0v58'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(232, 228, 220, .022) 0 1px, transparent 1px 14px);
    background-repeat: no-repeat, repeat;
    background-position: right -40px bottom -20px, 0 0;
    background-size: 420px auto, auto;
    background-attachment: fixed, scroll;
    font-family: var(--ngok-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ngok-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ngok-text);
    margin: 0 0 .6em;
    hyphens: auto;
    overflow-wrap: break-word;
}
h1 { font-size: 3.4rem; letter-spacing: -.01em; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; hyphens: auto; }

a {
    color: var(--ngok-copper);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-thickness .2s ease, text-underline-offset .2s ease;
}
a:hover { text-decoration-thickness: 2px; text-underline-offset: 6px; }

:focus-visible { outline: 2px solid var(--ngok-copper); outline-offset: 3px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; border: 1px solid var(--ngok-line); }
th, td { border: 1px solid var(--ngok-line); padding: .65rem .85rem; text-align: start; vertical-align: top; }
th { background: var(--ngok-bg-alt); font-weight: 600; }

hr { border: 0; height: 1px; margin: 2.5rem 0; background: linear-gradient(to right, var(--ngok-copper) 0 56px, var(--ngok-line) 56px); }

.ngok-sr, .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;
}

.ngok-skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 1000;
    background: var(--ngok-copper); color: var(--ngok-bg);
    padding: .6rem 1rem; border-radius: 2px; text-decoration: none; font-weight: 600;
}
.ngok-skip:focus { top: 1rem; }

/* Container — the only width constraint on the site */
.ngok-shell { width: 85%; max-width: 1320px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ Buttons */
.ngok-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border: 1px solid var(--ngok-copper);
    border-radius: 2px;
    font-family: var(--ngok-sans);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.ngok-btn-fill { background: var(--ngok-copper); color: var(--ngok-bg); }
.ngok-btn-line { background: transparent; color: var(--ngok-copper); }
.ngok-btn:hover, .ngok-btn:focus-visible { transform: translateY(-2px); box-shadow: var(--ngok-glow); text-decoration: none; }
.ngok-btn-fill:hover { color: var(--ngok-bg); }
.ngok-btn-line:hover { color: var(--ngok-copper); background: rgba(200, 127, 58, .06); }

/* ------------------------------------------------------------------ Header */
.ngok-header {
    background: var(--ngok-bg-head);
    border-top: 3px solid var(--ngok-copper);
    border-bottom: 1px solid var(--ngok-line);
    position: relative;
}
.ngok-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.1rem 0;
}
.ngok-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 640px;
    text-decoration: none;
    color: var(--ngok-text);
}
.ngok-brand:hover { text-decoration: none; }
.ngok-brand-logo { flex: 0 0 auto; display: block; line-height: 0; }
.ngok-logo-mark { display: block; width: 52px; height: 52px; }
.ngok-logo-img { display: block; max-height: 64px; width: auto; }
.ngok-brand-text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ngok-brand-name {
    font-family: var(--ngok-serif);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ngok-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ngok-brand-desc {
    font-size: .78rem;
    line-height: 1.4;
    color: var(--ngok-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ngok-nav { flex: 0 0 auto; }
.ngok-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.8rem; }
.ngok-menu li { position: relative; }
.ngok-menu a {
    display: block;
    padding: .45rem 0;
    color: var(--ngok-text);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.ngok-menu a:hover,
.ngok-menu .current-menu-item > a,
.ngok-menu .current_page_item > a { color: var(--ngok-copper); border-bottom-color: var(--ngok-copper); }
.ngok-menu .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: .6rem 1rem;
    background: var(--ngok-bg-head);
    border: 1px solid var(--ngok-line);
    z-index: 50;
    display: none;
}
.ngok-menu li:hover > .sub-menu,
.ngok-menu li:focus-within > .sub-menu { display: block; }
.ngok-menu .sub-menu a { text-transform: none; letter-spacing: 0; font-weight: 400; }

.ngok-nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    background: transparent;
    color: var(--ngok-text);
    border: 1px solid var(--ngok-line);
    border-radius: 2px;
    font: 600 .85rem/1 var(--ngok-sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.ngok-nav-toggle-bars,
.ngok-nav-toggle-bars::before,
.ngok-nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ngok-copper);
    position: relative;
}
.ngok-nav-toggle-bars::before,
.ngok-nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.ngok-nav-toggle-bars::before { top: -6px; }
.ngok-nav-toggle-bars::after { top: 6px; }

/* ------------------------------------------------------------------ Section scaffolding */
.ngok-section { padding: 6rem 0; position: relative; }
.ngok-section-alt { background-color: var(--ngok-bg-alt); }
.ngok-section-accent {
    background-image: repeating-linear-gradient(45deg, rgba(200, 127, 58, .05) 0 1px, transparent 1px 14px);
}

.ngok-sec-head { margin-bottom: 3rem; }
.ngok-sec-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}
.ngok-eyebrow {
    margin: 0 0 .7rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ngok-patina);
}
.ngok-sec-title {
    position: relative;
    margin: 0;
    padding-left: 2.6rem;
    font-size: 2.6rem;
}
.ngok-sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: .38em;
    width: 1.3rem;
    height: 1px;
    background: var(--ngok-copper);
}
.ngok-sec-title::after {
    content: "";
    position: absolute;
    left: 1.55rem;
    bottom: .3em;
    width: .45rem;
    height: .45rem;
    background: var(--ngok-copper);
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(200, 127, 58, .55);
}

.ngok-divider {
    display: flex;
    align-items: center;
    width: 85%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 0;
}
.ngok-divider::before,
.ngok-divider::after {
    content: "";
    flex: 1 1 auto;
    border-top: 1px dashed rgba(200, 127, 58, .32);
}
.ngok-divider span {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin: 0 1.1rem;
    border: 1px solid var(--ngok-copper);
    transform: rotate(45deg);
}

/* ------------------------------------------------------------------ Hero */
.ngok-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(520px, 82vh, 840px);
    display: flex;
    align-items: center;
    background: var(--ngok-bg-head);
}
.ngok-hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}
.ngok-hero-veil {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        linear-gradient(90deg, rgba(16, 19, 24, .94) 0%, rgba(16, 19, 24, .78) 42%, rgba(16, 19, 24, .25) 100%),
        linear-gradient(0deg, rgba(20, 23, 28, 1) 0%, rgba(20, 23, 28, 0) 28%);
}
.ngok-hero-inner { position: relative; z-index: 1; padding: 7rem 0 6rem; }
.ngok-hero-title { font-size: 3.4rem; font-weight: 600; max-width: 14em; margin-bottom: .45em; }
.ngok-hero-lead { max-width: 36em; font-size: 1.18rem; color: #cfcac1; margin-bottom: 1.8rem; }
.ngok-hero-rule {
    display: block;
    width: 140px;
    height: 1px;
    margin-bottom: 2.2rem;
    background: var(--ngok-copper);
    box-shadow: 0 0 10px rgba(200, 127, 58, .7);
}
.ngok-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ------------------------------------------------------------------ Stats */
.ngok-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}
.ngok-stat { padding: .5rem 2rem; border-left: 1px solid var(--ngok-line); min-width: 0; }
.ngok-stat:first-child { border-left: 0; padding-left: 0; }
.ngok-stat-num {
    font-family: var(--ngok-serif);
    font-size: 4.2rem;
    font-weight: 600;
    line-height: 1;
    color: var(--ngok-copper);
    margin-bottom: .7rem;
}
.ngok-stat-label { margin: 0; color: var(--ngok-muted); font-size: .98rem; line-height: 1.55; }

/* ------------------------------------------------------------------ Cards */
.ngok-grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.ngok-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ngok-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--ngok-bg-alt);
    border: 1px solid var(--ngok-line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .18);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.ngok-card:hover {
    transform: translateY(-4px);
    border-color: var(--ngok-copper);
    box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(200, 127, 58, .15);
}
.ngok-card-thumb { position: relative; overflow: hidden; }
.ngok-card-thumb a { display: block; }
.ngok-card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .6s ease;
}
.ngok-card:hover .ngok-card-thumb img { transform: scale(1.05); }
.ngok-card-thumb::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 36%;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(13, 16, 19, .7), rgba(13, 16, 19, 0));
}
.ngok-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.4rem 1.5rem 1.6rem;
}
.ngok-card-meta,
.ngok-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .9rem;
    margin-bottom: .85rem;
    font-size: .82rem;
    color: var(--ngok-muted);
}
.ngok-card-title { font-size: 1.55rem; margin-bottom: .55rem; }
.ngok-card-title a { color: var(--ngok-text); text-decoration: none; }
.ngok-card-title a:hover { color: var(--ngok-copper); }
.ngok-card-excerpt { color: #c4bfb6; font-size: .98rem; margin-bottom: 1.1rem; }
.ngok-card-excerpt p { margin: 0 0 0.5em; background: none; }
.ngok-card-more {
    margin-top: auto;
    align-self: flex-start;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ngok-tag {
    display: inline-block;
    padding: .18rem .55rem;
    background: var(--ngok-patina);
    color: #14171c;
    border-radius: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.5;
}
.ngok-tag:hover { color: #14171c; background: #95bab3; text-decoration: none; }
.ngok-tag-line { background: transparent; color: var(--ngok-patina); border: 1px solid var(--ngok-patina); }
.ngok-tag-line:hover { color: #14171c; background: var(--ngok-patina); }

.ngok-empty {
    padding: 2rem 2.2rem;
    border: 1px dashed var(--ngok-line);
    border-radius: 4px;
    color: var(--ngok-muted);
}
.ngok-empty p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ Timeline */
.ngok-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.ngok-timeline::before {
    content: "";
    position: absolute;
    top: .4rem;
    bottom: .4rem;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, rgba(200, 127, 58, .1), rgba(200, 127, 58, .55) 12%, rgba(200, 127, 58, .55) 88%, rgba(200, 127, 58, .1));
}
.ngok-tl-item {
    position: relative;
    width: calc(50% - 2.5rem);
    min-width: 0;
    margin-bottom: 2.6rem;
}
.ngok-tl-item:last-child { margin-bottom: 0; }
.ngok-tl-item:nth-child(odd) { margin-right: auto; text-align: right; }
.ngok-tl-item:nth-child(even) { margin-left: auto; }
.ngok-tl-item::before {
    content: "";
    position: absolute;
    top: .35rem;
    width: 11px;
    height: 11px;
    background: var(--ngok-copper);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(200, 127, 58, .6);
}
.ngok-tl-item:nth-child(odd)::before { right: calc(-2.5rem - 5.5px); }
.ngok-tl-item:nth-child(even)::before { left: calc(-2.5rem - 5.5px); }
.ngok-tl-date {
    display: block;
    margin-bottom: .35rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ngok-patina);
}
.ngok-tl-title { font-size: 1.65rem; margin-bottom: .4rem; }
.ngok-tl-item p { margin: 0; color: var(--ngok-text); }

/* ------------------------------------------------------------------ Topic map */
.ngok-topic-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.ngok-topic-grid li { min-width: 0; }
.ngok-topic {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    height: 100%;
    padding: 1.9rem 1.7rem;
    background: var(--ngok-bg-alt);
    border: 1px solid var(--ngok-line);
    border-radius: 4px;
    color: var(--ngok-text);
    text-decoration: none;
    transition: border-color .25s ease, transform .25s ease;
}
.ngok-topic:hover { border-color: var(--ngok-copper); text-decoration: none; transform: translateY(-2px); }
.ngok-topic-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: .6rem;
    fill: none;
    stroke: var(--ngok-muted);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .25s ease;
}
.ngok-topic:hover .ngok-topic-icon { stroke: var(--ngok-copper); }
.ngok-topic-name { font-family: var(--ngok-serif); font-size: 1.55rem; font-weight: 600; line-height: 1.2; }
.ngok-topic-note { font-size: .93rem; color: var(--ngok-muted); }

/* ------------------------------------------------------------------ Inner pages layout */
.ngok-inner { padding: 2.2rem 0 5.5rem; }
.ngok-layout-single { display: block; }
.ngok-layout-aside {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.ngok-content, .ngok-aside { min-width: 0; }

.ngok-crumbs {
    margin-bottom: 2.4rem;
    font-size: .86rem;
    color: var(--ngok-muted);
}
.ngok-crumbs a { color: var(--ngok-muted); text-decoration: none; }
.ngok-crumbs a:hover { color: var(--ngok-copper); }
.ngok-crumbs-sep { margin: 0 .45rem; color: var(--ngok-copper); }
.ngok-crumbs span:last-child { color: var(--ngok-text); }

.ngok-page-head { position: relative; margin-bottom: 2.6rem; padding-bottom: 1.6rem; }
.ngok-page-head::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(to right, var(--ngok-copper) 0 64px, var(--ngok-line) 64px);
}
.ngok-page-title { font-size: 3.4rem; margin-bottom: .3em; }
.ngok-page-intro { color: #cfcac1; max-width: 46em; }
.ngok-page-intro > *:last-child { margin-bottom: 0; }

.ngok-entry-thumb { margin: 0 0 2.4rem; }
.ngok-entry-thumb img { display: block; width: 100%; border-radius: 4px; border: 1px solid var(--ngok-line); }

/* ------------------------------------------------------------------ Prose */
.ngok-prose { font-size: 1.08rem; line-height: 1.8; }
.ngok-prose > * { max-width: 46em; }
.ngok-prose h2 { font-size: 2.1rem; margin-top: 1.6em; }
.ngok-prose h3 { font-size: 1.6rem; margin-top: 1.4em; }
.ngok-prose h2::before {
    content: "";
    display: inline-block;
    width: .4em;
    height: .4em;
    margin-right: .55em;
    vertical-align: .18em;
    background: var(--ngok-copper);
    transform: rotate(45deg);
}
.ngok-prose ul, .ngok-prose ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.ngok-prose li { margin-bottom: .4em; }
.ngok-prose ul li::marker { color: var(--ngok-copper); }
.ngok-prose img { display: block; border-radius: 4px; }
.ngok-prose figure { margin: 2rem 0; }
.ngok-prose figcaption, .wp-caption-text { font-size: .86rem; color: var(--ngok-muted); margin-top: .6rem; }
.ngok-prose pre {
    overflow-x: auto;
    padding: 1.2rem 1.4rem;
    background: #0f1216;
    border: 1px solid var(--ngok-line);
    border-radius: 4px;
    font-size: .92rem;
}
.ngok-prose code { background: #0f1216; padding: .1em .35em; border-radius: 2px; font-size: .92em; }
.ngok-prose pre code { background: none; padding: 0; }

blockquote,
.wp-block-quote {
    margin: 2rem 0;
    padding: 1.3rem 1.8rem 1.3rem 1.8rem;
    border-left: 2px solid var(--ngok-copper);
    background: rgba(200, 127, 58, .04);
    box-shadow: -6px 0 16px -10px rgba(200, 127, 58, .8);
    font-family: var(--ngok-serif);
    font-size: 1.4rem;
    line-height: 1.5;
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: .6rem; font-family: var(--ngok-sans); font-size: .85rem; font-style: normal; color: var(--ngok-muted); }

.alignleft { float: left; margin: .3rem 1.6rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.6rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.ngok-entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.4rem 0 0; }

.ngok-postnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 3rem;
}
.ngok-postnav-link {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.2rem 1.4rem;
    background: var(--ngok-bg-alt);
    border: 1px solid var(--ngok-line);
    border-radius: 4px;
    text-decoration: none;
    min-width: 0;
    transition: border-color .25s ease;
}
.ngok-postnav-link:hover { border-color: var(--ngok-copper); text-decoration: none; }
.ngok-postnav-next { grid-column: 2; text-align: right; }
.ngok-postnav-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ngok-patina); }
.ngok-postnav-title { font-family: var(--ngok-serif); font-size: 1.3rem; color: var(--ngok-text); line-height: 1.3; }

/* ------------------------------------------------------------------ Pagination */
.ngok-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-top: 3rem;
}
.ngok-pager .page-numbers,
.ngok-pager-inline .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 .9rem;
    border: 1px solid var(--ngok-line);
    border-radius: 2px;
    background: var(--ngok-bg-alt);
    color: var(--ngok-text);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ngok-pager a.page-numbers:hover,
.ngok-pager-inline a.post-page-numbers:hover { border-color: var(--ngok-copper); color: var(--ngok-copper); transform: translateY(-2px); }
.ngok-pager .page-numbers.current,
.ngok-pager-inline .post-page-numbers.current {
    background: var(--ngok-copper);
    border-color: var(--ngok-copper);
    color: var(--ngok-bg);
    box-shadow: 0 0 14px -2px rgba(200, 127, 58, .55);
}
.ngok-pager .page-numbers.dots { border: 0; background: none; min-width: 1.5rem; padding: 0; }
.ngok-pager-label { margin-right: .4rem; color: var(--ngok-muted); }

/* ------------------------------------------------------------------ Sidebar & widgets */
.ngok-aside {
    background: var(--ngok-bg-aside);
    border: 1px solid var(--ngok-line);
    border-radius: 4px;
    padding: 1.8rem 1.7rem;
    color: var(--ngok-text);
}
.ngok-widget { margin-bottom: 2.2rem; }
.ngok-widget:last-child { margin-bottom: 0; }
.ngok-widget-title {
    position: relative;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    padding-bottom: .7rem;
}
.ngok-widget-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 40px;
    height: 1px;
    background: var(--ngok-copper);
}
.ngok-widget ul { list-style: none; margin: 0; padding: 0; }
.ngok-widget li { padding: .6rem 0; border-bottom: 1px solid var(--ngok-line); line-height: 1.45; }
.ngok-widget li:last-child { border-bottom: 0; }
.ngok-aside .ngok-widget,
.ngok-aside .ngok-widget p,
.ngok-aside .ngok-widget li { color: var(--ngok-text); }
.ngok-aside .ngok-widget-title { color: var(--ngok-text); }
.ngok-aside .ngok-widget a { color: var(--ngok-text); text-decoration: none; }
.ngok-aside .ngok-widget a:hover { color: var(--ngok-copper); }
.ngok-aside .post-date,
.ngok-aside .rss-date { display: block; font-size: .8rem; color: var(--ngok-muted); }

/* ------------------------------------------------------------------ Search */
.ngok-search { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0; }
.ngok-search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .8rem 1rem;
    background: #0f1216;
    color: var(--ngok-text);
    border: 1px solid var(--ngok-line);
    border-radius: 2px;
    font: inherit;
    font-size: 1rem;
}
.ngok-search-field::placeholder { color: var(--ngok-muted); }
.ngok-search-field:focus { outline: none; border-color: var(--ngok-copper); box-shadow: 0 0 0 1px var(--ngok-copper); }

/* ------------------------------------------------------------------ Comments */
.ngok-comments { margin-top: 4rem; padding-top: 2.4rem; border-top: 1px solid var(--ngok-line); }
.ngok-comments-title { font-size: 2rem; }
.ngok-comment-list, .ngok-comment-list .children { list-style: none; margin: 0; padding: 0; }
.ngok-comment-list .children { margin-left: 2rem; }
.ngok-comment-body {
    margin-bottom: 1.2rem;
    padding: 1.3rem 1.5rem;
    background: var(--ngok-bg-alt);
    border: 1px solid var(--ngok-line);
    border-radius: 4px;
}
.ngok-comment-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.ngok-comment-head img { display: block; border-radius: 2px; }
.ngok-comment-who { display: flex; flex-direction: column; }
.ngok-comment-author { font-weight: 600; color: var(--ngok-text); }
.ngok-comment-who time { font-size: .8rem; color: var(--ngok-muted); }
.ngok-comment-wait { font-size: .88rem; color: var(--ngok-patina); }
.ngok-comment-text p:last-child { margin-bottom: 0; }
.ngok-comment-reply { margin-top: .7rem; font-size: .85rem; font-weight: 600; }
.comment-respond { margin-top: 2.4rem; }
.comment-reply-title { font-size: 1.8rem; }
.comment-reply-title small { margin-left: 1rem; font-family: var(--ngok-sans); font-size: .85rem; }
.ngok-form-note { font-size: .9rem; color: var(--ngok-muted); }
.ngok-req { color: var(--ngok-copper); }
.comment-form label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .75rem .9rem;
    background: #0f1216;
    color: var(--ngok-text);
    border: 1px solid var(--ngok-line);
    border-radius: 2px;
    font: inherit;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--ngok-copper); }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form-cookies-consent input { margin-top: .35rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ------------------------------------------------------------------ 404 */
.ngok-404 { max-width: 760px; }
.ngok-404-code {
    margin: 0 0 .2rem;
    font-family: var(--ngok-serif);
    font-size: 8rem;
    font-weight: 600;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--ngok-copper);
}
.ngok-404-home { margin-top: 1.8rem; }

/* ------------------------------------------------------------------ Footer */
.ngok-footer {
    background: var(--ngok-bg-foot);
    border-top: 1px solid var(--ngok-line);
    color: #c9c4bb;
    padding: 4.5rem 0 0;
}
.ngok-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}
.ngok-footer-col { min-width: 0; }
.ngok-footer .ngok-widget,
.ngok-footer .ngok-widget p,
.ngok-footer .ngok-widget li { color: #c9c4bb; font-size: .97rem; }
.ngok-footer .ngok-widget-title { color: var(--ngok-text); font-size: 1.35rem; }
.ngok-footer .ngok-widget a { color: var(--ngok-text); text-decoration: none; }
.ngok-footer .ngok-widget a:hover { color: var(--ngok-copper); }
.ngok-footer .ngok-widget li { border-bottom-color: #1d2228; }
.ngok-footer-base {
    position: relative;
    margin-top: 3.5rem;
    padding: 1.6rem 0 1.9rem;
}
.ngok-footer-base::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(to right, var(--ngok-copper) 0 64px, var(--ngok-line) 64px);
}
.ngok-copy { margin: 0; font-size: .86rem; color: var(--ngok-muted); }

/* ------------------------------------------------------------------ Cookie banner */
.ngok-cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.15rem 1.5rem;
    background: var(--ngok-bg-head);
    color: var(--ngok-text);
    border: 1px solid var(--ngok-line);
    border-top: 2px solid var(--ngok-copper);
    border-radius: 4px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8);
}
.ngok-cookie-text { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ngok-text); }
.ngok-cookie-accept { flex: 0 0 auto; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 960px) {
    h1, .ngok-page-title, .ngok-hero-title { font-size: 2.7rem; }
    .ngok-sec-title { font-size: 2.2rem; }
    .ngok-header-row { flex-wrap: wrap; gap: 1rem; }
    .ngok-nav-toggle { display: inline-flex; }
    .ngok-nav { flex: 1 0 100%; display: none; }
    .ngok-nav.is-open { display: block; }
    .ngok-menu { flex-direction: column; gap: 0; padding: .4rem 0 .6rem; border-top: 1px solid var(--ngok-line); }
    .ngok-menu a { padding: .75rem 0; border-bottom: 1px solid var(--ngok-line); }
    .ngok-menu .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 1rem; background: none; }
    .ngok-layout-aside { display: block; }
    .ngok-aside { margin-top: 3.5rem; }
    .ngok-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .ngok-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .ngok-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ngok-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ngok-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ngok-section { padding: 4.5rem 0; }
    body { background-size: 280px auto, auto; }
}

@media (max-width: 760px) {
    .ngok-timeline::before { left: 5px; }
    .ngok-tl-item,
    .ngok-tl-item:nth-child(odd),
    .ngok-tl-item:nth-child(even) { width: auto; margin-left: 2.2rem; margin-right: 0; text-align: left; }
    .ngok-tl-item:nth-child(odd)::before,
    .ngok-tl-item:nth-child(even)::before { right: auto; left: -2.2rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .ngok-shell, .ngok-divider { width: 92%; }
    h1, .ngok-page-title, .ngok-hero-title { font-size: 2.15rem; }
    h2, .ngok-sec-title { font-size: 1.85rem; }
    .ngok-brand-desc { display: none; }
    .ngok-brand-name { font-size: 1rem; }
    .ngok-logo-mark { width: 42px; height: 42px; }
    .ngok-hero { min-height: 520px; }
    .ngok-hero-inner { padding: 4.5rem 0 4rem; }
    .ngok-hero-lead { font-size: 1.05rem; }
    .ngok-section { padding: 3.5rem 0; }
    .ngok-sec-head { margin-bottom: 2rem; }
    .ngok-stats { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .ngok-stat, .ngok-stat:nth-child(odd) { border-left: 0; padding: 1.4rem 0; border-top: 1px solid var(--ngok-line); }
    .ngok-stat:first-child { border-top: 0; padding-top: 0; }
    .ngok-stat-num { font-size: 3.4rem; }
    .ngok-grid-3, .ngok-topic-grid { grid-template-columns: minmax(0, 1fr); }
    .ngok-card-body { padding: 1.2rem 1.25rem 1.4rem; }
    .ngok-topic { padding: 1.5rem 1.4rem; }
    .ngok-aside { padding: 1.5rem 1.3rem; }
    .ngok-empty { padding: 1.5rem 1.4rem; }
    .ngok-postnav { grid-template-columns: minmax(0, 1fr); }
    .ngok-postnav-next { grid-column: auto; }
    .ngok-footer-cols { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .ngok-cookie { flex-direction: column; align-items: stretch; padding: 1.1rem 1.2rem; }
    .ngok-404-code { font-size: 5.5rem; }
    blockquote, .wp-block-quote { padding: 1.1rem 1.2rem; font-size: 1.2rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
    body { background-image: repeating-linear-gradient(45deg, rgba(232, 228, 220, .022) 0 1px, transparent 1px 14px); background-repeat: repeat; background-size: auto; background-attachment: scroll; background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
