:root {
  --green: #14532d;
  --green-2: #1f7a43;
  --gold: #d6a431;
  --ink: #17221b;
  --muted: #627064;
  --line: #dfe7df;
  --soft: #f3f7f1;
  --paper: #ffffff;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcfa;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
.button,
.link-button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
}

button,
.button {
  background: var(--green);
  color: white;
}

.button:hover,
button:hover {
  background: #0f3f22;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

.link-button {
  background: #eef5ed;
  color: var(--green);
}

button.danger {
  background: #fff0ee;
  color: var(--danger);
}

.danger-link {
  align-items: center;
  background: #fff0ee;
  border-radius: 6px;
  color: var(--danger);
  display: inline-flex;
  font-weight: 800;
  min-height: 40px;
  padding: 0 16px;
}

.danger-link:hover {
  background: #ffe2dd;
}

.site-header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  align-items: center;
  background: var(--green);
  color: white;
  display: flex;
  gap: 22px;
  min-height: 36px;
  padding: 0 6vw;
  font-size: 13px;
}

.brand-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
}

.brand,
.admin-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand small {
  color: var(--muted);
  display: block;
}

.brand strong {
  display: block;
  line-height: 1.15;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border: 3px solid var(--gold);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  letter-spacing: 0;
  width: 46px;
}

.brand-logo {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  flex: 0 0 auto;
  height: 58px;
  max-width: 78px;
  object-fit: contain;
  padding: 4px;
  width: auto;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  width: 100%;
}

.menu-toggle {
  background: #eef5ed;
  color: var(--green);
  display: none;
  min-height: 40px;
  padding: 0 13px;
  position: relative;
}

.menu-toggle::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-right: 8px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat;
}

.menu-toggle.is-open {
  background: var(--green);
  color: white;
}

.search-form input,
.stack-form input,
.stack-form select,
.stack-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.stack-form input[type="file"] {
  background: #f8fbf7;
  border-style: dashed;
  cursor: pointer;
}

.image-preview {
  background: #f8fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 150px;
  object-fit: contain;
  padding: 8px;
  width: 220px;
}

.file-preview {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  display: inline-flex;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 10px;
  width: max-content;
}

.site-nav {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 6vw;
  scrollbar-width: thin;
}

.site-nav a {
  border-bottom: 3px solid transparent;
  color: #2d3a31;
  flex: 0 0 auto;
  font-weight: 700;
  padding: 14px 13px 11px;
}

.site-nav a.active,
.site-nav a:hover {
  border-color: var(--gold);
  color: var(--green);
}

.hero {
  background:
    linear-gradient(90deg, rgba(11, 44, 24, .92), rgba(11, 44, 24, .62), rgba(11, 44, 24, .18)),
    var(--hero-image) center / cover no-repeat;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 54px 6vw 78px;
}

.hero-copy {
  color: white;
  max-width: 720px;
}

.hero-copy span,
.page-title span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 12px 0 16px;
  max-width: 780px;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
}

.quick-band {
  background: var(--gold);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: -36px 6vw 0;
  position: relative;
  z-index: 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 83, 45, .18);
}

.quick-band a {
  background: white;
  border-right: 1px solid var(--line);
  color: var(--green);
  font-weight: 800;
  padding: 22px;
}

.quick-band a:hover {
  background: var(--soft);
}

