/* AbitGo - global header, footer and shared blocks (2027 design).
   Generated into every page by _build/apply-chrome.mjs. All selectors are
   namespaced (agc-) and set their own colours and fonts, so the page-level
   stylesheets of the different templates cannot restyle them.
   Mobile open/close behaviour comes from site-nav.css + site-nav.js.

   Palette: indigo #4f46e5 (text, buttons; 6.3:1 on white), #6366f1 and
   violet #8b5cf6 for gradients only (#6366f1 is under 4.5:1 for small text).
   Accents: mint, coral, sunny yellow - always as a soft background with a
   dark text of the same hue. Headings #1e293b, body #475569. */

.agc-header,
.agc-footer,
.agc-source,
.agc-crumbs {
  --agc-ink: #1e293b;
  --agc-text: #475569;
  --agc-muted: #64748b;
  --agc-indigo: #4f46e5;
  --agc-indigo-2: #6366f1;
  --agc-violet: #8b5cf6;
  --agc-indigo-soft: #eef2ff;
  --agc-line: #eef2f7;
  --agc-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
  --agc-shadow-lift: 0 18px 50px -12px rgba(79, 70, 229, 0.22);
  --agc-font: system-ui, -apple-system, "Segoe UI", "Noto Sans Georgian", sans-serif;
}
.agc-header,
.agc-footer {
  font-family: var(--agc-font);
  line-height: 1.55;
  box-sizing: border-box;
}
.agc-header *,
.agc-footer * {
  box-sizing: border-box;
}

.agc-in {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------------------------------------------------------------- header
   Frosted glass bar: light, so the page's own hero sets the mood. */
.agc-header {
  position: sticky;
  top: 0;
  z-index: 90;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  color: var(--agc-ink);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 30px -18px rgba(15, 23, 42, 0.18);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .agc-header { background: #ffffff; }
}
.agc-header .agc-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 68px;
}
.agc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--agc-ink);
  text-decoration: none;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.agc-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--agc-indigo-2) 0%, var(--agc-violet) 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.7);
  transition: transform 0.25s ease;
}
.agc-logo:hover .agc-mark {
  transform: rotate(-8deg) scale(1.05);
}
.agc-header .agc-toggle {
  margin-left: auto;
  color: var(--agc-ink);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.agc-header .agc-toggle:hover {
  background: var(--agc-indigo-soft);
  color: var(--agc-indigo);
}
.agc-header .agc-nav a {
  color: #334155;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.agc-header .agc-nav a:hover {
  color: var(--agc-indigo);
  background: var(--agc-indigo-soft);
}
.agc-header .agc-nav a[aria-current="page"],
.agc-header .agc-nav a[aria-current="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--agc-indigo) 0%, var(--agc-indigo-2) 100%);
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.6);
}

/* Eight Georgian labels need ~1100px, so the full row starts at 1200px and
   everything narrower uses the toggle. site-nav.css only switches at 980px,
   so 981-1199px is handled here with the same open/closed attribute. */
@media (min-width: 1200px) {
  .agc-header .agc-in {
    flex-wrap: nowrap;
    width: min(1240px, calc(100% - 32px));
  }
  .agc-header .agc-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 0 0 0 auto;
    padding: 0;
  }
  .agc-header .agc-nav a {
    display: inline-block;
    margin: 0;
    padding: 8px 11px;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
  }
}
@media (max-width: 1199px) {
  .agc-header .agc-toggle {
    display: inline-flex;
  }
  .agc-header .agc-nav {
    display: none;
  }
  .agc-header .agc-nav[data-ag-open="true"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    flex-basis: 100%;
    margin-top: 4px;
    padding: 10px 0 16px;
    border-top: 1px solid #e2e8f0;
  }
  .agc-header .agc-nav[data-ag-open="true"] a {
    display: block;
    padding: 13px 16px;
    min-height: 48px;
    font-size: 16px;
    border-radius: 16px;
  }
}

/* Test-variant pages keep their own exam header (.top / .topbar > .topin).
   site-nav.css lets other header rows wrap when the menu opens, but not this
   one, so the opened links squeezed the brand. Let it wrap the same way. */
@media (max-width: 980px) {
  header.top > .topin,
  header.topbar > .topin {
    flex-wrap: wrap;
    height: auto;
    min-height: 62px;
  }
  header.top > .topin > [data-ag-nav][data-ag-open="true"],
  header.topbar > .topin > [data-ag-nav][data-ag-open="true"] {
    order: 10;
  }
}

/* ---------------------------------------------------------- source note
   "Source + last checked" block and the "quick answers" (AEO) card placed
   under the hero of content pages: a soft white card. */
