/* Design version "drawing" (D17): a technical drawing. Faint grid paper, a title-block header,
   numbered sections, framed photos with corner marks, monospace labels. Calm, exact, engineering. */
.v-drawing {
  --paper: #f6f8fb;
  --grid: rgba(71, 123, 199, .07);
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  counter-reset: section;
}
.v-drawing main { max-width: 64rem; }
.v-drawing .site-header { background: #fff; border-bottom: 2px solid var(--brand-dark); padding: .75rem 1.5rem; }
.v-drawing .site-header .menu a { font-family: var(--mono); font-size: .85rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--brand-dark); text-decoration: none; padding: .2rem .4rem; }
.v-drawing .site-header .menu a[aria-current] { outline: 1px solid var(--brand-dark); }

.v-drawing .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; padding: 3rem 0; }
.v-drawing .eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .5rem; }
.v-drawing .hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; color: var(--brand-dark); margin: 0 0 1.5rem; }
.v-drawing .hero-photo { position: relative; border: 1px solid var(--brand-dark); background: #fff; min-height: 18rem; }
.v-drawing .hero-photo::before, .v-drawing .hero-photo::after { content: ""; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--brand); }
.v-drawing .hero-photo::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.v-drawing .hero-photo::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.v-drawing .button { border-radius: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em;
  font-size: .85rem; padding: .75rem 1.4rem; background: var(--brand-dark); }
.v-drawing .button:hover { background: var(--brand); }

.v-drawing .sections h2, .v-drawing article h2 { counter-increment: section; font-size: 1.2rem; color: var(--brand-dark);
  border-bottom: 1px solid var(--brand-dark); padding-bottom: .3rem; margin-top: 3rem; }
.v-drawing .sections h2::before, .v-drawing article h2::before { content: counter(section, decimal-leading-zero) " / ";
  font-family: var(--mono); color: var(--brand); font-weight: 400; }