.transparency-title {
  background: linear-gradient(180deg, #edf7f0, #ffffff);
}

.transparency-metrics {
  background: #102618;
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.transparency-metrics article {
  background: rgba(255, 255, 255, .06);
  padding: 24px 6vw;
}

.transparency-metrics strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.transparency-metrics span {
  color: #d7e8d8;
  font-weight: 700;
}

.transparency-categories {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}

.transparency-chip {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 70px;
  padding: 15px;
}

.transparency-chip strong {
  align-items: center;
  background: var(--soft);
  border-radius: 6px;
  color: var(--green);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 44px;
}

.transparency-chip span {
  font-weight: 800;
}

.filter-bar {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(120px, 160px) auto auto;
  margin-bottom: 22px;
  padding: 14px;
}

.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

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

.transparency-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto;
  padding: 20px;
}

.transparency-card h2 {
  line-height: 1.2;
  margin-bottom: 8px;
}

.transparency-card small,
.transparency-detail small {
  color: var(--green);
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.doc-meta,
.doc-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.doc-actions {
  justify-content: flex-end;
}

.section,
.page-title,
.content-wrap,
.article {
  padding: 58px 6vw;
}

.section.alt {
  background: var(--soft);
}

.section-head,
.panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

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

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.item-card,
.compact-card,
.news-card,
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.item-card small,
.compact-card small,
.news-card small,
.article small {
  color: var(--green);
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.item-card h2,
.item-card h3,
.news-card h2,
.news-card h3 {
  line-height: 1.2;
  margin-bottom: 10px;
}

.item-card a:hover,
.news-card a:hover,
.section-head a:hover {
  color: var(--green);
}

.news-grid {
  display: grid;
  gap: 18px;
}

.news-card {
  align-items: stretch;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 0;
  overflow: hidden;
}

.news-card img {
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  width: 100%;
}

.news-card div {
  padding: 22px 22px 22px 0;
}

.page-title {
  background: linear-gradient(180deg, #eff7ef, #ffffff);
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  margin: 8px 0 12px;
  max-width: 920px;
}

.page-title p,
.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 780px;
}

.content-wrap,
.article {
  max-width: 920px;
}

.content-wrap h2,
.article h2 {
  margin-top: 34px;
}

.content-block {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 28px;
}

.content-block.highlight,
.content-block.cta {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.feature-list {
  columns: 2;
  padding-left: 20px;
}

.article-image {
  border-radius: 8px;
  margin-bottom: 24px;
  max-height: 430px;
  object-fit: cover;
  width: 100%;
}

dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  margin-bottom: 0;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
}

.site-footer {
  background: #102618;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 6vw;
}

.site-footer a,
.footer-links a {
  display: inline-block;
  margin: 0 0 8px 14px;
}

.login-body {
  align-items: center;
  background: var(--soft);
  display: flex;
  min-height: 100vh;
  justify-content: center;
  padding: 24px;
}

.login-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(16, 38, 24, .12);
  max-width: 420px;
  padding: 32px;
  width: 100%;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  color: #344238;
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.checkline {
  align-items: center;
  display: flex !important;
  gap: 8px !important;
}

.checkline input {
  min-height: auto;
  width: auto;
}

.admin-body {
  background: #f5f7f4;
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #102618;
  color: white;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: 16px;
  position: sticky;
  top: 0;
}

.admin-sidebar-head {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.admin-sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 12px;
}

.admin-nav {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding: 14px 4px 14px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-title {
  color: #99b89d;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  text-transform: uppercase;
}

.admin-nav a,
.public-link {
  border-radius: 6px;
  color: #d7e8d8;
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 11px;
}

.admin-nav a.active,
.admin-nav a:hover,
.public-link:hover {
  background: rgba(255, 255, 255, .1);
  color: white;
}

.admin-nav a.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.public-link {
  background: rgba(255, 255, 255, .06);
  text-align: center;
}

.admin-shell {
  min-width: 0;
  padding: 28px;
}

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

.admin-top h1 {
  margin-bottom: 4px;
}

.admin-top p {
  color: var(--muted);
  margin: 0;
}

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

.admin-user span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  padding: 7px 11px;
}

.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding: 22px;
}

.admin-panel.narrow {
  max-width: 880px;
}

.metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 22px;
}

.metric {
  display: block;
}

.metric strong {
  color: var(--green);
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-action {
  background: #eef5ed;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  font-weight: 800;
  min-height: 40px;
  padding: 9px 12px;
}

.quick-action:hover {
  background: var(--green);
  color: white;
}

table {
  border-collapse: collapse;
  width: 100%;
}


th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

td small {
  color: var(--muted);
  display: block;
}

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

.actions form {
  display: inline;
}

.badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}

.badge.published {
  background: #e8f7ea;
  color: #146c2e;
}

.badge.draft {
  background: #fff3dc;
  color: #8a5800;
}

.notice {
  background: #eff7ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 14px 16px;
}

.notice.error {
  background: #fff0ee;
  border-color: #ffd0ca;
  color: var(--danger);
}

.form-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.form-note {
  background: #f8fbf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 10px 12px;
}

.split {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 420px) 1fr;
}

.server-body {
  background: #f5f7f4;
  min-height: 100vh;
}

.server-header {
  align-items: center;
  background: #102618;
  color: white;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 6vw;
}

.server-header div {
  display: grid;
  gap: 2px;
}

.server-header span {
  color: #d7e8d8;
  font-size: 13px;
}

.server-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.server-header a {
  border-radius: 6px;
  color: white;
  font-weight: 800;
  padding: 8px 10px;
}

.server-header a:hover {
  background: rgba(255, 255, 255, .12);
}

.server-main {
  padding-bottom: 48px;
}

.server-title {
  padding-bottom: 36px;
}

