/* Bizieskola — Uztartu design system, theme "cycling-school": road markings on asphalt, greens, amber. */
:root {
  --ground: #faf6ec;
  --surface: #ffffff;
  --ink: #26301f;
  --ink-strong: #1a2214;
  --ink-muted: #3a4232;
  --line: #e6dfcc;
  --asphalt: #2f3330;
  --green: #2c7a42;
  --green-bright: #3fa45c;
  --amber: #f4c430;
  --radius: 26px;
  --road: "Overpass", "Archivo", sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font-family: var(--sans); }
a { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, 3vw); padding-right: max(16px, 3vw); }
.road { font-family: var(--road); font-weight: 900; }
.micro { margin: 0; font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.draft { margin: 0; padding: 6px 16px; background: var(--amber); color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }

.asphalt { background: var(--asphalt); color: #fff; }
.top { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.name { font-size: 28px; color: #fff; text-decoration: none; flex-grow: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; font-weight: 600; }
.nav a { color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { border-bottom: 3px solid var(--green-bright); padding-bottom: 2px; }
.langs { display: flex; gap: 4px; padding: 4px; border: 1px solid #fff; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.langs a { padding: 6px 10px; border-radius: 999px; color: #fff; text-decoration: none; }
.langs a[aria-current] { background: #fff; color: var(--ink); }
.hero { padding-top: 56px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.hero h1 { margin: 0; flex: 2 1 520px; font-size: clamp(48px, 8vw, 84px); line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance; }
.crossing { flex: 1 1 260px; display: flex; gap: 20px; align-items: stretch; }
.giveway { flex: 0 0 44px; height: 200px; }
.zebra { flex: 1 1 auto; height: 200px; background-image: repeating-linear-gradient(90deg, #fff 0, #fff 28px, transparent 28px, transparent 56px); }
.dashes { height: 10px; background-image: repeating-linear-gradient(90deg, #fff 0, #fff 48px, transparent 48px, transparent 80px); }
.lane { background: var(--green-bright); padding: 28px 0; }
.lane-in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.lane-in p { margin: 0; flex: 1 1 400px; font-size: 20px; line-height: 30px; color: var(--ink-strong); font-weight: 600; }
.lane-fact { display: flex; align-items: center; gap: 16px; }
.lane-fact .road { flex: none; font-size: 44px; line-height: 1; color: #fff; }
.spacer { height: 32px; }

/* Home: one line about the courses and the button to them. */
.courses { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.courses p { margin: 0; flex: 1 1 420px; font-size: 22px; line-height: 32px; }

/* Home: groups outside school, flyer style — a photo washed in cream behind, yellow highlights. */
.groups-bg { border-top: 1px solid var(--line); background-image: linear-gradient(180deg, rgba(250,246,236,0.55) 0%, rgba(250,246,236,0.85) 40%, rgba(250,246,236,0.95) 100%), url(/img/kalera-atzetik.jpg); background-size: cover; background-position: center 35%; }
.groups { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.groups-head { display: flex; flex-direction: column; gap: 12px; }
.groups-head .bar { height: 6px; width: 96px; background: var(--amber); border-radius: 3px; }
.groups-head h2 { margin: 0; font-size: clamp(40px, 6vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.groups-head p { margin: 0; max-width: 680px; font-size: 20px; line-height: 30px; }
.hl { background: var(--amber); padding: 0 0.18em; border-radius: 0.25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card .tag { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.card h3 { margin: 0; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; font-weight: 800; }
.card p { margin: 0; font-size: 15px; line-height: 22px; }
.contact { background: var(--green); color: #fff; border-radius: var(--radius); padding: 22px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; }
.contact span { font-size: 18px; line-height: 26px; font-weight: 700; }
.contact strong { font-size: clamp(18px, 3vw, 24px); font-weight: 800; overflow-wrap: anywhere; }
.contact:hover { color: #fff; background: #23683a; }

.block { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.big { margin: 0; font-size: 48px; line-height: 1; }
.doors { display: flex; flex-wrap: wrap; gap: 12px; }
.door { font-family: var(--road); font-weight: 900; font-size: 22px; padding: 14px 24px; border-radius: var(--radius); border: 3px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.door[aria-pressed="true"] { background: var(--ink); color: #fff; }
.answer { background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.answer p { margin: 0; flex: 1 1 400px; font-size: 20px; line-height: 30px; }
.btn { background: var(--green); color: #fff; padding: 16px 26px; border-radius: var(--radius); font-weight: 800; font-size: 17px; text-decoration: none; }

.levels { padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.level { border: 3px solid var(--ink); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.level h3 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 800; }
.level p { margin: 0; font-size: 17px; line-height: 27px; }
.sign { align-self: flex-start; border: 4px solid var(--green); border-radius: 12px; padding: 6px 14px; font-size: 22px; text-transform: uppercase; }
.sign.solid { background: var(--green); color: #fff; }

.results { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.result { display: flex; flex-direction: column; gap: 8px; border-left: 8px solid #fff; padding-left: 16px; }
.result .road { font-size: 48px; line-height: 1; }
.result span:last-child { font-size: 15px; line-height: 22px; }

.stickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.sticker { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sticker .road { font-size: 30px; }
.sticker p { margin: 0; font-size: 16px; line-height: 24px; }
.s1 { background: var(--amber); transform: rotate(-1.5deg); }
.s2 { background: var(--green-bright); color: var(--ink-strong); transform: rotate(1deg); }
.s3 { background: var(--surface); border: 3px solid var(--ink); transform: rotate(-0.5deg); }

/* Inner pages: the title band under the header. */
.title { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.title h1 { margin: 0; font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.title p { margin: 0; max-width: 720px; font-size: 20px; line-height: 30px; }
.white { background: var(--surface); border-top: 1px solid var(--line); }

/* A photo beside a column of cards (Zer egiten dugu, Norekin). */
.split { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.split.top-aligned { gap: 48px; align-items: flex-start; }
.split-photo { display: block; min-width: 0; width: 100%; object-fit: cover; border-radius: var(--radius); }
.split-photo.portrait { flex: 1 1 360px; height: clamp(420px, 60vw, 640px); object-position: 45% 30%; }
.split-photo.narrow { flex: 2 1 320px; max-width: 420px; height: 520px; object-position: 50% 40%; }
.split-side { flex: 1.2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.split-side.wide { flex: 3 1 480px; }
.start { align-self: flex-start; }
.section-label { padding-top: 64px; }
.split.after-label { padding-top: 20px; }
.outside { padding-top: 8px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.outside .card { border-color: var(--ink); border-width: 3px; }
.card-title { margin: 0; font-size: 30px; line-height: 1.1; }
.level > p { font-size: 18px; line-height: 28px; }

/* Gauza interesgarriak: link cards. */
.regions { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 48px; }
.region { display: flex; flex-direction: column; gap: 20px; }
.region:not(:has(.link-card)) { display: none; }
.region-head { margin: 0; display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.region-head::after { content: ""; flex: 1; height: 3px; background: var(--ink); }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.link-card { border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; background: var(--surface); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.link-card:hover { color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.link-card .road { font-size: 26px; }
.link-text { font-size: 16px; line-height: 24px; }
.host { font-family: var(--mono); font-size: 14px; color: var(--ink-muted); }

/* Guri buruz: a small label on the left, the text on the right. */
.labelled { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; }
.labelled > .micro { flex: 1 1 240px; }
.labelled-body { margin: 0; flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 30px; }
.labelled-body p { margin: 0; }
.labelled-body.strong { font-size: 22px; line-height: 32px; font-weight: 600; }
.lane-band { background: var(--green-bright); color: var(--ink-strong); }
.lane-band .labelled { padding-top: 56px; padding-bottom: 56px; }
.lane-band .micro { color: var(--ink-strong); }

/* Emaitzak: plain tables over a photo washed in cream. Figures right-aligned in their own column. */
.washed { background-image: linear-gradient(180deg, rgba(250,246,236,0.55) 0%, rgba(250,246,236,0.85) 35%, rgba(250,246,236,0.95) 100%), var(--bg); background-size: cover; background-position: center 30%; }
.facts { padding-top: 56px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.facts.last { padding-bottom: 72px; }
.scroll { overflow-x: auto; }
.facts > table { align-self: flex-start; }
.data { border-collapse: collapse; font-size: 18px; }
.data th { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; color: var(--ink-muted); padding: 10px 32px 10px 0; border-bottom: 3px solid var(--ink); }
.data td { padding: 14px 32px 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.data th:last-child, .data td:last-child { padding-right: 0; }
.data .l { text-align: left; }
.data .r { text-align: right; }
.data .b { font-weight: 700; }
.data .num { font-variant-numeric: tabular-nums; }
.data .nowrap { white-space: nowrap; }
.data.ratings td { padding-top: 12px; padding-bottom: 12px; padding-right: 24px; }
.data.ratings td:last-child { padding-right: 0; }
.big-num { font-size: 34px; color: var(--green); }
.data.press { font-size: 17px; }
.data.press td { padding-top: 12px; padding-bottom: 12px; }

/* Home: whole blocks that are links (activity cards, results band, street stickers). */
a.card, a.sticker { color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover, a.card:focus-visible { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
a.sticker:hover, a.sticker:focus-visible { box-shadow: 6px 6px 0 var(--ink); }
.results-link { display: block; color: #fff; text-decoration: none; }
.results-link:hover .result { border-left-color: var(--amber); }
.micro-link { align-self: flex-start; text-decoration: none; }
.micro-link:hover { color: var(--green); }

/* Zer egiten dugu: the methodology, three levels in order, then the principles and the sources. */
.method { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.method-intro { margin: 0; max-width: 780px; font-size: 19px; line-height: 30px; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; counter-reset: step; }
.step { border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.step h3 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 800; }
.step p { margin: 0; font-size: 16px; line-height: 25px; }
.points { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 27px; font-weight: 600; }
.points li { padding-left: 28px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 16px; height: 6px; background: var(--green-bright); border-radius: 3px; }
/* The rain protocol: one wide card under the levels, valid at any level. */
.rain { border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px 28px; background: #e8f0f4; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.rain-head { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.rain-head h3 { margin: 0; font-size: 28px; line-height: 1.1; }
.rain-body { flex: 3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 25px; }
.rain-body p { margin: 0; }
/* Three facts from the CEA programme and the DGT manual, styled like the home results but on cream. */
.facts-row { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; }
.fact { display: flex; flex-direction: column; gap: 8px; border-left: 8px solid var(--green-bright); padding-left: 16px; }
.fact .road { font-size: 40px; line-height: 1; color: var(--green); }
.fact span:last-child { font-size: 15px; line-height: 22px; }

/* Home: three research findings, big figures in amber, before the results band. */
.research { display: block; background: var(--surface); border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.research:hover { color: inherit; background: #fffdf6; }
.research:hover .research-item .road { box-shadow: 4px 4px 0 var(--ink); }
.research-in { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.research-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px; }
.research-item { display: flex; flex-direction: column; gap: 10px; }
.research-item .road { align-self: flex-start; font-size: 56px; line-height: 1; background: var(--amber); padding: 6px 14px 2px; border-radius: 16px; }
.research-item p { margin: 0; font-size: 18px; line-height: 27px; font-weight: 600; }

/* Emaitzak: why it matters, under the tables. */
.why { background: var(--surface); border-top: 1px solid var(--line); }
.why-in { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.why-intro { margin: 0; max-width: 820px; font-size: 20px; line-height: 31px; }
.src { font-size: 14px; font-weight: 700; white-space: nowrap; }
.findings { margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.finding { border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; background: var(--ground); display: flex; flex-direction: column; gap: 12px; }
.finding .tag { align-self: flex-start; background: var(--amber); padding: 2px 10px; border-radius: 8px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.finding p { margin: 0; flex-grow: 1; font-size: 17px; line-height: 26px; }
.why-gap { margin: 12px 0 0; max-width: 820px; padding: 22px 26px; border-radius: var(--radius); background: var(--green); color: #fff; font-size: 18px; line-height: 28px; font-weight: 600; }

/* Contact page: the form on the left, e-mail and phone on the right. */
.contact-page { padding-top: 64px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-form { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; font-size: 17px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--surface); color: var(--ink); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: var(--sans); }
.contact-form .note { margin: 0; font-size: 14px; color: var(--ink-muted); }
.direct { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.direct-card { border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; background: var(--surface); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 24px; }
.direct-card strong { font-family: var(--road); font-weight: 900; font-size: clamp(20px, 2.4vw, 26px); }
.direct-card strong.mail { font-size: clamp(18px, 1.9vw, 22px); }
.direct-card.main { background: var(--green); border-color: var(--green); color: #fff; }
.direct-card.main .micro { color: #fff; }
.direct-card:hover { box-shadow: 6px 6px 0 var(--ink); color: inherit; }
.direct-card.main:hover { color: #fff; }

.foot { border-top: 1px solid var(--line); }
.foot-row { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 15px; }
.grow { flex-grow: 1; font-size: 20px; }
.member { display: flex; align-items: center; gap: 8px; }
.member i { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.quiet { color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .sticker { transform: none; } }
