:root {
  --navy: #06194f;
  --blue: #1769e0;
  --sky: #eaf4ff;
  --red: #df2633;
  --coral: #ff5b5f;
  --cream: #fff8ef;
  --ink: #071435;
  --muted: #5d6b85;
  --line: #dce5f3;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(6, 25, 79, 0.12);
  --radius: 24px;
}

/* Admin sober interface v2 */
.admin-body {
  background: #f8fafc;
  color: #111827;
}

.admin-sidebar {
  width: 244px;
  background: #071435;
  padding: 18px 14px;
}

.admin-sidebar nav {
  gap: 2px;
}

.admin-sidebar nav p {
  margin: 18px 8px 6px;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  font-weight: 700;
}

.admin-sidebar nav a,
.admin-sidebar nav span,
.admin-site-link {
  border-radius: 8px;
  padding: 9px 10px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 650;
}

.admin-sidebar nav a:hover,
.admin-site-link:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}

.admin-topbar {
  min-height: 58px;
  margin-left: 244px;
  border-bottom: 1px solid #e6ebf2;
  background: rgba(255,255,255,.9);
  padding: 0 24px;
}

.admin-shell {
  margin-left: 244px;
}

.admin-main {
  width: min(1280px, calc(100% - 40px));
  padding: 18px 0 40px;
}

