:root {
  color-scheme: light dark;
  --bg: #f6f1e9;
  --surface: #fffdf9;
  --text: #13304a;
  --muted: #53626f;
  --line: #e0d7c8;
  --teal: #1f7a70;
  --teal-deep: #155a52;
  --link: #155a52;
  --warn-bg: #fbedc9;
  --warn-text: #6b4500;
  --calm-bg: #e8e5dc;
  --calm-text: #46545f;
  --focus: #13304a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1b27;
    --surface: #17283a;
    --text: #e8eef3;
    --muted: #a5b4c1;
    --line: #2c3f52;
    --link: #74d1c4;
    --warn-bg: #3a2d10;
    --warn-text: #f3d48f;
    --calm-bg: #233547;
    --calm-text: #bcc8d2;
    --focus: #ffd98a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--link); text-underline-offset: .16em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; top: -5rem; left: .5rem; z-index: 1; padding: .75rem 1rem; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; }
.skip:focus { top: .5rem; }

/* Header: the shield and the name on the left, Telegram on the right, the sections below. */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: .75rem; }
.brand { display: grid; grid-template-columns: auto auto; align-content: center; column-gap: .6rem; min-height: 3.5rem; color: var(--text); line-height: 1.15; text-decoration: none; }
.brand::before {
  content: "";
  grid-row: 1 / 3;
  align-self: center;
  width: 27px;
  height: 31px;
  border-radius: 5px 5px 14px 14px;
  background: linear-gradient(#fff, #fff) 6px 12px / 15px 5px no-repeat, linear-gradient(#fff, #fff) 11px 7px / 5px 15px no-repeat, var(--teal);
  clip-path: path("M13.5 0C17 2.7 21.8 4 27 4.3V13.5C27 21.7 21.3 27.9 13.5 31 5.7 27.9 0 21.7 0 13.5V4.3C5.2 4 10 2.7 13.5 0Z");
}
.brand b, .brand small { grid-column: 2; }
.brand b { font-size: 1.06rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.brand small { font-size: .72rem; color: var(--muted); }
.tg, .button, .doc { display: flex; align-items: center; gap: .5rem; border: 2px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color .15s, border-color .15s; }
.tg::before, .button::before {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  clip-path: polygon(8% 88%, 96% 50%, 8% 12%, 8% 41%, 70% 50%, 8% 59%);
  transform: rotate(-30deg);
}
.tg { min-height: 2.75rem; padding: 0 1.05rem 0 .9rem; background: var(--teal); color: #fff; font-size: .95rem; }
.tg:hover { background: var(--teal-deep); }
.site-nav, .years ul {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  margin: 0 -1rem;
  padding: 0 2.5rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
}
.site-nav::-webkit-scrollbar, .years ul::-webkit-scrollbar { display: none; }
.site-nav { flex: 0 0 calc(100% + 2rem); column-gap: 1.35rem; }
.site-nav a { flex: none; display: flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: .94rem; text-decoration: none; outline-offset: -3px; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current] { color: var(--text); font-weight: 650; box-shadow: inset 0 -3px var(--teal); }

/* Page. On a wide screen the Telegram box stands in a column on the right. */
main.wrap { flex: 1; padding-bottom: 2.5rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; column-gap: .4rem; margin-top: .25rem; font-size: .875rem; color: var(--muted); }
.crumbs a { display: flex; align-items: center; min-height: 2.75rem; margin: 0 -.35rem; padding: 0 .35rem; color: inherit; text-decoration-thickness: 1px; }
.crumbs a:hover { color: var(--link); }
h1 { margin: .5rem 0 1.1rem; font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.1rem); line-height: 1.18; font-weight: 800; letter-spacing: -.012em; overflow-wrap: anywhere; text-wrap: balance; }
h1.caps { font-size: clamp(1.35rem, 1.05rem + 1.4vw, 1.8rem); line-height: 1.22; letter-spacing: .005em; }
h1.long { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.45rem); line-height: 1.3; font-weight: 700; letter-spacing: 0; text-wrap: pretty; }
h2 { margin: 2.25rem 0 .75rem; font-size: 1.25rem; line-height: 1.25; font-weight: 800; }
main > h1:first-child, .intro { margin-top: 1.5rem; }
main > p { margin: 0 0 1rem; }
.intro p { margin: 0; font-size: 1.08rem; }
.meta { display: block; margin-top: .15rem; font-size: .85rem; color: var(--muted); }
p.meta { margin: -.5rem 0 1.1rem; font-size: .92rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }

/* Notice page. */
.kicker { display: inline-block; margin: .25rem 0 0; padding: .22rem .6rem; border-radius: 6px; background: var(--warn-bg); color: var(--warn-text); font-size: .78rem; font-weight: 700; line-height: 1.35; letter-spacing: .05em; text-transform: uppercase; }
.revoked .kicker, .revoked .note { background: var(--calm-bg); color: var(--calm-text); }
.facts { margin: 0; padding: .3rem 1rem; }
.facts div { padding: .7rem 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt, .docs h2, .years h2 { margin: 0; font-size: .78rem; font-weight: 600; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.docs { padding: .9rem 1rem .65rem; }
.facts + .docs { border-top: 1px solid var(--line); }
.docs ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.docs li a { display: flex; align-items: center; min-height: 2.75rem; font-size: .92rem; }
.docs .doc { justify-content: space-between; min-height: 3rem; margin-bottom: .3rem; padding: .5rem .9rem; border-color: var(--teal); border-radius: 12px; color: var(--link); font-size: .97rem; line-height: 1.3; }
.docs .doc:hover { background: var(--bg); border-color: var(--link); }
.doc::after, .notices li::after, .sections a::after { content: ""; flex: none; width: .5rem; height: .5rem; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.note { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: var(--warn-bg); color: var(--warn-text); font-size: .95rem; line-height: 1.45; }

/* The Telegram box: the main action of every page. */
.cta { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 .9rem; margin: 1.75rem 0 0; padding: 1.25rem; border-radius: 18px; background: var(--teal-deep); color: #fff; --focus: #fff; }
.cta img { width: 3.25rem; height: 3.25rem; border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / .3); }
.cta p { grid-column: 1 / -1; margin: .75rem 0 1.1rem; font-size: .98rem; line-height: 1.5; }
.cta .cta-title { grid-column: 2; margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.button { grid-column: 1 / -1; justify-content: center; min-height: 3.1rem; padding: .6rem 1rem; background: #f6f1e9; color: #0f4a43; font-weight: 800; line-height: 1.25; text-align: center; }
.button:hover { background: #fff; }

/* Lists: the whole row is the link. */
.notices { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.notices li { position: relative; padding: .8rem 2.75rem .8rem 1.1rem; border-top: 1px solid var(--line); }
.notices li:first-child { border-top: 0; }
.notices li:hover { background: var(--bg); }
.notices a { color: var(--text); font-weight: 650; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.notices a.caps { font-size: .93em; letter-spacing: .01em; }
.notices a.long { font-size: .95em; font-weight: 600; }
.notices a::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.notices li:hover a { color: var(--link); text-decoration: underline; }
.notices a:focus-visible { outline: 0; }
.notices a:focus-visible::before { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 6px; }
.notices li::after, .sections a::after { position: absolute; top: 50%; right: 1.15rem; margin-top: -.3rem; color: var(--muted); opacity: .7; pointer-events: none; }
.years { margin: 0 0 1.1rem; }
.years ul { list-style: none; column-gap: .5rem; margin-top: .1rem; padding-top: .3rem; padding-bottom: .3rem; }
.years a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
.years a:hover { border-color: var(--muted); }
.years a[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.sections { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.sections a { position: relative; display: block; height: 100%; padding: .9rem 2.75rem .9rem 1.1rem; color: var(--text); text-decoration: none; }
.sections a:hover { border-color: var(--muted); }
.sections strong { display: block; line-height: 1.3; }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .875rem; }
.site-footer p { margin: 0 0 .6rem; }
.site-footer strong { color: var(--text); }
.site-footer a { color: inherit; }

/* Narrow phones lose the shield. From 34rem the facts stand in two columns. */
@media (max-width: 21.9rem) { .brand::before { display: none; } }
@media (min-width: 34rem) {
  .facts div, .docs { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; }
  .facts dd, .docs ul { margin-top: 0; }
  .docs .doc { display: inline-flex; min-width: min(100%, 19rem); }
  .button { justify-self: start; min-width: 19rem; }
}
@media (min-width: 40rem) {
  .years ul { flex-wrap: wrap; row-gap: .5rem; overflow: visible; margin: .4rem 0 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 62rem) {
  .wrap { max-width: 66rem; padding: 0 2rem; }
  .site-nav { flex-basis: 100%; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; column-gap: 1.75rem; }
  main.wrap { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; grid-template-rows: repeat(7, auto) 1fr; column-gap: 3.5rem; align-items: start; padding-top: .5rem; padding-bottom: 3.5rem; }
  main > * { grid-column: 1; }
  main > .cta { grid-column: 2; grid-row: 1 / -1; position: sticky; top: 1.5rem; margin-top: 1.25rem; }
  .button { justify-self: stretch; min-width: 0; }
}
@media (min-width: 62rem) and (hover: hover) and (pointer: fine) {
  .years a { min-height: 2.25rem; padding: 0 .85rem; }
}
@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --muted: #333; --line: #999; --link: #000; --warn-bg: #fff; --warn-text: #000; --calm-bg: #fff; --calm-text: #000; }
  body { font-size: 11pt; }
  .skip, .tg, .site-nav, .crumbs, .cta, .years, .brand::before, .notices li::after { display: none; }
  .wrap { max-width: none; padding: 0; }
  body, main.wrap { display: block; }
  .kicker, .note { padding: 0; }
  .docs .doc { display: block; min-height: 0; padding: 0; border: 0; }
  .docs li a { display: block; min-height: 0; margin: 0 0 .3rem; text-decoration: none; }
  .docs li a::after { content: " (" attr(href) ")"; display: inline; border: 0; transform: none; font-weight: 400; overflow-wrap: anywhere; }
}