.v-drawing .cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--brand-dark); background: #fff; }
.v-drawing .cards li { padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v-drawing .cards li strong { display: block; color: var(--brand-dark); margin-bottom: .3rem; }
.v-drawing .questions { list-style: none; padding: 0; }
.v-drawing .questions li { font-family: var(--mono); font-size: .95rem; padding: .5rem 0 .5rem 1rem;
  border-left: 3px solid var(--brand); margin: .5rem 0; background: #fff; }
.v-drawing .steps { list-style: none; padding: 0; counter-reset: step; }
.v-drawing .steps li { counter-increment: step; padding-left: 3rem; position: relative; margin: 1rem 0; }
.v-drawing .steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem;
  border: 1px solid var(--brand-dark); display: grid; place-items: center; font-family: var(--mono); background: #fff; }

.v-drawing .site-footer { background: #fff; border-top: 2px solid var(--brand-dark); font-family: var(--mono);
  font-size: .8rem; text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0; padding: 0; }
.v-drawing .site-footer p { margin: 0; padding: .6rem 1rem; border-right: 1px solid var(--line); }

/* Layout refinements (owner review, Chromium.12). */
.v-drawing .site-header { position: sticky; top: 0; z-index: 5; }
.v-drawing .site-header .menu { gap: .25rem 1rem; }
.v-drawing .site-header .menu a:last-child { background: var(--brand-dark); color: #fff; padding: .35rem .8rem; }
.v-drawing .site-header .menu a:last-child:hover { background: var(--brand); }
.v-drawing .hero { padding: 2.5rem 0 1.5rem; gap: 3rem; }
.v-drawing .hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; }
.v-drawing .hero .lead { font-size: 1.15rem; color: #3c3a55; max-width: 34ch; margin: 0 0 1.75rem; }
.v-drawing .sections > p, .v-drawing .sections > ul:not(.cards),
.v-drawing article > p, .v-drawing article > ul { max-width: 68ch; }
.v-drawing .sections h2:first-child, .v-drawing article h2:first-of-type { margin-top: 1.5rem; }
.v-drawing .photo figcaption { font-size: .75rem; }

/* Photos as figures on a drawing: thin frame, corner marks, numbered caption in monospace. */
.v-drawing { counter-reset: section figure; }
.v-drawing .photo { margin: 1.5rem 0; position: relative; border: 1px solid var(--brand-dark); background: #fff; padding: .5rem; }
.v-drawing .photo img { width: 100%; }
.v-drawing .photo figcaption { font-family: var(--mono); font-size: .8rem; color: var(--brand-dark);
  padding: .5rem .25rem .1rem; border-top: 1px solid var(--line); margin-top: .5rem; }
.v-drawing .photo .fig-no { color: var(--brand); }
.v-drawing .photo::before, .v-drawing .photo::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--brand); }
.v-drawing .photo::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.v-drawing .photo::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.v-drawing .hero .photo { margin: 0; }
/* Small portrait on Contact (owner Q48: small), beside the text. */
.v-drawing .photo.portrait { float: right; width: 11rem; margin: 0 0 1rem 1.5rem; }
@media (max-width: 40rem) { .v-drawing .photo.portrait { float: none; margin: 0 0 1rem; } }
.v-drawing .hero-photo.photo { min-height: 0; }

@media (max-width: 40rem) {
  .v-drawing .hero, .v-drawing .cards { grid-template-columns: 1fr; }
}

/* Wide logo strip across the top (owner, Chromium.21), menu below it, right-aligned. On phones the compact
   logo is used (layouts/partials/logo.html) and the header stays sticky; with the wide strip it scrolls away. */
@media (min-width: 40rem) {
  .v-drawing .site-header { position: static; flex-direction: column; align-items: stretch; gap: .5rem; padding: 1rem 1.5rem .5rem; }
  .v-drawing .site-header .brand { margin: 0; }
  .v-drawing .site-header .brand .logo-img { width: 100%; height: auto; }
  .v-drawing .site-header .menu { justify-content: flex-end; }
}


/* Language switch top right (D12, Q57): plain text, no button look (owner, 2026-11-26):
   the current language grey, the other language as a normal link. */
.v-drawing .language-switch { align-self: flex-end; font-size: .85rem; line-height: 1.5; color: var(--muted); }
/* Both codes get the exact same box (font, weight, size, no padding), so nothing moves when switching. */
.v-drawing .language-switch a, .v-drawing .language-switch strong {
  display: inline-block; min-width: 1.6em; text-align: center; padding: 0; margin: 0;
  font: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; background: none; border: 0; }
.v-drawing .language-switch a { color: var(--brand); text-decoration: none; }
.v-drawing .language-switch a:hover { text-decoration: underline; }
.v-drawing .language-switch strong { color: var(--muted); }

/* Photos beside the text (owner, 2026-11-26; sections from layouts/partials/sectioned.html):
   wide screens: photo smaller, on the right, text on the left; narrow screens: text first, photo after it. */
.v-drawing .sec { display: flex; flex-direction: column; }
.v-drawing .sec > * { order: 1; }
.v-drawing .sec > h2 { order: 0; }
.v-drawing .sec > .photo:not(.portrait) { order: 2; }
.v-drawing .sec > p, .v-drawing .sec > ul:not(.cards) { max-width: 68ch; }
@media (min-width: 50rem) {
  .v-drawing .sec { display: block; }
  .v-drawing .sec::after { content: ""; display: block; clear: both; }
  .v-drawing .sec > .photo:not(.portrait) { float: right; width: 40%; margin: .5rem 0 1rem 2rem; }
}

/* Hidden photo page: its headings carry the figure number themselves, no section counter. */
.v-drawing .photo-notes h2::before { content: none; }

/* Narrow screens (owner, 2026-11-26): logo left, language switch right on the same line, menu below. */
@media (max-width: 39.99rem) {
  .v-drawing .site-header .brand { order: 0; }
  .v-drawing .site-header .language-switch { order: 1; margin-left: auto; align-self: center; }
  .v-drawing .site-header .menu { order: 2; flex-basis: 100%; }
}
