:root {
  /* 1xBet Australia brand palette */
  --bg: #0a2540;
  --bg-deep: #061a30;
  --bg-soft: #103258;
  --card: #ffffff;
  --text: #102a43;
  --muted: #5b6a82;
  --primary: #1656d3;
  --primary-dark: #0e3a96;
  --accent: #1ec45a;          /* 1xBet signature green */
  --accent-dark: #14a14a;
  --accent-glow: rgba(30,196,90,.35);
  --highlight: #ffd000;        /* gold/yellow accent */
  --highlight-dark: #c89e00;
  --border: #d8e1ee;
  --link: #1656d3;
  --success: #e7f8ee;
  --success-border: #9ed4ae;
  --error: #fff1f1;
  --error-border: #e7b4b4;
  --shadow-sm: 0 6px 18px rgba(10, 37, 64, 0.08);
  --shadow: 0 18px 44px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 22px 60px rgba(22, 86, 211, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(30,196,90,.05), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(22,86,211,.06), transparent 40%),
    linear-gradient(180deg, #f3f7ff 0%, #eaf2ff 100%);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); 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);
}

/* ======= Top progress bar ======= */
.progress-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1300;
  height: 4px;
  background: rgba(255,255,255,.08);
}
.progress-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--highlight) 50%, var(--accent) 100%);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ======= Header ======= */
.site-header {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg) 50%, #0e3a96 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  border-bottom: 2px solid var(--accent);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.site-logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -.05em;
  box-shadow: 0 6px 18px var(--accent-glow);
}
.logo-mark .logo-x {
  color: #fff;
  font-style: italic;
  margin-left: 1px;
}
.logo-text {
  background: linear-gradient(135deg, #fff 0%, #cfe6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-tagline {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: flex-end;
}
.site-nav a {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .4rem .15rem;
  position: relative;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}
.site-nav a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* CTA buttons */
.btn-nav, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff !important;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .85rem;
  transition: transform .2s, box-shadow .2s;
}
.btn-nav:hover, .button-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #fff;
  position: relative;
}
.burger::before, .burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}
.burger::before { top: -6px; }
.burger::after { top: 6px; }

/* ======= Hero ======= */
.hero-banner {
  background:
    radial-gradient(circle at 10% 30%, rgba(30,196,90,.18), transparent 38%),
    radial-gradient(circle at 90% 80%, rgba(255,208,0,.14), transparent 42%),
    linear-gradient(135deg, #061a30 0%, #0e3a96 50%, #1656d3 100%);
  color: #fff;
  padding: 2.5rem 0 2.7rem;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 12px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .8fr);
  gap: 1.6rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: .82rem;
  text-transform: uppercase;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.hero-title {
  margin: 1rem 0 .75rem;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero-copy {
  margin: 0;
  color: rgba(255,255,255,.88);
  max-width: 60ch;
  font-size: 1.02rem;
}
.hero-mini-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(12px);
  position: relative;
}
.hero-mini-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 50%, var(--highlight));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-mini-card strong {
  display: block;
  margin-bottom: .65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .82rem;
}
.hero-mini-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.hero-mini-card li {
  padding: .35rem 0 .35rem 1.35rem;
  position: relative;
  color: rgba(255,255,255,.92);
}
.hero-mini-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ======= Age bar ======= */
.age-bar {
  background: linear-gradient(90deg, #fff8e6 0%, #fff3c8 100%);
  border-top: 1px solid #f5d97a;
  border-bottom: 1px solid #f5d97a;
  color: #574100;
  padding: .85rem 0;
  font-size: .95rem;
}
.age-bar a {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ======= Page shell ======= */
.page-shell { padding: 2.5rem 0 3.5rem; }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.75rem;
  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-sm);
}
.content-card { padding: 1.85rem; }
.main-article > * + * { margin-top: 1.65rem; }
.sidebar-card {
  padding: 1.4rem;
  position: sticky;
  top: 7.5rem;
}

