/* Website mock W3 (26 Nov 2026): building blocks for the content pages (guides, signs, rules, WORD, schools, prices,
   comparisons, legal). Same tokens as site.css. Page-specific extras go at the end, one block per page, marked. */

/* current section in the header: the dropdown button gets the same thin blue line as a current link */
.dd.here > button { position: relative; color: var(--ink); }
.dd.here > button::after { content: ""; position: absolute; left: 12px; right: 30px; bottom: 2px; height: 2px; border-radius: 1px; background: var(--blue); }

/* only one language block shows (long texts such as the legal pages) */
html[lang="en"] .only-pl, html:not([lang="en"]) .only-en { display: none !important; }

/* ---------- page top ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--blue-d); }
.crumbs .ms { font-size: 16px; color: #B5BCC6; }
.updated { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.updated span { display: inline-flex; align-items: center; gap: 6px; }
.updated .ms { font-size: 17px; }
.sec.tight { padding-block: 8px 48px; }
.sec.flush { padding-top: 0; }
.page-hero.slim { padding-block: 36px 40px; }
.page-hero h1.mid { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }

/* ---------- answer first: the short answer at the top of a guide ---------- */
.answer { border-radius: 20px; background: var(--blue-soft); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.answer > small { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-d); }
.answer p { font-size: 17px; line-height: 1.6; color: var(--ink); }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats div { border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.stats b { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.stats b small { font-size: 16px; font-weight: 600; color: var(--text); margin-left: 3px; }
.stats span { font-size: 14px; color: var(--text); line-height: 1.4; }

/* ---------- article layout: text + sticky side box ---------- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.doc { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.doc h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 22px; }
.doc h3 { margin: 8px 0 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.doc p, .doc li { font-size: 16.5px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.doc p b, .doc li b { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc a:not(.btn) { color: var(--blue-d); font-weight: 500; }
.doc a:not(.btn):hover { text-decoration: underline; }
.aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.side-cta { border-radius: 24px; padding: 24px; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 12px; }
.side-cta h3 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; }
.side-cta p { font-size: 15px; line-height: 1.55; color: #C9D3E6; }
.side-cta .btn { width: 100%; }
.side-cta .g { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #BFF2D2; }
.side-cta .g .ms { font-size: 18px; }
.toc { border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.toc small { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc a { font-size: 14.5px; color: var(--text); }
.toc a:hover { color: var(--blue-d); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--soft); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td { color: var(--text); }
.tbl td b { color: var(--ink); font-weight: 600; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .us { background: #F3F9FF; }
.tbl th.us { background: var(--blue-soft); color: var(--blue-d); }
.tbl .yes { color: var(--good); font-weight: 600; }
.tbl .no { color: var(--muted); }

/* ---------- link cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.lcard { border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lcard:hover { border-color: #C9DDF2; box-shadow: 0 12px 28px rgba(20, 40, 80, .08); transform: translateY(-2px); }
.lcard > .ms { font-size: 26px; color: var(--blue); }
.lcard b { font-size: 17px; font-weight: 600; color: var(--ink); }
.lcard p { font-size: 14.5px; color: var(--text); line-height: 1.5; }
.lcard .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--blue-d); }
.lcard .more .ms { font-size: 18px; }

/* ---------- conversion band (every page ends in a next step) ---------- */
.cta-band { border-radius: 26px; background: var(--blue-soft); padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.cta-band > div { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.cta-band h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.cta-band p { font-size: 15.5px; color: var(--text); line-height: 1.55; }
.cta-band .g { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--good); font-weight: 500; }
.cta-band .g .ms { font-size: 17px; }

/* ---------- small labels ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--text); white-space: nowrap; }
.tag .ms { font-size: 15px; }
.tag.blue { background: var(--blue-soft); color: var(--blue-d); }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.sample { background: #FFF5D9; color: #9A6B00; }
.tag.coral { background: var(--coral-soft); color: #C2361A; }

/* ---------- search + filter chips ---------- */
.search { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; max-width: 560px; box-shadow: 0 6px 18px rgba(20, 40, 80, .05); }
.search .ms { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: none; }
.search input::placeholder { color: var(--muted); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchips button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--text); background: #fff; }
.fchips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-filter-list] [data-item][hidden] { display: none !important; }
.empty-note { font-size: 15px; color: var(--muted); padding: 18px 0; }

/* ---------- road signs ---------- */
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sign { border: 1px solid var(--line); border-radius: 20px; padding: 16px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #fff; transition: border-color .15s, box-shadow .15s; }
a.sign:hover { border-color: #C9DDF2; box-shadow: 0 10px 24px rgba(20, 40, 80, .08); }
.sign svg, .sign .rs { width: 64px; height: 64px; }
.rs { display: block; object-fit: contain; flex: none; }
.sign b { font-size: 13px; font-weight: 700; color: var(--blue-d); }
.sign span { font-size: 13.5px; color: var(--ink); line-height: 1.35; }
.sign-big { width: 180px; height: 180px; flex: none; border-radius: 28px; background: var(--soft); display: grid; place-items: center; }
.sign-big svg, .sign-big .rs { width: 120px; height: 120px; }
.sign-head { display: flex; gap: 28px; align-items: center; }

/* ---------- forms (mock: nothing is sent) ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; outline: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { align-self: flex-start; }
.form-done { display: none; border-radius: 16px; background: var(--good-soft); color: #11703C; padding: 14px 16px; font-size: 15px; font-weight: 500; }
.form.sent .form-done { display: block; }
.form-err { margin: 10px 0 0; color: #B4461A; font-size: 14px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.sent .form-err { display: none; }
.form.sent .form-body { display: none; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- news list ---------- */
.news { display: flex; flex-direction: column; gap: 14px; }
.news a { border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 20px; transition: border-color .15s; }
.news > div { border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 20px; }
.news a:hover { border-color: #C9DDF2; }
.news time { font-size: 13.5px; color: var(--muted); grid-row: span 2; padding-top: 3px; }
.news b { font-size: 18px; font-weight: 600; line-height: 1.35; }
.news p { font-size: 15px; color: var(--text); line-height: 1.55; }

/* ---------- legal texts ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .tbl-wrap { margin: 6px 0 16px; }
.draft-note { display: flex; gap: 10px; align-items: flex-start; border-radius: 16px; background: #FFF5D9; color: #7A5500; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; margin-bottom: 26px; }
.draft-note .ms { font-size: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .aside { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dd.here > button::after { right: auto; width: 28px; bottom: 8px; left: 12px; }
}
@media (max-width: 600px) {
  .cta-band { padding: 24px 20px; }
  .cta-band .btn { width: 100%; }
  .sign-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sign-big { width: 140px; height: 140px; }
  .news a, .news > div { grid-template-columns: minmax(0, 1fr); }
  .news time { grid-row: auto; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .stats b { font-size: 26px; }
}

/* ===== page-specific extras below (one block per page, marked with the page name) ===== */
