/* WikiLifeNG — editorial biography theme (ink navy + coral red on warm white) */
:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --navy: #111111;          /* ink */
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e3dfd6;
    --orange: #b3131b;        /* primary accent: newspaper crimson */
    --orange-2: #d62828;
    --peach: #f7e9e9;
    --gold: #e9a23b;
    --gold-2: #f4c06a;
    --radius: 0px;
    --shadow: 0 1px 3px rgba(14, 26, 43, .05), 0 10px 28px rgba(14, 26, 43, .07);
    --head: 'DM Serif Display', Georgia, serif;
    --serif: 'Source Serif 4', Georgia, serif;
    --arabic: Georgia, serif;
    --pattern: linear-gradient(transparent, transparent);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; border-radius: 999px; padding: 12px 22px; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(14, 26, 43, .2); }
.btn-primary:hover { background: var(--orange); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Header */
.site-header { box-shadow: inset 0 3px 0 var(--orange); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 25px; color: var(--navy); letter-spacing: -.2px; }
.brand-name b { color: var(--orange); font-weight: 800; }
.brand-sub { font-size: 12px; color: var(--navy); opacity: .75; margin-top: 2px; }
.brand.light .brand-name, .brand.light .brand-sub { color: #fff; }


.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.main-nav > a, .has-sub > a { display: block; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--navy); position: relative; }
.main-nav > a:hover, .has-sub:hover > a, .main-nav > a.active { color: var(--orange); }
.main-nav > a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--orange); }
.has-sub { position: relative; }
.has-sub > a::after { content: ' ▾'; font-size: 11px; opacity: .6; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 5; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.sub a:hover { background: var(--peach); color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); color: var(--navy); }
.icon-btn:hover { color: var(--orange); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: var(--pattern), radial-gradient(circle at 80% 20%, #e3f2e8 0, transparent 50%), linear-gradient(180deg, #f2f8f2, var(--bg)); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 60px; }
.hero-grid > * { min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--orange); margin: 0 0 10px; }
.eyebrow.bismillah { font-family: var(--arabic); font-size: 26px; letter-spacing: 0; font-weight: 400; color: var(--gold); line-height: 1.6; direction: rtl; text-align: left; }
.eyebrow.line { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--gold); }
.eyebrow.line::before { content: ''; width: 34px; height: 2px; background: var(--gold); }
.hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.3; margin: 0 0 16px; }
.hero h1 span { color: var(--orange); position: relative; }
.lead { font-size: 18px; color: #3b4a41; max-width: 540px; margin: 0 0 28px; }

.hero-search {
    display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px;
    padding: 6px 6px 6px 20px; box-shadow: var(--shadow); max-width: 520px; border: 1px solid var(--line);
}
.hero-search svg { color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; color: var(--ink); padding: 8px 0; }

.hero-art { position: relative; height: 470px; }
.moon { position: absolute; top: 8px; right: 14%; width: 64px; height: 64px; border-radius: 50%; box-shadow: -14px 6px 0 0 var(--gold-2); transform: rotate(-20deg); opacity: .9; }
.lantern { position: absolute; top: 0; width: 2px; background: var(--gold); }
.lantern i { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 6px 6px 12px 12px;
    background: radial-gradient(circle at 50% 60%, #fff3c4 0, #f3c75a 45%, #b8861d 100%); box-shadow: 0 0 24px rgba(243, 199, 90, .7); }
.lantern i::before { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 14px; height: 9px; border-radius: 7px 7px 0 0; background: var(--gold); }
.ln1 { left: 14%; height: 60px; }
.ln2 { left: 26%; height: 110px; }
.ln2 i { width: 20px; height: 32px; bottom: -36px; }
.arch {
    position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
    width: 280px; height: 380px; padding: 10px; border-radius: 140px 140px 20px 20px;
    background: linear-gradient(160deg, var(--gold-2), var(--gold)); box-shadow: 0 30px 60px rgba(11, 46, 34, .28);
}
.arch-inner {
    height: 100%; border-radius: 130px 130px 14px 14px; padding: 70px 24px 24px; text-align: center; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: var(--pattern), linear-gradient(180deg, #0f8a5f 0%, #0b5d41 55%, #082f22 100%);
    border: 1px solid rgba(255, 255, 255, .25);
}
.arch .arabic { font-family: var(--arabic); font-size: 30px; white-space: nowrap; line-height: 1.6; margin: 0; color: #fdf3d4; direction: rtl; }
.arch-rule { display: flex; align-items: center; gap: 8px; width: 70%; color: var(--gold-2); font-size: 12px; }
.arch-rule::before, .arch-rule::after { content: ''; flex: 1; height: 1px; background: rgba(230, 195, 106, .6); }
.arch-bn { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.55; margin: 0; }
.arch-icon { font-size: 34px; color: var(--gold-2); line-height: 1; }
/* Static pages */
.page-body { max-width: 800px; }
.contact-box { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; padding: 18px 20px; margin: 1.2em 0; box-shadow: var(--shadow); }
.contact-box .ci { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--peach); font-size: 22px; flex-shrink: 0; }
.contact-box small { display: block; color: var(--muted); font-size: 13px; }
.content .contact-box a { font-weight: 700; font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
.arch small { font-size: 12px; opacity: .75; }
.float-card {
    position: absolute; width: 168px; padding: 14px 14px 12px; border-radius: 14px; background: #fffdf7;
    border: 1px solid var(--line); border-top: 3px solid var(--gold);
    box-shadow: var(--shadow); font-weight: 600; font-size: 14px; line-height: 1.55; color: var(--navy);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.fc-icon { color: var(--orange); font-size: 16px; }
.fc1 { top: 250px; left: 0; transform: rotate(-5deg); }
.fc2 { top: 120px; right: 0; transform: rotate(5deg); }
.fc3 { bottom: 14px; right: 8%; transform: rotate(-3deg); }

/* Sections */
.section { padding-top: 48px; padding-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-family: var(--head); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin: 0; }
.section-head .sub { color: var(--muted); margin: 2px 0 0; font-size: 15px; }
.with-icon { display: flex; align-items: center; gap: 10px; }
.h-icon { font-size: .9em; }
.more { font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.more:hover { color: var(--orange); }

/* Tones */
.tone-red    { --t: #ef4444; --tb: #fee2e2; }
.tone-blue   { --t: #3b82f6; --tb: #dbeafe; }
.tone-green  { --t: #16a34a; --tb: #dcfce7; }
.tone-pink   { --t: #ec4899; --tb: #fce7f3; }
.tone-purple { --t: #8b5cf6; --tb: #ede9fe; }
.tone-orange { --t: #e63946; --tb: #fdecee; }
.tone-amber  { --t: #d97706; --tb: #fef3c7; }
.tone-indigo { --t: #4f46e5; --tb: #e0e7ff; }
.tone-teal   { --t: #0d9488; --tb: #ccfbf1; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 10px 16px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.cat-icon { width: 60px; height: 60px; border-radius: 18px; border: 1px dashed var(--t, var(--gold)); display: grid; place-items: center; font-size: 28px; background: var(--tb); margin-bottom: 6px; }
.cat-card strong { color: var(--navy); font-size: 16px; line-height: 1.3; }
.cat-card small { color: var(--muted); font-size: 13px; }

/* Popular quote cards */
.quote-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); grid-auto-rows: auto; gap: 16px; }
.quote-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.quote-card.featured { grid-row: span 2; padding: 10px 10px 18px; border: 2px solid var(--gold-2); }
.quote-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 18px; background: var(--peach); }
.quote-img img { width: 100%; height: 100%; object-fit: cover; }
.sunset { position: absolute; inset: 0; background: linear-gradient(160deg, #1d2d44 0%, #0e1a2b 100%); }
.quote-img .chip { position: absolute; top: 12px; left: 12px; }
.quote-card blockquote { margin: 0; flex: 1; font-size: 17px; font-weight: 500; color: var(--navy); line-height: 1.65; }
.quote-card.featured blockquote { font-family: var(--head); font-size: 22px; font-weight: 600; padding: 0 10px; }
.quote-card blockquote a:hover { color: var(--orange); }
.qmark { color: var(--gold); font-size: 26px; line-height: 1; margin-bottom: 8px; }
.quote-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; padding: 0 4px; }
.quote-card.featured footer { padding: 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.copy-link {
    display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 12px; color: var(--muted); white-space: nowrap; padding: 4px 6px; border-radius: 6px;
}
.copy-link:hover, .copy-link.done { color: var(--orange); background: var(--peach); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
    display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 11px; border-radius: 999px;
    background: var(--tb, var(--peach)); color: var(--t, var(--orange));
}
.chip.solid { background: var(--orange); color: #fff; }
.chip.lg { font-size: 15px; padding: 9px 16px; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.chip:hover { filter: brightness(.96); }
.chip.lg:hover { border-color: var(--orange); color: var(--orange); }

/* Post cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--peach); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px; background: linear-gradient(135deg, var(--tb), #fff); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .chip { align-self: flex-start; }
.card-title { font-size: 17px; line-height: 1.5; margin: 0; flex: 1; }
.card-title a:hover { color: var(--orange); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Archive / page head */
.page-head { background: var(--pattern), linear-gradient(180deg, #eef6f0, var(--bg)); padding: 36px 0 12px; }
.page-head h1 { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 4vw, 42px); line-height: 1.3; margin: 6px 0 8px; }
.page-head p { color: var(--muted); margin: 0 0 12px; max-width: 680px; }
.page-head .hero-search { margin-top: 16px; }
.page-head.center { text-align: center; padding: 70px 0 40px; }
.page-head.center .hero-search { margin: 20px auto; }
.big-num { font-family: var(--head); font-weight: 800; font-size: 96px; line-height: 1; color: var(--gold); margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--orange); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 36px 0 0; justify-content: center; }
.pagination li a, .pagination li span { display: block; min-width: 42px; text-align: center; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.pagination li a:hover { border-color: var(--orange); color: var(--orange); }
.pagination li.active span { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination li.disabled span { opacity: .4; }

/* Single post */
.post { max-width: 800px; padding-top: 32px; }
.post-title { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 4.5vw, 42px); line-height: 1.3; margin: 10px 0 10px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 26px; }
.content { font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
.content h2, .content h3, .content h4 { font-family: var(--head); line-height: 1.4; margin: 1.8em 0 .6em; }
.content h2 { font-size: 26px; }
.content h3 { font-size: 22px; }
.content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.content img { border-radius: 12px; margin: 1em auto; }
.content figure { margin: 1.5em 0; }
.content figcaption { text-align: center; font-size: 14px; color: var(--muted); }
.content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--line); padding: 8px 10px; }
.content ul, .content ol { padding-left: 0; list-style: none; }
.content blockquote { margin: 1.2em 0; }
.copy-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 40px; margin: 0 0 14px; box-shadow: 0 2px 8px rgba(11, 46, 34, .04); }
.content blockquote.copy-item { border-left: 4px solid var(--gold); background: linear-gradient(90deg, #fffcf2, #fff); }
.content [lang=ar], .content .arabic { font-family: var(--arabic); font-size: 1.35em; direction: rtl; }
.copy-btn { position: absolute; right: 12px; bottom: 9px; border: 0; cursor: pointer; background: var(--peach); color: var(--orange); font: inherit; font-size: 13px; font-weight: 600; padding: 2px 14px; border-radius: 999px; }
.copy-btn:hover, .copy-btn.done { background: var(--orange); color: #fff; }
.tags.chips { margin-top: 24px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.share span { color: var(--muted); font-size: 15px; }
.share a, .share button { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.share a:hover, .share button:hover, .share button.done { border-color: var(--orange); color: var(--orange); }

/* Footer */
.site-footer { margin-top: 72px; background: var(--pattern), var(--navy); border-top: 4px solid var(--gold); color: #c9dccf; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid > div:not(:first-child) { border-left: 1px solid rgba(255, 255, 255, .08); padding-left: 28px; }
.site-footer h3 { color: #fff; font-size: 17px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; font-size: 14px; }
.site-footer a:hover { color: var(--gold-2); }
.footer-brand p { font-size: 15px; margin: 14px 0 0; max-width: 280px; }
.site-footer .muted { color: #9fb8a9; font-size: 14px; margin: 0 0 12px; }
.footer-search { display: flex; background: #fff; border-radius: 999px; padding: 4px; }
.footer-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 8px 14px; font: inherit; font-size: 14px; background: transparent; }
.footer-search button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; }
.copyright { text-align: right; font-size: 13px; color: #9fb8a9; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Responsive */
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .quote-grid { grid-template-columns: repeat(3, 1fr); }
    .quote-card.featured { grid-row: span 1; grid-column: span 3; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 0 18px; }
    .quote-card.featured .quote-img { grid-row: span 2; margin-bottom: 0; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .cta { display: none; }
}
@media (max-width: 900px) {
    .header-row { flex-wrap: wrap; gap: 10px; min-height: 64px; padding: 8px 16px; }
    .menu-toggle { display: block; }
    .header-actions { margin-left: auto; }
    .main-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; order: 3; padding-bottom: 10px; }
    .main-nav.open { display: flex; }
    .main-nav > a.active::after { display: none; }
    .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
    .has-sub > a::after { content: ''; }
    .hero-grid { grid-template-columns: 1fr; padding-top: 36px; }
    .hero-art { height: 400px; max-width: 460px; width: 100%; margin: 0 auto; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .quote-grid { grid-template-columns: repeat(2, 1fr); }
    .quote-card.featured { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:not(:first-child) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
    body { font-size: 15px; }
    .brand-name { font-size: 22px; }
    .logo-mark { width: 32px; height: 32px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .grid, .quote-grid { grid-template-columns: 1fr; }
    .quote-card.featured { grid-column: span 1; display: flex; }
    .quote-card.featured .quote-img { margin-bottom: 16px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .hero-art { height: 360px; }
    .arch { width: 220px; height: 310px; }
    .arch-inner { padding: 56px 16px 18px; }
    .arch .arabic { font-size: 23px; }
    .arch-bn { font-size: 19px; }
    .fc1 { top: auto; bottom: 10px; left: 0; }
    .fc2, .fc3 { display: none; }
    .lantern { display: none; }
    .float-card { width: 130px; font-size: 12px; padding: 10px 10px 8px; }
    .fc2 { right: 4px; }
    .hero-search { padding-left: 14px; }
    .hero-search .btn { padding: 10px 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .copyright { text-align: left; }
}
.draft-note { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; margin: 12px 0 0; }

/* Settings-driven bits */
.brand-logo { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.site-footer .brand-logo { height: 42px; }
.footer-email { font-size: 14px; margin: 10px 0 0 !important; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--orange); color: #fff; }

[hidden] { display: none !important; }

/* =====================================================================
   Single post / page
   ===================================================================== */
.post-hero { background: var(--pattern), linear-gradient(180deg, #eef6f0 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.post-hero-inner { max-width: 1200px; padding-top: 26px; padding-bottom: 30px; }
.crumbs { font-size: 13.5px; }
.crumb-current { color: var(--ink); opacity: .7; }
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.post-cats .chip { font-size: 13px; padding: 7px 13px; }
.post-title { font-family: var(--head); font-weight: 800; font-size: clamp(27px, 4vw, 42px); line-height: 1.35; margin: 12px 0 14px; max-width: 900px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: 14px; margin: 0; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .pm-site { color: var(--navy); font-weight: 600; }
.post-meta .pm-site .logo-mark { width: 24px; height: 24px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; padding-top: 32px; }
.page-layout { max-width: 840px; padding-top: 32px; }
.page-layout .post-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); }
.post-main { min-width: 0; }
.post-cover { margin: 0 0 28px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.content { font-size: 17.5px; line-height: 1.9; color: #24302a; }
.content > p:first-child { font-size: 18.5px; color: #33423a; }
.content h2 { font-size: 25px; color: var(--navy); padding: 4px 0 8px; border-bottom: 2px solid var(--line); position: relative; scroll-margin-top: 90px; }
.content h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 70px; height: 2px; background: var(--gold); }
.content h3 { font-size: 21px; color: #0b4a35; scroll-margin-top: 90px; }
.content h3::before { content: '✦ '; color: var(--gold); font-size: .8em; }
.content strong { color: var(--navy); }

/* ---- Caption cards ---- */
.content .cap-card {
    position: relative; list-style: none; margin: 0 0 16px; padding: 22px 22px 14px; text-align: center;
    background: linear-gradient(180deg, #fffdf7, #fff); border: 1px solid #ecdfb8; border-radius: 18px;
    box-shadow: 0 2px 4px rgba(11, 46, 34, .03), 0 10px 24px rgba(11, 46, 34, .05);
    font-size: 18px; line-height: 1.8; color: #1d2a23; font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.content .cap-card::before {
    content: '❝'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 26px; line-height: 30px; font-size: 22px; color: var(--gold); background: var(--bg); border-radius: 8px;
}
.content .cap-card:hover { border-color: var(--gold-2); box-shadow: 0 2px 4px rgba(11, 46, 34, .04), 0 14px 32px rgba(11, 46, 34, .09); }
.content blockquote.cap-card { border-left: 1px solid #ecdfb8; }
.content blockquote.cap-card p { margin: 0; }
.cap-share {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
    margin-top: 14px; padding-top: 12px; border-top: 1px dashed #eadfc2; font-weight: 400;
}
.cap-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.cs {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; min-width: 32px; padding: 0 9px;
    border-radius: 999px; border: 0; cursor: pointer; color: #fff; font: inherit; font-size: 12.5px; font-weight: 600;
    text-decoration: none !important; transition: transform .12s, filter .12s;
}
.cs:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cs.fb { background: #1877f2; }
.cs.wa { background: #25d366; }
.cs.x { background: #111; }
.cs.cp { background: var(--orange); padding: 0 13px; }
.cs.cp.done { background: var(--gold); }
.content .cs { color: #fff; }

/* ---- Table of contents ---- */
.toc { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 14px; padding: 14px 20px; margin: 8px 0 26px; box-shadow: var(--shadow); }
.toc summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 16px; }
.toc ol { margin: 10px 0 2px; padding-left: 22px !important; list-style: decimal !important; font-size: 15.5px; line-height: 1.7; }
.toc li { margin: 3px 0; }
.content .toc a { color: var(--ink); text-decoration: none; }
.content .toc a:hover { color: var(--orange); }

/* ---- Tags + share box ---- */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.pt-label { font-weight: 600; color: var(--navy); font-size: 14px; }
.share-box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 20px 22px;
    background: linear-gradient(135deg, #1d2d44, #0e1a2b); color: #fff; border-radius: 18px;
}
.share-box strong { font-family: var(--head); font-size: 19px; }
.share-box p { margin: 2px 0 0; font-size: 14px; opacity: .85; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sb {
    display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 999px; border: 0; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 600; background: #fff; color: var(--navy); transition: transform .12s;
}
.sb:hover { transform: translateY(-1px); }
.sb.fb svg { color: #1877f2; } .sb.wa svg { color: #25d366; } .sb.x svg { color: #111; } .sb.cp svg { color: var(--orange); }
.sb.done { background: var(--gold-2); }

/* ---- Sidebar ---- */
.post-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px; box-shadow: var(--shadow); }
.side-title { font-family: var(--head); font-size: 17px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pop-list { list-style: none; margin: 0; padding: 0; }
.pop-list li + li { border-top: 1px dashed var(--line); }
.pop-list a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.pop-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--peach); color: var(--orange); font-weight: 700; font-size: 14px; }
.pop-title { font-size: 14.5px; line-height: 1.55; font-weight: 600; color: var(--navy); }
.pop-list a:hover .pop-title { color: var(--orange); }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; }
.side-cats a:hover { background: var(--peach); color: var(--orange); }
.side-cats small { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; font-size: 12px; color: var(--muted); }
.side-cta { text-align: center; background: var(--pattern), var(--navy); color: #d6e6dc; border: 0; border-top: 4px solid var(--gold); }
.side-cta strong { display: block; color: #fff; font-family: var(--head); font-size: 17px; margin-top: 4px; }
.side-cta p { margin: 2px 0 12px; font-size: 14px; }
.side-cta-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(230, 195, 106, .15); color: var(--gold-2); font-size: 22px; }

@media (max-width: 1000px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-side { position: static; }
}
@media (max-width: 600px) {
    .post-hero-inner { padding-top: 18px; padding-bottom: 22px; }
    .content { font-size: 16.5px; }
    .content .cap-card { font-size: 16.5px; padding: 20px 14px 12px; }
    .cs { height: 34px; min-width: 34px; }
    .share-box { padding: 18px; }
    .sb span { display: none; }
    .sb { width: 44px; justify-content: center; padding: 0; }
    .page-layout .post-main { padding: 22px 18px; }
}

.sec-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tb); font-size: 20px; }
.cat-section + .cat-section { border-top: 1px dashed var(--line); margin-top: 24px; }


/* =====================================================================
   WikiLifeNG — newspaper / encyclopedia design
   ===================================================================== */
body { background: var(--bg); color: #1a1a1a; }
.wrap { max-width: 1180px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; color: var(--navy); }

/* Top bar */
.np-topbar { background: var(--navy); color: #d6d3cc; font-size: 12.5px; }
.np-topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.np-date { letter-spacing: .3px; }
.np-toplinks { display: flex; gap: 18px; flex-wrap: wrap; }
.np-toplinks a:hover { color: #fff; }
.np-toplink-cta { color: #fff; font-weight: 700; border-bottom: 2px solid var(--orange-2); }

/* Masthead */
.np-masthead { background: #fff; border-bottom: 1px solid var(--line); }
.np-masthead-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; padding-top: 22px; padding-bottom: 18px; }
.np-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.np-wordmark { font-family: var(--head); font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--navy); letter-spacing: -1px; }
.np-wordmark b { font-weight: 400; color: var(--orange); }
.np-tagline { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: #6b6b6b; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); padding: 4px 14px; }
.np-logo { height: 64px; width: auto; }
.np-brand.sm .np-wordmark { font-size: 40px; }
.np-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy); background: none; border: 0; cursor: pointer; }
.np-icon:hover { color: var(--orange); }
.np-masthead .menu-toggle { display: grid; visibility: hidden; }
.np-masthead .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 3px 0; }

/* Section bar */
.np-catbar { background: #fff; border-bottom: 3px double var(--navy); position: sticky; top: 0; z-index: 30; }
.np-catbar-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.np-catbar-inner > a { padding: 13px 16px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); position: relative; }
.np-catbar-inner > a:hover, .np-catbar-inner > a.active { color: var(--orange); }
.np-catbar-inner > a.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -3px; height: 3px; background: var(--orange); }

/* Shared bits */
.np-kicker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange); }
.np-byline { font-size: 12.5px; color: #6b6b6b; }
.np-muted { color: #6b6b6b; font-size: 14px; }
.np-label { font-family: 'Libre Franklin', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.np-noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; background: repeating-linear-gradient(45deg, #f1eee7, #f1eee7 10px, #ece8df 10px, #ece8df 20px); }
.np-noimg.lg { font-size: 80px; }
.np-search { display: flex; border: 2px solid var(--navy); background: #fff; max-width: 520px; }
.np-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 12px 14px; background: transparent; }
.np-search button { border: 0; cursor: pointer; font: inherit; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; color: #fff; background: var(--navy); padding: 0 22px; }
.np-search button:hover { background: var(--orange); }
.np-search.sm input { font-size: 14px; padding: 9px 11px; }
.np-search.sm button { padding: 0 14px; font-size: 12px; }

/* Front page */
.np-front { display: grid; grid-template-columns: 1.9fr 1.15fr 1fr; gap: 0; padding-top: 28px; }
.np-front > * { min-width: 0; padding: 0 22px; }
.np-front > *:first-child { padding-left: 0; }
.np-front > *:last-child { padding-right: 0; }
.np-front > * + * { border-left: 1px solid var(--line); }
.np-lead-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 14px; background: #eee; }
.np-lead-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .5s; }
.np-lead:hover .np-lead-img img { transform: scale(1.03); }
.np-lead h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin: 6px 0 10px; }
.np-lead h1 a:hover, .np-top-item h3 a:hover, .np-row h3 a:hover, .np-card .card-title a:hover { color: var(--orange); }
.np-dek { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: #3a3a3a; margin: 0 0 10px; }
.np-top-item { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.np-top-item:last-child { border-bottom: 0; margin-bottom: 0; }
.np-top-item h3 { font-size: 21px; line-height: 1.2; margin: 4px 0 6px; }
.np-top-item p { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: #4a4a4a; margin: 0; }
.np-most ol { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: none; }
.np-most li { border-bottom: 1px solid var(--line); }
.np-most li a { display: flex; gap: 12px; padding: 11px 0; align-items: flex-start; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.np-most li a:hover { color: var(--orange); }
.np-num { font-family: var(--head); font-size: 30px; line-height: .9; color: var(--orange); min-width: 22px; }

/* Welcome (no posts yet) */
.np-welcome { text-align: center; padding-top: 56px; padding-bottom: 40px; }
.np-welcome h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 12px 0 14px; }
.np-welcome h1 em { color: var(--orange); }
.np-welcome .np-dek { max-width: 640px; margin: 0 auto 26px; }
.np-welcome .np-search { margin: 0 auto; }

/* A–Z */
.np-az-band { margin-top: 40px; }
.np-az { display: flex; flex-wrap: wrap; gap: 6px; }
.np-az a { min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center; font-family: var(--head); font-size: 20px; color: var(--navy); background: #fff; border: 1px solid var(--line); transition: background .12s, color .12s; }
.np-az a:hover, .np-az a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-head .np-az { margin-top: 18px; }

/* Sections list */
.np-sections { margin-top: 36px; }
.np-section-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.np-section-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.np-section-list a:hover { background: var(--peach); }
.np-sec-icon { font-size: 20px; }
.np-sec-name { flex: 1; font-family: var(--head); font-size: 19px; color: var(--navy); }
.np-sec-count { font-size: 12px; font-weight: 700; color: #6b6b6b; }

/* Blocks */
.np-block { margin-top: 44px; }
.np-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 20px; }
.np-block-head h2 { font-size: 30px; margin: 0; }
.np-block-head a { font-size: 13px; font-weight: 700; color: var(--orange); white-space: nowrap; }

/* Cards: flat newspaper style */
.card.np-card { background: none; border: 0; box-shadow: none; border-radius: 0; }
.card.np-card:hover { transform: none; }
.np-card .card-img { aspect-ratio: 3 / 2; border-radius: 0; background: #eee; }
.np-card .card-img img { object-position: center 20%; }
.np-card .card-body { padding: 12px 0 0; gap: 6px; }
.np-card .card-title { font-family: var(--head); font-weight: 400; font-size: 21px; line-height: 1.2; }
.np-sum { font-family: var(--serif); font-size: 14.5px; line-height: 1.5; color: #4a4a4a; margin: 0; }
.grid { gap: 26px; }

/* Rows */
.np-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.np-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.np-row-img { flex-shrink: 0; width: 132px; height: 92px; overflow: hidden; background: #eee; }
.np-row-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.np-row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.np-row h3 { font-size: 19px; line-height: 1.25; margin: 0; }

/* Editors' note */
.np-note { margin-top: 56px; display: flex; align-items: center; gap: 20px; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--orange); }
.np-note-mark { font-family: var(--head); font-size: 44px; color: var(--orange); line-height: 1; }
.np-note div { flex: 1; }
.np-note strong { font-family: var(--head); font-weight: 400; font-size: 24px; color: var(--navy); }
.np-note p { margin: 4px 0 0; font-family: var(--serif); color: #4a4a4a; }
.np-note > a { font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--navy); padding: 13px 18px; white-space: nowrap; }
.np-note > a:hover { background: var(--orange); }

/* Archive head */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0 22px; }
.page-head h1 { font-family: var(--head); font-weight: 400; font-size: clamp(32px, 4.5vw, 50px); margin: 6px 0 8px; }
.page-head p { font-family: var(--serif); }
.page-head .np-search { margin-top: 16px; }

/* Footer */
.np-footer { margin-top: 72px; background: #f3f0e8; border-top: 3px double var(--navy); color: #3a3a3a; }
.np-footer-top { text-align: center; padding: 34px 0 20px; }
.np-footer-top p { max-width: 560px; margin: 10px auto 0; font-family: var(--serif); }
.np-footer-top .social { justify-content: center; }
.np-footer-top .social a { background: var(--navy); }
.np-az-footer { justify-content: center; padding: 16px 0; border-top: 1px solid #ddd7ca; border-bottom: 1px solid #ddd7ca; }
.np-az-footer a { min-width: 32px; height: 32px; font-size: 16px; }
.np-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 28px 0 34px; }
.np-footer h3 { font-family: 'Libre Franklin', sans-serif; font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 12px; }
.np-footer ul { list-style: none; margin: 0; padding: 0; }
.np-footer li { margin: 6px 0; font-size: 14.5px; }
.np-footer a:hover { color: var(--orange); }
.np-footer .np-muted { margin: 0 0 12px; }
.np-copy { background: var(--navy); color: #bdb8ad; font-size: 12.5px; padding: 12px 0; }

/* Biography page */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; padding-top: 32px; }
.bio-content a { color: var(--orange); }
.bio-content ul, .bio-content ol { padding-left: 22px; list-style: disc; }
.bio-content ol { list-style: decimal; }
.bio-content li { margin: 4px 0; }
.bio-content table { display: table; width: 100%; border-collapse: collapse; margin: 1.4em 0; background: #fff; }
.bio-content th, .bio-content td { border: 0; border-bottom: 1px solid #e3dfd6; padding: 10px 14px; text-align: left; vertical-align: top; }
.bio-content tr:last-child td, .bio-content tr:last-child th { border-bottom: 0; }
.bio-content tr td:first-child, .bio-content th { width: 36%; font-weight: 700; color: var(--navy); }
.post-hero { background: #fff; border-bottom: 1px solid var(--line); }
.post-hero-inner { text-align: center; max-width: 900px; }
.post-hero .crumbs, .post-cats, .post-meta { justify-content: center; }
.post-cats .chip { border-radius: 0; background: none; color: var(--orange); font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; font-size: 12px; padding: 0 6px; }
.post-title { font-family: var(--head); font-weight: 400; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; margin-left: auto; margin-right: auto; }
.post-meta .pm-site { display: none; }
.post-cover { border-radius: 0; box-shadow: none; border: 0; }
.post-cover img { aspect-ratio: 16 / 9; }
.bio-content { font-family: var(--serif); font-size: 19px; line-height: 1.75; color: #222; }
.bio-content > p:first-of-type::first-letter { font-family: var(--head); float: left; font-size: 4.2em; line-height: .85; padding: 6px 10px 0 0; color: var(--orange); }
.bio-content h2 { font-family: var(--head); font-weight: 400; font-size: 31px; border-bottom: 1px solid var(--line); }
.bio-content h2::after { background: var(--navy); }
.bio-content h3 { font-family: var(--head); font-weight: 400; font-size: 23px; }
.bio-content h3::before { display: none; }
.bio-content table { border-radius: 0; box-shadow: none; border: 1px solid #cfc9bc; font-family: 'Libre Franklin', sans-serif; font-size: 15px; }
.bio-content table caption { font-weight: 800; }
.bio-content tr td:first-child, .bio-content th { background: #f3f0e8; }
.bio-content blockquote { font-family: var(--head); font-style: italic; font-size: 24px; line-height: 1.4; border-left: 0; border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); border-radius: 0; background: none; text-align: center; padding: 18px 10px; }
.toc { border-radius: 0; box-shadow: none; border: 1px solid var(--line); border-left: 4px solid var(--navy); font-family: 'Libre Franklin', sans-serif; }
.post-tags .chip { border-radius: 0; }
.share-box { border-radius: 0; background: var(--navy); }
.share-box strong { font-family: var(--head); font-weight: 400; font-size: 22px; }
.sb { border-radius: 0; }
.side-card { border-radius: 0; box-shadow: none; border: 0; border-top: 2px solid var(--navy); padding: 12px 0 8px; background: none; }
.side-title { font-family: 'Libre Franklin', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; border-bottom: 0; }
.pop-num { background: none; color: var(--orange); font-family: var(--head); font-size: 26px; width: auto; }
.pop-title { font-family: var(--head); font-weight: 400; font-size: 17px; }
.side-cta { background: var(--navy); border-top: 0; padding: 20px 18px; }
.side-cta strong { font-weight: 400; }
.side-cta .footer-search { border-radius: 0; }
.side-cta .footer-search button { border-radius: 0; }
.side-cats a { border-radius: 0; }
.content .contact-box { border-radius: 0; box-shadow: none; }
.pagination li a, .pagination li span { border-radius: 0; }

@media (max-width: 1000px) {
    .np-front { grid-template-columns: 1fr 1fr; }
    .np-lead { grid-column: 1 / -1; padding: 0 0 22px !important; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
    .np-front > .np-top { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
    .np-masthead .menu-toggle { visibility: visible; }
    .np-catbar { position: static; }
    .np-catbar-inner { display: none; flex-direction: column; align-items: stretch; }
    .np-catbar-inner.open { display: flex; }
    .np-catbar-inner > a { border-bottom: 1px solid var(--line); text-align: center; }
    .np-catbar-inner > a.active::after { display: none; }
    .np-toplinks { display: none; }
}
@media (max-width: 1000px) {
    .post-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .np-tagline { font-size: 10px; letter-spacing: 1.2px; padding: 3px 6px; }
    .np-masthead-row { grid-template-columns: 36px 1fr 36px; padding-top: 16px; padding-bottom: 14px; }
    .np-wordmark { font-size: 40px; }
    .np-front { grid-template-columns: 1fr; }
    .np-front > * { padding: 0 !important; border-left: 0 !important; }
    .np-most { margin-top: 22px; }
    .np-rows { grid-template-columns: 1fr; }
    .np-row-img { width: 104px; height: 78px; }
    .np-footer-cols { grid-template-columns: 1fr; gap: 18px; }
    .np-note { flex-direction: column; align-items: flex-start; }
    .np-az a { min-width: 34px; height: 34px; font-size: 17px; }
    .bio-content { font-size: 17.5px; }
}

/* A–Z ribbon */
.az-ribbon { display: flex; align-items: stretch; background: var(--navy); color: #fff; overflow: hidden; }
.az-title { flex-shrink: 0; display: flex; align-items: center; padding: 0 18px; background: var(--orange); font-family: var(--head); font-size: 22px; letter-spacing: .5px; }
.az-letters { flex: 1; display: flex; overflow-x: auto; scrollbar-width: none; }
.az-letters::-webkit-scrollbar { display: none; }
.az-l { flex: 1 0 auto; min-width: 34px; display: grid; place-items: center; padding: 13px 4px; font-family: var(--head); font-size: 20px; line-height: 1; color: #fff; position: relative; transition: background .12s, color .12s; }
a.az-l:hover { background: rgba(255, 255, 255, .1); color: var(--gold-2); }
.az-l.off { color: rgba(255, 255, 255, .28); cursor: default; }
.az-l.on { color: #fff; background: rgba(255, 255, 255, .12); }
.az-l.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; background: var(--orange-2); }
.az-hint { margin: 8px 0 0; font-size: 13px; color: #6b6b6b; }
.az-wrap { margin-top: 18px; }
/* footer variant */
.az-ribbon.light { background: transparent; color: var(--navy); border-top: 1px solid #ddd7ca; border-bottom: 1px solid #ddd7ca; }
.az-ribbon.light .az-title { background: transparent; color: var(--orange); padding-left: 0; }
.az-ribbon.light .az-l { color: var(--navy); font-size: 17px; padding: 11px 2px; }
.az-ribbon.light a.az-l:hover { background: transparent; color: var(--orange); }
.az-ribbon.light .az-l.off { color: #c4bdae; }
.az-ribbon.light .az-letters { -webkit-mask-image: none; mask-image: none; }
.az-footer { padding: 6px 0 0; }
@media (max-width: 900px) {
    .az-ribbon:not(.light) .az-letters { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
@media (max-width: 700px) {
    .az-title { padding: 0 12px; font-size: 18px; }
    .az-l { min-width: 38px; font-size: 18px; }
}

/* A–Z dropdown */
.az-dd { position: relative; display: inline-block; }
.az-dd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; user-select: none; }
.az-dd summary::-webkit-details-marker { display: none; }
.az-caret { transition: transform .15s; }
.az-dd[open] .az-caret { transform: rotate(180deg); }
/* button style (home / archive) */
.az-dd:not(.menu) summary { height: 48px; padding: 0 18px; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border: 2px solid var(--navy); }
.az-dd:not(.menu) summary:hover, .az-dd:not(.menu)[open] summary { background: var(--orange); border-color: var(--orange); }
/* menu style (section bar) */
.az-dd.menu summary { padding: 13px 16px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); position: relative; }
.az-dd.menu summary:hover, .az-dd.menu[open] summary, .az-dd.menu summary.active { color: var(--orange); }
.az-panel {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 330px; padding: 16px;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange); box-shadow: 0 18px 40px rgba(17, 17, 17, .14);
    text-align: left;
}
.az-dd.menu .az-panel { left: 50%; transform: translateX(-50%); top: 100%; }
.az-panel-title { margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #6b6b6b; }
.az-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.az-grid a, .az-grid span { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--line); color: var(--navy); transition: background .12s, color .12s, border-color .12s; }
.az-grid b { font-family: var(--head); font-weight: 400; font-size: 19px; line-height: 1; }
.az-grid small { font-size: 9.5px; color: #8a8a8a; margin-top: 2px; }
.az-grid a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.az-grid a:hover small { color: #cfcfcf; }
.az-grid a.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.az-grid a.on small { color: #ffd9d9; }
.az-grid .off { color: #c9c3b6; background: #faf8f4; cursor: default; }
.az-grid .off small { color: #d6d0c3; }
.az-panel-all { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--orange); }

/* Finder bar on home */
.np-finder { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-top: 3px double var(--navy); }
.np-finder-label { font-family: var(--head); font-size: 24px; color: var(--navy); margin-right: 6px; }
.np-finder .np-search { flex: 1; min-width: 240px; max-width: none; }
.np-finder .np-search input { padding: 11px 14px; }
.np-finder-or { font-size: 13px; color: #8a8a8a; font-style: italic; }
.np-finder .az-panel { left: auto; right: 0; }
@media (max-width: 900px) {
    .az-dd.menu { display: block; }
    .az-dd.menu summary { width: 100%; justify-content: center; border-bottom: 1px solid var(--line); }
    .az-dd.menu .az-panel { position: static; transform: none; width: auto; box-shadow: none; border-left: 0; border-right: 0; }
}
@media (max-width: 600px) {
    .np-finder { padding: 16px; }
    .np-finder-or { display: none; }
    .np-finder .az-dd, .np-finder .az-dd summary { width: 100%; justify-content: center; }
    .np-finder .az-panel { left: 0; right: auto; width: 100%; }
    .az-panel { width: min(330px, calc(100vw - 32px)); }
}

/* =====================================================================
   3D controls: hard offset shadows that lift on hover and press on click
   ===================================================================== */
:root { --d3: #111111; }
.np-search {
    border: 2px solid var(--d3); background: #fff;
    box-shadow: 5px 5px 0 var(--d3);
    transition: transform .14s ease, box-shadow .14s ease;
}
.np-search:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--d3); }
.np-search:focus-within { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--orange); }
.np-search input { font-size: 16px; }
.np-search input::placeholder { color: #8b8578; }
.np-search button {
    position: relative; border-left: 2px solid var(--d3); background: var(--orange); color: #fff;
    font-weight: 800; letter-spacing: 1.2px; padding: 0 24px; transition: background .12s;
}
.np-search button:hover { background: var(--d3); }
.np-search button:active { transform: translate(1px, 1px); }
.np-search.sm { box-shadow: 3px 3px 0 var(--d3); }
.np-search.sm:hover { box-shadow: 4px 4px 0 var(--d3); }
.np-search.sm:focus-within { box-shadow: 5px 5px 0 var(--orange); }

/* 3D button: Browse A–Z */
.az-dd:not(.menu) summary {
    height: 52px; padding: 0 20px; gap: 10px;
    background: var(--d3); color: #fff; border: 2px solid var(--d3);
    box-shadow: 5px 5px 0 var(--orange);
    transition: transform .14s ease, box-shadow .14s ease, background .12s;
}
.az-dd:not(.menu) summary:hover { background: var(--d3); border-color: var(--d3); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--orange); }
.az-dd:not(.menu) summary:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--orange); }
.az-dd:not(.menu)[open] summary { background: var(--orange); border-color: var(--d3); box-shadow: 5px 5px 0 var(--d3); }
.az-dd:not(.menu) .az-panel { top: calc(100% + 12px); border: 2px solid var(--d3); border-top: 2px solid var(--d3); box-shadow: 6px 6px 0 var(--d3); }
.az-dd.menu .az-panel { border: 2px solid var(--d3); border-top: 3px solid var(--orange); box-shadow: 6px 6px 0 var(--d3); }
.az-grid a { box-shadow: 2px 2px 0 #e3dfd6; }
.az-grid a:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--orange); }

/* 3D button: editors' note */
.np-note > a { border: 2px solid var(--d3); box-shadow: 4px 4px 0 var(--orange); transition: transform .14s, box-shadow .14s, background .12s; }
.np-note > a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); background: var(--d3); }
.np-note > a:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--orange); }

/* Finder & welcome layouts with room for the shadows */
.np-finder { gap: 18px; padding: 20px 26px 24px 22px; }
.np-finder .np-search input { height: 48px; }
.np-finder-or { padding: 0 2px; }
.np-welcome-tools { display: flex; justify-content: center; align-items: stretch; gap: 18px; flex-wrap: wrap; max-width: 760px; margin: 0 auto; }
.np-welcome-tools .np-search { flex: 1; min-width: 260px; max-width: 520px; margin: 0; }
.np-welcome-tools .np-search input { height: 48px; }
.np-welcome-tools .az-panel { left: auto; right: 0; }
@media (max-width: 600px) {
    .np-welcome-tools { flex-direction: column; }
    .np-welcome-tools .np-search { max-width: none; width: 100%; min-width: 0; flex: none; }
    .np-welcome-tools .np-search input { width: 100%; }
    .np-welcome-tools .az-dd, .np-welcome-tools .az-dd summary { width: 100%; justify-content: center; }
    .np-welcome-tools .az-panel { left: 0; right: auto; width: 100%; }
}