/* ======= Page header ======= */
.page-header h1 {
  margin: .35rem 0 .85rem;
  line-height: 1.12;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--bg);
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 800;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.lead {
  font-size: 1.1rem;
  color: #3a4d6a;
  max-width: 64ch;
  line-height: 1.65;
}

/* breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: .25rem;
}
.breadcrumbs a {
  color: var(--primary);
}

/* page meta pills */
.page-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #eaf2ff 0%, #d8e7ff 100%);
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid #c5d8f5;
}
.meta-pill a { color: inherit; text-decoration: underline; }

/* ======= Section title rows ======= */
.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-title-row::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}
.section-title-row h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--bg);
}
.section-kicker {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
}

/* ======= Category cards (home) ======= */
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.category-card {
  display: block;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #f3f7ff 100%);
  border: 1px solid var(--border);
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.category-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  text-decoration: none;
}
.category-badge {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .65rem;
}
.category-title {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--bg);
  margin-bottom: .35rem;
}
.category-copy {
  display: block;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.55;
}

/* ======= Feature panel (key takeaways, comparison blocks) ======= */
.feature-panel {
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.feature-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.feature-panel h2, .feature-panel h3 {
  margin: 0 0 .85rem;
  color: var(--bg);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}
.check-list li {
  position: relative;
  padding-left: 2.1rem;
  line-height: 1.55;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .8rem;
  box-shadow: 0 4px 10px var(--accent-glow);
}

/* ======= Quick links / link tiles ======= */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
}
.link-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1.1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--bg);
  font-weight: 600;
  transition: all .2s;
}
.link-tile:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(4px);
  text-decoration: none;
}
.link-tile-arrow {
  color: var(--accent);
  font-weight: 800;
  transition: transform .2s;
}
.link-tile:hover .link-tile-arrow {
  color: var(--highlight);
  transform: translateX(4px);
}

/* ======= Comparison tables ======= */
.comparison-stack { display: grid; gap: 1rem; }
.comparison-block { background: #fff; }
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}
table thead {
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-dark) 100%);
  color: #fff;
}
table th, table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table th {
  font-weight: 700;
  letter-spacing: .02em;
  font-size: .88rem;
  text-transform: uppercase;
}
table tbody tr:nth-child(even) { background: #f8fbff; }
table tbody tr:hover { background: #eef4ff; }

/* ======= Intent cards ======= */
.intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.intent-card {
  display: block;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.intent-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, var(--accent-glow), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,208,0,.15), transparent 55%);
}
.intent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.intent-title {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: .45rem;
  color: #fff;
  position: relative;
}
.intent-copy {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  line-height: 1.55;
  position: relative;
}

/* ======= Trust grid ======= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.trust-grid.three-up {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trust-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  transition: transform .2s, border-color .2s;
}
.trust-card h2, .trust-card h3 {
  margin: 0 0 .55rem;
  color: var(--bg);
  font-size: 1.05rem;
  font-weight: 800;
}
.trust-card p { margin: .35rem 0; color: var(--muted); }
.trust-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  text-decoration: none;
}
.trust-link:hover h3 { color: var(--primary); }

/* ======= Content body ======= */
.content-body h2 {
  margin: 1.7rem 0 .75rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--bg);
  line-height: 1.25;
}
.content-body h2::before {
  content: '';
  display: inline-block;
  width: .35rem;
  height: 1.05rem;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 2px;
  margin-right: .65rem;
  vertical-align: -1px;
}
.content-body h3 {
  margin: 1.4rem 0 .55rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--bg);
}
.content-body p { margin: 0 0 1rem; }
.content-body ul, .content-body ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}
.content-body li { margin-bottom: .35rem; }
.content-body strong { color: var(--bg); }
.content-body blockquote {
  margin: 1.2rem 0;
  padding: .9rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(30,196,90,.07) 0%, transparent 100%);
  font-style: italic;
  color: #2a3b56;
  border-radius: 0 8px 8px 0;
}
.content-body table { margin: 1.2rem 0; }
.content-body code {
  background: #f0f4ff;
  color: var(--primary-dark);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
}

