/* =====================================================================
   NorthEast Pulse – public site
   Palette inspired by tea gardens, handloom weaves and hill light.
   ===================================================================== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
    --ink: #16211c;
    --ink-soft: #46524c;
    --muted: #5a6660;
    --line: #e3e7e4;
    --mist: #f1f5f2;
    --paper: #ffffff;
    --cream: #f6efe1;
    --green: #1f5d45;
    --green-deep: #12241c;
    --marigold: #d98e04;
    --gold: #f2c14e;
    --maroon: #8e2a2a;
    --tone: var(--green);
    --radius: 14px;
    --shadow: 0 2px 10px rgba(22, 33, 28, .08);
    --shadow-lift: 0 16px 34px rgba(22, 33, 28, .16);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    --wrap: 1280px;
}

/* State and section colours (white text passes WCAG AA on each). */
.tone-arunachal { --tone: #a63d17; }
.tone-assam     { --tone: #1f6b3a; }
.tone-manipur   { --tone: #7a2e5a; }
.tone-meghalaya { --tone: #23577a; }
.tone-mizoram   { --tone: #4f6b1e; }
.tone-nagaland  { --tone: #8e2a2a; }
.tone-sikkim    { --tone: #5b4aa0; }
.tone-tripura   { --tone: #8f4a16; }
.tone-bengal    { --tone: #75561a; }
.tone-news      { --tone: #1e40af; }
.tone-sports    { --tone: #9a3412; }
.tone-travel    { --tone: #0f766e; }
.tone-culture   { --tone: #9d174d; }
.tone-opinion   { --tone: #374151; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.wrap.narrow { margin: 0 auto; }
.section-pad { padding-top: 40px; padding-bottom: 56px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hidden SVG icon sprite (inline styles are blocked by the CSP) */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Tea garden rule: green band with a thin gold line */
.weave {
    height: 9px;
    background: linear-gradient(to bottom, var(--green) 0 6px, var(--gold) 6px 9px);
}

/* Buttons and labels */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; transition: background .2s; }
.button:hover { background: var(--green-deep); color: #fff; }
.label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; line-height: 1.3; }
.label--tone { background: var(--tone); color: #fff; }
.label--tone:hover { color: #fff; filter: brightness(1.12); }
.label--lead { background: var(--marigold); color: var(--ink); }

/* ---------------- Header ---------------- */
.topbar { background: var(--green-deep); color: #e2ebe5; font-size: 14px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 7px; padding-bottom: 7px; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.topbar__links a:hover { color: var(--gold); }
.topbar__tag { color: var(--gold); font-weight: 600; }

.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 26px; padding-bottom: 22px; }
.brand { display: inline-flex; flex-direction: column; gap: 6px; }
.brand:hover { color: inherit; }
.brand__name { font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -0.025em; color: var(--ink); }
.brand__accent { color: var(--green); }
.brand__tagline { font-size: 12.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

.search { position: relative; display: flex; align-items: center; width: min(380px, 100%); }
.search__input { width: 100%; height: 46px; padding: 0 52px 0 20px; border: 1px solid #cbd3ce; border-radius: 999px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.search__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 93, 69, .15); }
.search__button { position: absolute; right: 5px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; max-height: 420px; overflow: auto; }
.search__item { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; }
.search__item:hover, .search__item[aria-selected="true"] { background: var(--mist); color: var(--ink); }
.search__item-title { font-weight: 700; line-height: 1.3; }
.search__item-meta, .search__empty { font-size: 13px; color: var(--muted); }
.search__empty { margin: 0; padding: 10px 12px; }
.search--page { width: 100%; gap: 10px; margin: 0 0 28px; }
.search--page .search__input { padding-right: 20px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.nav.is-stuck { box-shadow: 0 6px 18px rgba(22, 33, 28, .1); }
.nav__inner { position: relative; }
.nav__menu { display: flex; gap: 4px 17px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav__menu::-webkit-scrollbar { display: none; }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 14px 0 12px; font-weight: 700; font-size: 14.5px; border-bottom: 3px solid transparent; }
.nav__link:hover { color: var(--tone); }
.nav__link.is-active { color: var(--tone); border-bottom-color: var(--tone); }
.nav__link .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.nav__divider { width: 1px; background: var(--line); margin: 12px 0; }
.nav__toggle { display: none; }

/* ---------------- Story cards ---------------- */
.story { position: relative; display: flex; flex-direction: column; background: var(--paper); }
.story__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--mist); aspect-ratio: 16 / 10; }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story:hover .story__media img { transform: scale(1.05); }
.story__badge { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 4px; background: rgba(18, 36, 28, .85); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.story__badge--video { background: #b91c1c; }
.story__body { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.story__labels { display: flex; flex-wrap: wrap; gap: 6px; }
.story__title { font-size: 21px; font-weight: 700; }
.story__title a:hover { color: var(--tone); }
.story__summary { margin: 0; color: var(--ink-soft); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }

.story--standard { border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.story--standard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.story--standard .story__media { border-radius: 0; }
.story--standard .story__body { padding: 16px 20px 20px; }

.story--lead, .story--overlay { border-radius: 18px; overflow: hidden; color: #fff; min-height: 100%; }
.story--lead .story__media, .story--overlay .story__media { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.story--lead .story__media::after, .story--overlay .story__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 15, 0) 25%, rgba(10, 20, 15, .55) 55%, rgba(10, 20, 15, .92) 100%); }
.story--lead .story__body, .story--overlay .story__body { position: relative; margin-top: auto; padding: 32px; z-index: 1; }
.story--lead { min-height: 520px; }
.story--lead .story__title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.06; }
.story--lead .story__title a:hover, .story--overlay .story__title a:hover { color: var(--gold); }
.story--lead .story__summary { color: #e4ece7; font-size: 18px; max-width: 640px; }
.story--lead .story__meta, .story--overlay .story__meta { color: #cfdad3; }
.story--overlay { min-height: 250px; }
.story--overlay .story__body { padding: 22px; }
.story--overlay .story__title { font-size: 24px; }

.story--compact { flex-direction: row; padding: 14px 0; border-top: 1px solid var(--line); }
.story--compact .story__body { padding: 0; gap: 4px; }
.story--compact .story__title { font-size: 17px; }
.story--compact .label { background: none; color: var(--tone); padding: 0; }

.story--row { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.story--row .story__body { padding: 0; }

/* ---------------- Homepage ---------------- */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; padding-top: 28px; }
.front__side { display: grid; gap: 20px; }

.trending { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; padding: 14px 20px; border-radius: 12px; background: var(--mist); }
.trending__label { background: var(--green); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.trending__list { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 15.5px; }
.trending__list li + li::before { content: "/"; color: #9aa59f; margin-right: 22px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 56px 0 22px; }
.section-head__title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.section-head__more { font-weight: 700; color: var(--green); white-space: nowrap; }
.section-head--toned { border-bottom: 3px solid var(--tone); padding-bottom: 10px; margin-top: 48px; }
.section-head--toned .section-head__title a { color: var(--tone); }
.section-head--toned .section-head__more { color: var(--tone); }
.section-head--light .section-head__title { color: #fff; }
.section-head--light .section-head__more { color: var(--gold); }

.states__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.state-tile { position: relative; display: flex; align-items: flex-end; height: 170px; border-radius: var(--radius); overflow: hidden; background: var(--tone); color: #fff; isolation: isolate; }
.state-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.state-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.6)); }
.state-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--tone); }
.state-tile:hover { color: #fff; }
.state-tile:hover img { transform: scale(1.07); }
.state-tile__body { padding: 18px 20px 20px; }
.state-tile__name { display: block; font-family: var(--serif); font-weight: 800; font-size: 25px; line-height: 1.1; }
.state-tile__capital { display: block; font-size: 14px; opacity: .92; margin-top: 4px; }

.shelf { margin-top: 56px; padding: 8px 0 48px; background: var(--green-deep); }
.shelf .section-head { margin-top: 40px; }
.shelf__row { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 22px; overflow-x: auto; padding: 4px 4px 14px; scrollbar-width: thin; }
.shelf__row--wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; }
.doc { display: flex; flex-direction: column; gap: 10px; }
.doc__cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 18px 16px 16px 26px; border-radius: 4px 12px 12px 4px; background: var(--tone); color: #fff; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transition: transform .3s ease, box-shadow .3s ease; isolation: isolate; }
.doc__cover:hover { color: #fff; transform: translateY(-6px) rotate(-1deg); box-shadow: 0 20px 36px rgba(0, 0, 0, .4); }
.doc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.doc__cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.75)); }
.doc__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.15)); }
.doc__kind { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.doc__title { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.15; margin-top: 6px; }
.doc__brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: 12px; }
.doc__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.shelf .doc__meta { color: #b8c7be; }
.doc__read { font-weight: 700; color: var(--green); }
.shelf .doc__read { color: var(--gold); }

.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-bottom: 64px; }
.with-sidebar__aside { display: flex; flex-direction: column; gap: 28px; padding-top: 56px; }
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.category-block__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 28px; }
.category-block__grid .story--standard { grid-row: span 3; }

.panel { padding: 22px; border-radius: var(--radius); background: var(--mist); }
.panel__title { font-size: 22px; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--green); }
.ranked { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ranked__item { display: flex; gap: 14px; align-items: flex-start; }
.ranked__num { font-family: var(--serif); font-weight: 800; font-size: 36px; line-height: .9; color: var(--green); min-width: 30px; }
.ranked__title { display: block; font-weight: 700; line-height: 1.3; }
.ranked__meta { display: block; font-size: 13px; font-weight: 700; color: var(--tone); margin-top: 3px; }
.video-list { display: grid; gap: 18px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--tone); }
.chip:hover { background: var(--tone); color: #fff; border-color: var(--tone); }

/* ---------------- Category page ---------------- */
.page-head { position: relative; padding: 40px 0 34px; background: var(--tone); color: #fff; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 14px, transparent 14px 20px); }
.page-head__title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.page-head__summary { margin: 10px 0 0; font-size: 18px; max-width: 680px; opacity: .95; }
.page-head__fact { margin: 8px 0 0; font-weight: 700; color: var(--gold); }
.crumbs { font-size: 14px; margin-bottom: 10px; opacity: .9; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.page-head .crumbs a:hover { color: var(--gold); }
.category-lead { margin: 32px 0 26px; }
.category-lead .story--lead { min-height: 440px; }
.list { display: flex; flex-direction: column; }
.empty-state { padding: 56px 0; text-align: center; }
.empty-state h1, .empty-state h2 { font-size: 30px; margin-bottom: 10px; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.pager__step { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; }
.pager__step:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pager__step.is-disabled { opacity: .4; }
.pager__status { color: var(--muted); font-size: 14px; }

/* ---------------- Article ---------------- */
.article__head > * { max-width: 900px; }
.article__head { padding-top: 36px; padding-bottom: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.article__head .crumbs { color: var(--muted); margin: 0; }
.article__title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; line-height: 1.08; }
.article__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: var(--muted); font-size: 15px; }
.article__meta a { color: var(--tone); font-weight: 700; }
.article__media { margin-bottom: 8px; }
.article__image { width: 100%; max-height: 580px; object-fit: cover; border-radius: 18px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article .with-sidebar__aside { padding-top: 32px; }
.article__body { max-width: 760px; padding-top: 26px; font-size: 19px; line-height: 1.75; }
.article__source { max-width: 760px; margin-top: 4px; color: var(--muted, #64748b); font-size: 15px; }
.article__source strong { color: inherit; font-weight: 700; }
.article__body p:first-child::first-letter { float: left; font-family: var(--serif); font-weight: 800; font-size: 64px; line-height: .9; padding: 6px 10px 0 0; color: var(--tone); }
.article__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.like, .share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; font-size: 15px; }
.like:hover, .share:hover { border-color: var(--green); color: var(--green); }
.share svg { flex: none; }
.share--icon { width: 44px; padding: 0; justify-content: center; }
.share--whatsapp:hover { border-color: #1a8f4c; color: #1a8f4c; }
.share--facebook:hover { border-color: #1877f2; color: #1877f2; }
.share--x:hover { border-color: #000; color: #000; }
.like.is-liked { background: #fde8e8; border-color: #f3b4b4; color: #b42318; }
.like__count { padding: 1px 8px; border-radius: 999px; background: var(--mist); font-size: 13px; color: var(--ink); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.prevnext__item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--mist); font-weight: 700; line-height: 1.3; }
.prevnext__item span { font-size: 13px; color: var(--muted); font-weight: 600; }
.prevnext__item--next { text-align: right; grid-column: 2; }

/* PDF reader frame (viewer styles live in flipbook.css) */
.reader { margin: 40px 0 8px; padding: 22px; border-radius: 20px; background: linear-gradient(160deg, var(--green-deep), #1d3b2e); color: #fff; box-shadow: var(--shadow-lift); }
.reader__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.reader__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.reader__title { font-size: 24px; font-weight: 800; }
.reader__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.reader__btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.reader__btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.reader__btn--primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.reader__btn--primary:hover { background: #ffd56f; color: var(--ink); }
.reader__stage { min-height: 420px; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #f7f4ec, #ded8c8); color: var(--ink); overflow: hidden; }
.reader__status { margin: 0; padding: 180px 20px; text-align: center; color: var(--muted); }
.reader__hint { margin: 12px 0 0; font-size: 13.5px; color: #b8c7be; text-align: center; }

/* Comments */
.comments { margin-top: 48px; }
.comments h2 { font-size: 28px; font-weight: 800; margin-bottom: 18px; }
.comment-form { padding: 22px; border-radius: var(--radius); background: var(--mist); margin-bottom: 28px; }
.comment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid #cbd3ce; border-radius: 10px; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 93, 69, .14); }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.notice ul { margin: 0; padding-left: 18px; }
.notice--success { background: #e7f4ec; color: #14532d; }
.notice--error { background: #fde8e8; color: #8a1c1c; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment__head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.comment__head time { font-size: 13px; color: var(--muted); }
.comment__text { white-space: pre-line; margin: 0; }
.comment-list--replies { margin: 12px 0 0 22px; padding-left: 16px; border-left: 3px solid var(--line); }
.comment--staff { border-top: 0; }
.comment__badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 4px; background: var(--green); color: #fff; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--green-deep); color: #c9d6ce; font-size: 15.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 34px; }
.site-footer__brand { font-family: var(--serif); font-weight: 800; font-size: 30px; color: #fff; margin: 0 0 10px; }
.site-footer__brand span { color: var(--gold); }
.site-footer__heading { color: #fff; font-weight: 700; margin-bottom: 12px; }
.site-footer__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer__list--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.site-footer a:hover { color: var(--gold); }
.site-footer__legal { padding-top: 18px; padding-bottom: 26px; border-top: 1px solid #2c4237; font-size: 13.5px; color: #9fb0a6; }
.site-footer__legal p { margin: 0; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.social__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: #2c4237; transition: background .2s, transform .2s; }
.social__icon svg { display: block; }
.site-footer .social__icon:hover { color: #fff; transform: translateY(-2px); }
.social__icon--x:hover { background: #000; }
.social__icon--facebook:hover { background: #1877f2; }
.social__icon--instagram:hover { background: #b5306b; }
.social__icon--youtube:hover { background: #c00; }

/* Error pages */
.error-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--mist); }
.error-page__inner { margin: auto; padding: 48px 24px; text-align: center; max-width: 560px; }
.error-page__code { font-family: var(--serif); font-weight: 800; font-size: 96px; line-height: 1; color: var(--green); margin: 28px 0 8px; }
.error-page h1 { font-size: 32px; margin-bottom: 10px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
    .with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .with-sidebar__aside { padding-top: 40px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .states__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .front { grid-template-columns: minmax(0, 1fr); }
    .front__side { grid-template-columns: 1fr 1fr; }
    .category-block__grid { grid-template-columns: minmax(0, 1fr); }
    .category-block__grid .story--standard { grid-row: auto; margin-bottom: 8px; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .masthead { padding-top: 18px; padding-bottom: 16px; }
    .brand__tagline { letter-spacing: .18em; font-size: 11px; }
    .search { width: 100%; }
    .nav__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0; border: 0; background: none; font-weight: 700; cursor: pointer; }
    .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
    .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
    .nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
    .nav__menu { display: none; flex-direction: column; gap: 0; padding-bottom: 10px; max-height: 70vh; overflow-y: auto; }
    .nav__menu.is-open { display: flex; }
    .nav__link { padding: 11px 0; border-bottom: 1px solid var(--line); }
    .nav__link.is-active { border-bottom-color: var(--tone); }
    .nav__divider { display: none; }
    .front__side { grid-template-columns: minmax(0, 1fr); }
    .story--lead { min-height: 440px; }
    .story--lead .story__body { padding: 22px; }
    .story--row { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
    .story--row .story__summary { display: none; }
    .states__grid { grid-template-columns: minmax(0, 1fr); }
    .state-tile { height: 140px; }
    .comment-form__row, .prevnext { grid-template-columns: 1fr; }
    .prevnext__item--next { grid-column: auto; }
    .article__body { font-size: 17.5px; }
    .reader { padding: 14px; border-radius: 14px; margin-left: -6px; margin-right: -6px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .trending__list li + li::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .with-sidebar__aside, .article__actions, .comments, .reader { display: none !important; }
}
