/*
 * Shared 2026 presentation for Amunta's internal content pages.
 * Loaded after each page's legacy inline styles so one maintained layer keeps
 * the blog, articles, privacy policy and feature guide visually consistent.
 */
:root {
  --ink: #102a2a;
  --ink-2: #174c45;
  --text: #253b3a;
  --muted: #637674;
  --paper: #f5f7f2;
  --card: #fff;
  --line: #dce5df;
  --green: #16a36a;
  --gold: #e7b84c;
  --gold-soft: #fff3cc;
  --shadow: 0 28px 80px -38px rgba(14, 55, 51, .38);
  --shadow-sm: 0 16px 36px -26px rgba(14, 55, 51, .42);
  --maxw: 1180px;
}

html {
  scroll-padding-top: 110px;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 3%, rgba(238, 197, 89, .15), transparent 25rem),
    radial-gradient(circle at 96% 22%, rgba(22, 163, 106, .1), transparent 30rem),
    var(--paper);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .26;
  background-image: radial-gradient(rgba(16, 42, 42, .14) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 52%);
}

.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  inset-block-start: 12px;
  z-index: 50;
  width: min(var(--maxw), calc(100% - 32px));
  margin: 12px auto 0;
  border: 1px solid rgba(205, 220, 211, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .87);
  box-shadow: 0 12px 38px -27px rgba(14, 55, 51, .64);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 10px 22px -15px rgba(7, 49, 44, .8);
}

.brand-text {
  display: grid;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 21px;
  font-weight: 800;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(247, 249, 246, .92);
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: #fff;
  color: var(--green);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-cta {
  padding: 12px 16px;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 26px -18px rgba(22, 163, 106, .85);
}

.nav-right > .lang-switch {
  display: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav-right > .lang-switch .lang-link:not(.active) {
  display: none;
}

.nav-right > .lang-switch .lang-link.active {
  min-width: 94px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink) !important;
  text-decoration: none;
}

.lang-switch-mobile {
  display: inline-block;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lang-switch-mobile > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.lang-switch-mobile > summary::-webkit-details-marker {
  display: none;
}

.lang-switch-mobile > summary::after {
  content: "▾";
  color: var(--gold);
  font-size: 11px;
  margin-inline-start: 2px;
}

.lang-switch-mobile[open] > summary::after {
  content: "▴";
}

.lang-dropdown {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-start: 0;
  inset-inline-end: auto;
  z-index: 40;
  width: auto;
  min-width: 180px;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lang-dropdown a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lang-dropdown a:last-child {
  border-bottom: 0;
}

.lang-dropdown a:hover {
  color: var(--ink);
}

.lang-dropdown a.active {
  background: var(--ink);
  color: #fff;
}

main {
  min-height: 0 !important;
  padding-block: 56px 88px;
}

.blog-eyebrow,
.kicker,
.crumbs,
.post-kicker {
  color: var(--green);
  font-weight: 800;
  letter-spacing: .02em;
}

.blog-h1,
.article-hero h1 {
  max-width: 900px;
  margin: 16px 0 20px;
  color: var(--ink);
  font-family: "Fraunces", "Noto Naskh Arabic", Georgia, serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -.025em;
}

.blog-sub {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
  margin-bottom: 0;
  padding-bottom: 0 !important;
}

.post-group-title {
  grid-column: 1 / -1;
  margin: 30px 0 4px;
  color: var(--ink);
  font-family: "Fraunces", "Noto Naskh Arabic", Georgia, serif;
  font-size: clamp(27px, 3.5vw, 38px);
  line-height: 1.25;
}

.post-group-title:first-child {
  margin-top: 0;
}

.post-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 42px -36px rgba(14, 55, 51, .7);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 106, .38);
  box-shadow: var(--shadow-sm);
}

.post-card h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.25;
}

.post-excerpt {
  flex: 1;
  color: var(--muted);
  line-height: 1.75;
}

.post-readmore {
  color: var(--green);
  font-weight: 800;
}