/* section-slab inside content */
.section-slab {
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1rem 0;
}
.section-slab h2 { margin-top: 0; }

/* ======= FAQ section ======= */
.faq-list {
  display: grid;
  gap: .6rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.15rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--bg);
  font-size: 1rem;
  text-align: left;
  font-family: inherit;
}
.faq-question[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.faq-icon {
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform .25s, background .25s;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--highlight);
  color: var(--bg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 1.15rem;
}
.faq-answer.is-open {
  max-height: 600px;
  padding: 0 1.15rem 1rem;
}
.faq-answer p { margin: .25rem 0 .65rem; color: var(--muted); }

.faq-cluster-stack { display: grid; gap: 1.1rem; }
.faq-cluster-card { background: #fff; }
.faq-cluster-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: .5rem;
  margin-bottom: .9rem;
}

/* ======= Article cards ======= */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.directory-grid.two-up {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.article-card {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.article-card h3 {
  margin: .15rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}
.article-card h3 a { color: var(--bg); }
.article-card h3 a:hover { color: var(--primary); }
.article-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.article-card-with-cover { padding: 0; overflow: hidden; }
.article-card-with-cover .article-card-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; }
.article-cover {
  display: block;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary) 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.article-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.article-card-with-cover:hover .article-cover img { transform: scale(1.05); }
.article-cover-large { margin: 1rem 0; border-radius: var(--radius); aspect-ratio: 16 / 7; }
.card-kicker {
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--accent-dark);
}
.card-kicker a { color: inherit; }
.topic-badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  align-self: flex-start;
}
.article-meta { font-size: .85rem; color: var(--muted); }
.read-more { color: var(--primary); font-weight: 700; }
.compact-card { padding: 0; }
.compact-card .card-kicker, .compact-card .topic-badge,
.compact-card h3, .compact-card p {
  padding-left: 1rem; padding-right: 1rem;
}
.compact-card > p:last-child { padding-bottom: 1rem; }

.article-stack { display: grid; gap: 1.25rem; }
.article-stack-visual { gap: 1.1rem; }

/* ======= Author/profile metric grid ======= */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .8rem;
  margin: 1rem 0;
}
.metric-card { text-align: center; }
.metric-card h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent-dark);
  margin-bottom: .35rem;
}
.metric-card p {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bg);
}
.profile-highlight { margin: 1rem 0 1.25rem; }