.agc-source {
  position: relative;
  margin-top: 24px;
  margin-bottom: 8px;
  padding: 22px 26px;
  border: 1px solid var(--agc-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--agc-shadow);
  color: var(--agc-text);
  font-family: var(--agc-font);
  font-size: 15.5px;
  line-height: 1.7;
  box-sizing: border-box;
}
.agc-source p {
  margin: 0;
  color: var(--agc-text);
}
.agc-source p + p {
  margin-top: 10px;
}
.agc-source h2 {
  margin: 0 0 12px;
  color: var(--agc-ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.agc-source ul {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--agc-text);
}
.agc-source li {
  margin: 0 0 8px;
}
.agc-source li::marker {
  color: var(--agc-indigo-2);
}
.agc-source strong,
.agc-source b {
  color: var(--agc-ink);
}
.agc-source .agc-push {
  color: var(--agc-ink);
  font-weight: 700;
}
.agc-source a {
  color: var(--agc-indigo);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.35);
  text-underline-offset: 3px;
}
.agc-source a:hover {
  text-decoration-color: currentColor;
}
/* Quick answers: a gradient chip before the title marks the AEO card. */
.agc-quick {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(99, 102, 241, 0.07) 0%, rgba(99, 102, 241, 0) 55%),
    #fff;
}
.agc-quick h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agc-quick h2::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / 16px no-repeat,
    linear-gradient(135deg, var(--agc-indigo-2), var(--agc-violet));
  box-shadow: 0 6px 14px -6px rgba(99, 102, 241, 0.8);
}
.agc-facts {
  margin-top: 28px;
  margin-bottom: 28px;
}
/* Dark variant for the game pages, which use a dark theme. */
.agc-source.agc-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #e2e8f0;
}
.agc-source.agc-dark h2,
.agc-source.agc-dark .agc-push,
.agc-source.agc-dark strong,
.agc-source.agc-dark b {
  color: #fff;
}
.agc-source.agc-dark p,
.agc-source.agc-dark ul {
  color: #cbd5e1;
}
.agc-source.agc-dark a {
  color: #a5b4fc;
  text-decoration-color: rgba(165, 180, 252, 0.5);
}

/* ------------------------------------------------------------ breadcrumbs
   Visible breadcrumb inserted into templates that had none (test variants).
   Inherits the hero's text colour, so it works on dark and light heroes. */
.agc-crumbs {
  display: block;
  margin: 0 0 12px;
  font-family: var(--agc-font);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}
.agc-crumbs a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------- footer
   Deep indigo with a soft glow, so the page ends on the brand colour. */
.agc-footer {
  --agc-ftext: #c7d2fe;
  --agc-fmuted: #a5b4fc;
  position: relative;
  margin: 64px 0 0;
  padding: 56px 0 0;
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(99, 102, 241, 0.35) 0%, rgba(99, 102, 241, 0) 60%),
    radial-gradient(50% 70% at 95% 10%, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0) 60%),
    #1e1b4b;
  color: var(--agc-ftext);
  font-size: 15px;
  border-radius: 32px 32px 0 0;
}
.agc-fgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
  gap: 36px;
}
.agc-footer p {
  margin: 0 0 12px;
  color: var(--agc-ftext);
}
.agc-footer .agc-logo {
  margin-bottom: 14px;
  color: #fff;
}
.agc-footer .agc-note {
  color: var(--agc-fmuted);
  font-size: 14px;
}
.agc-footer a {
  color: var(--agc-ftext);
  text-decoration: none;
  transition: color 0.2s ease;
}
.agc-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agc-footer .agc-note a {
  color: #e0e7ff;
  text-decoration: underline;
}
.agc-fh {
  color: #fff !important;
  font-weight: 850;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.agc-fcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agc-fcol li {
  margin: 0;
}
.agc-fcol li a {
  display: inline-block;
  padding: 6px 0;
  min-height: 34px;
}
.agc-fbottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(165, 180, 252, 0.2);
  color: var(--agc-fmuted);
  font-size: 14px;
}
.agc-fbottom a {
  color: var(--agc-fmuted);
}

@media (max-width: 900px) {
  .agc-fgrid {
    grid-template-columns: 1fr 1fr;
  }
  .agc-fbrand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .agc-source {
    padding: 18px 18px;
    border-radius: 20px;
  }
  .agc-fgrid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .agc-fcol li a {
    padding: 9px 0;
    min-height: 44px;
  }
  .agc-footer {
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (prefers-reduced-motion: reduce) {
  .agc-mark,
  .agc-header .agc-nav a,
  .agc-footer a {
    transition: none;
  }
}
