[hidden] { display: none !important; }

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-alt: #e9eff8;
  --ink: #111827;
  --ink-muted: #4b5563;
  --border: #d7e0ec;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --sq-red: #e4572e;
  --sq-blue: #2563eb;
  --sq-green: #059669;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.prose-wide { max-width: 860px; margin: 0 auto; }
.prose-narrow { max-width: 760px; margin: 0 auto; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}
.site-header.is-measuring,
.site-header.is-measuring * {
  transition: none !important;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.brand-mark { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; }
.site-nav {
  display: flex;
  align-items: center;
}
.menu-button {
  anchor-name: --menu-button;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.menu-button:hover { background: var(--surface-alt); border-color: var(--primary); }
.site-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: fixed;
  inset: auto;
  inset-block-start: 3.75rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  margin-block-start: 0.45rem;
  inline-size: min(82dvw, 17rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 5rem);
  overflow: auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 60;
}
.site-menu li { margin: 0; }
.site-menu .nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
}
@supports not selector(:popover-open) {
  .site-menu[popover]:not(.is-popover-open) { display: none; }
}
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 4px;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu .nav-link {
  min-height: 36px;
  padding: 8px 10px;
}
.nav-link {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}
.nav-link:hover { background: var(--surface-alt); color: var(--ink); }
.nav-link[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--primary);
}
@media (pointer: coarse) {
  .menu-button { min-height: 44px; min-width: 44px; }
}

.hero-band { padding: 12px 0 28px; }
.studio-shell { max-width: 900px; margin: 0 auto; }
.hero-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-top { max-width: 900px; margin: 0 auto 10px; }
.hero-headline { display: flex; flex-direction: column; gap: 4px; }
.triad-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.t-dot { width: 9px; height: 9px; border-radius: 50%; }
.t-red { background: var(--sq-red); }
.t-blue { background: var(--sq-blue); }
.t-green { background: var(--sq-green); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
  margin-top: 0;
  text-wrap: balance;
}
h1 { font-size: 36px; margin-bottom: 0; letter-spacing: -0.02em; }
h2 { font-size: 28px; margin-bottom: 12px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin-bottom: 8px; }
.hero-lead { margin: 0; font-size: 15px; color: var(--ink-muted); max-width: 68ch; text-wrap: pretty; }
.hero-engage { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease, scale 120ms ease;
}
.engage-btn:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12); }
.engage-btn:active { scale: 0.97; }
.engage-btn[data-gf-liked], .engage-btn[aria-pressed="true"] {
  background: #fee2e2;
  border-color: #e4572e;
  color: #991b1b;
}
.share-msg { font-size: 13px; font-weight: 600; color: var(--primary); }

.ad-native-slot { width: 100%; max-width: 100%; overflow-x: clip; margin: 0; }
.ad-native-slot:not(:empty) { margin: 20px auto; }
.ad-native-slot:empty { display: none; }

.section-band { padding: 52px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 24px; max-width: 68ch; }
.section-head p { margin: 0; color: var(--ink-muted); }

.guide-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.guide-tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--ink);
}
.guide-kicker { font-size: 12px; font-weight: 600; color: var(--primary); }
.guide-title { font-family: var(--font-display); font-size: 18px; line-height: 1.25; }
.guide-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.45; }

.split-editorial { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.split-reverse .split-figure { order: -1; }
.split-copy p { margin: 0 0 14px; max-width: 65ch; }
.split-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.split-figure img { width: 100%; border-radius: 8px; }
.split-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.inline-cta { display: inline-block; font-weight: 600; margin-top: 6px; }

.steps-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.step-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
}
.step-item p { margin: 0; font-size: 15px; color: var(--ink-muted); }

.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.rule-card:nth-child(2) { border-left-color: var(--sq-red); }
.rule-card:nth-child(3) { border-left-color: var(--sq-green); }
.rule-card:nth-child(4) { border-left-color: #111827; }
.rule-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }

.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-alt .accordion details { background: var(--bg); }
.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: "";
  inline-size: 0.65em;
  block-size: 0.65em;
  flex-shrink: 0;
  border-right: 2.2px solid currentColor;
  border-bottom: 2.2px solid currentColor;
  rotate: -45deg;
}
.accordion details[open] > summary::before { rotate: 45deg; }
@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before { transition: rotate 0.2s ease; }
  .accordion details::details-content {
    transition: block-size 0.28s ease-in-out, content-visibility 0.28s ease-in-out allow-discrete;
  }
}
.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.accordion details:not([open])::details-content { block-size: 0; }
.faq-answer { padding: 0 18px 16px 38px; color: var(--ink-muted); font-size: 15px; }
.faq-answer p { margin: 0; }

.comments-head { margin-bottom: 18px; }
.comments-head p { margin: 0; color: var(--ink-muted); }
.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-row label { font-size: 14px; font-weight: 600; }
.form-row input, .form-row textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.form-actions { display: flex; align-items: center; gap: 12px; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, scale 120ms ease;
}
.btn-submit:hover { background: var(--primary-hover); color: #ffffff; }
.btn-submit:active { scale: 0.97; }
.comments-list:not([data-gf-empty]) .comments-empty { display: none; }
.comments-empty { color: var(--ink-muted); font-size: 15px; }
.comment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.comment-card[data-gf-owner] { border-color: var(--primary); background: #eff6ff; }
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.owner-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.comment-body { margin: 0 0 8px; }
.comment-reply-btn, .reply-cancel {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 0;
  cursor: pointer;
}
.comment-replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--border); }
.reply-card { padding: 8px 0; }

.guide-article, .legal-page, .not-found { padding: 32px 0 56px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.guide-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: #dbeafe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.guide-lead { font-size: 18px; color: var(--ink-muted); margin: 0 0 20px; max-width: 68ch; }
.quick-answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.quick-answer strong { display: block; font-size: 13px; color: var(--primary); margin-bottom: 4px; }
.quick-answer p { margin: 0; font-size: 15px; }
.guide-figure {
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.guide-figure img { width: 100%; border-radius: 8px; }
.guide-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.guide-prose h2 { margin-top: 32px; font-size: 24px; }
.guide-prose h3 { margin-top: 22px; font-size: 18px; }
.guide-prose p, .guide-prose li { max-width: 70ch; }
.guide-prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  font-size: 14px;
}
.guide-prose th, .guide-prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.guide-prose th { background: var(--surface-alt); font-weight: 600; }
.guide-faq { margin-top: 40px; }
.related-guides { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.related-card span { font-size: 14px; color: var(--ink-muted); }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.footer-tagline { margin: 8px 0 10px; font-size: 14px; color: var(--ink); }
.footer-disclaimer { margin: 0; font-size: 13px; color: var(--ink-muted); max-width: 56ch; }
.footer-heading { font-size: 14px; margin-bottom: 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer-contact { margin: 12px 0 0; font-size: 13px; color: var(--ink-muted); }
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-muted);
}
.not-found-links { padding-left: 20px; }
.not-found-links li { margin: 8px 0; }

@media (max-width: 860px) {
  .guide-strip { grid-template-columns: repeat(2, 1fr); }
  .split-editorial { grid-template-columns: 1fr; }
  .split-reverse .split-figure { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .hero-band { padding: 10px 0 20px; }
  .hero-lead { font-size: 14px; line-height: 1.4; }
  .section-band { padding: 36px 0; }
  .guide-strip, .steps-rail, .rules-grid, .related-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 16px; }
  .nav-link { font-size: 13px; padding: 6px 8px; }
  .hero-engage { width: 100%; }
  .guide-prose table { display: block; overflow-x: auto; }
}