:root {
  /* Stellar Spins cosmic palette */
  --bg: #07091f;              /* deep space navy */
  --bg-soft: #131a3f;          /* nebula blue */
  --bg-accent: #1d1054;        /* cosmic purple */
  --card: #ffffff;
  --text: #14193a;
  --muted: #5b6588;
  --gold: #ffd166;             /* stellar gold */
  --gold-dark: #c8902a;
  --teal: #46e5d3;             /* aurora teal */
  --magenta: #ff5cae;           /* nebula pink */
  --border: #dde2f2;
  --link: #4a3aff;
  --success: #e7f8ee;
  --success-border: #9ed4ae;
  --error: #fff1f1;
  --error-border: #e7b4b4;
  --shadow: 0 18px 44px rgba(7, 9, 31, 0.10);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, 'Segoe UI', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(70, 229, 211, 0.10), transparent 38%),
    radial-gradient(circle at 82% 8%, rgba(255, 92, 174, 0.08), transparent 42%),
    linear-gradient(180deg, #f4f6ff 0%, #eaecff 100%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 2000; padding: .75rem 1rem;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow);
}
.progress-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1300;
  height: 4px;
  background: rgba(255,255,255,.12);
}
.progress-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 50%, var(--magenta) 100%);
}
.site-header {
  background:
    radial-gradient(circle at 12% 0%, rgba(70, 229, 211, 0.18), transparent 35%),
    radial-gradient(circle at 88% 0%, rgba(255, 92, 174, 0.15), transparent 38%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 60%, var(--bg-soft) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(255, 209, 102, 0.14);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}
.logo-crown {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 209, 102, 0.55), transparent 60%),
    linear-gradient(135deg, rgba(70, 229, 211, 0.30), rgba(255, 92, 174, 0.30));
  color: var(--gold);
  font-size: 1.15rem;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.45), inset 0 0 8px rgba(255, 255, 255, 0.18);
  animation: starTwinkle 4.5s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 209, 102, 0.35), inset 0 0 6px rgba(255, 255, 255, 0.15); }
  50%      { box-shadow: 0 0 22px rgba(255, 209, 102, 0.65), inset 0 0 10px rgba(255, 255, 255, 0.25); }
}
.logo-text {
  background: linear-gradient(90deg, #ffffff 0%, var(--gold) 70%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .015em;
}
.site-tagline { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: flex-end;
}
.site-nav a { color: #fff; font-weight: 600; }
.btn-nav, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, #ffe79e 100%);
  color: #2a1900 !important;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(255, 209, 102, 0.35), 0 0 0 1px rgba(255, 209, 102, 0.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-nav:hover, .button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 209, 102, 0.42), 0 0 0 1px rgba(255, 209, 102, 0.55);
  text-decoration: none;
}
.hero-banner {
  position: relative;
  background:
    radial-gradient(circle at 8% 12%, rgba(70, 229, 211, 0.20), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(255, 92, 174, 0.18), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255, 209, 102, 0.14), transparent 50%),
    linear-gradient(135deg, #0b0f2c 0%, var(--bg-accent) 55%, #2a1568 100%);
  color: #fff;
  padding: 1.8rem 0 2.2rem;
  overflow: hidden;
}
.hero-banner::before {
  /* starfield overlay */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 100%, transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.85) 100%, transparent),
    radial-gradient(1.5px 1.5px at 44% 30%, var(--gold) 100%, transparent),
    radial-gradient(1px 1px at 62% 78%, #fff 100%, transparent),
    radial-gradient(1px 1px at 76% 18%, rgba(70,229,211,.9) 100%, transparent),
    radial-gradient(1px 1px at 88% 56%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 18% 82%, var(--magenta) 100%, transparent),
    radial-gradient(1px 1px at 95% 90%, #fff 100%, transparent);
  opacity: .85;
  pointer-events: none;
  animation: starDrift 18s linear infinite;
}
@keyframes starDrift {
  0%   { transform: translateY(0); opacity: .85; }
  50%  { opacity: .55; }
  100% { transform: translateY(-6px); opacity: .85; }
}
.hero-banner > * { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 1.2rem;
  align-items: start;
}
.hero-badge {
  display: inline-block;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(70, 229, 211, 0.16));
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid rgba(255, 209, 102, 0.28);
  text-transform: uppercase;
  font-size: .78rem;
}
.hero-title {
  margin: .85rem 0 .65rem;
  font-size: clamp(1.7rem, 3.1vw, 2.65rem);
  line-height: 1.14;
  background: linear-gradient(95deg, #ffffff 0%, #ffe79e 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy {
  margin: 0;
  color: rgba(255,255,255,.84);
  max-width: 60ch;
}
.hero-mini-card {
  background:
    linear-gradient(135deg, rgba(70, 229, 211, 0.10), rgba(255, 92, 174, 0.08)),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 20px;
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.04);
}
.hero-mini-card strong { color: var(--gold); }
.hero-mini-card strong { display: block; margin-bottom: .5rem; }
.hero-mini-card ul { margin: 0; padding-left: 1.2rem; }
.age-bar {
  background: linear-gradient(90deg, #fff5d8 0%, #fff8e6 50%, #ffeacf 100%);
  border-top: 1px solid rgba(255, 209, 102, 0.55);
  border-bottom: 1px solid rgba(255, 209, 102, 0.55);
  color: #4a3500;
  padding: .85rem 0;
  font-weight: 500;
}
.age-bar a {
  color: #8a4f00;
  font-weight: 700;
  text-decoration: underline;
}
.page-shell { padding: 2rem 0 3rem; }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}
.content-card, .sidebar-card, .form-card, .article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-card { padding: 1.6rem; }
.main-article > * + * { margin-top: 1.5rem; }
.sidebar-card {
  padding: 1.35rem;
  position: sticky;
  top: 7rem;
}
.page-header h1 {
  margin: .25rem 0 .75rem;
  line-height: 1.12;
  font-size: clamp(2rem, 3vw, 3rem);
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--link) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 1.08rem;
  color: #42506a;
  max-width: 62ch;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: .25rem;
}
.feature-panel {
  padding: 1.2rem 1.3rem;
  border: 1px solid #e1e6f7;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(74, 58, 255, 0.05), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(255, 209, 102, 0.06), transparent 40%),
    linear-gradient(180deg, #fcfdff 0%, #f4f6ff 100%);
  position: relative;
}
.feature-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(70, 229, 211, 0.30), transparent 40%, rgba(255, 92, 174, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .6;
}
.feature-panel h2,
.link-grid-section h2,
.faq-section h2,
.article-listing h2,
.related-section h2 { margin: 0 0 .9rem; }
.check-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-dark);
  font-weight: 800;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.link-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dbe5f5;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}
