/* CCIE Coming Soon — static, no JavaScript, no external dependencies.
   One page per language (/, /it/, /ar/). Colours taken from the CCI-Egitto logo. */
:root {
  --green: #0b7a36;
  --red: #c8102e;
  --grey: #8a8a8a;
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1c1c1c;
  --muted: #555555;
  --line: #e2e0da;
  --link: #0b6b30;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141615;
    --card: #1d201e;
    --text: #f1f1ee;
    --muted: #b9bcb8;
    --line: #2e322f;
    --link: #6fd39a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  line-height: 1.65;
  border-top: 6px solid var(--green);
}

html[lang="ar"] body {
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", "Geeza Pro", Arial, sans-serif;
  line-height: 1.9;
}

.page {
  min-height: calc(100vh - 6px);
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand and language switcher */
.brand { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.logo {
  width: 184px;
  height: auto;
  background: #ffffff; /* the logo has a white background; keep it framed in dark mode */
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.langs a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  background: var(--card);
  min-width: 44px;           /* comfortable touch target */
  text-align: center;
}
.langs a:hover { border-color: var(--green); }
.langs a[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  font-weight: 600;
}

/* Message card */
.card {
  width: 100%;
  margin: 40px 0 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--green);   /* flips automatically on the RTL page */
  border-radius: 14px;
  padding: 36px 40px;
  text-align: start;
}

.org {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

h1 { margin: 0 0 18px; font-size: 1.9rem; line-height: 1.3; }
p { margin: 0 0 12px; font-size: 1.05rem; }
.card p:last-child { margin-bottom: 0; }

a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.langs a[aria-current="page"]:focus-visible { outline-color: var(--text); }

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

/* 404 page: three short notices */
.notices { width: 100%; display: grid; gap: 16px; margin: 32px 0; }
.notices .card { margin: 0; padding: 24px 28px; }
.notices h1, .notices h2 { font-size: 1.3rem; margin: 0 0 8px; }

/* Tablet */
@media (max-width: 760px) {
  .page { padding: 44px 20px 28px; }
  .card { padding: 30px 28px; }
  h1 { font-size: 1.65rem; }
}

/* Phone */
@media (max-width: 480px) {
  .page { padding: 32px 16px 24px; }
  .brand { gap: 22px; }
  .logo { width: 148px; padding: 12px; }
  .card { margin: 28px 0 24px; padding: 24px 20px; }
  h1 { font-size: 1.4rem; }
  p { font-size: 1rem; }
  .langs a { padding: 8px 14px; }
}