.admin-hero,
.admin-card,
.admin-panel,
.admin-alert,
.admin-stats article {
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.admin-hero {
  padding: 18px 20px;
}

.admin-hero-compact h1 {
  margin: 2px 0 4px;
  font-size: 24px;
  line-height: 1.15;
}

.admin-hero p,
.admin-panel-head p {
  font-size: 14px;
}

.admin-kicker {
  color: #1769e0;
  font-size: 11px;
  font-weight: 800;
}

.admin-button,
.admin-icon-button,
.admin-wysiwyg-toolbar button {
  min-height: 34px;
  border-radius: 8px;
  box-shadow: none;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.admin-button {
  background: #06194f;
  border-color: #06194f;
}

.admin-button-secondary,
.admin-icon-button,
.admin-wysiwyg-toolbar button {
  background: #fff;
  color: #06194f;
  border-color: #dce3ee;
}

.admin-post-list-panel > .admin-panel-head,
.admin-blog-editor-card > .admin-panel-head {
  padding: 14px 16px;
}

.admin-editor-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-editor-head-actions a,
.admin-panel-head a {
  color: #1769e0;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.admin-filters,
.admin-editor-layout {
  padding: 14px 16px;
}

.admin-filters {
  grid-template-columns: minmax(260px, 1fr) 160px 190px auto;
}

.admin-filters input,
.admin-filters select,
.admin-blog-form input,
.admin-blog-form textarea,
.admin-blog-form select,
.admin-side-card input,
.admin-side-card textarea,
.admin-side-card select {
  min-height: 34px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
  font-size: 14px;
}

.admin-blog-form label,
.admin-side-card label,
.admin-filters label {
  gap: 5px;
  color: #1f2a44;
  font-size: 13px;
  font-weight: 700;
}

.admin-editor-layout {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 12px;
}

.admin-editor-main,
.admin-editor-side,
.admin-side-card {
  gap: 10px;
}

.admin-field-grid {
  grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr);
  gap: 10px;
}

.admin-side-card,
.admin-editor-surface,
.admin-preview-card article {
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #fff;
}

.admin-side-card {
  padding: 12px;
}

.admin-side-card h3 {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 800;
}

.admin-editor-mode-toggle {
  gap: 6px;
}

.admin-inline-radio {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 750;
}

.admin-inline-radio.is-active {
  background: #06194f;
  border-color: #06194f;
}

.admin-wysiwyg-toolbar {
  gap: 5px;
  padding: 8px;
  background: #f8fafc;
}

.admin-natural-editor {
  min-height: 500px;
  padding: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.admin-html-editor-wrap {
  background: #0b1220;
}

.admin-html-editor {
  min-height: 545px;
  color: #e5edf9 !important;
  font-size: 13px !important;
}

.admin-preview-frame {
  display: block;
  width: 100%;
  min-height: 545px;
  border: 0;
  background: #fff;
}

.admin-table {
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 11px 14px;
}

.admin-status {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 750;
}

.admin-blog-form > .admin-form-row {
  padding: 0 16px 16px;
}

@media (max-width: 920px) {
  .admin-topbar,
  .admin-shell {
    margin-left: 0;
  }

  .admin-sidebar {
    width: auto;
  }

  .admin-editor-layout,
  .admin-field-grid,
  .admin-filters {
    grid-template-columns: 1fr;
  }
}
/* Admin terms list definitive layout */
.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.admin-list-copy {
  display: grid !important;
  min-width: 0;
  gap: 3px !important;
}

.admin-list-copy strong,
.admin-list-copy small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-copy strong {
  line-height: 1.2;
}

.admin-list-copy small {
  line-height: 1.25;
}

.admin-list-actions {
  align-self: center;
  white-space: nowrap;
}

/* Admin terms list definitive layout */
.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.admin-list-copy {
  display: grid !important;
  min-width: 0;
  gap: 3px !important;
}

.admin-list-copy strong,
.admin-list-copy small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-copy strong {
  line-height: 1.2;
}

.admin-list-copy small {
  line-height: 1.25;
}

.admin-list-actions {
  align-self: center;
  white-space: nowrap;
}

/* Admin editor definitive overrides */
.admin-blog-editor-card .admin-editor-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 292px;
}

.admin-blog-editor-card .admin-editor-main {
  display: flex;
  flex-direction: column;
  align-self: start;
  justify-content: flex-start;
  gap: 10px;
}

.admin-blog-editor-card .admin-field-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 8px;
}

.admin-blog-editor-card .admin-blog-form label,
.admin-blog-editor-card .admin-side-card label {
  font-size: 12px;
  line-height: 1.2;
}

.admin-blog-editor-card .admin-field-grid input,
.admin-blog-editor-card textarea[data-excerpt-input] {
  min-height: 32px;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.35;
}

.admin-blog-editor-card textarea[data-excerpt-input] {
  min-height: 72px;
}

.admin-blog-editor-card .admin-slug-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.admin-blog-editor-card .admin-slug-row .admin-icon-button {
  min-height: 32px;
  padding: 5px 9px;
}

.admin-blog-editor-card .admin-editor-mode-toggle {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
}

.admin-blog-editor-card .admin-inline-radio {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
}

.admin-blog-editor-card .admin-term-columns > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

.admin-blog-editor-card .admin-term-columns strong {
  flex: 0 0 100%;
  margin-bottom: 2px;
}

.admin-blog-editor-card .admin-term-pill {
  display: inline-flex !important;
  width: auto;
  align-items: center;
  gap: 0;
  border: 1px solid #dce3ee;
  border-radius: 999px;
  background: #f8fbff;
  color: #24324b;
  padding: 6px 10px;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer;
}

.admin-blog-editor-card .admin-term-pill:has(input:checked) {
  border-color: rgba(23, 105, 224, 0.45);
  background: #eaf4ff;
  color: #06194f;
}

.admin-blog-editor-card .admin-term-pill input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-quick-actions {
  border: 0;
  background: transparent;
}

.admin-quick-actions a {
  border: 0;
  background: #f7f9fd;
}

.admin-quick-actions a:hover {
  background: #eaf4ff;
}

.admin-list-actions {
  display: flex !important;
  width: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
}

.admin-list-actions a,
.admin-list-actions button {
  border: 1px solid #dce3ee;
  border-radius: 999px;
  background: #fff;
  color: #06194f;
  padding: 5px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.admin-list-actions button {
  color: #b4232c;
}

.admin-list-actions form {
  margin: 0;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.admin-list-copy {
  display: grid !important;
  min-width: 0;
  gap: 3px !important;
}

.admin-list-copy strong,
.admin-list-copy small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-copy strong {
  line-height: 1.2;
}

.admin-list-copy small {
  line-height: 1.25;
}

.admin-list-actions {
  align-self: center;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .admin-blog-editor-card .admin-editor-layout,
  .admin-blog-editor-card .admin-field-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin editor final cascade fixes */
.admin-blog-editor-card .admin-editor-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 292px;
}

.admin-blog-editor-card .admin-editor-main {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 10px;
}

.admin-blog-editor-card .admin-field-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 8px;
}

.admin-blog-editor-card .admin-blog-form label,
.admin-blog-editor-card .admin-side-card label {
  font-size: 12px;
  line-height: 1.2;
}

.admin-blog-editor-card .admin-field-grid input,
.admin-blog-editor-card textarea[data-excerpt-input] {
  min-height: 32px;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.35;
}

.admin-blog-editor-card textarea[data-excerpt-input] {
  min-height: 72px;
}

.admin-blog-editor-card .admin-slug-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.admin-blog-editor-card .admin-slug-row .admin-icon-button {
  min-height: 32px;
  padding: 5px 9px;
}

.admin-blog-editor-card .admin-editor-mode-toggle {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
}

.admin-blog-editor-card .admin-inline-radio {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
}

.admin-blog-editor-card .admin-term-columns > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

.admin-blog-editor-card .admin-term-columns strong {
  flex: 0 0 100%;
  margin-bottom: 2px;
}

.admin-blog-editor-card .admin-term-pill {
  display: inline-flex !important;
  width: auto;
  align-items: center;
  gap: 0;
  border: 1px solid #dce3ee;
  border-radius: 999px;
  background: #f8fbff;
  color: #24324b;
  padding: 6px 10px;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer;
}

.admin-blog-editor-card .admin-term-pill:has(input:checked) {
  border-color: rgba(23, 105, 224, 0.45);
  background: #eaf4ff;
  color: #06194f;
}

.admin-blog-editor-card .admin-term-pill input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-quick-actions {
  border: 0;
  background: transparent;
}

.admin-quick-actions a {
  border: 0;
  background: #f7f9fd;
}

.admin-quick-actions a:hover {
  background: #eaf4ff;
}

@media (max-width: 920px) {
  .admin-blog-editor-card .admin-editor-layout,
  .admin-blog-editor-card .admin-field-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin compact polish */
.admin-brand {
  width: 100%;
  min-height: auto;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
}

.admin-brand img {
  width: 168px;
  max-width: 100%;
}

.admin-blog-form .admin-field-grid {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
}

.admin-blog-form .admin-field-grid input,
.admin-blog-form textarea[data-excerpt-input] {
  min-height: 32px;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.35;
}

.admin-blog-form textarea[data-excerpt-input] {
  min-height: 72px;
}

.admin-blog-form .admin-field-grid label,
.admin-blog-form > label {
  color: #24324b;
  font-size: 12px;
  line-height: 1.2;
}

.admin-slug-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.admin-slug-row .admin-icon-button {
  min-height: 32px;
  padding: 5px 9px;
}

.admin-editor-mode-toggle {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.admin-inline-radio {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
}

.admin-term-columns > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

.admin-term-columns strong {
  flex: 0 0 100%;
  margin-bottom: 2px;
}

.admin-term-pill {
  display: inline-flex !important;
  width: auto;
  align-items: center;
  gap: 6px;
  border: 1px solid #dce3ee;
  border-radius: 999px;
  background: #f8fbff;
  color: #24324b;
  padding: 5px 9px;
  font-size: 12px !important;
  font-weight: 750 !important;
}

.admin-term-pill:has(input:checked) {
  border-color: rgba(23, 105, 224, 0.45);
  background: #eaf4ff;
  color: #06194f;
}

.admin-term-pill input {
  width: 12px;
  height: 12px;
  margin: 0;
}

.admin-quick-actions {
  border: 0;
  background: transparent;
}

.admin-quick-actions a {
  border: 0;
  background: #f7f9fd;
}

.admin-quick-actions a:hover {
  background: #eaf4ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 229, 243, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 270px;
  height: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a,
.submenu-toggle {
  text-decoration: none;
  font-weight: 700;
}

.nav-link {
  padding: 0.45rem 0;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.submenu-toggle span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.submenu {
  position: absolute;
  top: 100%;
  left: -0.9rem;
  z-index: 12;
  display: grid;
  min-width: 250px;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 0.6rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.submenu a {
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  color: var(--ink);
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu,
.nav-item.is-open .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-item:hover .submenu-toggle span,
.nav-item:focus-within .submenu-toggle span,
.nav-item.is-open .submenu-toggle span {
  transform: translateY(2px) rotate(225deg);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  color: var(--blue);
}

.button,
.button-secondary,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 0.85rem 1.2rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  border: 1px solid var(--navy);
  background: linear-gradient(135deg, var(--navy), #12378f);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(6, 25, 79, 0.18);
}

.button:hover,
.button-secondary:hover,
.button-light:hover {
  transform: translateY(-2px);
}

.button:hover,
.button:focus-visible,
.button-light:hover,
.button-light:focus-visible {
  color: var(--white);
}

.button.is-success,
.button.is-success:hover,
.button.is-success:focus-visible {
  border-color: #0f8f8a;
  background: #0f8f8a;
  color: var(--white);
  box-shadow: 0 14px 28px rgba(15, 143, 138, 0.2);
}

.nav-links .button:hover,
.nav-links .button:focus-visible {
  color: var(--white);
}

.button-secondary {
  border: 1px solid rgba(6, 25, 79, 0.22);
  background: var(--white);
  color: var(--navy);
}

.button-light {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: var(--white);
  color: var(--navy);
  text-align: center;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  width: min(560px, calc(100% - 2rem));
  border: 1px solid rgba(6, 25, 79, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(6, 25, 79, 0.14);
  padding: 0.78rem;
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
}

.cookie-banner p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.cookie-actions a {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.cookie-actions button {
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 0.62rem 0.78rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.cookie-actions .cookie-button-secondary {
  border-color: rgba(6, 25, 79, 0.18);
  background: var(--white);
  color: var(--navy);
}

.has-modal-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 25, 79, 0.58);
  backdrop-filter: blur(10px);
}

.contact-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  border: 1px solid rgba(6, 25, 79, 0.14);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(6, 25, 79, 0.26);
  padding: 1.5rem;
  outline: none;
}

.contact-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(6, 25, 79, 0.12);
  border-radius: 50%;
  background: #f7fbff;
  color: var(--navy);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-dialog-head {
  padding-right: 3rem;
}

.contact-dialog-head h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.contact-dialog-head p:last-child {
  margin-top: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--navy);
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(6, 25, 79, 0.16);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-weight: 650;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(23, 105, 224, 0.55);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.11);
  outline: none;
}

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

.contact-conditional[hidden] {
  display: none;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-note {
  margin: -0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form-note.is-success {
  color: #0f8f8a;
  font-weight: 800;
}

.contact-form-note.is-error {
  color: var(--red);
  font-weight: 800;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(23, 105, 224, 0.13), transparent 32%),
    linear-gradient(110deg, #ffffff 0%, #f4f9ff 58%, #fff8ef 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 2rem;
  min-height: 640px;
  padding: 4.2rem 0 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  border-radius: 999px;
  background: rgba(23, 105, 224, 0.1);
  color: var(--blue);
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 4rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.accent {
  color: var(--red);
}

.lead {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: #263552;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.social-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--muted);
  font-weight: 700;
}

.avatars {
  display: flex;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: -10px;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--sky);
  box-shadow: 0 8px 18px rgba(6, 25, 79, 0.1);
  font-weight: 900;
}

.stars {
  color: #ffb000;
  letter-spacing: 0.05em;
}

.hero-card {
  position: relative;
}

.hero-card img {
  display: block;
  filter: drop-shadow(0 28px 42px rgba(6, 25, 79, 0.18));
}

.bubble {
  position: absolute;
  right: 3%;
  top: 8%;
  rotate: 5deg;
  border-radius: 26px 26px 8px 26px;
  background: var(--red);
  color: var(--white);
  padding: 1rem 1.1rem;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 18px 30px rgba(223, 38, 51, 0.25);
}

.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.3rem 0;
}

.trust-item,
.card,
.step,
.quote,
.faq-item,
.page-link,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 45px rgba(6, 25, 79, 0.06);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 0;
  box-shadow: none;
}

.icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sky);
  color: var(--blue);
}

.icon svg {
  display: block;
  width: 28px;
  height: 28px;
  overflow: visible;
}

.icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item-blue .icon {
  background: #eaf4ff;
  color: #1769e0;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 224, 0.12);
}

.trust-item-red .icon {
  background: #fff0f1;
  color: #df2633;
  box-shadow: inset 0 0 0 1px rgba(223, 38, 51, 0.14);
}

.trust-item-sky .icon {
  background: #eef8f6;
  color: #0f8f8a;
  box-shadow: inset 0 0 0 1px rgba(15, 143, 138, 0.14);
}

.trust-item-navy .icon {
  background: #eef1ff;
  color: #06194f;
  box-shadow: inset 0 0 0 1px rgba(6, 25, 79, 0.12);
}

.trust-item strong {
  display: block;
  color: var(--navy);
  line-height: 1.15;
}

.trust-item div span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-head p {
  margin: 0.85rem 0 0.85rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.card {
  overflow: hidden;
  padding: 0.65rem;
}

.card img {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: var(--sky);
}

.card-content {
  padding: 1rem 0.75rem 0.9rem;
}

.card p,
.step p,
.quote p,
.feature-card p,
.page-link p,
.faq-item p,
.text-block p,
.check-list,
.timeline p {
  color: var(--muted);
}

.level {
  color: var(--blue);
  font-weight: 900;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  padding: 1.25rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.panel {
  border-radius: 34px;
  background: linear-gradient(135deg, var(--navy), #0f43ad);
  color: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.panel h2,
.panel h3 {
  color: var(--white);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.check-list li::before {
  content: "✓";
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(23, 105, 224, 0.12);
  color: var(--blue);
  font-weight: 900;
}

.links-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.page-link,
.feature-card {
  padding: 1.35rem;
  text-decoration: none;
}

.page-link:hover {
  border-color: rgba(23, 105, 224, 0.45);
  transform: translateY(-2px);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.quote {
  padding: 1.4rem;
}

.quote-mark {
  color: var(--blue);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  padding: 1.3rem;
}

.faq-item summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
}

.faq-item summary::marker {
  color: var(--blue);
}

.faq-item p {
  margin-bottom: 0;
}

.cta-band {
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem 0;
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.site-footer {
  background: #fbfdff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.footer-grid a {
  display: block;
  margin: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--blue);
}

.footer-social-link {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.footer-social-link svg {
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.05rem;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.source-note {
  margin-top: 1.4rem;
}

.source-note a {
  color: var(--blue);
  font-weight: 800;
}

.page-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 91, 95, 0.16), transparent 26%),
    linear-gradient(135deg, #f4f9ff 0%, #ffffff 58%, #fff8ef 100%);
  padding: 5rem 0 3.5rem;
}

.level-hero {
  background:
    linear-gradient(110deg, rgba(6, 25, 79, 0.9), rgba(6, 25, 79, 0.62)),
    url("/assets/sydney-opera.webp") center / cover;
  color: var(--white);
  padding: 5rem 0 4rem;
}

.level-hero .breadcrumb,
.level-hero .breadcrumb a,
.level-hero .eyebrow,
.level-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.level-hero h1 {
  color: var(--white);
}

.level-hero-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.level-hero-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 1.4rem;
}

.level-hero-panel strong {
  color: var(--red);
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.level-hero-panel p {
  color: var(--muted);
}

.level-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.level-intro,
.level-test,
.level-result {
  grid-column: 1;
}

.level-scale {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-column: 2;
  grid-row: 1 / span 3;
  padding: 1.2rem;
  position: sticky;
  top: 1rem;
}

.level-scale h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.level-scale div {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.level-scale div:first-of-type {
  border-top: 0;
}

.level-scale strong {
  color: var(--navy);
  display: block;
  font-size: 0.95rem;
}

.level-scale p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.level-test {
  display: grid;
  gap: 1rem;
}

.level-question {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.level-question.is-correct {
  border-color: rgba(23, 105, 224, 0.42);
  box-shadow: 0 14px 34px rgba(23, 105, 224, 0.09);
}

.level-question.is-wrong {
  border-color: rgba(223, 38, 51, 0.36);
  box-shadow: 0 14px 34px rgba(223, 38, 51, 0.08);
}

.level-question legend {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 1rem;
  padding: 0;
}

.level-question legend span {
  align-items: center;
  background: var(--sky);
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 0.84rem;
  height: 1.7rem;
  justify-content: center;
  margin-right: 0.45rem;
  width: 1.7rem;
}

.level-question legend small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

.level-question legend em {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  margin-top: 0.35rem;
}

.level-options {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.level-options label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.level-options label:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.level-options input {
  accent-color: var(--blue);
}

.level-answer-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  width: 100%;
}

.level-answer-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.12);
  outline: none;
}

.level-feedback {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.75rem 0 0;
  min-height: 1.4em;
}

.level-question.is-correct .level-feedback {
  color: var(--blue);
}

.level-question.is-wrong .level-feedback {
  color: var(--red);
}

.level-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.level-result {
  background: var(--navy);
  border-radius: 8px;
  color: var(--white);
  padding: 1.5rem;
}

.level-result .eyebrow,
.level-result p,
.level-result h2 {
  color: var(--white);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.breadcrumb {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.hero-note {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-note img {
  display: block;
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center bottom;
}

.hero-note h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  padding-top: 15px;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  border-left: 4px solid var(--blue);
  padding-left: 1rem;
}

.two-columns {
  columns: 2;
  column-gap: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.blog-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 45px rgba(6, 25, 79, 0.06);
}

.blog-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
}

.blog-meta {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.blog-tags {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.blog-article {
  padding: 5rem 0;
}

.blog-article-inner {
  max-width: 820px;
}

.article-body {
  margin-top: 2rem;
  color: #263552;
  font-size: 1.08rem;
  line-height: 1.72;
}

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

.article-body h2,
.article-body h3 {
  color: var(--navy);
  letter-spacing: 0;
}

.article-body h2 {
  margin: 2.35rem 0 0.8rem;
  font-size: 1.85rem;
  line-height: 1.18;
}

.article-body h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.32rem;
  line-height: 1.24;
}

.article-body h2:first-child,
.article-body h3:first-child,
.article-body p:first-child {
  margin-top: 0;
}

.article-body a {
  color: var(--blue);
  font-weight: 850;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.article-body strong {
  font-weight: bolder;
}

.article-body em {
  font-style: italic;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin: 0.35rem 0;
}

.article-body blockquote {
  margin: 1.4rem 0;
  border-left: 3px solid var(--blue);
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--muted);
  background: #f8fbff;
}

.privacy-page .text-block h2 {
  margin-top: 1.45rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.privacy-page .text-block h2:first-child {
  margin-top: 0;
}

.empty-state {
  padding: 1.5rem;
  text-align: center;
}

.empty-state.compact {
  box-shadow: none;
}

.about-hero {
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.8), rgba(255, 255, 255, 0.96)),
    url("/assets/cityline.svg") center bottom / min(1100px, 100%) auto no-repeat;
  padding: 6rem 0 7rem;
}

.about-hero-inner {
  max-width: 920px;
}

.about-story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.about-profile-story {
  grid-template-columns: 1.2fr 0.8fr;
}

.about-profile-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  padding: 1.5rem;
  box-shadow: 0 18px 44px rgba(6, 25, 79, 0.08);
}

.about-profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
}

.about-profile-initial {
  display: grid;
  width: 88px;
  height: 88px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 900;
}

.working-hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--navy);
}

.working-hero picture,
.working-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.working-hero img {
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.72;
}

.working-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 25, 79, 0.9) 0%, rgba(6, 25, 79, 0.58) 46%, rgba(6, 25, 79, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 25, 79, 0.35), transparent 45%);
}

.working-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 7rem 0 5rem;
}

.working-hero-copy h1,
.working-hero-copy p {
  max-width: 720px;
  color: var(--white);
}

.working-hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.working-content-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.admin-body {
  min-height: 100vh;
  background: #f6f8fc;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  width: 260px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--white);
  padding: 1.2rem;
}

.admin-brand img {
  width: 206px;
  height: 64px;
  object-fit: contain;
}

.admin-sidebar nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
}

.admin-sidebar nav a,
.admin-sidebar nav span,
.admin-site-link {
  border-radius: 14px;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  font-weight: 800;
}

.admin-sidebar nav a:hover,
.admin-site-link:hover {
  background: var(--sky);
  color: var(--blue);
}

.admin-sidebar nav span {
  color: var(--muted);
}

.admin-site-link {
  margin-top: auto;
}

.admin-shell {
  min-height: 100vh;
  margin-left: 260px;
}

.admin-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.admin-hero,
.admin-card,
.admin-panel,
.admin-alert,
.admin-stats article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(6, 25, 79, 0.06);
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem;
}

