/* n2a01.com: one stylesheet, no external resources. Colours are the Farrah design-system tokens
   (shared/design-system/.../theme/Color.kt, FarrahColors). The brand is dark-first and defines no
   light scheme, so neither does this site. */

@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --background: #081e1b;
  --background-deep: #031713;
  --surface: #0f2824;
  --surface-low: #0a2420;
  --surface-bright: #0f2f29;
  --surface-variant: #1e3733;

  --primary: #ddb982;
  --on-primary: #081e1b;
  --accent: #e6c590;
  --accent-bright: #f4cf96;
  --secondary: #dbc3a1;

  --on-surface: #f3ede4;
  --on-surface-variant: #a8b3b0;

  --outline: #5b7e77;
  --outline-variant: #2f4c47;

  --warning: #ff9741;
  --warning-ground: #2a1f0d;

  --radius: 14px;
  --radius-small: 10px;
  --measure: 46rem;
  --wide: 70rem;
  --gutter: 16px;

  --font: "Plex Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  background-image: linear-gradient(180deg, var(--surface-bright) 0, var(--background) 22rem, var(--background-deep) 100%);
  background-repeat: no-repeat;
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-bright);
}

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  color: var(--primary);
  margin-top: 2.2em;
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1em;
}

ul,
ol {
  padding-inline-start: 1.4em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  font-weight: 700;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.6em 1em;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-small);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--gutter);
}

/* ---- header ---- */

.site-header {
  border-bottom: 1px solid var(--outline-variant);
}

.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--on-surface);
}

.brand__mark {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 9px;
  background: var(--surface-bright);
  border: 1px solid rgba(221, 185, 130, 0.55);
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--on-surface);
  background: var(--surface);
}

.site-nav a[aria-current="page"] {
  color: var(--on-primary);
  background: var(--primary);
  font-weight: 700;
}

.lang-switch {
  margin-inline-start: auto;
  padding: 6px 14px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--on-surface);
  text-decoration: none;
  font-size: 0.95rem;
}

.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- main ---- */

main {
  flex: 1 0 auto;
  width: 100%;
}

.container {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
}

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px var(--gutter) 40px;
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.4fr 1fr;
    padding-top: 88px;
    padding-bottom: 64px;
  }
}

.eyebrow {
  margin: 0 0 0.6em;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--on-surface-variant);
  max-width: 38rem;
}

.hero__art {
  justify-self: center;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 40%, rgba(221, 185, 130, 0.18), transparent 70%), var(--surface-bright);
  border: 1px solid rgba(221, 185, 130, 0.5);
}

.hero__art img {
  width: 58%;
}

.gold-rule {
  height: 2px;
  border: 0;
  margin: 0 auto;
  max-width: var(--wide);
  background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--accent-bright) 50%, var(--primary) 70%, transparent);
  opacity: 0.7;
}

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 48px var(--gutter);
}

.section > h2:first-child {
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
}

.card h3 {
  margin-top: 0;
  color: var(--accent);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-bright);
  color: var(--on-primary);
}

.button--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.button--ghost:hover {
  background: var(--surface);
  color: var(--accent-bright);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.store-badges li + li {
  margin-top: 0;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  min-width: 11rem;
  padding: 10px 18px;
  border: 1px dashed var(--outline);
  border-radius: var(--radius-small);
  background: var(--surface-low);
  line-height: 1.4;
}

.store-badge__store {
  font-weight: 700;
}

.store-badge__state {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
}

/* ---- policy pages ---- */

.draft-banner {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--warning);
  border-inline-start-width: 6px;
  border-radius: var(--radius-small);
  background: var(--warning-ground);
}

.draft-banner p {
  margin: 0;
}

.draft-banner strong {
  color: var(--warning);
}

.doc-meta {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

.doc-meta li + li {
  margin-top: 0;
}

.toc {
  margin: 0 0 32px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 0.4em;
  font-size: 1rem;
  color: var(--on-surface);
}

.toc ol {
  margin: 0;
}

.placeholder {
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px dashed var(--warning);
  color: var(--accent-bright);
  white-space: normal;
}

.note {
  padding: 14px 18px;
  border-radius: var(--radius-small);
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1em;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-small);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
}

th,
td {
  padding: 10px 12px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--outline-variant);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  position: relative;
  padding-inline-start: 2.6em;
  min-height: 2em;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0.1em;
  width: 1.8em;
  height: 1.8em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 24px;
  margin: 0 0 24px;
  background: var(--surface);
  border: 1px solid rgba(221, 185, 130, 0.5);
  border-radius: var(--radius);
}

.contact-card a {
  font-size: 1.25rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

[dir="ltr"].ltr-inline,
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--outline-variant);
  background: var(--background-deep);
  color: var(--on-surface-variant);
  font-size: 0.92rem;
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-footer li + li {
  margin-top: 0;
}

.site-footer a {
  color: var(--on-surface-variant);
}

.site-footer a:hover {
  color: var(--primary);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .button,
  .lang-switch {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .toc {
    display: none;
  }

  a {
    color: #000;
  }

  .draft-banner {
    background: #fff;
  }
}

main:focus {
  outline: none;
}
