/* Legal and contact pages (contact, data, legal, privacy, cookies), the guides (WE-119) and the 404. Rules from the v1
   landing, removed 2026-10-13 (apps/landing/page.css .doc, .todo, .center-page); colours and type from tokens.css. */
/* Not on the student tool's page: @wekly/ui's components set their own box model where they need it, and their portals land in body. */
:where(body:not(.tool-page)) *,:where(.nav,.nav *,.foot,.foot *,.tool-head,.tool-head *,.doc,.doc *){box-sizing:border-box}
html{color-scheme:light}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--fg);font:var(--text-body);-webkit-font-smoothing:antialiased}
.wrap{max-width:760px;margin-inline:auto;padding-inline:24px}
@media (max-width:560px){.wrap{padding-inline:16px}}

.nav{display:flex;align-items:center;gap:24px;max-width:1200px;margin:0 auto;width:100%;padding:14px 24px}
.brand{display:inline-flex;align-items:center;gap:9px;font:800 21px/1 var(--font-display);letter-spacing:-.02em;color:var(--fg);text-decoration:none}
.brand .sym-off rect{fill:var(--surface-3)}
.brand .sym-on{fill:var(--brand)}
.brand:focus-visible,.nav-links a:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-radius:var(--radius-sm)}
.nav-links{display:flex;gap:2px;margin-left:auto}
.nav-links a{font:var(--text-ui);color:var(--fg-2);text-decoration:none;padding:6px 10px;border-radius:var(--radius-sm)}
.nav-links a:hover{color:var(--fg);background:var(--surface-2)}
@media (max-width:640px){.nav{padding:12px 16px}.nav-links{display:none}}

.doc{flex:1;padding-block:40px 80px}
.doc h1{margin:0 0 12px;font:700 clamp(30px,4vw,44px)/1.1 var(--font-display);letter-spacing:-.03em}
.doc .crumbs{font:var(--text-caption);color:var(--fg-3);margin-bottom:20px}
.doc .crumbs a{color:var(--fg-2)}
.doc h2{margin:40px 0 12px;font:700 22px/1.2 var(--font-display);letter-spacing:-.02em;scroll-margin-top:24px}
.doc p,.doc li{margin:0;font:var(--text-body);color:var(--fg-2);max-width:66ch}
.doc p+p,.doc ul+p,.doc p+ul{margin-top:12px}
.doc ul{margin:0;list-style:disc;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.doc a{color:var(--brand-text)}
.doc .lead{font:var(--text-body-lg);color:var(--fg-2)}
.todo{background:var(--diag-soft);color:var(--diag-text);border-radius:4px;padding:1px 6px;font:500 .92em/1.4 var(--font-mono)}

.center-page{flex:1;display:flex;align-items:center;padding-block:64px}
.center-page .wrap{max-width:640px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px}
.center-page h1{margin:0;font:700 clamp(30px,4vw,44px)/1.1 var(--font-display);letter-spacing:-.03em}
.center-page p{margin:0;font:var(--text-body-lg);color:var(--fg-2)}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:var(--radius-md);background:var(--brand);color:var(--on-brand);font:600 15px/1 var(--font-body);text-decoration:none}
.btn:hover{background:var(--brand-hover)}
.btn:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.btn-ghost{background:var(--surface);color:var(--fg);box-shadow:inset 0 0 0 1px var(--line-strong)}
.btn-ghost:hover{background:var(--surface-2)}