.admin-kicker {
  margin: 0 0 0.35rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-hero h1,
.admin-card h2,
.admin-panel h2 {
  letter-spacing: 0;
}

.admin-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.admin-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.admin-panel h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--navy);
  border-radius: 13px;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-button-secondary {
  background: var(--white);
  color: var(--navy);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.admin-stats article {
  padding: 1.2rem;
}

.admin-stats span,
.admin-card p,
.admin-panel-head span,
.admin-list-item small {
  color: var(--muted);
}

.admin-stats strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--navy);
  font-size: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.admin-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
}

.admin-card-active {
  border-color: rgba(23, 105, 224, 0.35);
}

.admin-card a,
.admin-card span {
  color: var(--blue);
  font-weight: 900;
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.admin-panel,
.admin-alert {
  padding: 1.2rem;
}

.admin-alert {
  margin-top: 1rem;
}

.admin-alert-success {
  border-color: rgba(15, 143, 138, 0.24);
  background: #eef8f6;
}

.admin-alert-error {
  border-color: rgba(223, 38, 51, 0.24);
  background: #fff0f1;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-panel-head a {
  color: var(--blue);
  font-weight: 900;
}

.admin-form {
  display: grid;
  gap: 0.9rem;
}

.admin-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--navy);
  font-weight: 850;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 0.8rem;
}

