/* /sveden/* only: «Сведения об образовательной организации». Loaded after /styles.css, which supplies fonts,
   palette, .container, .header, .skip-link and the .legal* / .legal-footer shell; everything here is .sveden*.
   Generated pages: build_sveden.py (this file is static, not generated). */

.sveden__inner { display: grid; gap: 24px; }
.sveden__layout { display: grid; gap: 40px; align-items: start; }
.sveden__doc { max-width: 72ch; }
.sveden__doc:focus { outline: none; }
.sveden__doc .legal__title { overflow-wrap: break-word; hyphens: auto; }

.sveden__body { margin-top: 24px; font-size: 17px; line-height: 1.65; }
.sveden__body:empty { display: none; }
.sveden__body p + p { margin-top: 0.6em; }
.sveden__label { font-weight: 600; }
.sveden__body a { text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Numbered section list: overview body and the shared sidebar on every subsection. */
.sveden-list ol { display: grid; gap: 8px; }
.sveden-list a {
  display: flex; gap: 12px; align-items: baseline; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 4px; font-size: 15px; line-height: 1.35;
  text-decoration: none; overflow-wrap: break-word; hyphens: auto;
}
.sveden-list a:hover { background: var(--cyan-soft); }
.sveden-list a[aria-current="page"] { border-color: var(--blue-text); background: var(--cyan-soft); font-weight: 700; }
.sveden-list__num { flex: none; min-width: 1.6em; font-weight: 700; color: var(--blue-text); font-variant-numeric: tabular-nums; }
.sveden-list__text { min-width: 0; }

.sveden--overview .sveden-list { margin-top: 32px; }
.sveden--overview .sveden-list a { font-size: 17px; padding: 12px 18px; }

.sveden-toc__title { margin-bottom: 12px; font: 700 18px/1.3 var(--sans); }

/* Content first in DOM and visually: on phones the 14 links follow the (short) body instead of pushing it
   below the fold; from 960px they sit in a right-hand sidebar, so visual and focus order stay the same. */
@media (min-width: 960px) {
  .sveden__layout--toc { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 56px; }
}

/* Document cards (sections 3, 4, 6–9, 14; sveden_materials.py). These pages use the full main column; the
   column count follows the column's own width (container query), so beside the 960px+ sidebar it stays at one
   column until two fit comfortably, and reaches three around a 1200px viewport. Without container-query support
   the cards simply stay in one column. Pending cards are plain text: no hover or pointer affordance. */
.sveden__doc--materials { max-width: none; }
.sveden__doc--materials .sveden__body { max-width: 72ch; }
.sveden-materials { margin-top: 24px; container-type: inline-size; }
.sveden-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sveden-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px;
  border: 1px solid #E3EFF3; border-top: 3px solid #1F6FD6; border-radius: 8px; background: #fff;
}
.sveden-card__icon { display: block; flex: none; width: 44px; height: 44px; color: #1F6FD6; }
.sveden-card__title { margin: 0; font: 600 18px/1.3 var(--sans); overflow-wrap: break-word; hyphens: auto; }
.sveden-card__status { margin: auto 0 0; font: 400 14px/1.45 var(--sans); color: var(--ink-muted); }
.sveden-card__link { color: var(--blue-text); text-underline-offset: 4px; }
.sveden-card__link:focus-visible { outline: 2px solid #1F6FD6; outline-offset: 3px; border-radius: 2px; }

@container (min-width: 540px) {
  .sveden-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 700px) {
  .sveden-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Footer: same mint .legal-footer, three rows (contacts, documents, company line). */
.sveden-footer nav + nav { margin-top: 8px; }
.sveden-footer .footer__company { margin-top: 12px; }
.sveden-footer a { overflow-wrap: anywhere; }
