/* IslamiCaption — Islamic theme (emerald + gold on ivory) */
:root {
    --bg: #fbf8f0;
    --surface: #ffffff;
    --navy: #0b2e22;          /* deep green ink (headings, footer) */
    --ink: #1f2a24;
    --muted: #66746c;
    --line: #ebe3cc;
    --orange: #0f8a5f;        /* primary accent — emerald */
    --orange-2: #1fae79;
    --peach: #eaf5ee;
    --gold: #c99a2e;
    --gold-2: #e6c36a;
    --radius: 16px;
    --shadow: 0 2px 6px rgba(11, 46, 34, .04), 0 12px 32px rgba(11, 46, 34, .07);
    --head: 'Noto Serif Bengali', 'Noto Sans Bengali', serif;
    --arabic: 'Amiri', 'Noto Naskh Arabic', serif;
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230f8a5f' stroke-opacity='.09' stroke-width='1.2'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Cpath d='M0 32h12M52 32h12M32 0v12M32 52v12'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', system-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: linear-gradient(135deg, #0b6b49, var(--orange)); color: #fff; box-shadow: 0 6px 16px rgba(15, 138, 95, .28); }
.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(--gold); background: rgba(255, 253, 247, .94); 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(--gold); 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: #0f8a5f; --tb: #e2f3e9; }
.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: var(--pattern), linear-gradient(160deg, #0f8a5f 0%, #0b5d41 60%, #082f22 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: var(--pattern), linear-gradient(135deg, #0f8a5f, #0b5d41); 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; }
}

/* Home: category post sections */
.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; }

/* =====================================================================
   Home page v2
   ===================================================================== */
.h-hero {
    position: relative; color: #fff; text-align: center; overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(230, 195, 106, .22), transparent 60%), var(--pattern), linear-gradient(170deg, #0f7a55 0%, #0b5d41 45%, #072e21 100%);
}
.h-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(7, 46, 33, .35)); pointer-events: none; }
.h-hero-inner { position: relative; z-index: 1; max-width: 900px; padding-top: 64px; padding-bottom: 120px; }
.h-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(230, 195, 106, .45); color: var(--gold-2); }
.h-hero h1 { font-family: var(--head); font-weight: 800; color: #fff; font-size: clamp(32px, 5.2vw, 58px); line-height: 1.3; margin: 20px 0 14px; }
.h-hero h1 span { color: var(--gold-2); display: inline-block; }
.h-lead { font-size: 18px; line-height: 1.75; color: #d7e9de; max-width: 640px; margin: 0 auto 30px; }
.h-search {
    display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 0 auto; padding: 7px 7px 7px 22px;
    background: #fff; border-radius: 999px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); color: var(--muted);
}
.h-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16.5px; color: var(--ink); background: transparent; padding: 10px 0; }
.h-search button { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15.5px; color: #3a2a00; padding: 13px 28px; border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 16px rgba(201, 154, 46, .35); }
.h-search button:hover { filter: brightness(1.05); }
.h-topics { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: #b8d4c4; }
.h-topics a { padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: background .15s; }
.h-topics a:hover { background: rgba(230, 195, 106, .25); }
.h-stats { display: flex; justify-content: center; gap: 0; margin: 34px auto 0; max-width: 560px; }
.h-stats > div { flex: 1; display: flex; flex-direction: column; padding: 0 10px; }
.h-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .15); }
.h-stats strong { font-family: var(--head); font-size: 26px; color: var(--gold-2); line-height: 1.2; }
.h-stats span { font-size: 13.5px; color: #c4dccd; }

/* Today's status, overlapping the hero */
.h-today-wrap { position: relative; z-index: 2; margin-top: -78px; }
.h-today {
    max-width: 860px; margin: 0 auto; background: #fffdf7; border-radius: 24px; padding: 26px 32px 22px; text-align: center;
    border: 1px solid #efe2bd; box-shadow: 0 24px 60px rgba(11, 46, 34, .18);
}
.h-today-badge { display: inline-flex; align-items: center; gap: 10px; text-align: left; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--peach); }
.h-today-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--gold-2); font-size: 15px; }
.h-today-badge strong { display: block; font-size: 14.5px; color: var(--navy); line-height: 1.2; }
.h-today-badge small { font-size: 12px; color: var(--muted); }
.h-today blockquote { font-family: var(--head); font-weight: 700; font-size: clamp(21px, 2.8vw, 30px); line-height: 1.6; color: var(--navy); margin: 18px auto 18px; max-width: 720px; }
.h-today-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed #e6d7ac; }
.h-today-src { font-size: 14px; font-weight: 600; color: var(--orange); }
.h-today-actions { display: flex; gap: 8px; margin-left: auto; }
.h-today-actions .cs { height: 38px; min-width: 38px; }
.h-today-actions .cs.cp { padding: 0 16px; font-size: 14px; }

