/* archixl-pagina.css: de gedeelde componenten van hoofdstuk 4 voor schermen in ArchiXL-stijl.

   Kopbalk, kaart, lijstregel, statuslabel, melding, bronlabel en tabbladen. Bouw ze een keer, gebruik ze
   overal. Alleen tokens uit archixl-tokens.css (via app-basis.css, dat i18n.js laadt). Laad dit blad na
   tekstschaal.css; een pagina die het laadt hoort in de app-schil.

   Knoppen staan in app-basis.css (.sxl-knop primair / secundair / stil). */
/* app-basis.css zelf, niet pas via i18n.js: anders krijgen knoppen hun maat een tel later en springt het scherm. */
@import url("/static/components/app-basis.css");

.axl { margin: 0; background: var(--kleur-achtergrond); color: var(--kleur-tekst);
  font-family: var(--font-tekst); font-size: var(--tekst-15); line-height: var(--regel-tekst); }
.axl h1, .axl h2, .axl h3 { font-family: var(--font-kop); color: var(--kleur-blauw-donker);
  line-height: var(--regel-kop); font-weight: var(--gewicht-nadruk); margin: 0; }
.axl h1 { font-size: var(--tekst-32); }
.axl h2 { font-size: var(--tekst-24); }
.axl h3 { font-size: var(--tekst-19); }
.axl-inhoud a, .axl-kop a { color: var(--kleur-blauw); }

/* Kopbalk: wit, kruimelpad links, rolwissel en account rechts (die zet appschil.js erin). */
.axl-kop { display: flex; align-items: center; gap: var(--ruimte-4); min-height: 56px;
  padding: 0 var(--ruimte-6); background: var(--kleur-vlak); border-bottom: var(--rand);
  position: sticky; top: 0; z-index: 30; }
.axl-kop .brand { display: none; }

.axl-inhoud { max-width: 1200px; padding: var(--ruimte-8) var(--ruimte-6) var(--ruimte-12); }
.axl-inleiding { margin: var(--ruimte-2) 0 var(--ruimte-6); max-width: 70ch; color: var(--kleur-tekst); }

/* Kaart: wit vlak, rand 1 px, afronding 6 px, binnenruimte 16 tot 24 px. Geen schaduw. */
.axl-kaart { background: var(--kleur-vlak); border: var(--rand); border-radius: var(--rond-kaart);
  padding: var(--ruimte-6); }
/* Kaarten onder elkaar: zet ze in .axl-stapel (een raster regelt zijn eigen ruimte). */
.axl-stapel > .axl-kaart + .axl-kaart { margin-top: var(--ruimte-4); }
.axl-raster { display: grid; gap: var(--ruimte-4); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Kopje boven een blok: hoofdletters met 0,05em afstand. */
.axl-label { font-size: var(--tekst-13); font-weight: var(--gewicht-nadruk); text-transform: uppercase;
  letter-spacing: var(--hoofdletter-afstand); color: var(--kleur-tekst-zacht); margin: 0 0 var(--ruimte-2); }

/* Lijstregel: klikbare regel, titel vet in donkerblauw, uitleg eronder. */
.axl-lijst { list-style: none; margin: 0; padding: 0; }
.axl-regel { display: block; min-height: var(--klikgebied); padding: var(--ruimte-2) var(--ruimte-3);
  border-radius: var(--rond-knop); text-decoration: none; color: var(--kleur-tekst); }
.axl-regel:hover { background: var(--kleur-achtergrond); }
.axl-regel .axl-titel { display: block; font-weight: var(--gewicht-nadruk); color: var(--kleur-blauw-donker); }
.axl-regel .axl-uitleg { display: block; color: var(--kleur-tekst); }
.axl-regel[aria-disabled="true"] { cursor: default; }
.axl-regel[aria-disabled="true"] .axl-titel { color: var(--kleur-tekst-zacht); }
.axl-regel[aria-disabled="true"]:hover { background: transparent; }

/* Statuslabel: klein vlak met een woord. Nooit alleen kleur. */
.axl-status { display: inline-block; padding: 0 var(--ruimte-2); border-radius: var(--rond-knop);
  font-size: var(--tekst-13); font-weight: var(--gewicht-nadruk); line-height: 1.6; }
.axl-status.goed { color: var(--kleur-goed); background: var(--kleur-goed-vlak); }
.axl-status.concept { color: var(--kleur-concept); background: var(--kleur-concept-vlak); }
.axl-status.fout { color: var(--kleur-fout); background: var(--kleur-fout-vlak); }
.axl-status.zacht { color: var(--kleur-tekst-zacht); background: var(--kleur-vlak-zacht); }

/* Melding: bolletje, titel en een zin uitleg, klikbaar naar de plek van het probleem. */
.axl-melding { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--ruimte-3); align-items: baseline;
  padding: var(--ruimte-3); border-radius: var(--rond-knop); text-decoration: none; color: var(--kleur-tekst); }