.admin-list {
  display: grid;
  gap: 0.65rem;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  text-decoration: none;
}

.admin-list-item:hover {
  border-color: rgba(23, 105, 224, 0.4);
}

.admin-list-item span {
  display: grid;
  gap: 0.2rem;
}

.admin-list-item em {
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.admin-term-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.admin-term-fieldset legend {
  color: var(--navy);
  font-weight: 900;
}

.admin-term-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.admin-term-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
}

.admin-term-grid input {
  width: auto;
}

.admin-term-grid small {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-login-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.admin-login-card {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  padding: 1.6rem;
  box-shadow: 0 18px 44px rgba(6, 25, 79, 0.08);
}

.admin-body {
  background:
    radial-gradient(circle at 80% 0%, rgba(23, 105, 224, 0.08), transparent 30rem),
    #f7f9fd;
}

.admin-sidebar {
  border-right: 0;
  background: linear-gradient(180deg, #06194f 0%, #071435 100%);
  color: var(--white);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
}

.admin-brand img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

.admin-sidebar nav {
  gap: 0.2rem;
  overflow-y: auto;
}

.admin-sidebar nav p {
  margin: 1.25rem 0 0.35rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar nav a,
.admin-sidebar nav span,
.admin-site-link {
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid transparent;
}

.admin-sidebar nav a:hover,
.admin-site-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.admin-sidebar nav a[href="/admin/"],
.admin-sidebar nav a[href="/admin/blog-posts.php"] {
  color: var(--white);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-left: 260px;
  border-bottom: 1px solid rgba(220, 229, 243, 0.9);
  background: rgba(255, 255, 255, 0.82);
  padding: 0 2rem;
  backdrop-filter: blur(16px);
}

.admin-search {
  display: grid;
  gap: 0.25rem;
  width: min(360px, 100%);
}

.admin-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.admin-search input {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0.8rem 1rem;
  font: inherit;
}

.admin-user-pill {
  display: grid;
  justify-items: end;
  color: var(--navy);
  font-weight: 900;
}

.admin-user-pill small {
  color: var(--muted);
  font-weight: 700;
}

.admin-shell {
  min-height: calc(100vh - 78px);
}

.admin-main {
  width: min(1480px, calc(100% - 48px));
  padding-top: 1.4rem;
}

.admin-hero-compact h1 {
  margin: 0.2rem 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-button {
  background: linear-gradient(135deg, var(--blue), #5a45e8);
  border-color: rgba(23, 105, 224, 0.45);
  box-shadow: 0 12px 26px rgba(23, 105, 224, 0.2);
}

.admin-button-secondary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.admin-stats {
  grid-template-columns: repeat(4, 1fr);
}

.admin-stats article {
  position: relative;
  min-height: 132px;
  padding: 1.35rem;
  overflow: hidden;
}

.admin-stats article::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(23, 105, 224, 0.16), rgba(255, 91, 95, 0.14));
}

.admin-stats small {
  display: block;
  margin-top: 0.25rem;
  color: #2e8b57;
  font-weight: 800;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 1rem;
  margin-top: 1rem;
}

.admin-recent-panel {
  grid-row: span 2;
}

.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-quick-actions a,
.admin-module-list span {
  display: grid;
  min-height: 86px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  color: var(--navy);
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.admin-module-list {
  display: grid;
  gap: 0.7rem;
}

.admin-module-list span {
  min-height: auto;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-align: left;
}

.admin-module-list em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.admin-blog-workspace {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-post-list-panel,
.admin-blog-editor-card {
  padding: 0;
  overflow: hidden;
}

.admin-post-list-panel > .admin-panel-head,
.admin-blog-editor-card > .admin-panel-head {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
}

.admin-panel-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 220px auto;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.admin-filters label,
.admin-blog-form label,
.admin-side-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--navy);
  font-weight: 850;
}

.admin-filters input,
.admin-filters select,
.admin-blog-form input,
.admin-blog-form textarea,
.admin-blog-form select,
.admin-side-card input,
.admin-side-card textarea,
.admin-side-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink);
  padding: 0.78rem 0.9rem;
  font: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.admin-table th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  margin-top: 0.25rem;
  color: var(--muted);
}

.admin-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-status-published {
  background: #e9f9ee;
  color: #147a3f;
}

.admin-status-draft {
  background: #fff4de;
  color: #9a5a00;
}

.admin-status-archived {
  background: #edf1f7;
  color: #5d6b85;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.admin-table-actions a,
.admin-table-actions button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.admin-table-actions form {
  display: inline;
}

.admin-table-actions button,
.admin-button-danger {
  color: var(--red);
}

.admin-button-danger {
  border-color: rgba(223, 38, 51, 0.24);
  background: #fff0f1;
}

.admin-delete-form {
  border-top: 1px solid var(--line);
  margin: 0 1.25rem 1.25rem;
  padding-top: 1rem;
}

.admin-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 1rem;
  padding: 1.25rem;
}

.admin-editor-main,
.admin-editor-side,
.admin-side-card {
  display: grid;
  gap: 1rem;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 0.85rem;
}

.admin-slug-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.admin-icon-button,
.admin-editor-toolbar button {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--navy);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-side-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
  padding: 1rem;
}

