/* Ministerial Roundtable, Ashgabat, 22 October 2026 — event site
   The print system, carried to screen: Midnight Blue ground, Montserrat Light,
   a single Yellow Sun rule, and English and Russian set at equal weight. */

:root {
  --navy:   #00437B;   /* Midnight Blue, PMS 294 C — the ground            */
  --deep:   #002B52;   /* for depth under the navy                         */
  --sun:    #FBAF17;   /* Yellow Sun, PMS 7408 C — the accent, on navy     */
  --sun-lt: #E09F0C;   /* the same accent, darkened for light grounds      */
  --tint:   #E9F0F6;
  --hair:   #C8D6E2;
  --muted:  #5A738A;
  --paper:  #FFFFFF;
  --measure: 68ch;
  --gutter: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: Montserrat, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- the two working languages -------------------------------------------
   Both languages are in the page. The toggle hides one. Russian is never
   styled as a translation of the English: same colour, same weight.          */
[data-lang="en"] [lang="ru"]:not(.both) { display: none; }
[data-lang="ru"] [lang="en"]:not(.both) { display: none; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun-lt); }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- masthead ------------------------------------------------------------ */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.bar nav { display: flex; gap: 20px; margin-right: auto; flex-wrap: wrap; }
.bar nav a {
  color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .02em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.bar nav a:hover, .bar nav a:focus-visible { border-bottom-color: var(--sun); color: #fff; }

.lang { display: flex; align-items: center; gap: 0; }
.lang button {
  font: inherit; font-size: 13px; letter-spacing: .06em;
  background: none; border: 1px solid rgba(255,255,255,.45); color: #fff;
  padding: 5px 11px; cursor: pointer;
}
.lang button + button { border-left: none; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }

/* On a phone the nav must stay on one line: wrapping pushes a link under the
   language toggle and the bar reads as broken. Scroll it instead. */
@media (max-width: 560px) {
  .bar .wrap { gap: 10px; }
  .bar nav {
    flex-wrap: nowrap; gap: 15px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { white-space: nowrap; font-size: 13px; }
  .lang button { padding: 5px 9px; font-size: 12px; }
}

/* ---- hero ---------------------------------------------------------------- */
/* padding-bottom, not a margin on the last child: a bottom margin collapses
   out of the section and opens a white strip above the weave */
.hero { background: var(--navy); color: #fff; padding: 52px 0 56px; }
.hero img.lockup { width: min(340px, 72vw); height: auto; display: block; margin-bottom: 44px; }

.hero h1 {
  font-weight: 300; margin: 0;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.03; letter-spacing: -0.015em;   /* display tracked -1.5% */
  max-width: 20ch;
}
.hero .ru-title {
  font-weight: 300; margin: 26px 0 0;
  font-size: clamp(19px, 3.1vw, 31px);           /* Russian set smaller    */
  line-height: 1.12; letter-spacing: -0.015em;
  max-width: 26ch; color: #fff;
}
.hero .rule { height: 3px; background: var(--sun); width: 108px; margin: 34px 0 26px; }
.hero .when { font-size: clamp(16px, 2vw, 20px); margin: 0 0 6px; }
.hero .who  { font-size: 15px; color: rgba(255,255,255,.82); margin: 0; max-width: 56ch; }

/* ---- the weave: the word for education in the six State languages -------- */
.weave {
  background: var(--deep); color: #fff; overflow: hidden;
  padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12);
}
.weave div {
  display: flex; gap: 2.6rem; width: max-content;
  animation: drift 46s linear infinite;
  font-size: 15px; letter-spacing: .14em; text-transform: lowercase;
  color: rgba(255,255,255,.62); white-space: nowrap;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .weave div { animation: none; } }

/* ---- sections ------------------------------------------------------------ */
section { padding: 62px 0; border-top: 1px solid var(--hair); }
section:first-of-type { border-top: none; }
section > .wrap > h2 {
  font-weight: 300; font-size: clamp(25px, 3.4vw, 36px); letter-spacing: -0.015em;
  margin: 0 0 6px; line-height: 1.1;
}
.kicker {
  font-size: 12px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.hr { height: 2px; width: 72px; background: var(--sun-lt); margin: 20px 0 30px; }
section p, section li { max-width: var(--measure); }
section p { margin: 0 0 1.05em; }
.lead { font-size: 19px; }

h3 { font-weight: 500; font-size: 18px; margin: 34px 0 8px; letter-spacing: -0.005em; }

ol.objectives { padding-left: 0; list-style: none; counter-reset: o; margin: 0 0 1.2em; }
ol.objectives li {
  counter-increment: o; position: relative; padding-left: 42px; margin-bottom: 14px;
}
ol.objectives li::before {
  content: counter(o); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border: 1px solid var(--hair); border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; color: var(--navy);
}
ul.plain { padding-left: 20px; margin: 0 0 1.2em; }
ul.plain li { margin-bottom: 7px; }

/* ---- agenda -------------------------------------------------------------- */
.agenda { border-top: 2px solid var(--navy); }
.row {
  display: grid; grid-template-columns: 124px 1fr; gap: 0 24px;
  padding: 16px 0; border-bottom: 1px solid var(--hair); align-items: start;
}
.row .t { font-variant-numeric: tabular-nums; color: var(--navy); font-size: 15px; padding-top: 2px; }
.row .s { font-weight: 500; margin: 0 0 3px; max-width: none; }
.row .d { color: var(--muted); font-size: 15px; margin: 0; max-width: 60ch; }
.row .k { color: var(--muted); font-size: 14px; margin: 5px 0 0; max-width: 60ch; }
.row.break .s { font-weight: 300; color: var(--muted); }
@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; gap: 2px; }
  .row .t { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
}

/* ---- documents ----------------------------------------------------------- */
.docs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.doc {
  display: block; text-decoration: none; background: var(--tint);
  border-left: 3px solid var(--sun-lt); padding: 20px 22px;
  transition: background .15s ease, transform .15s ease;
}
.doc:hover { background: #dde8f1; transform: translateY(-1px); color: var(--navy); }
.doc .n { font-weight: 500; display: block; margin-bottom: 5px; }
.doc .m { font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.doc .x { font-size: 14px; color: var(--muted); display: block; margin-top: 8px; }
.pending { background: #fff; border-left-color: var(--hair); cursor: default; }
.pending:hover { background: #fff; transform: none; }

/* ---- footer -------------------------------------------------------------- */
footer { background: var(--navy); color: #fff; padding: 52px 0 60px; margin-top: 10px; }
footer img { width: min(300px, 70vw); height: auto; display: block; margin-bottom: 26px; }
footer p { color: rgba(255,255,255,.8); font-size: 14px; max-width: 62ch; margin: 0 0 .9em; }
footer a { color: #fff; }
footer .rule { height: 2px; width: 72px; background: var(--sun); margin: 0 0 26px; }

@media print {
  .bar, .weave, .lang { display: none; }
  body { font-size: 11pt; }
  .hero, footer { background: none; color: #000; }
}

/* ---- documents: two groups ----------------------------------------------- */
h3.group {
  font-weight: 400; font-size: 20px; letter-spacing: -0.005em;
  margin: 40px 0 4px; padding-top: 26px; border-top: 1px solid var(--hair);
}
section .note { color: var(--muted); font-size: 15px; margin: 0 0 22px; }

.doc .tags { display: flex; gap: 6px; margin-bottom: 10px; }
.doc .tag {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--navy); color: #fff; padding: 2px 7px; border-radius: 2px;
}
.doc .tag.soon { background: none; color: var(--muted); border: 1px solid var(--hair); }
.doc .n { font-size: 17px; }

/* ---- useful resources ---------------------------------------------------- */
ul.res { list-style: none; padding: 0; margin: 0; }
ul.res li {
  max-width: var(--measure);
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--hair);
}
/* the icon: a navy glyph in a tint disc, matching the document cards */
ul.res .ic {
  flex: 0 0 38px; width: 38px; height: 38px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--tint); color: var(--navy);
}
ul.res .ic svg { width: 20px; height: 20px; display: block; }
ul.res .rt { min-width: 0; }
ul.res a { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--hair); }
ul.res a:hover { border-bottom-color: var(--sun-lt); }
ul.res .src {
  display: block; margin: 5px 0 6px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
ul.res .x { display: block; color: var(--muted); font-size: 15px; }

/* ---- contact ------------------------------------------------------------- */
.people {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 26px 0 28px; max-width: 760px;
}
.person { background: var(--tint); border-left: 3px solid var(--navy); padding: 20px 22px; }
.person p { margin: 0; max-width: none; }
.person .pn { font-weight: 500; font-size: 18px; }
.person .pr { color: var(--muted); font-size: 15px; margin-bottom: 7px; }
.person .pe a { text-decoration: none; border-bottom: 1px solid var(--hair); word-break: break-word; }
.person .pe a:hover { border-bottom-color: var(--sun-lt); }

/* ---- logistics ----------------------------------------------------------- */
dl.facts {
  margin: 0 0 24px; max-width: 820px;
  display: grid; grid-template-columns: 210px 1fr; gap: 0;
  border-top: 1px solid var(--hair);
}
dl.facts dt {
  padding: 15px 20px 15px 0; border-bottom: 1px solid var(--hair);
  font-weight: 500; font-size: 15px;
}
dl.facts dd {
  margin: 0; padding: 15px 0; border-bottom: 1px solid var(--hair);
  color: var(--muted); font-size: 16px;
}
@media (max-width: 620px) {
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { padding-bottom: 0; border-bottom: none; }
  dl.facts dd { padding-top: 4px; }
}
