/* DLORA website: one stylesheet, no scripts, system fonts only.
   Mobile first; light and dark follow the device. Colours come from the app's
   brand palette (navy #203269, sky #40b8ea, coral #f2694b).
   Layout uses logical properties only, so the same rules serve Arabic and
   Kurdish (right to left) and English (left to right). No letter-spacing
   anywhere: it breaks the joins of Arabic script. */

:root {
  color-scheme: light dark;
  --navy: #203269;
  --sky: #40b8ea;
  --coral: #f2694b;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #172042;
  --muted: #566080;
  --line: #dde2ee;
  --link: #203269;
  --marker: #d9512f;
  --focus: #4472b8;
  --band-start: var(--navy);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1430;
    --surface: #151e42;
    --text: #e9ecf6;
    --muted: #a7b0cb;
    --line: #2a3562;
    --link: #8fd6f5;
    --marker: #f2694b;
    --focus: #40b8ea;
    /* navy disappears on the dark page: the brand's lighter blue stands in */
    --band-start: #4472b8;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic",
    "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

/* Arabic script needs more room between lines than Latin. */
html[dir="rtl"] body {
  line-height: 1.9;
}

/* The three brand colours as a thin band on top of every page. */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--band-start) 0 34%,
    var(--sky) 34% 67%,
    var(--coral) 67% 100%
  );
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.3em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

/* A phone number stays on one line. */
a[href^="tel:"],
.contact a {
  white-space: nowrap;
}

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

.skip {
  position: absolute;
  inset-block-start: -5rem;
  inset-inline-start: 1rem;
  z-index: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.skip:focus {
  inset-block-start: 0.75rem;
}

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

/* Logo and languages share one line; on a very narrow screen (under about
   350px) the languages move to a line of their own instead of overflowing. */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 0.75rem;
  padding-block: 0.75rem;
}

.brand {
  display: block;
  flex: none;
  padding-block: 0.5rem;
}

.brand img {
  display: block;
  height: 1.25rem;
  width: auto;
}

.langs {
  margin-inline-start: auto;
}

.langs ul {
  display: flex;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs a,
.langs span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

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

.langs a:hover {
  color: var(--link);
  text-decoration: underline;
}

.langs span {
  font-weight: 700;
}

/* ------------------------------------------------------------------ text */

main {
  flex: 1;
  padding-block: 1.25rem 3rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.1rem);
  line-height: 1.35;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* A bold lead-in before a list, inside a section of the policy or the terms. */
h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1em;
  line-height: inherit;
}

h2 + h3 {
  margin-block-start: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.4rem;
}

li {
  margin-block: 0.4rem;
}

li::marker {
  color: var(--marker);
  font-weight: 700;
}

/* Kurdish text writes its numbers as ١ ٢ ٣: number the steps the same way. */
:lang(ckb) ol {
  list-style-type: arabic-indic;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.policy-date {
  color: var(--muted);
  font-size: 0.9375rem;
}

.ui-name {
  font-weight: 700;
}

/* ----------------------------------------------------------------- home */

.hero {
  padding-block: 2rem 2.25rem;
  text-align: center;
}

.hero-logo {
  margin: 0 0 1.5rem;
}

.hero-logo img {
  display: block;
  width: min(15rem, 72%);
  height: auto;
  margin-inline: auto;
}

.tagline {
  margin: 0;
  font-size: 1.25rem;
}

/* -------------------------------------------------------- contact + links */

.panel {
  padding: 0.25rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.panel h2 {
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.contact {
  margin: 0;
}

.contact > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.125rem 1.25rem;
  padding-block: 0.9rem;
  border-block-end: 1px solid var(--line);
}

.contact > div:last-child {
  border-block-end: 0;
}

.contact dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact dd {
  margin: 0;
  font-weight: 600;
}

.tiles ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

/* The home page has four links: two by two on a wide screen, not three + one. */
.tiles-pairs ul {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.tiles li {
  margin: 0;
}

.tiles a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.tiles a:hover {
  border-color: var(--sky);
}

/* A small chevron that points the way the language reads. */
.tiles a::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-block-start: 2px solid var(--marker);
  border-inline-end: 2px solid var(--marker);
  transform: rotate(45deg);
}

html[dir="rtl"] .tiles a::after {
  transform: rotate(-45deg);
}

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

.site-footer {
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  padding-block: 1.25rem 1.75rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer p {
  margin: 0;
}

/* ---------------------------------------------------------------- larger */

@media (min-width: 40rem) {
  body {
    font-size: 1.125rem;
  }

  main {
    padding-block: 2.25rem 4rem;
  }

  .brand img {
    height: 1.6rem;
  }

  .langs a,
  .langs span {
    padding-inline: 0.75rem;
  }

  .hero {
    padding-block: 3rem;
  }
}

@media print {
  body::before,
  .skip,
  .langs,
  .site-footer nav {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