.admin-side-card h3 {
  margin: 0;
  color: var(--navy);
}

.admin-term-columns {
  display: grid;
  gap: 1rem;
}

.admin-term-columns > div {
  display: grid;
  gap: 0.45rem;
}

.admin-term-columns label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 750;
}

.admin-term-columns input {
  width: auto;
}

.admin-preview-card article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 1rem;
}

.admin-preview-card h4 {
  margin: 0.25rem 0 0.45rem;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.2;
}

.admin-preview-card p:not(.admin-kicker) {
  margin: 0;
  color: var(--muted);
}

/* Minimal admin refinement */
.admin-body {
  background: #f7f8fb;
}

.admin-topbar {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-main {
  width: min(1360px, calc(100% - 48px));
}

.admin-hero,
.admin-card,
.admin-panel,
.admin-alert,
.admin-stats article {
  border-color: #e4e9f2;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(6, 25, 79, 0.04);
}

.admin-sidebar {
  background: #071435;
  padding: 1rem;
}

.admin-sidebar nav a,
.admin-sidebar nav span,
.admin-site-link {
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  font-size: 0.92rem;
}

.admin-hero-compact h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.admin-panel h2,
.admin-card h2 {
  font-size: 1.15rem;
}

.admin-button {
  min-height: 38px;
  border-radius: 10px;
  background: var(--navy);
  border-color: var(--navy);
  padding: 0.55rem 0.82rem;
  box-shadow: none;
  font-size: 0.9rem;
}

.admin-button-secondary {
  background: var(--white);
  color: var(--navy);
}

.admin-filters input,
.admin-filters select,
.admin-blog-form input,
.admin-blog-form textarea,
.admin-blog-form select,
.admin-side-card input,
.admin-side-card textarea,
.admin-side-card select {
  min-height: 38px;
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
}

.admin-blog-form label,
.admin-side-card label,
.admin-filters label {
  font-size: 0.86rem;
  font-weight: 760;
}

.admin-blog-editor-card > .admin-panel-head,
.admin-post-list-panel > .admin-panel-head {
  padding: 0.95rem 1rem;
}

.admin-editor-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0.8rem;
  padding: 1rem;
}

