:root {
  --ink: #211c18;
  --muted: #675f57;
  --paper: #f7f9f5;
  --cream: #e9f1e7;
  --sage: #5d7b65;
  --clay: #ad6649;
  --sky: #d9edf0;
  --line: rgba(33, 28, 24, 0.14);
  --shadow: 0 18px 50px rgba(33, 28, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(20, 17, 15, 0.72), rgba(20, 17, 15, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(33, 28, 24, 0.12);
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

nav {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
  opacity: 0.86;
}

nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #211c18;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.88), rgba(18, 15, 13, 0.52) 42%, rgba(18, 15, 13, 0.08)),
    linear-gradient(0deg, rgba(18, 15, 13, 0.8), rgba(18, 15, 13, 0.05) 45%);
}

.hero-copy {
  position: relative;
  max-width: 760px;
  padding: 150px clamp(18px, 5vw, 64px) 90px;
  color: #fff;
}

.eyebrow,
.category {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c8a6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 0.98;
  max-width: 820px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.hero-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: #d9edf0;
  color: #241710;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.masthead-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff;
}

.masthead-strip span,
.masthead-strip a {
  padding: 18px clamp(14px, 3vw, 28px);
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-decoration: none;
}

.masthead-strip a:hover {
  background: var(--cream);
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p,
.split-section p,
.subscribe-section p,
.story-card p,
.editor-card li,
.standards-list p {
  color: var(--muted);
}

.compact {
  max-width: 960px;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.6fr);
  gap: 22px;
}

.lead-story,
.editor-card,
.story-card,
.subscribe-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(33, 28, 24, 0.06);
}

.lead-story {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(140deg, rgba(93, 123, 101, 0.16), rgba(217, 237, 240, 0.72)),
    #fff;
}

.lead-story h3 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
}

.lead-story p {
  max-width: 780px;
  font-size: 1.06rem;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.story-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.65);
}

.editor-card {
  padding: 28px;
}

.editor-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 19px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  min-height: 260px;
  padding: 24px;
}

.story-card:nth-child(2) {
  background: #fff5ee;
}

.story-card:nth-child(3) {
  background: #eef7f4;
}

.story-card:nth-child(4) {
  background: #f4f2ff;
}

.ad-slot[hidden] {
  display: none !important;
}

.split-section,
.subscribe-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.standards-list {
  display: grid;
  gap: 14px;
}

.standards-list div {
  border-left: 5px solid var(--sage);
  padding: 18px 20px;
  background: #fff;
  border-radius: 0 8px 8px 0;
}

.standards-list p {
  margin-bottom: 0;
}

.subscribe-section {
  background: var(--sky);
}

.subscribe-form {
  padding: 24px;
}

.subscribe-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 900;
}

.subscribe-form div {
  display: flex;
  gap: 10px;
}

input,
button {
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
}

input {
  width: 100%;
  padding: 0 14px;
  background: #fff;
}

button {
  padding: 0 18px;
  background: var(--sage);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin: 0;
}

.site-footer {
  align-items: flex-start;
  background: #fff;
}

.site-footer > div {
  max-width: 420px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.site-footer nav {
  max-width: 620px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--ink);
}

.article-page {
  background: #fff;
}

.article-header {
  position: static;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.article-header .brand-mark {
  border-color: var(--line);
  background: var(--cream);
}

.article-header .brand-icon {
  box-shadow: 0 6px 16px rgba(33, 28, 24, 0.08);
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 86px) clamp(18px, 5vw, 44px);
}

.article-body h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.dek {
  color: var(--muted);
  font-size: 1.2rem;
}

.article-body > p,
.article-body li {
  font-size: 1.05rem;
}

.source-box {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.soft-section {
  background: #f2eadf;
}

.category-blocks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-block {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(33, 28, 24, 0.06);
}

.category-block span {
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-block strong {
  font-size: 1.18rem;
  line-height: 1.2;
}

.category-lanes {
  display: grid;
  gap: 42px;
  margin-top: 54px;
}

.category-lane {
  display: grid;
  gap: 18px;
}

.editor-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pick-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(33, 28, 24, 0.06);
}

.pick-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.pick-card div {
  padding: 22px;
}

.pick-card a {
  color: inherit;
  text-decoration: none;
}

.pick-card a:hover {
  text-decoration: underline;
}

.latest-stories {
  display: grid;
  gap: 18px;
}

.source-box h2 {
  font-size: 1.4rem;
}

.source-box ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.source-box span {
  display: block;
  color: var(--muted);
}

.latest-section {
  background: #fff;
}

.magazine-feed {
  display: grid;
  gap: 24px;
}

.feature-placeholder {
  min-height: 300px;
  display: grid;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(120deg, rgba(93, 123, 101, 0.18), rgba(217, 237, 240, 0.85)),
    #fff;
}

.lead-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lead-feature-image {
  min-height: 560px;
  background: var(--cream);
  display: block;
}

.lead-feature-image img,
.magazine-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lead-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 54px);
}

