/* CoFlow links page. Colours: CoFlow Identity v4 (2026-11-07). Font: IBM Plex Sans Arabic (OFL, self-hosted). */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --olive: #4A5230;
  --olive-deep: #3B4126;
  --saffron: #C98F2A;
  --cream: #F4EFE3;
  --burgundy: #742C3B;
  --ink: #2B2B26;
  --muted: #5E5D53;      /* 6.0:1 on cream */
  --line: #D9D3C3;
  --surface: #FBF8F1;
  --focus: #742C3B;
  --radius: 1rem;
  font-family: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  line-height: 1.6;
  font-size: 1rem;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.card {
  width: 100%;
  min-width: 0;
  max-width: 27.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Designer's original line pattern (16 Nov 2026), outlines only: no fill band. */
.ornament {
  display: block;
  width: min(100%, 17rem);
  height: auto;
  max-width: 100%;
  margin-inline: auto;
  overflow: visible;
}
.ornament path {
  fill: none;
  stroke: var(--olive);
  stroke-opacity: .55;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.foot .ornament { width: min(100%, 11rem); margin-block-end: 1rem; }
.foot .ornament path { stroke: var(--burgundy); stroke-opacity: .45; }

.brand { text-align: center; }
.brand__logo {
  display: block;
  width: clamp(7.5rem, 30vw, 9rem);
  height: auto;
  margin: 0 auto 1.25rem;
}
.brand__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0;
  line-height: 1.3;
}
.brand__tagline {
  margin: .375rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.links { display: flex; flex-direction: column; gap: .75rem; container-type: inline-size; }

/* Very narrow space (200% zoom on a phone, or large text): drop the decorative arrow first. */
@container (max-width: 15rem) {
  .link { gap: .5rem; padding-inline: .75rem; }
  .link__arrow { display: none; }
}

.section-label {
  margin: 1.25rem 0 .25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--burgundy);
  text-align: center;
}

.link {
  display: flex;
  align-items: center;
  gap: .875rem;
  min-height: 3.5rem;
  padding: .875rem 1.125rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.link:hover { border-color: var(--olive); background: #fff; }
.link:active { transform: scale(.985); }

.link--primary {
  min-height: 4.25rem;
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}
.link--primary:hover { background: var(--olive-deep); border-color: var(--olive-deep); }

.link__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link__label { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.link__hint { font-size: .875rem; opacity: .86; line-height: 1.4; }
.link--primary .link__hint { color: var(--cream); opacity: .9; }

.link__handle {
  font-size: .875rem;
  color: var(--muted);
  unicode-bidi: isolate;
  direction: ltr;
  text-align: right;
}

.link__icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--olive);
}
.link__arrow {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--olive);
}
.link--primary .link__arrow { color: var(--cream); }

/* Keyboard focus: visible on both cream and olive. */
.link:focus { outline: none; }
.link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--cream) inset;
}
.link--primary:focus-visible { outline-color: var(--burgundy); box-shadow: 0 0 0 2px var(--cream) inset; }

.foot { text-align: center; color: var(--muted); font-size: .875rem; }
.foot p { margin: 0; }

@media (min-width: 48rem) {
  .card { gap: 2.5rem; }
  .brand__name { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .link:active { transform: none; }
}

@media (forced-colors: active) {
  .link { border: 1px solid CanvasText; }
  .link:focus-visible { outline: 3px solid Highlight; }
  .ornament path { stroke: CanvasText; }
}