/* Guides (build.mjs, from docs/guides/*.md) and /guias/. */
.doc h3{margin:28px 0 8px;font:600 18px/1.3 var(--font-display);letter-spacing:-.01em}
.doc ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.doc :is(p,ul,ol,.table,figure)+:is(ol,.table,figure),.doc :is(ol,.table,figure)+:is(p,ul){margin-top:16px}
.doc .byline{margin-top:4px;font:var(--text-ui);color:var(--fg-3)}
.doc .other-country{margin-top:16px;padding:10px 14px;border-radius:var(--radius-md);background:var(--brand-soft);font:var(--text-ui);color:var(--fg)}
.doc .cite{font-size:.75em;line-height:0;vertical-align:super;text-decoration:none}
.doc ol a{overflow-wrap:anywhere}
.doc .table{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-md)}
.doc .table:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.doc table{width:100%;border-collapse:collapse;font:var(--text-ui);color:var(--fg-2)}
.doc th,.doc td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.doc thead th{background:var(--surface-2);color:var(--fg);font-weight:600}
.doc tbody th{color:var(--fg);font-weight:600}
.doc tbody tr:last-child>*{border-bottom:0}
@media (max-width:560px){.doc table{min-width:560px}}
.doc figure{margin-inline:0}
.doc figure img{display:block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:var(--radius-md)}
.doc figcaption{margin-top:8px;font:var(--text-caption);color:var(--fg-3)}
.doc .guide-cta{margin-top:40px;padding:24px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
.doc .guide-cta h2{margin-top:0}
.doc .ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.doc .ctas .btn{color:var(--on-brand)}
.doc .ctas .btn-ghost{color:var(--fg)}
.doc .guide-list{list-style:none;padding-left:0;gap:20px}
.doc .guide-list a{font:600 18px/1.3 var(--font-display);text-decoration:none}
.doc .guide-list a:hover{text-decoration:underline}
.doc .guide-list p{margin-top:4px}

.foot{border-top:1px solid var(--line);background:var(--surface)}
.foot .wrap{max-width:1200px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;padding-block:24px;font:var(--text-ui);color:var(--fg-3)}
.foot nav{display:flex;flex-wrap:wrap;gap:8px 20px}
.foot a{color:var(--fg-2);text-decoration:none}
.foot a:hover{color:var(--brand-text);text-decoration:underline}

/* The student tool (WE-253): its head above the app and its text below. The app lays itself out with @wekly/ui, in the same column
   these line up with (StepPage's wide width, its 24px gutter on wide screens, 16px on phones). Its stylesheet comes after this one, so
   the page takes the app's tokens and its canvas colour. One rule reaches into the app: its StepPage fills a whole screen, as if it
   started at the top, so here it fills what the head above it leaves, and the text below starts where the first screen ends. */
.doc .licence{margin-top:12px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.doc .licence p{font:var(--text-caption);color:var(--fg-2)}
.doc li [lang]{overflow-wrap:anywhere}
.tool-page .nav,.tool-head,.tool-page .foot .wrap,.tool-text>.wrap{max-width:calc(var(--space-24)*14);margin-inline:auto;padding-inline:24px;width:100%}
.tool-page .nav{padding-block:12px}
.tool-head{padding-block:0 12px}
#horario-root [data-layout="standalone"]{min-height:calc(100dvh - 127px)}
.tool-head h1{margin:0;font:700 clamp(22px,5.6vw,34px)/1.2 var(--font-display);letter-spacing:-.02em;color:var(--fg)}
.tool-head p{margin:2px 0 0;font:var(--text-body);color:var(--fg-2)}
.doc.tool-text{padding-block:8px 48px;border-top:1px solid var(--line);background:var(--surface)}
.tool-text h2:first-child{margin-top:32px}
.tool-text h3{margin:20px 0 4px;font:600 16px/1.3 var(--font-display)}
.tool-text .tool-end{margin-top:40px;padding-top:16px;border-top:1px solid var(--line)}
.tool-text .tool-end p{font:var(--text-ui)}
@media (min-width:861px){.tool-text>.wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:64px}.tool-end{grid-column:1/-1}}
@media (max-width:640px){.tool-page .nav,.tool-head,.tool-page .foot .wrap,.tool-text>.wrap{padding-inline:16px}.tool-head{padding-block:0 8px}#horario-root [data-layout="standalone"]{min-height:calc(100dvh - 108px)}}