.crumbs {
  margin: 0 0 30px;
  font-size: 14px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.article-hero {
  max-width: 930px;
  margin-inline: auto;
  padding: 48px 0 58px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.article-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

article.prose {
  width: min(850px, calc(100% - 40px));
  max-width: 850px;
  margin-inline: auto;
  padding: clamp(26px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.9;
}

article.prose h2 {
  margin: 2.2em 0 .7em;
  color: var(--ink);
  font-family: "Fraunces", "Noto Naskh Arabic", Georgia, serif;
  font-size: clamp(27px, 4vw, 39px);
  line-height: 1.2;
}

article.prose h2:first-of-type {
  margin-top: .8em;
}

article.prose a {
  color: var(--green);
  text-underline-offset: 3px;
}

article.prose blockquote,
article.prose .cta-band {
  margin: 30px 0;
  padding: 22px 24px;
  border: 0;
  border-inline-start: 4px solid var(--green);
  border-radius: 16px;
  background: #edf8f2;
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.privacy-doc {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.privacy-doc > header {
  margin-bottom: 28px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 30px;
  background: linear-gradient(135deg, #102a2a, #174c45);
  color: #fff;
  box-shadow: var(--shadow);
}

.privacy-doc > header h1 {
  margin: 0 0 16px;
  color: #fff;
  font-family: "Fraunces", "Noto Naskh Arabic", Georgia, serif;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
}

.privacy-doc > header .sub {
  color: #d9e9e2;
  font-weight: 500;
  opacity: 1;
}

.privacy-doc nav,
.privacy-doc > section,
.privacy-doc > footer {
  margin: 14px 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px -38px rgba(14, 55, 51, .65);
}

.privacy-doc > footer {
  margin-bottom: 0;
}

.privacy-doc h2,
.privacy-doc h3 {
  color: var(--ink);
}

.privacy-doc h2 {
  font-family: "Fraunces", "Noto Naskh Arabic", Georgia, serif;
  font-size: clamp(27px, 4vw, 39px);
}

.privacy-doc p,
.privacy-doc li {
  line-height: 1.85;
}

.privacy-doc .note {
  border-radius: 15px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
}

.footer {
  margin-top: 56px;
  padding: 60px 0 28px;
  background: #0b2926;
  color: #d9e9e2;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 42px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.foot-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.footer a {
  color: #b9ddd0;
}

.footer .lang-switch {
  width: max-content;
  max-width: 100%;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.footer .lang-switch > .lang-link {
  display: none;
  color: #b9ddd0 !important;
  text-decoration: none;
}

.footer .lang-switch > .lang-link.active {
  min-width: 78px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(185, 221, 208, .28);
  border-radius: 14px;
  background: transparent !important;
}

.footer .lang-switch-mobile {
  display: inline-block;
  width: max-content;
  max-width: 100%;
}

.footer .lang-switch-mobile summary {
  border-color: rgba(185, 221, 208, .28);
  background: transparent;
  color: #b9ddd0;
}

.footer .lang-dropdown a {
  color: var(--muted) !important;
}

.footer .lang-dropdown a:hover {
  color: var(--ink) !important;
}

.footer .lang-dropdown a.active {
  background: var(--ink) !important;
  color: #fff !important;
}

.footer .lang-dropdown {
  inset-block-start: auto;
  inset-block-end: calc(100% + 8px);
  inset-inline-start: 0;
  inset-inline-end: auto;
}

.copy {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #88aaa0;
  text-align: center;
}

@media (max-width: 820px) {
  .site-header {
    position: relative;
    inset-block-start: 0;
    width: 100%;
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .nav {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding: 10px 14px;
  }

  .nav-links,
  .nav-right > .lang-switch,
  .nav-cta {
    display: none;
  }

  .nav-right {
    display: block;
  }

  .lang-switch-mobile {
    display: block;
  }

  main {
    padding-block: 36px 64px;
  }

  .post-list {
    grid-template-columns: 1fr;
  }

  .article-hero {
    padding: 24px 0 36px;
  }

  article.prose {
    width: calc(100% - 28px);
    padding: 24px 20px;
    border-radius: 22px;
  }

  .privacy-doc {
    width: calc(100% - 28px);
  }

  .privacy-doc > header,
  .privacy-doc nav,
  .privacy-doc > section,
  .privacy-doc > footer {
    border-radius: 20px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .brand-text small {
    display: none;
  }

  .post-card {
    padding: 22px;
    border-radius: 20px;
  }

  .blog-h1,
  .article-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