.axl-melding:hover { background: var(--kleur-achtergrond); }
.axl-melding::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--kleur-geraakt);
  grid-row: 1 / span 2; align-self: center; }
.axl-melding b { color: var(--kleur-blauw-donker); }

/* Bronlabel: "Bron: " gevolgd door wetsartikel, regel of processtap. */
.axl-bron { display: inline-block; padding: 0 var(--ruimte-2); border-radius: var(--rond-knop);
  background: var(--kleur-vlak-zacht); color: var(--kleur-tekst); font-size: var(--tekst-13); text-decoration: none; }
a.axl-bron:hover { text-decoration: underline; }

/* Tabbladen. */
.axl-tabs { display: flex; flex-wrap: wrap; gap: var(--ruimte-1); border-bottom: var(--rand); margin: 0 0 var(--ruimte-6); }
.axl-tabs [role="tab"], .axl-tabs a { min-height: var(--klikgebied); padding: 0 var(--ruimte-4); display: inline-flex;
  align-items: center; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer;
  color: var(--kleur-blauw); font: inherit; font-weight: var(--gewicht-nadruk); text-decoration: none; }
.axl-tabs [aria-selected="true"], .axl-tabs [aria-current="page"] { border-bottom-color: var(--kleur-blauw);
  color: var(--kleur-blauw-donker); }

/* Formulieronderdelen. */
.axl-veld { display: block; margin: 0 0 var(--ruimte-4); }
.axl-veld > span { display: block; margin-bottom: var(--ruimte-1); font-weight: var(--gewicht-nadruk); }
.axl select, .axl input[type="text"], .axl input[type="search"] { min-height: var(--klikgebied);
  padding: 0 var(--ruimte-3); font: inherit; color: var(--kleur-tekst); background: var(--kleur-vlak);
  border: 1px solid var(--kleur-lijn-veld); border-radius: var(--rond-knop); }
.axl-vinkje { display: flex; align-items: center; gap: var(--ruimte-2); min-height: var(--klikgebied); cursor: pointer; }
.axl-vinkje input { width: 20px; height: 20px; accent-color: var(--kleur-blauw); }

.axl-tabel { width: 100%; border-collapse: collapse; background: var(--kleur-vlak); }
.axl-tabel th, .axl-tabel td { text-align: left; padding: var(--ruimte-2) var(--ruimte-3); border-bottom: var(--rand); }
.axl-tabel th { font-size: var(--tekst-13); text-transform: uppercase; letter-spacing: var(--hoofdletter-afstand);
  color: var(--kleur-tekst-zacht); }
.axl-tabel select { min-height: 36px; }

.axl-zacht { color: var(--kleur-tekst-zacht); }
.axl-melding-fout { color: var(--kleur-fout); }
.axl-visueel-verborgen { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* Laden: grijze vlakken in de vorm van de inhoud (hoofdstuk 9), geen draaiend wiel. */
.axl-laden { display: grid; gap: var(--ruimte-3); }
.axl-laden span { display: block; height: 20px; border-radius: var(--rond-knop); background: var(--kleur-vlak-zacht); }
.axl-laden span:nth-child(2n) { width: 70%; }

@media (max-width: 600px) {
  .axl-inhoud { padding: var(--ruimte-6) var(--ruimte-4); }
  .axl-kop { padding: 0 var(--ruimte-4); }
}
.axl-kop-nu { font-weight: var(--gewicht-nadruk); color: var(--kleur-blauw-donker); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; }