.link-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(14, 20, 34, 0.07);
  text-decoration: none;
}
.link-tile-title { font-weight: 700; }
.link-tile-arrow { color: var(--gold-dark); font-weight: 800; }
.content-body h2,
.content-body h3 { line-height: 1.25; margin: 1.55rem 0 .75rem; }
.content-body p { margin: 0 0 1rem; }
.content-body ul,
.content-body ol,
.visual-editor ul,
.visual-editor ol,
.article-body ul,
.article-body ol { margin: 0 0 1.1rem 1.4rem; }
.sidebar-card h2, .form-card h2 { margin-top: 0; line-height: 1.2; }
.sidebar-list { margin: 0; padding-left: 1.2rem; }
.sidebar-note {
  margin-top: 1.2rem;
  padding: 1rem;
  background: #f7f9fd;
  border-radius: 14px;
  color: #33415c;
}
.faq-list { display: grid; gap: .8rem; }
.faq-item {
  border: 1px solid #dbe5f5;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 0;
  background: transparent;
  padding: 1rem 1.1rem;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-icon { font-size: 1.4rem; transition: transform .2s ease; }
.faq-answer {
  display: none;
  padding: 0 1.1rem 1rem;
  color: #42506a;
}
.faq-answer.is-open { display: block; }
.article-listing { margin-top: 2rem; }
.article-stack { display: grid; gap: 1rem; }
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.article-card {
  padding: 1.25rem;
}
.article-card h3 { margin: 0 0 .45rem; line-height: 1.25; }
.article-meta {
  color: var(--muted);
  font-size: .95rem;
}
.card-kicker {
  margin: 0 0 .45rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-dark);
  font-weight: 800;
}
.compact-card p:last-child { margin-bottom: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.read-more { font-weight: 700; }
.article-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.article-tools label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
}
.form-card {
  margin-top: 2rem;
  padding: 1.5rem;
}
.form-row { margin-bottom: 1rem; }
.form-row.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.field { position: relative; }
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}
.field-label-row label { margin-bottom: 0; }
.field-action {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff7e0, #fff);
  color: var(--gold-dark);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.field-action:hover {
  background: linear-gradient(135deg, #ffe9a8, #fff8e1);
  box-shadow: 0 6px 14px rgba(155, 107, 13, .18);
  transform: translateY(-1px);
}
.field-action:active { transform: translateY(0); }
.field-hint {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .82rem;
  color: var(--muted);
  margin: .35rem 0 0;
}
.field-counter { white-space: nowrap; font-variant-numeric: tabular-nums; }
.field.is-short input,
.field.is-short textarea {
  border-color: #f0b86b;
  box-shadow: 0 0 0 3px rgba(240, 184, 107, .15);
}
.field.is-good input,
.field.is-good textarea {
  border-color: #6cc28e;
  box-shadow: 0 0 0 3px rgba(108, 194, 142, .15);
}
.field.is-warn input,
.field.is-warn textarea {
  border-color: #d97a7a;
  box-shadow: 0 0 0 3px rgba(217, 122, 122, .18);
}
@keyframes fieldFlash {
  0%   { background-color: #fff8dc; }
  100% { background-color: #fff;    }
}
.field-flash { animation: fieldFlash .9s ease-out 1; }

.button-link--ghost {
  background: transparent;
  color: var(--link);
  border: 1px solid var(--border);
  box-shadow: none;
}
.button-link--ghost:hover {
  background: rgba(90, 51, 214, .06);
  text-decoration: none;
}
.draft-indicator {
  font-size: .85rem;
  color: var(--gold-dark);
  background: #fff8e1;
  border: 1px dashed #f2cf7b;
  padding: .35rem .7rem;
  border-radius: 999px;
}
.editor-status-saved {
  background: #e7f8ee !important;
  color: #1e6b3b !important;
  border: 1px solid #9ed4ae;
}

.sidebar-info { margin-top: 1.5rem; }
.sidebar-info h3 {
  margin: 0 0 .6rem;
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  background: #f6f3ff;
  font-size: .9rem;
  color: var(--muted);
  transition: background .25s ease, color .25s ease;
}
.checklist li.is-done {
  background: #e7f8ee;
  color: #1e6b3b;
}
.checklist .check-mark {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
}
.checklist li.is-done .check-mark { color: #2e8a4f; }
label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
}
input, textarea, select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #cfd7e6;
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
textarea { resize: vertical; min-height: 120px; }
.honeypot { position: absolute; left: -9999px; }
.message {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
}
.message.success {
  background: var(--success);
  border: 1px solid var(--success-border);
}
.message.error {
  background: var(--error);
  border: 1px solid var(--error-border);
}
.muted-copy, .muted-message { color: var(--muted); }
.site-footer {
  background: #0f1728;
  color: #dce4f4;
  padding: 2.5rem 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.site-footer h2 {
  margin-top: 0;
  color: #fff;
  font-size: 1.1rem;
}
.site-footer a { color: #ffd982; }
.footer-cta {
  display: inline-block;
  margin-top: .65rem;
  font-weight: 700;
}
.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #ffd982 100%);
  color: #342100;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(14, 20, 34, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: .65rem;
  width: 48px;
  height: 48px;
}
.burger,
.burger::before,
.burger::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  position: relative;
}
.burger::before { top: -7px; position: relative; }
.burger::after { top: 5px; position: relative; }
.article-editor-shell {
  display: grid;
  gap: .9rem;
}
.editor-note {
  margin: 0;
  padding: .9rem 1rem;
  border: 1px solid #d6e3ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  color: #27446f;
}
.article-editor {
  border: 1px solid #cfd7e6;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.editor-topbar {
  display: grid;
  gap: .75rem;
  border-bottom: 1px solid #dce4f1;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  padding: .95rem;
}
.editor-modebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.editor-mode-hint {
  margin: 0;
  color: #5f7291;
  font-size: .92rem;
}
.editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: .5rem;
  width: min(460px, 100%);
}
.editor-tab {
  border: 1px solid #c7d4ea;
  background: #fff;
  color: #29405e;
  border-radius: 14px;
  padding: .7rem .9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.editor-tab:hover,
.editor-toolbar button:hover {
  transform: translateY(-1px);
}
.editor-tab.is-active {
  background: linear-gradient(135deg, var(--gold) 0%, #ffd982 100%);
  border-color: #e3ba55;
  color: #342100;
  box-shadow: 0 8px 18px rgba(243, 201, 105, .24);
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.editor-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .35rem;
  border: 1px solid #d9e4f5;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
}
.editor-toolbar button {
  min-height: 42px;
  border: 1px solid #c7d4ea;
  background: #fff;
  color: #1e3350;
  border-radius: 12px;
  padding: .55rem .8rem;
  font: inherit;
  font-size: .94rem;
  cursor: pointer;
}
.editor-toolbar button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.editor-panels {
  background: #fff;
}
.editor-panel { display: none; }
.editor-panel.is-active { display: block; }
.visual-editor,
.editor-textarea {
  width: 100%;
  min-height: 380px;
  border: 0;
  padding: 1.1rem 1.15rem;
  font: inherit;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
.visual-editor {
  outline: 0;
  overflow-wrap: anywhere;
}
.visual-editor:empty::before {
  content: attr(data-placeholder);
  color: #7a89a4;
  display: block;
}
.editor-textarea {
  resize: vertical;
  border-radius: 0;
}
.editor-html {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: .95rem;
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid #dce4f1;
  background: #fbfcff;
  padding: .9rem 1rem 1rem;
}
.editor-helper {
  margin: 0;
  color: #5f7291;
  font-size: .94rem;
  max-width: 58ch;
}
.editor-status {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}
.editor-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d8e4fb;
  color: #29405e;
  font-size: .84rem;
  font-weight: 700;
}
.content-body blockquote,
.visual-editor blockquote,
.article-body blockquote {
  margin: 0 0 1.1rem;
  padding: .9rem 1rem;
  border-left: 4px solid var(--gold-dark);
  background: #fff8eb;
  color: #47340b;
  border-radius: 0 14px 14px 0;
}
.content-body table,
.visual-editor table,
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  display: block;
  overflow-x: auto;
}
.content-body th,
.content-body td,
.visual-editor th,
.visual-editor td,
.article-body th,
.article-body td {
  border: 1px solid #d7e0ee;
  padding: .8rem;
  text-align: left;
  background: #fff;
}
.content-body thead th,
.visual-editor thead th,
.article-body thead th {
  background: #f4f8ff;
}
.content-body code,
.visual-editor code,
.article-body code {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  background: #f2f5fa;
  border-radius: 8px;
  padding: .12rem .35rem;
}
.content-body pre,
.visual-editor pre,
.article-body pre {
  margin: 0 0 1.25rem;
  padding: 1rem;
  overflow-x: auto;
  background: #0f1728;
  color: #eef4ff;
  border-radius: 16px;
}
.content-body pre code,
.visual-editor pre code,
.article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.media-embed {
  margin: 0 0 1.25rem;
}
.media-embed img,
.media-embed video,
.media-embed iframe,
.article-body iframe,
.article-body video,
.article-body img,
.visual-editor iframe,
.visual-editor video,
.visual-editor img {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 16px;
  background: #0f1728;
}
.media-embed iframe,
.article-body iframe,
.visual-editor iframe {
  aspect-ratio: 16 / 9;
}
.article-body h2,
.article-body h3,
.article-body h4,
.visual-editor h2,
.visual-editor h3,
.visual-editor h4 {
  margin: 1.4rem 0 .75rem;
}
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      'logo toggle'
      'nav nav';
  }
  .site-logo { grid-area: logo; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; grid-area: toggle; justify-self: end; }
  .site-nav { grid-area: nav; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { justify-content: flex-start; padding-top: .5rem; }
  .page-grid, .footer-grid, .form-row.two-col, .hero-grid, .related-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-card { position: static; }
}
@media (max-width: 640px) {
  .content-card, .sidebar-card, .form-card, .article-card { padding: 1rem; }
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .link-grid,
  .article-tools { grid-template-columns: 1fr; }
  .editor-modebar {
    align-items: stretch;
  }
  .editor-mode-hint,
  .editor-helper {
    max-width: none;
  }
  .editor-tabs {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .editor-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .editor-toolbar-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .editor-toolbar button {
    width: 100%;
    text-align: center;
  }
  .editor-footer {
    align-items: flex-start;
  }
  .visual-editor,
  .editor-textarea {
    min-height: 320px;
    padding: .9rem;
  }
}

.page-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}
.meta-pill,
.topic-badge,
.category-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}
.meta-pill {
  background: #f4f8ff;
  border: 1px solid #d9e6fb;
  color: #29405e;
}
.section-kicker {
  background: #f9f0d9;
  color: #7b5a0d;
}
.topic-badge {
  margin: 0 0 .65rem;
  background: #eef3ff;
  color: #264d96;
  border: 1px solid #d8e2fa;
}
.category-grid-section,
.intent-grid-section,
.trust-grid-section,
.home-latest-section {
  margin-top: 2rem;
}
.category-card-grid,
.intent-grid,
.trust-grid {
  display: grid;
  gap: 1rem;
}
.category-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.intent-grid,
.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.category-card,
.intent-card,
.trust-card {
  display: block;
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid #d8e4f5;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(14, 20, 34, 0.06);
}
.category-card:hover,
.intent-card:hover,
.trust-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.category-title,
.intent-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: .45rem;
}
.category-copy,
.intent-copy,
.trust-card p {
  color: #44536e;
}
.section-slab {
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dde7f5;
  margin-bottom: 1.25rem;
}
.section-slab > :last-child { margin-bottom: 0; }
.article-tools-expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.article-stack-visual {
  gap: 1.25rem;
}
.article-card-with-cover {
  padding: 0;
  overflow: hidden;
}
.article-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: #0f1728;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card-body {
  padding: 1.2rem;
}
.article-cover-large {
  margin-top: 1.25rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #d8e4f5;
}
.author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.home-latest-grid .article-card h3,
.article-card-with-cover h3 {
  margin-top: 0;
}
.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .category-card-grid,
  .intent-grid,
  .trust-grid,
  .author-grid,
  .three-up,
  .article-tools-expanded {
    grid-template-columns: 1fr;
  }
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.directory-section,
.comparison-section,
.faq-cluster-section {
  margin-top: 2rem;
}
.directory-grid,
.metric-grid,
.comparison-stack,
.faq-cluster-stack {
  display: grid;
  gap: 1rem;
}
.directory-grid.two-up,
.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.comparison-table-wrap {
  overflow-x: auto;
}
.directory-card,
.metric-card,
.comparison-block,
.faq-cluster-card {
  height: 100%;
}
.profile-highlight {
  margin: 0 0 1.5rem;
}
.metric-card h3,
.directory-card h3,
.comparison-block h3,
.faq-cluster-card h3 {
  margin-top: 0;
}
.meta-pill a,
.card-kicker a {
  color: inherit;
  text-decoration: none;
}
.meta-pill a:hover,
.card-kicker a:hover {
  text-decoration: underline;
}
@media (max-width: 980px) {
  .directory-grid.two-up,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* premium-seo-refresh */
body {
  background:
    radial-gradient(circle at top right, rgba(242, 207, 123, .22), transparent 24%),
    radial-gradient(circle at top left, rgba(110, 76, 213, .16), transparent 28%),
    linear-gradient(180deg, #f6f1ff 0%, #efe8ff 42%, #f8f5ff 100%);
}
.site-header {
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.site-logo,
.site-nav a {
  letter-spacing: .01em;
}
.hero-grid-premium {
  gap: 1.6rem;
  align-items: stretch;
}
.hero-copy-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.2rem;
}
.button-link-dark {
  background: linear-gradient(135deg, #f5d27f 0%, #ffd982 100%);
  color: #291600 !important;
}
.button-link-ghost {
  background: rgba(255,255,255,.08);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
}
.button-link-ghost:hover {
  background: rgba(255,255,255,.14);
  text-decoration: none;
}
.hero-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}
.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .48rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-size: .86rem;
  font-weight: 700;
}
.premium-stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.06) 100%);
  box-shadow: 0 24px 55px rgba(6, 9, 19, .24);
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0 1rem;
}
.hero-stat {
  padding: .9rem;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-stat-value {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}
.hero-stat-label {
  display: block;
  margin-top: .35rem;
  color: rgba(255,255,255,.76);
  font-size: .88rem;
}
.hero-bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255,255,255,.84);
}
.content-card,
.sidebar-card,
.form-card,
.article-card {
  border-color: rgba(205, 218, 239, .92);
  box-shadow: 0 24px 58px rgba(18, 26, 45, .09);
}
.content-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249, 251, 255, .98) 100%);
}
.feature-panel,
.section-slab,
.category-card,
.intent-card,
.trust-card,
.link-tile,
.faq-item,
.comparison-block {
  box-shadow: 0 18px 40px rgba(14, 20, 34, 0.06);
}
.section-slab,
.premium-slab {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%);
}
.affiliate-disclosure-section,
.eeat-band,
.topical-cluster-section,
.premium-related-section {
  margin-top: 2rem;
}
.disclosure-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(21, 14, 44, .98) 0%, rgba(60, 32, 102, .96) 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(16, 15, 35, .28);
}
.disclosure-panel a {
  color: #ffd982;
}
.disclosure-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  font-weight: 800;
  color: #281600;
  background: linear-gradient(135deg, #f2cf7b 0%, #ffd982 100%);
  box-shadow: 0 16px 36px rgba(242, 207, 123, .24);
}
.eeat-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr .95fr;
  gap: 1rem;
}
.eeat-card {
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #dce6f5;
  box-shadow: 0 18px 40px rgba(14, 20, 34, .06);
}
.eeat-label {
  display: inline-flex;
  align-items: center;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f4d87;
  border: 1px solid #d8e2fa;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.eeat-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.eeat-metric-grid div {
  padding: .95rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #deebfb;
}
.eeat-metric-grid strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}
.eeat-metric-grid span {
  display: block;
  margin-top: .35rem;
  color: #52617d;
}
.editorial-evidence-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}
.editorial-evidence-list li + li {
  margin-top: .7rem;
}
.topical-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cluster-card {
  display: block;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  border: 1px solid #d8e4f5;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(14, 20, 34, .06);
}
.cluster-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.cluster-card-title {
  display: block;
  margin-bottom: .45rem;
  font-weight: 800;
  font-size: 1.04rem;
}
.cluster-card-copy {
  color: #4d5d77;
}
.premium-sidebar {
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.sidebar-module {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: #f7faff;
  border: 1px solid #deebfb;
}
.sidebar-module h3 {
  margin: 0 0 .7rem;
  line-height: 1.2;
}
.compact-sidebar-list,
.sidebar-check-list {
  margin: 0;
  padding-left: 1.15rem;
}
.compact-sidebar-list li + li,
.sidebar-check-list li + li {
  margin-top: .45rem;
}
.sidebar-premium-note {
  background: linear-gradient(135deg, #fff7e6 0%, #f8efd1 100%);
  border-color: #ecd9a8;
}
.premium-home-trust-grid .trust-card,
.topical-cluster-grid .cluster-card,
.category-card,
.intent-card,
.link-tile,
.article-card,
.trust-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.premium-home-trust-grid .trust-card:hover,
.topical-cluster-grid .cluster-card:hover,
.category-card:hover,
.intent-card:hover,
.link-tile:hover,
.article-card:hover,
.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(14, 20, 34, .1);
}
.site-footer {
  background: linear-gradient(180deg, #0f1728 0%, #0b1220 100%);
}
@media (max-width: 980px) {
  .eeat-grid,
  .topical-cluster-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .disclosure-panel {
    grid-template-columns: 1fr;
  }
  .hero-actions,
  .hero-signal-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-stat-grid,
  .eeat-metric-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Australian time zones footer block ===== */
.au-timezones {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.au-timezones-head {
  text-align: center;
  margin-bottom: 1.1rem;
}
.au-timezones-head h2 {
  margin: 0 0 .35rem;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.au-timezones-sub {
  margin: 0;
  color: rgba(220, 228, 244, .72);
  font-size: .88rem;
}
.au-timezones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
}
.au-tz-card {
  background: linear-gradient(135deg, rgba(243, 201, 105, .08) 0%, rgba(79, 43, 134, .25) 100%);
  border: 1px solid rgba(243, 201, 105, .18);
  border-radius: 14px;
  padding: .85rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: border-color .2s ease, transform .2s ease;
}
.au-tz-card:hover {
  border-color: rgba(243, 201, 105, .42);
  transform: translateY(-2px);
}
.au-tz-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}
.au-tz-city {
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
}
.au-tz-label {
  color: #ffd982;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: rgba(243, 201, 105, .14);
  border-radius: 999px;
  padding: .15rem .55rem;
}
.au-tz-time {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  line-height: 1.05;
}
.au-tz-meta {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(220, 228, 244, .7);
}
.au-tz-offset {
  font-weight: 600;
  color: rgba(255, 217, 130, .85);
}
@media (max-width: 640px) {
  .au-timezones-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .au-tz-time { font-size: 1.35rem; }
}

/* ===== Articles page: pagination & filter actions ===== */
.article-tools-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.article-tools-actions .button-link {
  cursor: pointer;
  border: 1px solid rgba(255, 217, 130, .35);
  background: transparent;
  color: rgba(255, 217, 130, .9);
  padding: .55rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.article-tools-actions .button-link:hover {
  background: rgba(255, 217, 130, .12);
  color: #fff;
  border-color: rgba(255, 217, 130, .7);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 2rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: .45rem .85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(220, 228, 244, .9);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pagination-link:hover {
  background: rgba(255, 217, 130, .12);
  color: #fff;
  border-color: rgba(255, 217, 130, .55);
}
.pagination-link.is-current {
  background: rgba(255, 217, 130, .85);
  color: #1a1a2a;
  border-color: rgba(255, 217, 130, .85);
  cursor: default;
}
.pagination-link.is-disabled {
  opacity: .4;
  pointer-events: none;
}
.pagination-prev,
.pagination-next {
  font-weight: 600;
}
@media (max-width: 640px) {
  .pagination { gap: .35rem; }
  .pagination-link {
    min-width: 2rem;
    padding: .4rem .65rem;
    font-size: .82rem;
  }
}
