/* GENERATED by redesign-taste/v4/tools/sync-theme-css.mjs from redesign-taste/v4/canvas/src/V4-regulamin/extra.css - do not edit here, edit the source and run the tool. */
/* DBIJOU v4 - regulations (/regulamin/) and every long legal page (privacy policy): page head, table of contents,
   numbered legal text, one contact line. Shared components live in system/system.css.
   Page head, table of contents (.toc) and the legal prose (.prose--legal, .cl, .lg__sec) are system components
   (system.css, section 15). What is left here places them on the board.
   Order: contents rail (board only), legal text, contact line, tablet, phone. */

/* ------------------------------------------------------------------ legal text: section paddings and the text column */
.lg--first{padding-top:var(--sec-y)}
.lg--last{padding-bottom:var(--sec-y)}
.lg__body{grid-column:2}

/* ------------------------------------------------------------------ contact line: text in the left half, the way back on column 7 */
.lg-end{padding-block:var(--sp-8)}
.lg-end__split{align-items:center;row-gap:var(--sp-3)}
.lg-end__txt{max-width:56ch;color:var(--fg)}
.lg-end__top{justify-self:start}

/* ------------------------------------------------------------------ theme only: the other text pages on the same template (v4/text.php)
   Not drawn on the board (no part uses these classes): a page without contents (text in the left column), contents
   without numbers (prose pages), roman section numbers (privacy policy), long links, legacy lists, the tracking form. */
.lg__split{align-items:start} /* the contents keep their height and stick while the text scrolls by */
.lg--solo .lg__body{grid-column:auto}
.toc--plain .toc__a{grid-template-columns:minmax(0,1fr)}
.toc--roman .toc__a{grid-template-columns:var(--sp-7) minmax(0,1fr)}
.lg__h{scroll-margin-top:calc(var(--h-hdr) + var(--sp-6))}
.prose--legal .cl__t{overflow-wrap:anywhere} /* long addresses and links in the legal text (7.1) wrap on the phone */
.prose--legal .lg__list{margin-left:calc(var(--sp-8) + var(--sp-3))}
.trk{align-items:start}
.trk__side{display:flex;flex-direction:column;gap:var(--sp-5)}
.trk__side [hidden]{display:none}
.trk__form{display:flex;flex-direction:column;gap:var(--sp-5)}
.trk__btn{align-self:flex-start}

/* ------------------------------------------------------------------ tablet: the contents fold into a sticky row */
@media (max-width:1024px){
  .lg__body{grid-column:auto}
  .lg__h{scroll-margin-top:calc(var(--h-hdr) + var(--sp-8) + var(--sp-4))}
  /* theme only: the folded contents row starts right under the page head, as on the boards */
  .lg--toc{padding-top:0}
  .lg--toc .lg__split{row-gap:var(--sp-8)}
}

/* ------------------------------------------------------------------ phone */
@media (max-width:640px){

  .lg-end{padding-block:var(--sp-7)}
  .prose--legal .lg__list{margin-left:0}
  .trk__btn{align-self:stretch}
  .lg--toc .lg__split{row-gap:var(--sp-7)}
}
