@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --panel: rgba(14, 14, 14, 0.92);
  --panel-strong: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --muted-strong: #737373;
  --brand: #07a58c;
  --brand-soft: rgba(7, 165, 140, 0.16);
  --danger: #ef4444;
  --success: #22c55e;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(7, 165, 140, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #030303 0%, #050505 30%, #080808 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
    linear-gradient(300deg, rgba(7, 165, 140, 0.08) 0%, transparent 22%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

a {
  color: inherit;
}

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

code {
  font-family: 'Space Grotesk', 'IBM Plex Mono', monospace;
  font-size: 0.95em;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 620px) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.topbar-locale-form {
  margin: 0;
  flex: 0 0 auto;
  justify-self: start;
}

.topbar-locale-select {
  width: auto;
  min-width: 74px;
  min-height: 40px;
  padding: 0.45rem 1.7rem 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.topbar-locale-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.locale-mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 42px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
  transition: all 180ms ease;
}

.locale-mini-chip:hover {
  color: var(--text);
  border-color: rgba(7, 165, 140, 0.32);
  background: rgba(7, 165, 140, 0.08);
}

.locale-mini-chip.is-active {
  color: var(--text);
  border-color: rgba(7, 165, 140, 0.42);
  background: rgba(7, 165, 140, 0.14);
}

.topbar-back {
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.topbar-back:hover {
  border-color: rgba(7, 165, 140, 0.42);
  background: rgba(7, 165, 140, 0.12);
}

.topbar-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-search input {
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  outline: none;
}

.topbar-search input:focus {
  border-color: rgba(7, 165, 140, 0.45);
  box-shadow: 0 0 0 3px rgba(7, 165, 140, 0.1);
}

.topbar-search button {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.topbar-search button:hover {
  border-color: rgba(7, 165, 140, 0.42);
  background: rgba(7, 165, 140, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand img {
  width: 148px;
  height: auto;
  flex: 0 0 auto;
}

.brand span {
  display: inline-block;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #e8fdf8;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.topnav a,
.locale-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: all 180ms ease;
}

.topnav a:hover,
.locale-chip:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.topnav a.is-active,
.locale-chip.is-active {
  color: var(--text);
  border-color: rgba(7, 165, 140, 0.36);
  background: rgba(7, 165, 140, 0.12);
  box-shadow: inset 0 0 0 1px rgba(7, 165, 140, 0.08);
}

.locale-switcher {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.locale-form {
  margin: 0;
}

.locale-select {
  min-width: 180px;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flash-stack {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: grid;
  gap: 0.75rem;
}

.admin-menu {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.85rem auto 0;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.admin-menu-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.admin-menu-link.is-active {
  color: #cffff7;
  border-color: rgba(7, 165, 140, 0.42);
  background: rgba(7, 165, 140, 0.13);
}

.flash {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.95rem 1.05rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.flash-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.flash-success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.content {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  flex: 1;
}

.card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.95), rgba(10, 10, 10, 0.95));
  box-shadow: var(--shadow);
}

.hero {
  display: block;
  margin-bottom: 1rem;
}

.featured-row {
  margin-bottom: 1.25rem;
}

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

.featured-card h2 {
  font-size: 1.15rem;
}

.hero-copy,
.hero-article,
.article-card,
.auth-card,
.form-card,
.empty-state,
.article-header,
.article-body,
.article-sidebar,
.table-card {
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.hero-copy h1,
.hero-article h2,
.section-header h1,
.section-header h2,
.article-header h1,
.auth-card h1,
.empty-state h1,
.empty-state h2,
.form-card h2,
.article-sidebar h2,
.article-sidebar h3 {
  margin: 0;
  font-family: 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -0.03em;
}

.hero-copy h1,
.article-header h1,
.auth-card h1,
.empty-state h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.96;
  max-width: 12ch;
}

.article-header h1 {
  width: 100%;
  max-width: none;
}

.hero-article h2,
.section-header h2,
.form-card h2,
.article-sidebar h2,
.article-sidebar h3,
.empty-state h2 {
  font-size: 1.35rem;
}

.hero-lead,
.hero-article p,
.empty-state p,
.auth-card p,
.form-card p,
.article-sidebar p,
.section-header p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lead {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  max-width: 56ch;
}

.article-header .hero-lead {
  margin-top: 1.35rem;
}

.home-intro {
  margin-top: 1.8rem;
  max-width: 64ch;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
}

.hero-actions,
.toolbar {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.button,
.button-secondary,
.text-link {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(7, 165, 140, 0.38);
  background: linear-gradient(180deg, rgba(7, 165, 140, 0.98), rgba(7, 132, 113, 0.98));
  color: #04130f;
  font-weight: 800;
  box-shadow: 0 18px 35px rgba(7, 165, 140, 0.18);
}

.button:hover {
  filter: brightness(1.05);
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: none;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(7, 165, 140, 0.32);
  background: rgba(7, 165, 140, 0.08);
}

.button-inline {
  min-height: 30px;
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
}

.text-link {
  color: var(--brand);
  font-weight: 700;
}

.hero-article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.featured-card .text-link,
.article-card .text-link {
  margin-top: auto;
}

.card-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-kicker {
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
}

.card-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.article-header .card-meta {
  margin-top: 0.35rem;
}

.section-header,
.section-header-between {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin: 2rem 0 1rem;
}

.newsletter {
  margin-bottom: 1.4rem;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
  padding: clamp(1.2rem, 2.2vw, 1.9rem);
}

.newsletter-bottom {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1.6rem;
}

.newsletter-copy h2 {
  margin: 0 0 0.7rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.newsletter-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.newsletter-form {
  display: grid;
  gap: 0.95rem;
}

.newsletter-action {
  display: grid;
  gap: 0.95rem;
  align-self: end;
}

.newsletter .field {
  gap: 0.55rem;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.newsletter-consent input[type='checkbox'] {
  margin-top: 0.15rem;
}

.newsletter-consent a {
  color: #d7fff7;
  font-weight: 700;
}

.newsletter-feedback {
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 700;
  line-height: 1.45;
}

.newsletter-feedback.is-success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  color: #9ef2ba;
}

.newsletter-feedback.is-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #ffb4b4;
}

.newsletter-admin-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 1rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.newsletter-admin-bar h2 {
  margin: 0;
  font-family: 'Space Grotesk', Inter, sans-serif;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.article-card,
.empty-state {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card h3,
.empty-state h3 {
  margin: 0;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 1.25rem;
}

.article-card p,
.empty-state p,
.article-sidebar p,
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.article-layout {
  display: grid;
  gap: 1rem;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: start;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body::after {
  content: "";
  display: table;
  clear: both;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 2rem 0 0.85rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
  line-height: 1.15;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.2rem;
}

.article-hero-media {
  margin: 0.5rem 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-hero-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-inline-media {
  width: min(42%, 360px);
  margin: 0.25rem 0 1rem 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  float: right;
}

.article-inline-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-inline-media--left {
  float: left;
  margin: 0.25rem 1.25rem 1rem 0;
}

.article-inline-media--right {
  float: right;
  margin: 0.25rem 0 1rem 1.25rem;
}

.article-sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar-block {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-block code,
code {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #d4f7f0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.tag {
  background: rgba(7, 165, 140, 0.1);
  border-color: rgba(7, 165, 140, 0.2);
  color: #b6f3e8;
}

.status-pill {
  margin-right: 0.35rem;
}

.status-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #8df0ad;
}

.status-draft {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.status-brand {
  background: rgba(7, 165, 140, 0.1);
  border-color: rgba(7, 165, 140, 0.25);
  color: #b6f3e8;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-stack {
  gap: 1rem;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 700;
  color: #ebebeb;
}

.field-inline label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.input,
.textarea,
select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  font: inherit;
}

select {
  background-color: #151515;
  color: var(--text);
}

select option {
  background-color: #111111;
  color: var(--text);
}

select option:checked,
select option:hover {
  background-color: #1e1e1e;
  color: #ffffff;
}

.input:focus,
.textarea:focus,
select:focus {
  border-color: rgba(7, 165, 140, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(7, 165, 140, 0.1);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.textarea-code {
  font-family: 'Space Grotesk', 'IBM Plex Mono', monospace;
}

.locale-card {
  padding: 0;
  overflow: hidden;
}

.locale-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.locale-card summary::-webkit-details-marker {
  display: none;
}

.locale-panel {
  padding: 1rem 1.2rem 1.2rem;
  display: grid;
  gap: 1rem;
}

.image-admin-panel {
  display: grid;
  gap: 1rem;
}

.suggestion-panel {
  display: grid;
  gap: 1rem;
}

.suggestion-item {
  display: grid;
  gap: 0.45rem;
  cursor: pointer;
}

.suggestion-item .field-inline {
  align-items: center;
}

.article-image-preview {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 740px;
}

.article-image-preview img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.auth-shell {
  min-height: calc(100vh - 12rem);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(540px, 100%);
}

.table-card {
  overflow: auto;
}

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

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

.table th {
  color: var(--muted-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.table-actions {
  white-space: nowrap;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.inline-form-schedule {
  flex-wrap: wrap;
}

.input-inline-date {
  min-width: 180px;
  width: auto;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
}

.preview-toolbar {
  margin-bottom: 1rem;
}

.muted {
  color: var(--muted);
}

.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-strong);
  font-size: 0.85rem;
}

.footer-link {
  margin-left: 0.65rem;
  color: #c5f5ec;
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 245, 236, 0.35);
}

.footer-link:hover {
  color: #e7fff9;
  border-bottom-color: rgba(231, 255, 249, 0.72);
}

.legal-page {
  padding: clamp(1.2rem, 2.6vw, 2rem);
  display: grid;
  gap: 1rem;
}

.legal-page h1 {
  margin: 0;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.legal-section {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.legal-section h2 {
  margin: 0 0 0.45rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 1.12rem;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.legal-section ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.68;
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.empty-state {
  align-items: flex-start;
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topbar-tools {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
  }

  .topbar-search {
    width: 100%;
  }

  .topbar-locale-inline {
    justify-content: flex-end;
    max-width: 100%;
  }

  .locale-switcher {
    justify-content: flex-start;
  }

  .hero,
  .newsletter,
  .article-grid,
  .section-header,
  .section-header-between,
  .two-cols {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .newsletter-admin-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
  }

  .article-inline-media,
  .article-inline-media--left,
  .article-inline-media--right {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }
}

@media (max-width: 640px) {
  .content {
    width: min(100% - 1rem, 1120px);
    padding-top: 1.25rem;
  }

  .topbar-tools {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-tools.topbar-tools--with-back {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .topbar-locale-select {
    min-width: 70px;
    padding-left: 0.65rem;
    padding-right: 1.5rem;
    font-size: 0.78rem;
  }

  .topbar-search {
    justify-content: flex-end;
  }

  .topbar-tools[data-search-focus='true'] {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar-tools[data-search-focus='true'] .topbar-back,
  .topbar-tools[data-search-focus='true'] .topbar-locale-form {
    display: none;
  }

  .topbar-tools[data-search-focus='true'] .topbar-search {
    grid-column: 1;
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-search input {
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .topbar-tools[data-search-focus='true'] .topbar-search input {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar-search[data-collapsed='true'] input {
    display: none;
  }

  .topbar-search button {
    min-width: 84px;
  }

  .topbar-locale-inline {
    justify-content: flex-start;
  }

  .hero-copy h1,
  .article-header h1,
  .auth-card h1,
  .empty-state h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .brand img {
    width: 120px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .article-body .button {
    text-align: center;
  }
}