.lead-feature h3 {
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.98;
}

.lead-feature-copy > p {
  color: var(--muted);
  font-size: 1.1rem;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.magazine-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(33, 28, 24, 0.06);
}

.magazine-card img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.magazine-card > div {
  padding: 22px;
}

.magazine-card h3 {
  font-size: 1.45rem;
}

.lead-feature h3 a,
.magazine-card h3 a {
  color: inherit;
  text-decoration: none;
}

.lead-feature h3 a:hover,
.magazine-card h3 a:hover {
  text-decoration: underline;
}

.card-image-link {
  display: block;
}

.magazine-card p {
  color: var(--muted);
}

.image-credit {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.lead-feature details,
.magazine-card details {
  margin-top: 18px;
}

.lead-feature summary,
.magazine-card summary {
  cursor: pointer;
  color: var(--sage);
  font-weight: 900;
}

.read-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 14px;
  border-bottom: 2px solid var(--sage);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.generated-body {
  margin-top: 18px;
}

.generated-body p,
.generated-body li {
  max-width: 820px;
  color: var(--ink);
}

.source-box h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.takeaway-note {
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid var(--clay);
  background: #fff8f1;
}

.takeaway-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.safety-note {
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid rgba(173, 102, 73, 0.28);
  border-left: 5px solid var(--clay);
  border-radius: 8px;
  background: #fff8f1;
}

.safety-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.magazine-article-shell {
  max-width: 1120px;
}

.magazine-article {
  max-width: 900px;
  margin: 0 auto;
}

.article-figure {
  margin: 30px 0;
}

.article-figure-top {
  margin-top: 0;
}

.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.article-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.article-content {
  font-size: 1.16rem;
  line-height: 1.78;
}

.article-content p,
.article-content li {
  font-size: 1.16rem;
}

.article-title-block {
  margin: 34px 0 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--sage);
}

.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 28px 0 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
}

.author-box p {
  margin: 4px 0 0;
  color: var(--muted);
}

.author-mark {
  flex: 0 0 auto;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 900;
}

.author-logo {
  width: 48px;
  height: 48px;
  display: block;
}

.home-intro {
  background: #fff;
}

.problem-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 34px;
}

.problem-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.problem-nav a:hover {
  background: var(--sage);
  color: #fff;
}

.home-top-grid,
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.top-story-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper);
}

.top-story-card h3 a {
  color: inherit;
  text-decoration: none;
}

.top-story-card h3 a:hover {
  text-decoration: underline;
}

.top-story-card p:not(.category) {
  color: var(--muted);
}

.trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(33, 28, 24, 0.06);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.archive-link {
  margin: 20px 0 0;
}

.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.filter-nav a.is-active,
.filter-nav a:hover {
  background: var(--sage);
  color: #fff;
}

.article-part-label {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-content h2,
.article-content h3 {
  margin-top: 32px;
}

.article-takeaway {
  margin-top: 30px;
}

.helpful-tools,
.faq-section {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.helpful-tools h2,
.faq-section h2 {
  font-size: 1.6rem;
}

.helpful-tools p {
  color: var(--muted);
}

.helpful-tools ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-left: 18px;
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-section p {
  margin: 10px 0 0;
  color: var(--muted);
}

.part-navigation,
.article-journey {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 46px 0 0;
}

.part-navigation a,
.part-nav-disabled,
.article-journey a {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  text-decoration: none;
}

.part-navigation span,
.part-nav-disabled span,
.article-journey span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.part-navigation strong,
.part-nav-disabled strong,
.article-journey strong {
  margin-top: 8px;
  font-size: 1.15rem;
}

.part-navigation a {
  background: var(--paper);
}

.part-nav-disabled {
  color: var(--muted);
  opacity: 0.6;
}

.source-box-compact p {
  margin-bottom: 0;
  color: var(--muted);
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.article-newsletter {
  max-width: 900px;
  margin: 52px auto 0;
  border-radius: 8px;
  padding: clamp(26px, 5vw, 44px);
}

.category-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.category-hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.category-hero h1 {
  color: var(--ink);
}

.link-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.static-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 44px);
}

.static-shell h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.static-shell h2 {
  margin-top: 34px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.static-shell p,
.static-shell li {
  color: var(--muted);
  font-size: 1.08rem;
}

.static-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(33, 28, 24, 0.06);
}

.admin-page {
  background: var(--paper);
}

.admin-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 44px);
}

