/* RREAKO Guides, GEO Articles & Buyer Q&A — matches brand palette and editorial grid */
:root {
  --paper: #f4f1e9;
  --paper-alt: #ebe7dc;
  --ink: #152035;
  --ink-muted: #4a5263;
  --cobalt: #243fba;
  --cobalt-bright: #314dc1;
  --orange: #b23e20;
  --rule: #c8c4b8;
  --rule-strong: #a9a69f;
}

*, *::before, *::after { box-sizing: border-box; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 1002;
}

body[data-rreako-geo="guides"] {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 RreakoBar, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.g-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4.4vw, 64px);
}

/* Hero */
.g-hero {
  padding: clamp(44px, 6vw, 88px) 0 clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}

.g-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.g-kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--orange);
}

.g-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.8vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 16ch;
}

.g-hero h1 span { color: var(--orange); }

.g-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.g-lede {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-muted);
  max-width: 44ch;
}

.g-jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 36px);
}

.g-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}

.g-pill:hover, .g-pill:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.g-pill--primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.g-pill--primary:hover, .g-pill--primary:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}

/* Sections */
.g-section {
  padding: clamp(44px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--rule);
}

.g-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.g-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.g-section-head h2 span { color: var(--orange); }

.g-section-head p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 52ch;
}

/* GEO Articles */
.g-articles {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.g-article {
  background: #fff;
  border: 1px solid var(--rule);
  padding: clamp(22px, 3.5vw, 40px);
}

.g-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.g-article h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.g-article p {
  margin: 0 0 14px;
  max-width: 72ch;
  color: var(--ink);
}

.g-article ul {
  margin: 0 0 18px;
  padding-left: 20px;
  max-width: 72ch;
}

.g-article li { margin-bottom: 6px; }

.g-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--rule);
}

.g-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  min-width: 620px;
}

.g-table th, .g-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.g-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.g-table tbody tr:nth-child(even) { background: var(--paper); }

.g-table a {
  color: var(--cobalt);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.g-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.g-inline-links a {
  color: var(--cobalt);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Visual strips inside GEO articles */
.g-format-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 22px;
}

.g-format-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}

.g-format-card:hover, .g-format-card:focus-visible {
  border-color: var(--cobalt);
  transform: translateY(-2px);
}

.g-format-card .g-thumb {
  height: 210px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #dde4f0 0%, #eaeef5 100%);
}

.g-format-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(21, 32, 53, 0.2));
}

.g-format-card .g-cap {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--rule);
}

.g-format-card .g-cap strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.g-format-card .g-cap span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.g-angle-figure {
  margin: 20px 0;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #dde4f0 0%, #edf0f6 100%);
  padding: clamp(14px, 2.5vw, 24px);
}

.g-angle-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(21, 32, 53, 0.2));
}

.g-angle-figure figcaption {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-muted);
}

.g-head-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.g-head-card {
  margin: 0;
  border: 1px solid var(--rule);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.g-head-card img {
  display: block;
  width: 100%;
  height: 112px;
  padding: 10px;
  object-fit: contain;
  background: #fff;
}

.g-head-card figcaption {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.g-head-card figcaption small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-muted);
}

.g-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.g-photo-pair figure {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}

.g-photo-pair img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.g-photo-pair figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
}

@media (max-width: 860px) {
  .g-format-strip,
  .g-head-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g-photo-pair {
    grid-template-columns: 1fr;
  }
}

/* Model Q&A */
.g-model-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.g-qa-groups {
  display: grid;
  gap: 28px;
}

.g-qa-group {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(20px, 3.5vw, 48px);
}

.g-qa-group-head h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.g-qa-group-head p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-muted);
}

.g-qa-group-head a {
  display: inline-flex;
  align-items: center;
  color: var(--cobalt);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.g-qa-list { margin: 0; }

.g-qa-list > div {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.g-qa-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.g-qa-list dt {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
}

.g-qa-list dd {
  margin: 8px 0 0;
  color: var(--ink-muted);
  max-width: 64ch;
}

/* Internal & External Links Grid */
.g-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.g-link-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: clamp(20px, 3vw, 32px);
}

.g-link-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.g-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-link-list li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.g-link-list li:first-child { border-top: 0; padding-top: 0; }

.g-link-list a {
  color: var(--cobalt);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.g-link-list span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* AI & Crawler Banner */
.g-crawler-box {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}

.g-crawler-box h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.g-crawler-box p {
  margin: 0;
  color: #cfd5e2;
  max-width: 56ch;
}

.g-crawler-files {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.g-crawler-files a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #6b7790;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.g-crawler-files a:hover, .g-crawler-files a:focus-visible {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

/* Footer */
.g-footer {
  padding: 28px 0 44px;
}

.g-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 14px;
  color: var(--ink-muted);
}

.g-footer .wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.07em;
  color: var(--ink);
  text-decoration: none;
}

.g-footer .wordmark span { color: var(--orange); }

.g-footer a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

@media (max-width: 860px) {
  .g-hero-grid,
  .g-section-head,
  .g-qa-group,
  .g-links-grid,
  .g-crawler-box {
    grid-template-columns: 1fr;
  }
}