@media (max-width: 900px) {
  .brand-row,
  .site-footer,
  .admin-top,
  .server-header {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-band,
  .transparency-metrics,
  .transparency-categories,
  .filter-bar,
  .transparency-card,
  .grid.two,
  .grid.three,
  .grid.four,
  .metrics,
  .split {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card div {
    padding: 0 22px 22px;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    height: auto;
    min-height: auto;
    overflow: visible;
    position: static;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-right: 0;
  }

  .admin-sidebar {
    padding: 14px;
  }

  .admin-shell {
    padding: 20px;
  }

  .admin-sidebar-foot {
    margin-top: 8px;
  }

  .filter-bar {
    align-items: stretch;
  }

  .doc-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar input {
    grid-column: 1 / -1;
  }

  .filter-bar button,
  .filter-bar .link-button {
    width: 100%;
  }

  .transparency-card {
    grid-template-columns: 1fr;
  }

  dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
    padding-top: 8px;
  }

  .search-form,
  .actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-row {
    gap: 14px;
    padding: 14px 20px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-logo,
  .brand-mark {
    height: 46px;
    max-width: 56px;
    width: 46px;
  }

  .brand strong {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .site-nav {
    padding: 0 12px;
  }

  .site-nav a {
    font-size: 14px;
    padding: 12px 10px 9px;
  }

  .hero {
    min-height: 330px;
    padding: 36px 20px 58px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 17px;
  }

  .quick-band {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .section,
  .page-title,
  .content-wrap,
  .article {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .page-title h1 {
    font-size: 31px;
  }

  .page-title p,
  .lead {
    font-size: 17px;
  }

  .section-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .item-card,
  .compact-card,
  .news-card,
  .metric,
  .admin-panel {
    padding: 16px;
  }

  .news-card {
    padding: 0;
  }

  .news-card img {
    min-height: 190px;
  }

  .transparency-card {
    align-items: stretch;
    padding: 16px;
  }

  .doc-actions .button,
  .doc-actions .link-button,
  .actions .link-button,
  .actions .danger-link,
  .form-actions button,
  .form-actions .link-button,
  .quick-action {
    width: 100%;
  }

  .admin-body {
    display: block;
  }

  .admin-sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .admin-sidebar-head {
    padding-bottom: 10px;
  }

  .admin-nav {
    gap: 10px;
    grid-template-columns: 1fr;
    max-height: none;
    padding: 12px 0;
  }

  .nav-group {
    gap: 3px;
  }

  .admin-nav a {
    padding: 9px 10px;
  }

  .admin-shell {
    padding: 16px;
  }

  .admin-top {
    gap: 12px;
  }

  .admin-top h1 {
    font-size: 26px;
  }

  .admin-user {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user span,
  .admin-user a {
    text-align: center;
  }

  .metrics {
    gap: 10px;
  }

  .metric strong {
    font-size: 28px;
  }

  .responsive-table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px;
  }

  .responsive-table td {
    border-bottom: 0;
    display: grid;
    gap: 6px;
    grid-template-columns: 88px 1fr;
    padding: 8px 4px;
  }

  .responsive-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-weight: 800;
  }

  .responsive-table td.actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .responsive-table td[colspan] {
    display: block;
  }

  .responsive-table td[colspan]::before {
    content: "";
  }

  .login-body {
    align-items: flex-start;
    padding: 18px;
  }

  .login-panel {
    padding: 24px;
  }

  .server-header {
    padding: 14px 20px;
  }

  .server-header nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .server-header a {
    background: rgba(255, 255, 255, .06);
    text-align: center;
  }

  .feature-list {
    columns: 1;
  }

  th,
  td {
    padding: 10px 6px;
  }
}

@media (max-width: 420px) {
  .brand-row,
  .section,
  .page-title,
  .content-wrap,
  .article,
  .admin-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1,
  .page-title h1 {
    font-size: 28px;
  }

  .filter-bar,
  .server-header nav {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 20px;
  }

  .responsive-table td {
    grid-template-columns: 1fr;
  }
}

/* Final responsive overrides: keep every surface fluid by viewport size. */
@media (max-width: 900px) {
  .brand-row,
  .site-footer,
  .admin-top,
  .server-header {
    display: flex !important;
    flex-direction: column !important;
  }

  .quick-band,
  .grid.two,
  .grid.three,
  .grid.four,
  .transparency-metrics,
  .transparency-categories,
  .split,
  .transparency-card {
    grid-template-columns: 1fr !important;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr !important;
  }

  .admin-body {
    display: block !important;
  }
}

@media (max-width: 620px) {
  .topbar,
  .brand-row,
  .section,
  .page-title,
  .content-wrap,
  .article,
  .admin-shell,
  .server-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .search-form,
  .filter-bar,
  .actions,
  .form-actions,
  .server-header nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .site-nav {
    overflow-x: auto !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .hero {
    min-height: auto !important;
    padding: 32px 16px 54px !important;
  }

  .hero h1,
  .page-title h1 {
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  .hero p,
  .page-title p,
  .lead {
    font-size: 16px !important;
  }

  .admin-sidebar {
    height: auto !important;
    min-height: 0 !important;
    position: static !important;
  }

  .admin-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .button,
  button,
  .link-button,
  .danger-link,
  .quick-action {
    width: 100% !important;
  }

  .responsive-table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block !important;
    width: 100% !important;
  }

  .responsive-table thead {
    display: none !important;
  }
}

/* Mobile navigation: real hamburger menus. */
@media (max-width: 620px) {
  .menu-toggle {
    display: inline-flex !important;
    width: 100% !important;
  }

  .public-menu-toggle {
    order: 3;
  }

  .search-form {
    order: 4;
  }

  .site-nav,
  .admin-nav,
  .server-header nav {
    display: none !important;
  }

  .site-nav.is-open,
  .admin-nav.is-open,
  .server-header nav.is-open {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .site-nav.is-open {
    gap: 8px !important;
    padding: 10px 16px 14px !important;
  }

  .site-nav.is-open a,
  .server-header nav.is-open a {
    background: #f8fbf7;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--green);
    padding: 11px 12px !important;
  }

  .admin-sidebar-head {
    padding-bottom: 0 !important;
  }

  .admin-nav.is-open {
    padding-top: 12px !important;
  }
}