/* ======= Sidebar ======= */
.sidebar-card h2 {
  margin: 0 0 .75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bg);
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.sidebar-list li {
  border-bottom: 1px solid var(--border);
}
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a {
  display: block;
  padding: .65rem .15rem;
  color: var(--bg);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  transition: padding-left .2s, color .2s;
}
.sidebar-list a:hover {
  padding-left: .55rem;
  color: var(--primary);
  text-decoration: none;
}
.sidebar-list a:hover::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 1.1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
}
.sidebar-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, var(--accent-glow), transparent 60%);
}
.sidebar-cta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .35rem;
  position: relative;
}
.sidebar-cta p {
  margin: 0;
  font-size: .88rem;
  color: rgba(255,255,255,.88);
  position: relative;
}
.sidebar-cta a { color: var(--highlight); font-weight: 700; }
.sidebar-note {
  font-size: .85rem;
  color: var(--muted);
  background: #f8fbff;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.sidebar-note strong { color: var(--bg); }

/* ======= Forms ======= */
.form-card {
  padding: 1.6rem;
  margin-top: 1.5rem;
}
.form-card h2 {
  margin: 0 0 1rem;
  color: var(--bg);
  font-size: 1.25rem;
}
.form-row { margin-bottom: 1.1rem; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--bg);
  font-size: .92rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,86,211,.18);
}
.form-row textarea { min-height: 8rem; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.muted-copy { color: var(--muted); font-size: .9rem; }

/* messages */
.message {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  border: 1px solid transparent;
}
.message strong { display: block; margin-bottom: .35rem; }
.message ul { margin: .35rem 0 0; padding-left: 1.35rem; }
.message.success {
  background: var(--success);
  border-color: var(--success-border);
  color: #1a5631;
}
.message.error {
  background: var(--error);
  border-color: var(--error-border);
  color: #851d1d;
}
.muted-message { background: #f0f4ff; border-color: #cfdcf3; color: var(--muted); }

/* article tools (filter bar) */
.article-tools {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: .75rem;
  align-items: end;
}
.article-tools label { font-size: .85rem; }
.article-tools input,
.article-tools select { padding: .65rem .85rem; }

/* article editor */
.editor-note {
  background: #f0f4ff;
  border: 1px solid #cfdcf3;
  border-radius: 10px;
  padding: .8rem 1rem;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .85rem;
}
.editor-note strong { color: var(--bg); }
.article-editor { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.editor-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  padding: .65rem .85rem;
  background: #f8fbff;
  border-bottom: 1px solid var(--border);
}
.editor-tabs { display: flex; gap: .35rem; }
.editor-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: .4rem .8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
}
.editor-tab[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.editor-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.editor-toolbar button {
  border: 1px solid var(--border);
  background: #fff;
  padding: .4rem .65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .85rem;
}
.editor-toolbar button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.editor-panel { display: none; }
.editor-panel.is-active { display: block; }
.visual-editor {
  min-height: 18rem;
  padding: 1rem 1.15rem;
  outline: 0;
}
.editor-textarea {
  width: 100%;
  min-height: 18rem;
  border: 0;
  padding: 1rem 1.15rem;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: .92rem;
  resize: vertical;
}
.editor-html { font-family: 'Menlo', 'Consolas', monospace; }

/* ======= Footer ======= */
.site-footer {
  background:
    radial-gradient(circle at 0% 0%, rgba(30,196,90,.06), transparent 35%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  color: rgba(255,255,255,.82);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 3px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h2 {
  font-size: 1rem;
  margin: 0 0 .85rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  position: relative;
  padding-bottom: .5rem;
}
.site-footer h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 2.2rem; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer p { margin: .5rem 0; line-height: 1.6; font-size: .92rem; }
.footer-badge {
  display: inline-block;
  margin-top: .5rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(30,196,90,.15);
  border: 1px solid rgba(30,196,90,.3);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
}
.footer-cta { color: var(--highlight) !important; font-weight: 700; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}

/* ======= Back to top ======= */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px var(--accent-glow);
  display: none;
  z-index: 900;
  transition: transform .2s;
}
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top.is-visible { display: grid; place-items: center; }

/* ======= Author grid (article hero) ======= */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

/* media embed */
.media-embed { margin: 1.2rem 0; }
.media-embed iframe, .media-embed video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}
.media-embed img { width: 100%; border-radius: var(--radius); }

/* directory section */
.directory-section { margin-top: 1.5rem; }

/* article hero */
.article-hero h1 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }

/* ======= Responsive ======= */
@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto auto; gap: .75rem; }
  .site-tagline { display: none; }
  .nav-toggle { display: grid; order: 2; }
  .site-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0,0,0,.2);
    border-radius: 12px;
    padding: .5rem;
  }
  .site-nav ul li { width: 100%; }
  .site-nav a {
    padding: .85rem 1rem;
    border-radius: 8px;
    display: block;
  }
  .site-nav a:hover { background: rgba(255,255,255,.08); }
  .site-nav a:hover::after { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .article-tools { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .content-card { padding: 1.25rem; }
  .hero-banner { padding: 1.75rem 0 2rem; }
  .hero-title { font-size: 1.6rem; }
  .section-title-row h2 { font-size: 1.2rem; }
  table th, table td { padding: .65rem .75rem; font-size: .88rem; }
  .editor-toolbar { width: 100%; margin-left: 0; }
}

/* print */
@media print {
  .site-nav, .nav-toggle, .back-to-top, .progress-bar, .hero-banner, .age-bar, .sidebar-card { display: none !important; }
  .page-grid { grid-template-columns: 1fr; }
  body { background: #fff; }
}
