/* Theme E „Řemeslo a archiv“ – vhs-na-dvd.eu, output "new" (site.config.php outputs). Mobile first; no framework; one self-hosted
   font (Vollkorn, OFL, assets/OFL-Vollkorn.txt). From design/E/theme/css/site.css (round 4, chosen by the client 24. 11. 2026);
   V5 additions (owner 24. 11.): the whole header stays at the top while it is low enough, the left tree is fixed under it only when
   the whole tree fits the window (never an inner scrollbar), tree rows 35 px with a mouse – see "V5" below. */
@font-face {
  font-family: "Vollkorn";
  src: url(vollkorn-semibold.woff2?v=0c15286c5e) format("woff2");   /* V5: ?v = sha1 of the file, the same URL as the preload (tests/outputs.php) */
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #faf7f0;      /* page: off-white paper */
  --paper-2: #f2ece0;    /* tinted rows: table header, price ledger */
  --ink: #26231f;        /* text */
  --ink-2: #5a5249;      /* secondary text: captions, crumbs, labels */
  --blue: #1d4b78;       /* brand blue: headings, wordmark, current item (today #026AB6, deeper) */
  --blue-2: #3a6a99;     /* the header drawing (decorative) */
  --red: #a11a1f;        /* links (today #CC0000, deeper) */
  --red-2: #7c1216;      /* link hover */
  --rule: #d8cfbf;       /* hairlines */
  --rule-2: #b3a68f;     /* stronger rules (header double rule) */
  --serif: "Vollkorn", "Iowan Old Style", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
  --gut: clamp(1rem, 4vw, 3rem);
  /* V5: header height (scroll padding, Menu panel, fixed tree); menu.js writes the measured value, these are the fallbacks */
  --mast-h: 8.6rem;
}
@media (min-width: 40em) { :root { --mast-h: 6.25rem; } }
@media (min-width: 60em) { :root { --mast-h: 6.6rem; } }
@media (min-width: 62.5em) { :root { --mast-h: 8rem; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
@media (min-width: 64em) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 10; background: var(--blue); color: #fff; padding: .7rem 1rem; text-decoration: none; }
.skip:focus { top: .75rem; outline-color: var(--ink); }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gut); }

/* ---- header: wordmark + one motif, horizontal navigation, double rule ---------------------------------------- */
.mast { border-bottom: 3px double var(--rule-2); background: var(--paper); }
.mast-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; flex-direction: column; flex: 1 1 12rem; min-width: 0; text-decoration: none; color: var(--blue); margin-right: auto; padding: .25rem 0; }
.brand-name { font: 600 clamp(1.35rem, 1rem + 1.6vw, 2.15rem)/1.1 var(--serif); letter-spacing: .003em; }
.brand-sub span { white-space: nowrap; }
.brand-sub { font-size: .8125rem; color: var(--ink-2); letter-spacing: .04em; margin-top: .35rem; }
.brand:hover .brand-name { color: var(--red-2); }
.mast-motif { display: none; color: var(--blue-2); line-height: 0; }
.motif { width: 100%; height: auto; }
.mast-photos { gap: 6px; }
.mast-photos img { width: 104px; height: 72px; object-fit: cover; border-radius: 1px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem;
  font: 600 1rem var(--sans); color: var(--blue); background: transparent; border: 1px solid var(--rule-2); border-radius: 3px; cursor: pointer;
}
.menu-btn[hidden] { display: none; }
.menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
.menu-ico::before { top: -6px; } .menu-ico::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-ico::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico::after { top: 0; transform: rotate(-45deg); }

.mast-tel { display: none; margin: 0; font-size: .9375rem; color: var(--ink-2); white-space: nowrap; }
.mast-tel a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.menu-btn { text-decoration: none; }
@media (min-width: 40em) { .brand { flex: 0 1 auto; } }
@media (min-width: 60em) {
  .mast-motif { display: block; flex: 0 1 300px; margin-left: auto; }
  .mast-photos { display: flex; flex: 0 0 auto; }
  .mast-photos .s-wide { display: none; }
}
@media (min-width: 62.5em) {
  .mast-row { padding-top: 1.6rem; padding-bottom: 1.4rem; }
  .menu-btn { display: none; }
  .mast-tel { display: block; align-self: flex-end; }
  .mast-motif { flex-basis: 360px; margin-right: 1rem; }
  .mast-photos .s-wide { display: block; }
}