.admin-field-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 0.65rem;
}

.admin-side-card {
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem;
}

.admin-side-card h3 {
  font-size: 0.95rem;
}

.admin-editor-mode-toggle {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.admin-inline-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe2ee;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0.42rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-inline-radio.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.admin-inline-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-editor-surface {
  border: 1px solid #dbe2ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.admin-editor-surface.is-hidden {
  display: none;
}

.admin-wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-bottom: 1px solid #e7ecf4;
  background: #fbfcfe;
  padding: 0.55rem;
}

.admin-wysiwyg-toolbar button {
  min-width: 34px;
  border: 1px solid #dbe2ee;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  padding: 0.38rem 0.52rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-natural-editor {
  min-height: 480px;
  padding: 1rem;
  outline: none;
  color: #17213a;
  line-height: 1.65;
}

.admin-natural-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(23, 105, 224, 0.14);
}

.admin-html-editor-wrap {
  background: #101827;
}

.admin-html-editor {
  min-height: 535px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #e7edf8 !important;
  padding: 1rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace !important;
  font-size: 0.86rem !important;
  line-height: 1.6;
  resize: vertical;
}

.admin-blog-form > .admin-form-row {
  padding: 0 1.25rem 1.25rem;
  grid-template-columns: auto auto;
  justify-content: start;
}

.admin-login-body .admin-shell {
  margin-left: 0;
  min-height: 100vh;
}

