* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg, #fff);
  color: var(--text, #101214);
  font-family: var(--font-main, ui-sans-serif, system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text, #101214);
  text-decoration-color: var(--accent, #16756f);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent, #16756f);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent, #16756f);
}

.container {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.narrow-page {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--text, #101214);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border, #dfe5e2);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.footer-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text, #101214);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand::before,
.footer-brand::before {
  content: "";
  width: 10px;
  height: 28px;
  margin-right: 10px;
  background: var(--accent, #16756f);
  border-radius: 2px;
}

.brand.has-logo::before,
.footer-brand.has-logo::before {
  display: none;
}

.brand-logo {
  width: auto;
  max-width: min(280px, 58vw);
  height: clamp(46px, 5vw, 56px);
  margin-right: 10px;
  object-fit: contain;
}

.has-logo .brand-logo {
  margin-right: 0;
}

.footer-brand .brand-logo {
  height: 42px;
  max-width: 240px;
}

.nav-toggle {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 6px;
  background: #fff;
  color: var(--text, #101214);
  font-weight: 700;
}

.site-nav {
  display: none;
  position: absolute;
  top: 78px;
  left: 16px;
  right: 16px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.admin-nav {
  display: none;
  position: absolute;
  top: 66px;
  left: 16px;
  right: 16px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.site-nav.open,
.admin-nav.open {
  display: grid;
}

.site-nav a,
.admin-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text, #101214);
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active,
.admin-nav a:hover,
.admin-nav a.active {
  background: var(--accent-soft, #ecf7f5);
  color: var(--accent, #16756f);
}

.home-news {
  display: grid;
  gap: 34px;
  padding: 30px 0 20px;
}

.desktop-home {
  display: none;
}

.mobile-home-stack {
  display: grid;
  gap: 28px;
  padding: 24px 0 8px;
}

.mobile-home-section {
  min-width: 0;
}

.mobile-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mobile-card-row .article-card {
  min-width: 0;
  padding-bottom: 12px;
}

.mobile-card-row .article-card h3 {
  font-size: 0.98rem;
  line-height: 1.16;
}

.mobile-card-row .article-card p {
  display: none;
}

.mobile-card-row .article-meta {
  gap: 4px 8px;
  font-size: 0.7rem;
}

.mobile-card-row .article-meta span:last-child {
  display: none;
}

.main-stream {
  min-width: 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text, #101214);
}

.section-header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.section-header a {
  font-weight: 800;
}

.lead-story {
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border, #dfe5e2);
}

.lead-image,
.featured-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--accent-soft, #ecf7f5);
}

.lead-copy h2 {
  margin: 6px 0 8px;
  font-size: 2rem;
  line-height: 1.08;
}

.lead-copy h2 a,
.article-row h2 a,
.article-card h3 a,
.compact-list a {
  text-decoration: none;
}

.lead-copy p,
.article-row p,
.article-card p,
.page-heading p,
.dek {
  color: var(--muted, #5b6268);
}

.news-list {
  display: grid;
}

.article-row {
  display: grid;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border, #dfe5e2);
}

.row-image,
.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--accent-soft, #ecf7f5);
}

.image-empty {
  min-height: 160px;
  background: linear-gradient(135deg, var(--accent-soft, #ecf7f5), #fff);
  border: 1px solid var(--border, #dfe5e2);
}

.article-row h2 {
  margin: 5px 0 8px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.article-row p,
.article-card p,
.lead-copy p {
  margin: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--muted, #5b6268);
  font-size: 0.88rem;
  font-weight: 700;
}

.article-meta a {
  color: var(--accent, #16756f);
  text-transform: uppercase;
  text-decoration: none;
}

.byline,
.article-dates,
.featured-figure figcaption {
  margin-top: 10px;
  color: var(--muted, #5b6268);
  font-size: 0.92rem;
}

.home-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.sidebar-block {
  border-top: 2px solid var(--text, #101214);
  padding-top: 12px;
}

.sidebar-block h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.compact-list {
  display: grid;
}

.compact-list a {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #dfe5e2);
  font-weight: 800;
  text-decoration: none;
}

.compact-list a.has-thumb {
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.compact-list img {
  grid-row: span 2;
  width: 72px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--accent-soft, #ecf7f5);
}

.compact-list small {
  color: var(--muted, #5b6268);
  font-weight: 600;
}

.compact-list span {
  line-height: 1.25;
}

.compact-list a:hover span {
  color: var(--accent, #16756f);
}

.content-section {
  padding: 34px 0;
}

.content-section,
.submit-band,
.related-articles,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.card-grid {
  display: grid;
  gap: 22px;
}

.article-card {
  border-bottom: 1px solid var(--border, #dfe5e2);
  padding-bottom: 18px;
}

.article-card h3 {
  margin: 8px 0 8px;
  font-size: 1.22rem;
  line-height: 1.18;
}

.submit-band {
  margin-top: 28px;
  background: var(--accent-soft, #ecf7f5);
  border-top: 1px solid var(--border, #dfe5e2);
  border-bottom: 1px solid var(--border, #dfe5e2);
}

.submit-band-inner {
  display: grid;
  gap: 18px;
  padding: 34px 0;
}

.submit-band h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.18;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent, #16756f);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 9px 16px;
  border: 1px solid var(--text, #101214);
  border-radius: 6px;
  background: var(--text, #101214);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent, #16756f);
  border-color: var(--accent, #16756f);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--text, #101214);
}

.page-heading {
  padding: 36px 0 18px;
}

.page-heading h1 {
  margin: 8px 0 8px;
  font-size: 2.35rem;
  line-height: 1.05;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted, #5b6268);
  font-size: 0.88rem;
}

.breadcrumbs a {
  color: var(--muted, #5b6268);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
}

.chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 999px;
  color: var(--text, #101214);
  font-weight: 800;
  text-decoration: none;
}

.chip.active,
.chip:hover {
  background: var(--text, #101214);
  border-color: var(--text, #101214);
  color: #fff;
}

.listing-stack {
  display: grid;
  padding-bottom: 46px;
}

.article-shell {
  padding: 32px 0 50px;
}

.article-layout {
  max-width: 1080px;
}

.article-hero {
  display: grid;
  gap: 18px;
  align-items: start;
}

.article-header {
  max-width: 850px;
}

.article-header h1 {
  margin: 10px 0 12px;
  font-size: 2.5rem;
  line-height: 1.04;
}

.dek {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.author-line {
  color: var(--muted, #5b6268);
  font-weight: 700;
}

.featured-figure {
  margin: 0;
}

.featured-figure img {
  max-height: 260px;
  border-radius: 6px;
}

.article-main {
  display: grid;
  gap: 34px;
  margin-top: 30px;
}

.article-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.article-content {
  max-width: 760px;
  font-size: 1.06rem;
}

.article-content h2 {
  margin: 36px 0 14px;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.article-content h3 {
  margin: 26px 0 10px;
  color: #1e293b;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
}

.article-content h4 {
  margin: 22px 0 8px;
  color: #334155;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.35;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
}

.article-content p {
  line-height: 1.75;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.article-content blockquote {
  margin: 1.6em 0;
  padding: 12px 18px;
  background: #f8fbfa;
  border-left: 4px solid var(--accent, #16756f);
  border-radius: 0 8px 8px 0;
  color: var(--muted, #5b6268);
}

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  padding: 10px 12px;
  border: 1px solid #d8e0e7;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: #f1f5f9;
  font-weight: 700;
}

.article-content pre {
  overflow-x: auto;
  padding: 14px;
  background: #f6f8f7;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 6px;
}

.article-key-takeaways {
  margin: 28px 0;
  padding: 20px;
  background: #f4fbfa;
  border: 1px solid #d6ebe8;
  border-radius: 14px;
}

.article-key-takeaways h2,
.article-key-takeaways h3 {
  margin-top: 0;
}

.article-key-takeaways ul,
.article-key-takeaways ol {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.article-key-takeaways li {
  margin-bottom: 8px;
}

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

.article-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.article-image figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
}

.article-faq,
.article-sources {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #dfe5e2);
}

.article-faq details {
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #dfe5e2);
}

.article-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.article-faq details div {
  margin-top: 10px;
}

.article-sources ol {
  padding-left: 1.25rem;
}

.article-sidebar-stack {
  display: grid;
  gap: 16px;
}

.article-sidebar-block {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
}

.article-sidebar-block h2 {
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text, #101214);
  font-size: 1.05rem;
  line-height: 1.2;
}

.article-sidebar-block p {
  margin: 10px 0 6px;
  color: var(--muted, #5b6268);
  font-size: 0.9rem;
}

.article-sidebar-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.article-sidebar-search input {
  min-height: 42px;
}

.article-sidebar-search button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--text, #101214);
  border-radius: 6px;
  background: var(--text, #101214);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.article-sidebar-search button:hover {
  background: var(--accent, #16756f);
  border-color: var(--accent, #16756f);
}

.article-sidebar-categories {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.article-sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #dfe5e2);
  color: var(--text, #101214);
  font-weight: 800;
  text-decoration: none;
}

.article-sidebar-categories a:last-child {
  border-bottom: 0;
}

.article-sidebar-categories small {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft, #ecf7f5);
  color: var(--accent, #16756f);
  font-size: 0.78rem;
  text-align: center;
}

.article-sidebar-items {
  display: grid;
}

.article-sidebar-item {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border, #dfe5e2);
  color: var(--text, #101214);
  text-decoration: none;
}

.article-sidebar-item.has-thumb {
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.article-sidebar-item.has-thumb img {
  grid-row: span 2;
  width: 72px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--accent-soft, #ecf7f5);
}

.article-sidebar-item:last-child {
  border-bottom: 0;
}

.article-sidebar-item span {
  color: var(--muted, #5b6268);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-sidebar-item strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.article-sidebar-item:hover strong {
  color: var(--accent, #16756f);
}

.to-top-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--text, #101214);
  border: 1px solid var(--text, #101214);
  border-radius: 999px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.to-top-button:hover {
  background: var(--accent, #16756f);
  border-color: var(--accent, #16756f);
  color: #fff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag-list a {
  padding: 5px 10px;
  background: var(--accent-soft, #ecf7f5);
  border-radius: 999px;
  color: var(--accent, #16756f);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.tag-list a:hover {
  background: var(--accent, #16756f);
  color: #fff;
}

.related-articles {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #dfe5e2);
}

.related-grid {
  align-items: start;
}

.page-content {
  padding-bottom: 44px;
}

.page-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 24px;
}

.form-section {
  padding-bottom: 44px;
}

.form-stack,
.admin-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--text, #101214);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 6px;
  background: #fff;
  color: var(--text, #101214);
}

.upload-status {
  color: var(--muted, #5b6268);
  font-size: 0.82rem;
  font-weight: 700;
}

textarea {
  resize: vertical;
}

.checkbox-row,
.inline-check,
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.checkbox-row input,
.inline-check input,
.check-label input {
  width: auto;
  min-height: 0;
}

.tag-picker {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 6px;
}

.tag-picker legend {
  padding: 0 6px;
  font-weight: 850;
}

.tag-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
}

.tag-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.tag-option input {
  width: auto;
  min-height: 0;
}

.success-box,
.notice {
  padding: 12px 14px;
  background: var(--accent-soft, #ecf7f5);
  border: 1px solid var(--accent, #16756f);
  border-radius: 6px;
  color: var(--text, #101214);
  font-weight: 800;
}

.error-box {
  padding: 12px 14px;
  background: #fff4f4;
  border: 1px solid #b42318;
  border-radius: 6px;
  color: #8a1f17;
  font-weight: 800;
}

.ad-widget {
  padding: 14px;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
  background: #fafafa;
  color: var(--muted, #5b6268);
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--border, #dfe5e2);
  border-radius: 8px;
  color: var(--muted, #5b6268);
}

.site-footer {
  margin-top: 40px;
  padding: 34px 0 20px;
  background: var(--footer-bg, #050505);
  color: var(--footer-text, #fff);
}

.site-footer a,
.site-footer p {
  color: var(--footer-text, #fff);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-content: start;
}

.footer-small {
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.admin-body {
  background: #f7f8f7;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--border, #dfe5e2);
}

.admin-main {
  padding: 28px 0 50px;
}

.admin-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-heading h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.12;
}

.admin-heading p {
  margin: 5px 0 0;
  color: var(--muted, #5b6268);
}

.admin-help {
  margin: 0;
  color: var(--muted, #5b6268);
}

.admin-card,
.login-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 430px);
}

.stat-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.stat-grid div {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
}

.stat-grid strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stat-grid span {
  color: var(--muted, #5b6268);
  font-weight: 800;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-tabs a {
  padding: 8px 12px;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.admin-tabs a.active {
  background: var(--text, #101214);
  border-color: var(--text, #101214);
  color: #fff;
}

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border, #dfe5e2);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #fafafa;
}

.table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.table-actions form {
  margin: 0;
}

.table-actions button,
.submission-top button {
  border: 0;
  background: transparent;
  color: #8a1f17;
  cursor: pointer;
  font-weight: 800;
}

.admin-form {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
}

.admin-form h2 {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border, #dfe5e2);
  font-size: 1.2rem;
}

.markdown-editor {
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

.editor-help {
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 6px;
  color: var(--muted, #5b6268);
}

.editor-tools {
  display: grid;
  gap: 16px;
}

.editor-tools h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
}

.admin-fieldset legend {
  padding: 0 6px;
  font-weight: 850;
}

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

.structured-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
}

.docx-preview {
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 8px;
  background: #fff;
}

.docx-preview h3 {
  margin-top: 0;
}

.color-grid {
  display: grid;
  gap: 12px;
}

.color-grid input {
  width: 76px;
  padding: 4px;
}

.submission-list {
  display: grid;
  gap: 16px;
}

.submission-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.submission-card h2 {
  margin: 0;
}

.submission-card pre {
  white-space: pre-wrap;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--border, #dfe5e2);
  border-radius: 6px;
}

@media (min-width: 720px) {
  .mobile-home-stack {
    display: none;
  }

  .desktop-home {
    display: block;
  }

  .lead-story {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }

  .article-row {
    grid-template-columns: 260px 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .submit-band-inner,
  .footer-grid,
  .form-grid.two,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .structured-row.source-row,
  .form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .admin-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .header-inner {
    min-height: 86px;
  }

  .site-nav a,
  .admin-nav a {
    padding: 8px 11px;
  }

  .site-nav a {
    font-family: var(--type-menu-font, var(--font-main));
    font-size: var(--type-menu-size, 17px);
    font-weight: var(--type-menu-weight, 650);
  }

  .lead-copy h2 {
    font-family: var(--type-home-lead-font, var(--font-main));
    font-size: var(--type-home-lead-size, 32px);
    font-weight: var(--type-home-lead-weight, 700);
  }

  .section-header h2 {
    font-family: var(--type-home-section-font, var(--font-main));
    font-size: var(--type-home-section-size, 22px);
    font-weight: var(--type-home-section-weight, 700);
  }

  .article-card h3 {
    font-family: var(--type-card-font, var(--font-main));
    font-size: var(--type-card-size, 20px);
    font-weight: var(--type-card-weight, 650);
  }

  .article-header h1 {
    font-family: var(--type-article-font, var(--font-main));
    font-size: var(--type-article-size, 40px);
    font-weight: var(--type-article-weight, 750);
  }

  .page-heading h1 {
    font-family: var(--type-page-font, var(--font-main));
    font-size: var(--type-page-size, 38px);
    font-weight: var(--type-page-weight, 750);
  }

  .home-news {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .article-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 34px;
  }

  .article-main {
    grid-template-columns: minmax(0, 760px) 280px;
    align-items: start;
  }

  .article-aside {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 719px) {
  .site-header {
    backdrop-filter: none;
  }

  .section-header {
    margin-bottom: 12px;
  }

  .lead-copy h2,
  .article-header h1,
  .page-heading h1 {
    font-size: 1.9rem;
  }

  .article-row h2 {
    font-size: 1.28rem;
  }

  .admin-form,
  .admin-card {
    padding: 16px;
  }
}