/* Section heads */
.h-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.h-head h2 { font-family: var(--head); font-weight: 800; font-size: clamp(23px, 3vw, 31px); line-height: 1.35; margin: 2px 0 0; }
.h-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold); }
.h-kicker::before { content: '✦'; font-size: 11px; }
.h-more { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--orange); padding: 8px 16px; border-radius: 999px; background: var(--peach); transition: background .15s; }
.h-more:hover { background: #d9efe2; }
.h-head.light h2 { color: #fff; }
.h-head.light .h-more { background: rgba(255, 255, 255, .1); color: var(--gold-2); }
.h-head-icon { display: flex; align-items: center; gap: 14px; }

/* Category tiles */
.h-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.h-cat {
    display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.h-cat:hover { transform: translateY(-3px); border-color: var(--t, var(--gold)); }
.h-cat-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: var(--tb); }
.h-cat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-cat-text strong { color: var(--navy); font-size: 16px; line-height: 1.35; }
.h-cat-text small { color: var(--muted); font-size: 13px; }
.h-cat-arrow { color: #c3cdc7; font-size: 18px; transition: transform .15s, color .15s; }
.h-cat:hover .h-cat-arrow { color: var(--t, var(--orange)); transform: translateX(3px); }

/* Popular status band */
.h-band { margin-top: 56px; padding: 52px 0 56px; background: var(--pattern), linear-gradient(160deg, #0b5d41, #072e21); }
.h-quotes { columns: 3 280px; column-gap: 18px; }
.h-quote {
    break-inside: avoid; margin: 0 0 18px; padding: 22px 22px 16px; border-radius: 20px; background: #fffdf7;
    border-top: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); display: flex; flex-direction: column;
}
.h-quote-mark { font-size: 34px; line-height: .8; color: var(--gold); }
.h-quote p { font-family: var(--head); font-weight: 600; font-size: 18.5px; line-height: 1.7; color: var(--navy); margin: 6px 0 14px; }
.h-quote p a:hover { color: var(--orange); }
.h-quote footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed #eadfc2; }
.h-quote-cat { font-size: 12.5px; font-weight: 600; color: var(--orange); background: var(--peach); padding: 4px 11px; border-radius: 999px; }
.h-quote-actions { display: flex; gap: 6px; margin-left: auto; }

/* Magazine layout */
.h-mag { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
.h-lead-post { position: relative; display: block; border-radius: 22px; overflow: hidden; min-height: 400px; background: var(--navy); box-shadow: var(--shadow); }
.h-lead-img, .h-lead-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-lead-img img { transition: transform .4s; }
.h-lead-post:hover .h-lead-img img { transform: scale(1.04); }
.h-noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; background: var(--pattern), linear-gradient(150deg, #0f8a5f, #072e21); }
.h-noimg.sm { font-size: 30px; }
.h-lead-body {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 24px; color: #fff; display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
    background: linear-gradient(180deg, transparent, rgba(5, 30, 21, .92) 55%);
}
.h-lead-body strong { font-family: var(--head); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.4; }
.h-lead-sum { font-size: 15px; color: #d3e4da; line-height: 1.6; }
.h-lead-body .h-meta { color: #b6cdbf; }
.h-meta { font-size: 13px; color: var(--muted); }
.h-side-list { display: flex; flex-direction: column; gap: 14px; }
.h-mini { display: flex; gap: 14px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); flex: 1; transition: border-color .15s; }
.h-mini:hover { border-color: var(--gold-2); }
.h-mini-img { flex-shrink: 0; width: 120px; height: 92px; border-radius: 14px; overflow: hidden; background: var(--peach); }
.h-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.h-mini-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.h-mini-cat { font-size: 12px; font-weight: 700; color: var(--gold); }
.h-mini-body strong { color: var(--navy); font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-mini:hover strong { color: var(--orange); }
.h-rest { margin-top: 22px; }

/* CTA */
.h-cta {
    margin-top: 60px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 30px 34px;
    border-radius: 24px; background: linear-gradient(120deg, #fff6dc, #fdf0c9); border: 1px solid #efd89a;
}
.h-cta strong { display: block; font-family: var(--head); font-size: 22px; color: var(--navy); }
.h-cta p { margin: 4px 0 0; color: #5d5130; }
.h-cta-btn { background: var(--navy); color: #fff; }
.h-cta-btn:hover { background: var(--orange); }

@media (max-width: 1000px) {
    .h-cats { grid-template-columns: repeat(2, 1fr); }
    .h-mag { grid-template-columns: 1fr; }
    .h-lead-post { min-height: 340px; }
}
@media (max-width: 600px) {
    .h-hero-inner { padding-top: 40px; padding-bottom: 104px; }
    .h-lead { font-size: 16px; }
    .h-search { padding-left: 16px; }
    .h-search button { padding: 11px 18px; }
    .h-stats strong { font-size: 21px; }
    .h-today { padding: 20px 18px 16px; border-radius: 20px; }
    .h-today-foot { justify-content: center; }
    .h-today-actions { margin: 0 auto; }
    .h-cats { grid-template-columns: 1fr; }
    .h-head { flex-direction: column; align-items: flex-start; }
    .h-mini-img { width: 96px; height: 76px; }
    .h-cta { padding: 24px 20px; }
}