.admin-login-body {
  background:
    linear-gradient(135deg, rgba(6, 25, 79, 0.95), rgba(23, 105, 224, 0.62)),
    #06194f;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: calc(100% + 1px) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    padding: 0.8rem;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem;
  }

  .nav-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid rgba(220, 229, 243, 0.75);
  }

  .nav-item .nav-link {
    padding: 0.8rem;
  }

  .submenu-toggle {
    width: 44px;
    height: 44px;
  }

  .submenu {
    position: static;
    grid-column: 1 / -1;
    display: none;
    min-width: 0;
    border: 0;
    border-radius: 14px;
    background: #f7fbff;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-item:hover .submenu,
  .nav-item:focus-within .submenu {
    display: none;
  }

  .nav-item.is-open .submenu {
    display: grid;
  }

  .nav-links .button {
    margin-top: 0.4rem;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    align-items: stretch;
    flex-wrap: wrap;
    white-space: normal;
  }

  .contact-dialog {
    max-height: 94vh;
    padding: 1.1rem;
  }

  .contact-dialog-head {
    padding-right: 2.8rem;
  }

  .contact-conditional {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .page-hero-grid,
  .level-hero-grid,
  .level-layout,
  .split,
  .about-story,
  .working-content-grid {
    grid-template-columns: 1fr;
  }

  .level-intro,
  .level-test,
  .level-result,
  .level-scale {
    grid-column: 1;
  }

  .level-scale {
    grid-row: auto;
    position: static;
  }

  .hero-grid {
    min-height: auto;
  }

  .trust-grid,
  .cards-grid,
  .method-grid,
  .links-grid,
  .feature-grid,
  .quotes-grid,
  .faq-grid,
  .footer-grid,
  .blog-grid,
  .admin-grid,
  .admin-editor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
  }

  .admin-sidebar nav p {
    grid-column: 1 / -1;
  }

  .admin-topbar {
    position: static;
    margin-left: 0;
    padding: 1rem;
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-pill {
    justify-items: start;
  }

  .admin-site-link {
    margin-top: 1rem;
  }

  .admin-shell {
    margin-left: 0;
  }

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

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-dashboard-grid,
  .admin-editor-layout,
  .admin-field-grid,
  .admin-filters {
    grid-template-columns: 1fr;
  }

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

  .working-hero {
    min-height: 620px;
  }

  .working-hero::after {
    background: linear-gradient(180deg, rgba(6, 25, 79, 0.84), rgba(6, 25, 79, 0.38));
  }
}

@media (max-width: 640px) {
  .container,
  .nav {
    width: min(100% - 24px, 1120px);
  }

  .logo img {
    width: 230px;
    height: auto;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-grid {
    padding: 3rem 0 2rem;
  }

  .trust-grid,
  .cards-grid,
  .method-grid,
  .links-grid,
  .feature-grid,
  .quotes-grid,
  .faq-grid,
  .footer-grid,
  .metric-grid,
  .level-options,
  .blog-grid,
  .admin-grid,
  .admin-stats,
  .admin-editor-grid,
  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-main {
    width: min(100% - 24px, 1120px);
  }

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

  .admin-quick-actions,
  .admin-blog-form > .admin-form-row,
  .admin-slug-row {
    grid-template-columns: 1fr;
  }

  .admin-list-item,
  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .cta-band .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .button-secondary,
  .button-light {
    width: 100%;
  }

  .bubble {
    right: 0;
    top: 2%;
    font-size: 0.9rem;
  }

  .two-columns {
    columns: 1;
  }

  .about-hero {
    padding: 4.5rem 0 5rem;
  }

  .working-hero {
    min-height: 700px;
  }
}

/* Admin sober interface v3: final overrides */
.admin-body {
  background: #f8fafc;
  color: #111827;
}

.admin-sidebar {
  width: 244px;
  background: #071435;
  border-right: 0;
  padding: 18px 14px;
}

.admin-brand img {
  width: 178px;
  filter: none;
}

.admin-sidebar nav {
  gap: 2px;
  margin-top: 18px;
}

.admin-sidebar nav p {
  margin: 18px 8px 6px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-sidebar nav a,
.admin-sidebar nav span,
.admin-site-link {
  border-radius: 8px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.admin-sidebar nav a:hover,
.admin-site-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: none;
}

.admin-site-link {
  margin-top: auto;
}

.admin-topbar {
  min-height: 58px;
  margin-left: 244px;
  border-bottom: 1px solid #e6ebf2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  padding: 0 24px;
}

.admin-shell {
  margin-left: 244px;
}

.admin-main {
  width: min(1280px, calc(100% - 40px));
  padding: 18px 0 40px;
}

.admin-hero,
.admin-card,
.admin-panel,
.admin-alert,
.admin-stats article,
.admin-activity-feed,
.admin-quick-actions,
.admin-module-list {
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.admin-hero {
  align-items: center;
  padding: 18px 20px;
}

.admin-hero-compact h1,
.admin-hero h1 {
  margin: 2px 0 4px;
  font-size: 24px;
  line-height: 1.15;
}

.admin-hero p,
.admin-panel-head p,
.admin-card p,
.admin-stats article p {
  color: #667085;
  font-size: 14px;
}

.admin-kicker {
  color: #1769e0;
  font-size: 11px;
  font-weight: 800;
}

.admin-stats article {
  min-height: auto;
  padding: 16px;
}

.admin-stats article::after {
  content: none;
}

.admin-button,
.admin-icon-button,
.admin-wysiwyg-toolbar button {
  min-height: 34px;
  border-radius: 8px;
  box-shadow: none;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  transform: none;
}

.admin-button {
  background: #06194f;
  border-color: #06194f;
  color: #fff;
}

.admin-button:hover {
  background: #06194f;
  color: #fff;
  transform: none;
}

.admin-button-secondary,
.admin-icon-button,
.admin-wysiwyg-toolbar button {
  background: #fff;
  color: #06194f;
  border-color: #dce3ee;
}

.admin-button-secondary:hover,
.admin-icon-button:hover,
.admin-wysiwyg-toolbar button:hover {
  background: #f8fafc;
  color: #06194f;
  transform: none;
}

.admin-post-list-panel > .admin-panel-head,
.admin-blog-editor-card > .admin-panel-head,
.admin-panel-head {
  padding: 14px 16px;
}

.admin-editor-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-editor-head-actions a,
.admin-panel-head a {
  color: #1769e0;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.admin-filters,
.admin-editor-layout {
  padding: 14px 16px;
}

.admin-filters {
  grid-template-columns: minmax(260px, 1fr) 160px 190px auto;
  gap: 10px;
}

.admin-filters input,
.admin-filters select,
.admin-blog-form input,
.admin-blog-form textarea,
.admin-blog-form select,
.admin-side-card input,
.admin-side-card textarea,
.admin-side-card select,
.admin-search input {
  min-height: 34px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
  font-size: 14px;
  box-shadow: none;
}

.admin-blog-form textarea {
  resize: vertical;
}

.admin-blog-form label,
.admin-side-card label,
.admin-filters label {
  gap: 5px;
  color: #1f2a44;
  font-size: 13px;
  font-weight: 700;
}

.admin-editor-layout {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 12px;
}

.admin-editor-main,
.admin-editor-side,
.admin-side-card {
  gap: 10px;
}

.admin-field-grid {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.48fr);
  gap: 10px;
}

.admin-side-card,
.admin-editor-surface,
.admin-preview-card article {
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.admin-side-card {
  padding: 12px;
}

.admin-side-card h3 {
  margin-bottom: 2px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.admin-term-columns {
  gap: 12px;
}

.admin-term-columns strong {
  font-size: 12px;
}

.admin-editor-mode-toggle {
  justify-content: flex-start;
  gap: 6px;
  margin: 2px 0;
}

.admin-inline-radio {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 750;
}

.admin-inline-radio.is-active {
  background: #06194f;
  border-color: #06194f;
  color: #fff;
}

.admin-wysiwyg-toolbar {
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid #e1e7f0;
  background: #f8fafc;
}

.admin-natural-editor {
  min-height: 500px;
  padding: 18px;
  color: #17213a;
  font-size: 15px;
  line-height: 1.7;
  outline: none;
}

.admin-html-editor-wrap {
  position: relative;
  --admin-html-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --admin-html-font-size: 13px;
  --admin-html-line-height: 1.65;
  --admin-html-pad-y: 14px;
  --admin-html-pad-x: 15px;
  background: #0b1220;
}

.admin-html-editor {
  min-height: 545px;
  border: 0 !important;
  background: #0b1220 !important;
  color: #e5edf9 !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px !important;
  line-height: 1.65;
}

.admin-html-highlight-layer {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: var(--admin-html-pad-y) var(--admin-html-pad-x);
  overflow: auto;
  color: #dbe4f4;
  font-family: var(--admin-html-font);
  font-size: var(--admin-html-font-size);
  line-height: var(--admin-html-line-height);
  pointer-events: none;
  tab-size: 4;
  white-space: pre;
}

.admin-html-editor-input {
  position: relative;
  margin: 0;
  padding: var(--admin-html-pad-y) var(--admin-html-pad-x) !important;
  background: transparent !important;
  color: transparent !important;
  caret-color: #fff;
  font-family: var(--admin-html-font);
  font-size: var(--admin-html-font-size) !important;
  line-height: var(--admin-html-line-height);
  resize: vertical;
  tab-size: 4;
  white-space: pre;
}

.admin-html-editor-input::selection {
  background: rgba(147, 197, 253, 0.32);
}

.admin-html-token-bracket {
  color: #7dd3fc;
}

.admin-html-token-tag {
  color: #93c5fd;
}

.admin-html-token-attr {
  color: #fcd34d;
}

.admin-html-token-value {
  color: #86efac;
}

.admin-html-token-comment {
  color: #94a3b8;
  font-style: italic;
}

.admin-preview-frame {
  display: block;
  width: 100%;
  min-height: 545px;
  border: 0;
  background: #fff;
}

.admin-table {
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 11px 14px;
}

.admin-status {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 750;
}

.admin-blog-form > .admin-form-row {
  padding: 0 16px 16px;
}

.admin-quick-actions a,
.admin-module-list span {
  min-height: 64px;
  border-radius: 10px;
  font-weight: 700;
}

.admin-login-body .admin-shell {
  margin-left: 0;
}

/* Admin editor definitive overrides */
.admin-blog-editor-card .admin-editor-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 292px;
}

.admin-blog-editor-card .admin-editor-main {
  display: flex;
  flex-direction: column;
  align-self: start;
  justify-content: flex-start;
  gap: 10px;
}

.admin-blog-editor-card .admin-field-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 8px;
}

.admin-blog-editor-card .admin-blog-form label,
.admin-blog-editor-card .admin-side-card label {
  font-size: 12px;
  line-height: 1.2;
}

.admin-blog-editor-card .admin-field-grid input,
.admin-blog-editor-card textarea[data-excerpt-input] {
  min-height: 32px;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.35;
}

.admin-blog-editor-card textarea[data-excerpt-input] {
  min-height: 72px;
}

.admin-blog-editor-card .admin-slug-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.admin-blog-editor-card .admin-slug-row .admin-icon-button {
  min-height: 32px;
  padding: 5px 9px;
}

.admin-blog-editor-card .admin-editor-mode-toggle {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
}

.admin-blog-editor-card .admin-inline-radio {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
}

.admin-blog-editor-card .admin-term-columns > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

.admin-blog-editor-card .admin-term-columns strong {
  flex: 0 0 100%;
  margin-bottom: 2px;
}

.admin-blog-editor-card .admin-term-pill {
  display: inline-flex !important;
  width: auto;
  align-items: center;
  gap: 0;
  border: 1px solid #dce3ee;
  border-radius: 999px;
  background: #f8fbff;
  color: #24324b;
  padding: 6px 10px;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer;
}

.admin-blog-editor-card .admin-term-pill:has(input:checked) {
  border-color: rgba(23, 105, 224, 0.45);
  background: #eaf4ff;
  color: #06194f;
}

.admin-blog-editor-card .admin-term-pill input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-quick-actions {
  border: 0;
  background: transparent;
}

.admin-quick-actions a {
  border: 0;
  background: #f7f9fd;
}

.admin-quick-actions a:hover {
  background: #eaf4ff;
}

@media (max-width: 920px) {
  .admin-topbar,
  .admin-shell {
    margin-left: 0;
  }

  .admin-sidebar {
    position: static;
    width: auto;
  }

  .admin-editor-layout,
  .admin-field-grid,
  .admin-filters {
    grid-template-columns: 1fr;
  }
}