/* ---- page frame: the navigation tree on the left + the reading column; the container = the header's inner width ------ */
.crumbs { font-size: .875rem; color: var(--ink-2); margin-top: -.5rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin: 0 .55em; color: var(--ink-2); }
.crumbs li { display: flex; align-items: center; margin: 0; }
.crumbs a, .crumbs span[aria-current] { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--red-2); }
.page { padding-top: 1.75rem; padding-bottom: 3.5rem; display: flex; flex-direction: column; }
.main { min-width: 0; order: 1; }
.tree { order: 2; }
/* text blocks keep a reading measure; tables, pictures, the home sections may use the whole column */
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > h4, .prose > .box, .main > h1, .lead, .main > .ct-note { max-width: var(--measure); }
@media (max-width: 62.49em) {
  .tree { margin-top: 3rem; padding-top: 1rem; border-top: 3px double var(--rule-2); }   /* without JS: the tree at the end */
  .js .tree { display: none; }
  .js .tree.open { display: block; order: 0; margin: -.5rem 0 2rem; padding: 0 0 1.5rem; border-top: 0; border-bottom: 3px double var(--rule-2); }
}
@media (min-width: 62.5em) {
  .page { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); column-gap: clamp(2.5rem, 4vw, 4rem); align-items: start; }
  .tree { order: 0; padding-right: 1.75rem; border-right: 1px solid var(--rule); }
}

/* ---- the navigation tree (like the contents of a book): headings, hairlines, current page = bar + weight ---------------- */
.tree { font-size: .9375rem; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree li { margin: 0; }
.tg + .tg { margin-top: 1.25rem; }
.tg-h { margin: 0 0 .25rem; font: 600 1.1875rem/1.25 var(--serif); color: var(--blue); }
.tg > ul { border-top: 1px solid var(--rule); }
.tg > ul > li { border-bottom: 1px solid var(--rule); }
.tree ul a { display: flex; align-items: center; min-height: 44px; padding: .15rem 0; color: var(--ink); text-decoration: none; line-height: 1.3; }
.tree a:hover { color: var(--red-2); text-decoration: underline; }
.tree ul a[aria-current] { color: var(--blue); font-weight: 650; box-shadow: inset 3px 0 0 var(--blue); padding-left: .8rem; }
.tg.in > .tg-h::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .5em; vertical-align: .2em; background: currentColor; transform: rotate(45deg); }
.t-sub { padding: 0 0 .35rem 1rem !important; border-left: 1px solid var(--rule); margin-left: .2rem !important; }
.t-sub a { font-size: .875rem; }
.tree .t-sub a[aria-current] { padding-left: .7rem; }
.tg-light .tg-h { color: var(--ink-2); font-size: 1.0625rem; }
.tg-light > ul > li > a { color: var(--ink-2); }
.tg-light > ul > li > a[aria-current] { color: var(--blue); }
.tg-ct .tg-h a { color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.tg-ct .tg-h a::after { content: "→"; font-family: var(--sans); font-size: .85em; margin-left: .4rem; color: var(--red); }
.tg-ct .tg-h a:hover { text-decoration: underline; color: var(--red-2); }
.tg-ct .tg-h a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.tg-ct { padding: .1rem 0 .5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tg-ct .tg-h { margin-bottom: 0; }
.tg-ct p { margin: 0; }
.t-addr { font-size: .875rem; line-height: 1.45; color: var(--ink); margin-bottom: .1rem !important; }
.tg-ct .ct-tel a, .tg-ct .ct-mail a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }

/* ---- type ---------------------------------------------------------------------------------------------------- */
h1, h2, h3, caption, .index a, .tg-h, .step-n { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--blue); line-height: 1.2; letter-spacing: .002em; }
h1 { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.6rem); margin: .4rem 0 1.25rem; text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin: 2.2em 0 .7em; padding-top: .85em; border-top: 1px solid var(--rule); text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.35rem); margin: 2em 0 .5em; }
h4, h5, h6 { font: 700 1em/1.4 var(--sans); color: var(--ink); margin: 1.6em 0 .4em; }
/* V5 (SEO audit M3): a heading whose level was raised for the outline on 20. 11. keeps the look of its former level (content class
   lc-as-hN → as-hN); as-h1/as-h2 on a body h2 = the h2 look (the page h1 is the title's) */