.admin-toolbar,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.6fr);
  gap: 22px;
  align-items: start;
}

.admin-secret-form,
.admin-list,
.admin-editor,
.admin-feedback-panel,
.analysis-box,
.admin-score-row > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(33, 28, 24, 0.06);
}

.admin-secret-form {
  padding: 20px;
}

.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(33, 28, 24, 0.06);
}

.admin-quick-actions button {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
}

.admin-quick-actions .form-note {
  flex-basis: 100%;
  margin: 0;
}

.admin-secret-form label,
.admin-editor label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 900;
}

.admin-editor .admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-editor .admin-checkbox input {
  width: auto;
}

.admin-grid {
  grid-template-columns: 360px minmax(0, 1fr);
  margin-top: 28px;
}

.admin-feedback-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
  padding: 20px;
}

.feedback-box {
  min-width: 0;
}

.feedback-score-row {
  margin-bottom: 12px;
}

.feedback-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feedback-columns h3 {
  margin-top: 0;
}

.admin-list {
  overflow: hidden;
}

.admin-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-list-header button {
  width: auto;
  min-height: 38px;
}

.admin-article-list {
  max-height: 72vh;
  overflow: auto;
}

.admin-tabs,
.admin-filters,
.admin-bulk-actions,
.admin-dashboard-grid,
.admin-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tabs {
  margin: 18px 0;
}

.admin-tabs button,
.admin-bulk-actions button {
  width: auto;
  min-height: 38px;
}

.admin-tabs button:not(.is-active) {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-filters,
.admin-bulk-actions {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.admin-filters input,
.admin-filters select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.9rem;
}

.admin-card-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.admin-card-form input,
.admin-card-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

.compact-admin-grid {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.admin-stat-card,
.admin-check {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  min-width: 210px;
}

.admin-stat-card strong {
  font-size: 1.7rem;
}

.admin-check {
  display: grid;
  gap: 6px;
}

.admin-check.is-pass strong {
  color: #4f7b5c;
}

.admin-check.is-warn strong {
  color: #ad6649;
}

.admin-list-item {
  width: 100%;
  min-height: auto;
  display: grid;
  gap: 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.admin-list-item > button {
  width: 100%;
  min-height: auto;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.compact-checkbox {
  font-size: 0.78rem;
}

.admin-list-item:hover,
.admin-list-item.is-active {
  background: var(--cream);
  color: var(--ink);
}

.admin-list-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-editor {
  padding: 20px;
}

.admin-message {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
}

.admin-message.is-error {
  border-color: rgba(173, 102, 73, 0.4);
  background: #fff0e8;
}

.admin-score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-score-row > div,
.analysis-box {
  padding: 16px;
}

.admin-score-row strong {
  font-size: 1.5rem;
}

.analysis-meta,
.analysis-subscores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.analysis-meta span,
.analysis-subscores span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.analysis-box ul {
  margin-bottom: 0;
}

.admin-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}

.code-textarea {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-actions button {
  width: auto;
}

.danger-button {
  background: #8f3528;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .masthead-strip,
  .card-grid,
  .lead-feature,
  .magazine-grid,
  .home-top-grid,
  .trust-strip,
  .admin-toolbar,
  .admin-grid,
  .admin-feedback-panel,
  .feedback-columns,
  .admin-score-row,
  .lead-layout,
  .category-blocks,
  .editor-picks,
  .split-section,
  .subscribe-section {
    grid-template-columns: 1fr;
  }

  .masthead-strip span,
  .masthead-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lead-feature-image {
    min-height: 360px;
  }

  .part-navigation,
  .article-journey,
  .helpful-tools ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 86vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 15, 13, 0.88), rgba(18, 15, 13, 0.52)),
      linear-gradient(0deg, rgba(18, 15, 13, 0.82), rgba(18, 15, 13, 0.12));
  }

  .hero-copy {
    padding-top: 170px;
    padding-bottom: 46px;
  }

  .subscribe-form div,
  footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  button {
    width: 100%;
  }
}
