/* The information pages: aanleveren.html, voorwaarden.html, privacy.html, contact.html, over-ons.html and
   niet-gevonden.html. Tokens, header, footer, buttons, .card and .notice come from base.css. Everything is styled
   from here: the pages, js/info.js and js/over-ons.js carry no style attribute, so they stand under a strict
   Content-Security-Policy. */

/* The footer stays at the bottom of the window, also under a short page (contact, niet-gevonden). */
body { min-height: 100vh; display: flex; flex-direction: column; }
main.info { flex: 1 0 auto; width: 100%; font-size: 16px; }
main.info p { margin: 0 0 .85em; }
main.info p:last-child { margin-bottom: 0; }
main.info a:focus-visible, .info-toc a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ the head of a page */
.info-head { background: var(--ink); color: #fff; padding: 46px 0 42px; }
main.info .info-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 600 12.5px/1 var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); }
.info-kicker::before { content: ""; flex: none; width: 26px; height: 4px; background: var(--accent); }
.info-head h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.024em; overflow-wrap: anywhere; }
main.info .info-lead { margin: 0; max-width: 44rem; font-size: 1.12rem; line-height: 1.55; color: #c9d0d8; }
.info-body { padding-top: 40px; }
/* A page of text: lines of a readable length, starting where the head of the page starts. */
.info-narrow > * { max-width: 820px; }

/* ------------------------------------------------------------------ the guidelines: contents beside the rules */
.info-cols { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
.info-toc { position: sticky; top: calc(var(--header-h) + 24px); }
main.info .info-toc-head { margin: 0 0 10px; font: 600 12px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.info-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.info-toc a { display: block; margin-left: -2px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.info-toc a:hover { border-left-color: var(--accent-dark); color: var(--ink); }

/* The header sticks to the top: a rule that is linked to must not land underneath it. */
.rule { scroll-margin-top: calc(var(--header-h) + 18px); padding: 34px 0; border-top: 1px solid var(--line); }
.rule:first-child { padding-top: 0; border-top: 0; }
.rule h2 { margin: 0 0 14px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.016em; }
.rule p, .rule li { color: var(--ink-2); }
.rule-text { max-width: 46rem; }
.rule ul.points { margin: 0 0 .85em; padding-left: 1.15em; display: grid; gap: 6px; }
.rule ul.points:last-child { margin-bottom: 0; }
.rule strong { color: var(--ink); }
/* A rule with a drawing: the words on the left, the picture on the right. */
.rule-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 36px; align-items: start; }
.rule-figs { display: grid; gap: 18px; }
figure { margin: 0; }
figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--steel); }

/* A number of the shop, straight from the catalogue: large, in the type of a drawing. */
main.info .rule-figure { margin: 0 0 12px; font: 700 1.7rem/1.2 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.rule-figure small { font: 500 .95rem var(--font); letter-spacing: 0; color: var(--steel); }

.formats { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.formats li { padding: 4px 10px; border-radius: 6px; background: var(--ink); color: #fff; font: 600 12.5px/1.4 var(--mono); letter-spacing: .04em; }
.formats li.formats-sep { padding: 4px 2px; background: none; color: var(--steel); font-weight: 500; letter-spacing: 0; }

/* ------------------------------------------------------------------ the drawings
   In the language of the configurator: dark ground, yellow where the cutter goes, blue dashes for engraving. */
.pict { display: block; width: 100%; height: auto; }
.pict-bg { fill: var(--ink); }
.pict-cut { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pict-solid { fill: rgba(255, 194, 26, .12); }
.pict-engrave { fill: none; stroke: #8fc0ff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 7 6; }
.pict-ignore { fill: none; stroke: #7d8894; stroke-width: 1.6; stroke-linecap: round; }
.pict-drawn { fill: none; stroke: #fff; stroke-opacity: .5; stroke-width: 1.5; stroke-dasharray: 4 4; }
.pict-box { fill: rgba(255, 255, 255, .05); stroke: #fff; stroke-opacity: .55; stroke-width: 1.6; stroke-dasharray: 6 5; }
.pict-tool { fill: #1c222a; stroke: #fff; stroke-width: 2.2; }
.pict-tool-cross { fill: none; stroke: #fff; stroke-width: 1.3; }
.pict-end { fill: #fff; }
.pict-alarm { fill: none; stroke: #ff7b6e; stroke-width: 2; stroke-dasharray: 4 4; }
.pict-good { fill: #2aa862; }
.pict-bad { fill: #d9483c; }
.pict-mark { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pict-label { font: 600 12.5px var(--font); fill: #d5dbe2; }
.pict-label-dim { fill: #98a3af; font-weight: 500; }

/* ------------------------------------------------------------------ materials */
#materials { margin-top: 18px; }
.mat-wrap { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.mat-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mat-table th, .mat-table td { padding: 12px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.mat-table thead th { border-top: 0; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--steel); }
.mat-table .mat-group th { background: var(--ink); color: #fff; border-left: 5px solid var(--accent); padding: 10px 18px 10px 13px; font-size: 1.02rem; overflow-wrap: anywhere; }
.mat-table tbody th[scope="row"] { width: 42%; font-weight: 400; overflow-wrap: anywhere; }
.mat-name { display: block; font-weight: 650; color: var(--ink); }
/* The owner's own explanation of a material, typed in Beheer: his line breaks stay. */
.mat-note { display: block; margin-top: 3px; font-size: 13.5px; color: var(--steel); white-space: pre-line; }
.thick { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.thick li { min-width: 2.5em; padding: 3px 8px; text-align: center; font: 500 13px/1.45 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }

/* ------------------------------------------------------------------ the closing call */
.info-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 12px; padding: 26px 28px;
  background: var(--ink); color: #fff; border-radius: var(--radius); }
.info-cta h2 { margin: 0 0 4px; font-size: 1.35rem; }
main.info .info-cta p { margin: 0; color: #c9d0d8; }
.info-cta a:not(.btn) { color: #fff; }

/* ------------------------------------------------------------------ pages of text: terms, privacy */
.text-card { padding: 30px 34px; }
/* The owner's own words: plain text, with his line breaks and his indents as he typed them. */
.owner-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); line-height: 1.6; }
.text-card h2 { margin: 1.5em 0 .5em; font-size: 1.2rem; }
.text-card h2:first-child { margin-top: 0; }
.text-card ul { margin: 0 0 .85em; padding-left: 1.15em; display: grid; gap: 6px; color: var(--ink-2); }
.text-card p { color: var(--ink-2); }
.text-card code { font: 500 .92em var(--mono); padding: 1px 5px; border-radius: 4px; background: var(--bg); }
main.info .text-aside { margin-top: 22px; font-size: 14.5px; color: var(--steel); }
main.info .text-note { margin: 0 0 22px; padding: 14px 18px; background: var(--card); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ the company */
.company { margin-top: 24px; padding: 24px 28px; }
.company > h2 { margin: 0 0 12px; font-size: 1.2rem; }
main.info .company-name { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.company-address { display: grid; gap: 1px; margin-top: 6px; font-style: normal; color: var(--ink-2); overflow-wrap: anywhere; }
.company-facts { display: grid; gap: 6px; margin: 16px 0 0; }
.company-facts div { display: flex; gap: 12px; }
.company-facts dt { flex: none; width: 7.4em; color: var(--steel); }
.company-facts dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
main.info .company-empty { margin-top: 12px; color: var(--steel); }

/* ------------------------------------------------------------------ contact */
.contact-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.contact-cols .company { margin-top: 0; }
.how { padding: 24px 28px; }
.how h2 { margin: 0 0 14px; font-size: 1.2rem; }
.how ol { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; counter-reset: how; }
.how li { position: relative; padding-left: 44px; color: var(--ink-2); counter-increment: how; }
.how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font: 800 15px/1 var(--mono); }
.how li strong { display: block; color: var(--ink); }

/* ------------------------------------------------------------------ an address that does not exist */
.lost { max-width: 640px; margin: 0 auto; padding: 56px 0 8px; text-align: center; }
.lost .pict { max-width: 300px; margin: 0 auto 28px; }
.lost h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.lost p { color: var(--ink-2); }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 22px; }
main.info .lost-more { font-size: 14.5px; color: var(--steel); }

/* ------------------------------------------------------------------ over ons: the owner's piece and his photos */
.about-piece, .about-machines { margin-bottom: 44px; }
.about-piece h2, .about-machines h2 { margin: 0 0 16px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.016em; overflow-wrap: anywhere; }
.about-text { max-width: 46rem; }
/* The owner's own words: plain text. A blank line made the paragraph; a single line break of his stays one. */
main.info .about-text p { margin: 0 0 1em; color: var(--ink-2); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
main.info .about-text p:last-child { margin-bottom: 0; }
.about-text h3 { margin: 1.6em 0 .5em; font-size: 1.15rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.about-text h3:first-child { margin-top: 0; }
main.info .about-empty { margin: 0 0 32px; padding: 18px 22px; background: var(--card); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }

/* As many columns as fit; one on a phone. Every picture gets the same frame, whatever shape the photo has. */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.photo-grid figure { height: 100%; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.photo-open { display: block; background: var(--ink); cursor: zoom-in; }
.photo-open img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-open:hover img { opacity: .9; }
main.info .photo-open:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: -3px; border-radius: 0; }
/* A caption is the owner's, typed in Beheer: text only. */
.photo-grid figcaption { margin: 0; padding: 10px 14px 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }

/* The large picture: a dialog over the whole window. Closed, the browser keeps it away; only [open] is laid out. */
/* touch-action: a finger that moves sideways is a swipe for the page's script (the next photo), not a scroll of
   the page behind it; pinching to look closer stays. */
.photo-viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13, 16, 20, .94); color: #fff; overflow: hidden;
  touch-action: pinch-zoom; overscroll-behavior: contain; }
.photo-viewer[open] { display: grid; place-items: center; }
.photo-viewer::backdrop { background: rgba(13, 16, 20, .94); }
/* A column that is never higher than the window: the caption keeps its lines and the picture takes what is left. */
.viewer-figure { display: flex; flex-direction: column; align-items: center; gap: 12px; box-sizing: border-box; max-width: 100%; max-height: 100vh; max-height: 100dvh; padding: 58px 64px 20px; }
/* The whole picture, as large as the window allows and never larger than it is. */
.viewer-figure img { display: block; flex: 0 1 auto; min-height: 0; width: auto; height: auto; max-width: 100%; object-fit: contain; }
.viewer-figure figcaption { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0; max-width: min(46rem, 100%); font-size: 15px; line-height: 1.45; color: #e3e8ee; text-align: center; overflow-wrap: anywhere; }
.viewer-figure figcaption span { min-width: 0; }
.viewer-count { font: 500 13px/1.7 var(--mono); color: #98a3af; white-space: nowrap; }
.viewer-count:empty { display: none; }
.viewer-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
  background: rgba(13, 16, 20, .72); color: #fff; cursor: pointer; }
.viewer-btn[hidden] { display: none; }
.viewer-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.viewer-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.viewer-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.viewer-close { top: 12px; right: 12px; }
.viewer-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1020px) {
  /* The contents above the rules, as a few lines of links instead of a column. */
  .info-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .info-toc { position: static; }
  .info-toc ol { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .info-toc a { margin: 0; padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 13.5px; }
  .info-toc a:hover { border-color: var(--accent-dark); }
}
@media (max-width: 760px) {
  .info-head { padding: 34px 0 30px; }
  .info-body { padding-top: 28px; }
  .rule { padding: 28px 0; }
  .rule-split, .contact-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rule-figs { max-width: 420px; }
  .text-card { padding: 22px 20px; }
  .company, .how { padding: 20px; }
  .mat-table th, .mat-table td { padding: 10px 12px; }
  .mat-table .mat-group th { padding-left: 7px; }
  .info-cta { padding: 22px 20px; }
  .about-piece, .about-machines { margin-bottom: 32px; }
  .photo-grid { gap: 14px; }
  /* The picture gets the whole width; the arrows lie over its lower corners instead of beside it. */
  .viewer-figure { padding: 62px 8px 68px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 12px; transform: none; }
}
@media (max-width: 480px) {
  /* Left and right only: the shorthand would also take away the room above the body. */
  main.info .wrap { padding-left: 16px; padding-right: 16px; }
  .mat-table tbody th[scope="row"] { width: 46%; }
  .company-facts div { flex-direction: column; gap: 0; }
  .company-facts dt { width: auto; font-size: 13px; }
}