.prose h2.as-h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.35rem); margin: 2em 0 .5em; padding-top: 0; border-top: 0; }
.prose h2.as-h4, .prose h3.as-h4 { font: 700 1em/1.4 var(--sans); color: var(--ink); margin: 1.6em 0 .4em; }
h1 + .prose > h2:first-child, .prose > h2:first-child { margin-top: 1.5rem; }
p, ul, ol, dl, table { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 650; }
.prose { overflow-wrap: break-word; }
.prose .ta-c { text-align: center; }
.prose .indent { margin-left: 1.5rem; }
.prose .cell-h { font-weight: 650; }
.prose .was-h { margin-bottom: .45em; }
.prose .step { position: relative; padding-left: 2.4rem; }
.prose .step-n { position: absolute; left: 0; top: -.1em; font: 600 1.35rem/1.4 var(--serif); color: var(--blue); }
.prose ul.lines { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.prose ul.lines li { margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.prose pre { white-space: pre-wrap; font: inherit; }
a.pdf .ft { font-size: .8em; color: var(--ink-2); margin-left: .35em; }

/* legacy price block (lc-box-h2): a ledger between thin rules, not a box */
.prose .box { border-top: 2px solid var(--blue); border-bottom: 1px solid var(--rule-2); background: var(--paper-2); padding: 1rem 1.15rem .35rem; margin: 0 0 1.5rem; }
.prose .box p, .prose .box div { margin: 0 0 .7em; }
.prose .box .indent { margin-left: 0; padding-left: 1rem; border-left: 1px solid var(--rule-2); }
.prose .box + .box { border-top-width: 1px; border-top-color: var(--rule-2); margin-top: -1.5rem; }

/* ---- figures: plates with captions (caption taken from the alt text when the body has none) -------------------- */
.prose .fig { margin: 1.75rem 0; }
.prose .fig img, .prose .gallery img { display: block; }
figure { margin: 1.75rem 0; }
figure.plate { display: table; margin: 0; }
figure.plate > figcaption { display: table-caption; caption-side: bottom; }
figcaption { font-size: .875rem; line-height: 1.45; color: var(--ink-2); padding-top: .5rem; margin-top: .1rem; border-top: 1px solid var(--rule); }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem 1rem; margin: 1.75rem 0; }
.prose .gallery.gallery-s { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.prose .gallery > figure, .prose .gallery figure.frame { margin: 0; }
.prose .gallery img { width: 100%; height: auto; }
.prose .gallery figcaption { border-top: 0; padding-top: .35rem; }
.prose .gallery > br { display: none; }
.prose .gallery[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40em) { .prose .gallery[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prose .box > a { display: inline-flex; align-items: center; min-height: 44px; }
.prose .box:has(img) { background: none; padding: 0; border: 0; }
@media (min-width: 40em) {
  .prose img.fl { float: left; max-width: 45%; margin: .3rem 1.5rem 1rem 0; }
  .prose img.fr { float: right; max-width: 45%; margin: .3rem 0 1rem 1.5rem; }
  .prose h2, .prose h3 { clear: both; }
}

/* ---- tables: captions, hairlines, scroll on narrow screens ---------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 1.75rem; }
.table-wrap:focus-visible { outline-offset: 4px; }
table { border-collapse: collapse; width: auto; min-width: min(100%, 26rem); font-size: .9375rem; line-height: 1.45; border-top: 2px solid var(--blue); border-bottom: 1px solid var(--rule-2); }
.prose .tab-h { font-size: 1.15rem; line-height: 1.3; margin: 2.5rem 0 .55rem; padding: 0; border: 0; }
.prose .tab-h + .table-wrap { margin-top: 0; }
caption { caption-side: top; text-align: left; font: 600 1.15rem/1.3 var(--serif); color: var(--blue); padding: 0 0 .55rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .9rem .5rem 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 650; background: var(--paper-2); padding-left: .6rem; }
td:first-child { padding-left: 0; }
th:first-child { padding-left: .6rem; }
tr:last-child td { border-bottom: 0; }
td p, th p { margin: 0; }
td p + p { margin-top: .3em; }

/* ---- home ------------------------------------------------------------------------------------------------------ */
.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-bottom: 1rem; }
.intro-text { overflow-wrap: break-word; }   /* V5: 200 % text at 320 px – a long word (h1, lead) may not widen the page */
.intro h1 { margin-bottom: .75rem; }
.lead { font-size: 1.125em; color: var(--ink); margin: 0; max-width: 34rem; }
.intro-img img { display: block; width: 100%; max-width: 26rem; mix-blend-mode: multiply; }
.main { container-type: inline-size; }
@container (min-width: 42rem) { .intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; } }
.services h2 { margin-top: 2rem; }
.index { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; column-gap: 2rem; }
@media (min-width: 40em) { .index { grid-template-columns: 1fr 1fr; } }
.index li { margin: 0; padding: .85rem 0 .7rem; border-top: 1px solid var(--rule); }
.index a { font: 600 1.25rem/1.3 var(--serif); color: var(--blue); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.index a::after { content: "→"; font-family: var(--sans); margin-left: .45rem; color: var(--red); transition: transform .15s; }
.index a:hover { color: var(--red-2); text-decoration: underline; text-decoration-thickness: 1px; }
.index a:hover::after { transform: translateX(3px); }
.index p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.k-home .prose > h2:first-child { margin-top: 2.5rem; }

.ct-note { color: var(--ink-2); font-size: .875rem; }
.ct-tel a, .ct-mail a { font-weight: 600; display: inline-block; padding: .7rem 0; }
.ct-tel, .ct-mail { margin-bottom: 0 !important; line-height: 1.3; }
.ct-mail a { overflow-wrap: anywhere; }
/* the list of order sheets on „Jak na to“ (anchor of the navigation item Zakázkové listy) */
.prose .sheet-list { list-style: none; padding: .35rem 1rem; border-top: 2px solid var(--blue); border-bottom: 1px solid var(--rule-2); background: var(--paper-2); }
.prose .sheet-list li { margin: 0; }
.prose .sheet-list li + li { border-top: 1px solid var(--rule); }
.prose .sheet-list a { display: inline-flex; align-items: center; min-height: 44px; }
:target { scroll-margin-top: 1rem; }
/* ---- contact ----------------------------------------------------------------------------------------------------- */
/* V5 (SEO audit M4): address, phone and e-mail in the main content of the Kontakt page, between hairlines like the tree's card */
.ct-card { max-width: var(--measure); margin: 0 0 1.75rem; padding: .35rem 0 .5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ct-card p, .ct-card address { margin: .5rem 0 0; font-style: normal; }
.contact-info img { display: block; border: 1px solid var(--rule); }
.contact-info img.fl, .contact-info img.fr { float: none !important; margin: .5rem 0 1rem !important; max-width: 100% !important; }

/* ---- footer (colophon) -------------------------------------------------------------------------------------------- */
.colophon { border-top: 3px double var(--rule-2); padding: 1.25rem 0 1rem; font-size: .875rem; color: var(--ink-2); }
/* owner 29. 11. 2026: the host line sits right of the contact line when both fit in one row (desktop); otherwise it wraps below, left */
.colophon .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 2rem; }
.colophon p { margin: 0; }
.colophon a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-host { font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .mast-motif, .menu-btn, .tree { display: none !important; } body { background: #fff; } a { color: inherit; } }

/* ---- V5: the header that stays (owner 24. 11. 2026) ---------------------------------------------------------------------
   The WHOLE header (name, sub-line, drawing, phone; below 1000 px name + Menu) sticks at the top, unchanged, with its double line,
   ONLY while it takes at most ~20 % of the window height: one min-height per width band = 5 × the tallest header measured in
   that band (tools/remeslo/sticky.mjs "bands", 25. 11. 2026): < 360 px 195 px → 980; 360–639 141 → 710; 640–999 105 → 530;
   ≥ 1000 130 → 650 (1000–1119 121–123 px since the drawing is 280 px wide there). Lower windows and print: flow.
   menu.js adds html.mast-flow when the measured header is taller than 25 % of the window (large text: a band value cannot know). */
@media screen and (max-width: 22.49em) and (min-height: 980px),
       screen and (min-width: 22.5em) and (max-width: 39.99em) and (min-height: 710px),
       screen and (min-width: 40em) and (max-width: 62.49em) and (min-height: 530px),
       screen and (min-width: 62.5em) and (min-height: 650px) {
  html:not(.mast-flow) .mast { position: sticky; top: 0; z-index: 5; }
  html:not(.mast-flow) { scroll-padding-top: calc(var(--mast-h) + .5rem); }   /* anchors, skip target, keyboard focus below it */
}
/* below 1000 px (same bands): the Menu panel opens right under the sticking header and scrolls inside itself when longer than
   the window; with the header in the flow it stays the design's panel at the top of the page (menu.js scrolls there) */
@media screen and (max-width: 22.49em) and (min-height: 980px),
       screen and (min-width: 22.5em) and (max-width: 39.99em) and (min-height: 710px),
       screen and (min-width: 40em) and (max-width: 62.49em) and (min-height: 530px) {
  html.js:not(.mast-flow) .tree.open {
    position: fixed; z-index: 4; left: 0; right: 0; top: var(--mast-h); bottom: 0; overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 1rem var(--gut) 1.5rem; background: var(--paper);
  }
  html.menu-lock { overflow: hidden; }   /* V5 (opponent 25. 11.): ONE scroll – the page behind the open panel does not move */
}
/* ≥ 1000 px: the tree is fixed under the sticking header only when menu.js found that the WHOLE tree fits the window below it
   (class tree-fix); else it stays in the flow and scrolls away with the page. top = its own position at scroll 0 (no jump).
   Never max-height or overflow on the tree: no inner scrollbar. */
@media screen and (min-width: 62.5em) and (min-height: 650px) {
  html.tree-fix:not(.mast-flow) .tree { position: sticky; top: calc(var(--mast-h) + 1.75rem); }
}
/* with a mouse (≥ 1000 px) the tree is denser so that it is fixed on a maximised 1920×1080 browser (≈ 920 px window, lead 25. 11.):
   rows 32 px instead of 44 px, smaller gaps between the groups and inside the Kontakt card; text size, lines, order and grouping
   unchanged; touch keeps 44 px (WCAG 2.5.8 minimum is 24 px) */
@media (min-width: 62.5em) and (hover: hover) and (pointer: fine) {
  .tree ul a, .tg-ct .tg-h a, .tg-ct .ct-tel a, .tg-ct .ct-mail a { min-height: 2rem; }
  .tg + .tg { margin-top: .875rem; }
  .tg-ct { padding: 0 0 .3rem; }
  .tree .t-sub { padding-bottom: .15rem !important; }
}
/* 1000–1119 px: the drawing narrower so that name, drawing and phone stay on ONE row (with 360 px the phone dropped under the
   drawing up to ≈ 1070 px: 186 px instead of 130) */
@media (min-width: 62.5em) and (max-width: 69.99em) {
  .mast-motif { flex-basis: 280px; }
}
