/* Odkaz rodu – burgundy theme from the logo (design 09 A "Vývod", sharp corners), font Hanken Grotesk (SIL OFL 1.1, see fonts/OFL.txt). */
@font-face {
	font-family: "Hanken Grotesk";
	src: url("fonts/HankenGrotesk-wght.ttf") format("truetype");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
/* Caveat (SIL OFL 1.1, fonts/Caveat-OFL.txt): handwriting in the illustrations of the page Jak to funguje */
@font-face {
	font-family: "Caveat";
	src: url("fonts/Caveat-latin-ext.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Caveat";
	src: url("fonts/Caveat-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--brand: #9b1b48;        /* logo burgundy */
	--brand-hover: #84163d;
	--brand-deep: #6c1332;
	--ink: #2a0f1d;          /* logo lettering */
	--text: #5a4651;
	--nav: #4a3a42;
	--muted: #6f5b66;
	--year: #5c2a40;
	--rose-500: #bb6483;     /* logo, middle fields */
	--rose-300: #d9a8b9;     /* logo, top fields */
	--tint-300: #dbadbd;
	--tint-200: #efdbe2;
	--tint-100: #f5e8ed;
	--tint-50: #fbf6f8;
	--line: #ebe0e5;
	--line-strong: #e2d5db;
	--line-soft: #f2ebee;
	--input: #d6c6ce;
	--bg: #ffffff;
	--green: #1f7a4d;
	--green-bg: #e2f4ea;
	--green-line: #7cc5a0;
	--amber: #9a6410;
	--amber-bg: #fdf1d8;
	--red: #b42318;
	--red-bg: #fde7e4;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(42, 15, 29, .05), 0 8px 24px rgba(42, 15, 29, .07);
	--sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 18px; } }
.narrow { max-width: 720px; }
.medium { max-width: 920px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--rose-300); outline-offset: 2px; }

/* Header & footer */
/* the bar of a running sale above the header (BasePresenter::$campaignBar): white on the logo's dark ink; the sentence
   and the links to order a tree or a voucher together in the middle of the page, the links under the sentence when
   the line is too narrow */
.campaign-bar { background: var(--ink); color: #fff; font-size: .9375rem; line-height: 1.4; }
.campaign-bar p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 28px; min-height: 40px; margin: 0 auto; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.campaign-bar-text { text-wrap: balance; }
.campaign-bar strong { color: #fff; }
.campaign-bar-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.campaign-bar a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rose-300); text-underline-offset: 3px; white-space: nowrap; }
.campaign-bar a:hover { text-decoration-color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--line-soft); position: relative; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; } /* as wide as the page content (.container), so the logo lines up with it */
.logo { display: flex; flex-shrink: 0; }
.logo img { display: block; height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex: 1; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a, .user-link { color: var(--nav); text-decoration: none; font-weight: 500; white-space: nowrap; }
.main-nav a:hover, .user-link:hover { color: var(--ink); }
.user-nav { display: flex; align-items: center; gap: 16px; }
.user-nav .btn { font-size: 1rem; padding: 9px 18px; }
.logout-link { display: inline-flex; align-items: center; gap: 8px; }
.logout-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.logout-link .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 1.5px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
/* just above the menu button, the links and the order button need narrower gaps to stay on one line beside the logo
   (the Slovak texts are longer; a signed-in customer has the account link and the log-out icon) */
@media (min-width: 1100px) and (max-width: 1199px) { .site-nav, .main-nav { gap: 16px; } }
@media (max-width: 1099px) {
	.header-inner { flex-wrap: wrap; min-height: 58px; gap: 0 16px; }
	.logo img { height: 26px; }
	.js-nav .nav-toggle { display: inline-flex; }
	.site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 14px; }
	.js-nav .site-nav { display: none; }
	.js-nav.nav-open .site-nav { display: flex; }
	.main-nav, .user-nav { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav a, .user-link { padding: 10px 2px; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
	.logout-link .label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	.user-nav .btn { margin-top: 14px; padding: 11px 20px; } /* 44 px tall for a finger */
}
.site-footer { background: var(--ink); color: #dcc9d2; margin-top: 48px; padding: 32px 0 24px; font-size: .92rem; }
.page-home .site-footer { margin-top: 0; }
.site-footer a { color: #f6eaef; }
.site-footer a:hover { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px 32px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 8px; }
.site-footer p { margin: 0 0 .4em; }
.site-footer p:last-child { margin-bottom: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 2px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s; }
.btn:hover { background: var(--tint-50); border-color: var(--tint-300); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--tint-300); color: var(--brand); }
.btn-danger { background: #fff; border-color: #f0b4ad; color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: #e9958c; color: var(--red); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }

/* Flash messages & alerts */
.flashes { margin-top: 16px; }
.flash, .alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--tint-200); background: var(--tint-50); }
.flash-success, .alert-success { border-color: var(--green-line); background: var(--green-bg); }
.flash-error, .alert-error { border-color: #f3b0a9; background: var(--red-bg); color: #7a1d14; }
.flash-warning, .alert-warning { border-color: #f1cf85; background: var(--amber-bg); color: #6b4609; }
.alert p:last-child { margin-bottom: 0; }

/* Home: hero with the "vývod" shield of the logo */
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; font-weight: 600; color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--text); max-width: 640px; }
.hero { padding: 48px 0 56px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-text > * { margin: 0; }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; }
.hero .lead { max-width: 500px; font-size: 1.1875rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px !important; }
.hero-shield { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; margin: 0; padding: 0 14px; border-radius: 999px; background: var(--tint-100); color: var(--brand); font-size: .8125rem; font-weight: 600; }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shield { display: block; width: 100%; max-width: 420px; height: auto; }
.shield .f-top { fill: var(--tint-200); }
.shield .f-mid { fill: var(--tint-300); }
.shield .f-you { fill: var(--brand); }
.shield .f-figure { fill: var(--brand-deep); }
.shield text { font-family: var(--sans); text-anchor: middle; }
.shield .t-name { font-size: 13px; font-weight: 600; fill: var(--ink); }
.shield .t-year { font-size: 12px; font-weight: 500; fill: var(--year); }
.shield .t-parent { font-size: 17px; font-weight: 700; fill: var(--ink); }
.shield .t-parent-year { font-size: 13px; font-weight: 500; fill: var(--year); }
.shield .t-you { font-size: 36px; font-weight: 700; letter-spacing: -.02em; fill: #fff; }
/* "Ověřeno genealogem" rubber stamp: under the hero buttons and on the assurance card (--stamp-turn = its tilt) */
.stamp { display: block; height: auto; color: var(--brand); fill: currentColor; transform: rotate(var(--stamp-turn, -12deg)); mix-blend-mode: multiply; pointer-events: none; }
.stamp .s-bold { fill: none; stroke: currentColor; stroke-width: 3.5; }
.stamp .s-line { fill: none; stroke: currentColor; stroke-width: 1.3; }
.stamp text { font-family: var(--sans); font-weight: 800; text-anchor: middle; }
.stamp .s-arc { font-size: 16.5px; letter-spacing: 2.4px; }
.stamp .s-band { font-size: 30px; letter-spacing: 1.5px; }
@keyframes stamp-in { from { opacity: 0; transform: rotate(var(--stamp-turn, -12deg)) scale(1.5); } }
.hero-text > .hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.hero-trust .stamp { flex-shrink: 0; width: 104px; --stamp-turn: -10deg; }
.hero-trust p { display: flex; flex-direction: column; gap: 2px; max-width: 380px; margin: 0; text-wrap: balance; }
.hero-trust strong { line-height: 1.4; }
.hero-trust span { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
	.hero-trust .stamp { animation: stamp-in .45s cubic-bezier(.3, 1.35, .5, 1) .5s backwards; }
}
@media (max-width: 560px) {
	.hero-text > .hero-trust { gap: 14px; }
	.hero-trust .stamp { width: 88px; }
	.hero-trust strong { font-size: .9375rem; }
	.hero-trust span { font-size: .875rem; }
}
@media (max-width: 960px) {
	.hero { padding: 32px 0 44px; }
	.hero-inner { grid-template-columns: 1fr; gap: 32px; }
	.hero-shield { width: 100%; max-width: 360px; margin: 0 auto; }
}

/* Home: sections */
.section { padding: 56px 0; }
.section-tinted { background: var(--tint-50); }
.section-eyebrow { text-align: center; margin: 0 0 10px; }
.section-title { text-align: center; }
.section-lead { text-align: center; color: var(--text); max-width: 680px; margin: 0 auto 28px; }
@media (max-width: 760px) { .section { padding: 40px 0; } }
/* Příjmení, Rod and Původ as the columns of one box, Rod tinted; on phones under each other with lines between them */
.variants-title { margin-bottom: 28px; }
.variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.variant { display: flex; flex-direction: column; min-width: 0; padding: 24px 26px 26px; }
.variant + .variant { border-left: 1px solid var(--line); }
.variant-featured { background: #fcf8fa; }
.variant-featured .diagram-box { background: #f7eef2; }
@media (max-width: 1099px) { .variant { padding: 22px 20px 24px; } }
@media (max-width: 900px) {
	.variants { grid-template-columns: minmax(0, 1fr); }
	.variant + .variant { border-left: 0; border-top: 1px solid var(--line); }
}
.variant > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.variant > header h3 { flex: 1; margin: 0; font-size: 1.5rem; letter-spacing: -.025em; }
.variant > header .price { margin-left: auto; font-size: 1.375rem; line-height: 1.15; text-align: right; } /* on a line of its own when the name and the price with the struck one do not fit */
.variant-lead { margin: 0 0 14px; font-size: .9375rem; line-height: 1.5; color: var(--text); }
.variant .diagram-box { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; margin: 0 0 16px; padding: 12px 12px 10px; }
.variant .diagram { height: 104px; } /* the drawing fits the box and stands in its middle (preserveAspectRatio) */
.variant .legend { justify-content: center; gap: 4px 14px; margin: 0; font-size: .78rem; line-height: 1.4; }
.variant .swatch { width: 10px; height: 10px; }
.variant > .btn-block { margin-top: auto; }
.price { font: 700 1.6rem/1 var(--sans); letter-spacing: -.02em; color: var(--brand); margin: 0; }
.price-sm { font-weight: 700; color: var(--brand); }
/* during a sale under the price: the sale and the earlier price struck through (Front/@salePrice.latte) */
.price-before { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 18px; font-size: .9375rem; color: var(--muted); }
.price-before s { color: var(--text); text-decoration-thickness: 1.5px; }
/* the earlier price struck through: on the home price list right before the price (priceWas in Home/default.latte), on
   the voucher page after it */
.price-was { margin-right: 4px; font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted); text-decoration-thickness: 1.5px; white-space: nowrap; }
/* during a sale a round sticker like the one in the ads over the top right corner of a box with prices
   (Front/@saleSticker.latte); smaller below 1280 px and on phones */
.sale-sticker { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; width: 132px; height: 132px; margin: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 8px 18px rgba(42, 15, 29, .26); color: #fff; line-height: 1.2; text-align: center; }
.sale-sticker::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid var(--rose-300); border-radius: 50%; }
.sale-sticker-text { display: flex; flex-direction: column; align-items: center; gap: 3px; transform: rotate(-10deg); } /* only the text turns: a turned square would widen the page */
.sale-sticker-name { font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tint-100); }
.sale-sticker-percent { font-size: 2.25rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.sale-sticker-until { font-size: .8125rem; font-weight: 700; color: var(--tint-100); white-space: nowrap; }
@media (max-width: 1279px) {
	.sale-sticker { width: 120px; height: 120px; }
	.sale-sticker::before { inset: 6px; }
	.sale-sticker-text { gap: 2px; }
	.sale-sticker-name { font-size: .625rem; letter-spacing: .1em; }
	.sale-sticker-percent { font-size: 2rem; }
	.sale-sticker-until { font-size: .75rem; }
}
@media (max-width: 900px) {
	.sale-sticker { width: 108px; height: 108px; }
	.sale-sticker-name { font-size: .5625rem; letter-spacing: .08em; }
	.sale-sticker-percent { font-size: 1.875rem; }
}
/* on the home price list clear of the price of Původ and, below 1280 px, inside the page; on one column in the middle of
   the box's top edge, above the prices of the first card, the title moving up to make room */
.variants-wrap { position: relative; }
.variants-wrap > .sale-sticker { top: -108px; right: -56px; }
@media (max-width: 1279px) { .variants-wrap > .sale-sticker { top: -104px; right: -20px; } }
@media (max-width: 900px) {
	.has-sale-sticker .variants-title { margin-bottom: 96px; }
	.variants-wrap > .sale-sticker { top: -88px; right: calc(50% - 54px); }
}
/* on the voucher page over the top right corner of the order card, beside the page title and clear of the form; with
   the cards under each other (the grid narrower than two 260px columns) the order card moves down to make room */
.voucher-price { margin: 8px 0 0; font-size: .9375rem; line-height: 1.45; color: var(--ink); } /* during a sale: what a voucher for any amount costs */
.voucher-grid { container-type: inline-size; }
.voucher-order { position: relative; }
.voucher-order > .sale-sticker { top: -86px; right: -56px; }
@media (max-width: 999px) { .voucher-order > .sale-sticker { right: -20px; } }
@container (max-width: 535px) {
	.voucher-order { margin-top: 56px; }
	.voucher-order > .sale-sticker { top: -68px; right: -4px; }
}
.sale-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
/* "Rodokmen na míru" as a low strip under the box: the diagram, the text and the button side by side; on phones the name
   beside a small diagram and the rest under them */
.variant-custom { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; column-gap: 28px; margin-top: 24px; padding: 20px 28px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.variant-custom .diagram-box { margin: 0; padding: 8px 10px; }
.variant-custom .diagram { height: 104px; }
.variant-custom header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 6px; }
.variant-custom h3 { margin: 0; font-size: 1.375rem; letter-spacing: -.02em; }
.variant-custom .price { font-size: 1rem; line-height: 1.2; }
.variant-custom-text > p { margin: 0 0 8px; font-size: .9375rem; line-height: 1.5; color: var(--text); }
.variant-custom .checks { margin: 0; font-size: .9063rem; line-height: 1.45; }
.variant-custom .checks li { margin: 0; }
.variant-custom > .btn { white-space: nowrap; }
@media (max-width: 900px) {
	.variant-custom { grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "head figure" "text text" "checks checks" "cta cta"; column-gap: 14px; padding: 18px; }
	.variant-custom-text { display: contents; }
	.variant-custom header { grid-area: head; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; }
	.variant-custom .diagram-box { grid-area: figure; padding: 6px; border-radius: 10px; }
	.variant-custom .diagram { height: 64px; }
	.variant-custom-text > p { grid-area: text; margin: 12px 0 10px; }
	.variant-custom .checks { grid-area: checks; }
	.variant-custom > .btn { grid-area: cta; margin-top: 14px; white-space: normal; }
}
.diagram-box { margin: 8px 0 16px; background: var(--tint-50); border-radius: 14px; padding: 14px; }
.diagram { display: block; width: 100%; height: auto; }
.diagram-surname { margin: 0 auto; } /* at its own size (max-width from Diagrams::surname()) in the middle of the box */
.diagram .d-line { fill: none; stroke: #c9a8b6; stroke-width: 1.4; }
.diagram .d-marriage { stroke: var(--rose-500); stroke-width: 2; }
.diagram .d-bearer, .diagram .d-ancestor { fill: var(--brand); }
.diagram .d-start { fill: var(--brand-deep); }
.diagram .d-spouse { fill: var(--rose-500); }
.diagram .d-sibling { fill: #e4d6dc; }
.diagram .d-name { stroke: rgba(255, 255, 255, .75); stroke-width: 2; stroke-linecap: round; }
.diagram-lineage .d-gen { font: 700 21px var(--sans); fill: var(--brand-deep); } /* generation numbers, only in Původ */
.diagram .d-more { fill: var(--rose-300); }
.diagram .d-line-more { fill: none; stroke: #e5cfd8; stroke-width: 1.1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.swatch-bearer { background: var(--brand); }
.swatch-spouse { background: var(--rose-500); }
.swatch-sibling { background: #e4d6dc; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
/* "Co dostanete" under the diagrams of the variants: each thing the customer gets with what it holds in this variant */
.variant-gets { margin: 0 0 16px; }
.variant-gets h4 { margin: 0 0 8px; font-size: .78rem; }
.variant-gets ul { list-style: none; margin: 0; padding: 0; }
.variant-gets li { position: relative; padding-left: 30px; font-size: .875rem; line-height: 1.45; color: var(--text); }
.variant-gets li + li { margin-top: 10px; }
.variant-gets li > svg { position: absolute; left: 0; top: 1px; width: 21px; height: 21px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.variant-gets strong { display: block; font-size: .9375rem; line-height: 1.4; color: var(--ink); text-wrap: balance; }
/* Side by side the parts of the columns line up row by row: the diagram boxes, the lists item by item (Příjmení has no
   chronicle, the last item, so its list ends a row earlier), the buttons */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 901px) {
		.variants { grid-template-rows: repeat(8, auto); }
		.variant { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; }
		.variant-gets { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; margin: 0; }
		.variant-gets ul { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
		.variant-gets li { margin-bottom: 10px; }
		.variant-gets li + li { margin-top: 0; }
		.variant > .btn-block { grid-row: -2; align-self: end; margin-top: 8px; }
	}
}
.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.features li { background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.features h3 { font-size: 1.05rem; }
.features p { color: var(--muted); font-size: .93rem; margin: 0; }
.feature-icon { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.badge { display: inline-block; font: 600 .7rem/1.6 var(--sans); padding: 0 8px; border-radius: 999px; background: var(--tint-100); color: var(--brand-deep); margin-left: 8px; vertical-align: middle; letter-spacing: 0; }
/* The assurance under the features without a box: the stamp as a seal on a thin line across the container (the
   line's halves are the pseudo-elements), the check and how long the work takes centred under it. */
.assurance { text-align: center; }
.assurance-seal { display: flex; align-items: center; gap: 20px; }
.assurance-seal::before, .assurance-seal::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.assurance-seal .stamp { flex-shrink: 0; width: 132px; --stamp-turn: -8deg; }
.assurance-lead { margin: 14px 0 6px; font-size: 1.3125rem; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.assurance-text { max-width: 660px; margin: 0 auto; color: var(--text); text-wrap: balance; }
@media (max-width: 560px) {
	.assurance-seal { gap: 14px; }
	.assurance-seal .stamp { width: 108px; }
	.assurance-lead { margin-top: 12px; font-size: 1.125rem; }
	.assurance-text { font-size: .9375rem; }
}
.help { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tint-100); color: var(--brand); font: 700 .75rem/1 var(--sans); cursor: help; vertical-align: 1px; margin-left: 4px; }
/* A hidden bubble takes no space (a merely invisible one pushed narrow pages sideways); app.js shifts a shown one inside the window. */
.help .tooltip { display: none; position: absolute; bottom: calc(100% + 8px); left: calc(50% + var(--tip-shift, 0px)); transform: translateX(-50%); width: max-content; max-width: min(260px, calc(100vw - 24px)); background: var(--ink); color: #fff; font: 400 .85rem/1.45 var(--sans); padding: 10px 12px; border-radius: 8px; text-align: left; z-index: 20; box-shadow: var(--shadow); }
.help:hover .tooltip, .help:focus .tooltip, .help:focus-within .tooltip { display: block; animation: tip-in .15s; }
@keyframes tip-in { from { opacity: 0; } }
/* Additional services in one strip under the variants: the name and the price on a line, the text under them; on phones
   under each other */
.addons-title { margin: 36px 0 12px; text-align: center; font-size: 1.25rem; letter-spacing: -.01em; }
.addons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.addon { padding: 16px 24px; }
.addon + .addon { border-left: 1px solid var(--line-soft); }
.addon-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.addon-head h4 { margin: 0; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.addon-head .price-sm, .addon-head a { white-space: nowrap; }
.addon-head a { font-weight: 600; }
.addon p { margin: 4px 0 0; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.addon > .btn-block { margin-top: 14px; } /* „Objednat dárkový poukaz“, the button of the variants */
.addon:not(.addon-voucher) { display: flex; flex-direction: column; justify-content: center; } /* the prints in the middle of the taller row */
/* what the vouchers cost, during a sale with the earlier price struck through (priceWas) */
.voucher-prices { list-style: none; margin: 8px 0 0; padding: 0; font-size: .9063rem; line-height: 1.45; }
.voucher-prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.voucher-prices li:last-child { border-bottom: 1px solid var(--line-soft); }
.voucher-prices li > span:first-child { font-weight: 600; color: var(--ink); }
.voucher-prices li > :last-child { white-space: nowrap; }
.voucher-prices strong { font-weight: 700; color: var(--brand); }
.voucher-prices .price-was { font-size: .8438rem; }
@media (max-width: 900px) {
	.addons { grid-template-columns: minmax(0, 1fr); }
	.addon { padding: 14px 18px; }
	.addon + .addon { border-left: 0; border-top: 1px solid var(--line-soft); }
}

/* Home: the sample family in the tree chart (styles in "Customer tree section") */
.sample-tree .chart-scroll { max-height: 660px; overflow-y: auto; }

/* How it works (Page:how) – illustrations in the style of a family photo album (Page/@how-art.latte) */
.page-how .site-footer { margin-top: 0; }
.page-how .section-title { margin-bottom: 28px; }
.how-hero { padding: 40px 0 48px; }
.how-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 56px; align-items: center; }
.how-hero-text { display: flex; flex-direction: column; gap: 22px; }
.how-hero-text > * { margin: 0; }
.how-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); line-height: 1.04; letter-spacing: -.035em; }
.how-hero .lead { max-width: 500px; font-size: 1.1875rem; line-height: 1.55; }
.how-hero-art { width: 100%; max-width: 540px; margin: 0 auto; }
@media (max-width: 900px) {
	.how-hero { padding: 28px 0 36px; }
	.how-hero-inner { grid-template-columns: 1fr; }
	.how-hero-art { max-width: 440px; }
}
.how-steps-section { padding-top: 24px; }
.how-steps { list-style: none; max-width: 1040px; margin: 0 auto; padding: 0; }
.how-steps > li { display: flex; flex-direction: column; align-items: center; }
.how-steps > li:not(:last-child)::after { content: ""; height: 40px; margin: 14px 0; border-left: 2px dashed var(--tint-300); }
.how-step { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 64px; }
.how-steps > li:nth-child(even) .how-step { flex-direction: row-reverse; }
.how-step > .album-art { flex: 1 1 360px; min-width: 0; max-width: 460px; }
.how-step-text { flex: 1 1 320px; min-width: 0; max-width: 460px; }
.how-step-text .how-step-no { margin: 0 0 8px; font-size: .9375rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.how-step-text h3 { margin: 0 0 10px; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.02em; }
.how-step-text p { margin: 0 0 8px; font-size: 1.0625rem; color: var(--text); }
.how-step-text .how-step-note { margin: 0; font-size: .9375rem; color: var(--muted); }
@media (max-width: 760px) {
	.how-steps > li:not(:last-child)::after { height: 24px; margin: 10px 0; }
}
.how-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 16px; }
.how-faq-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.how-faq-card > .album-art { flex: 0 0 170px; width: 170px; }
.how-faq-card > div { flex: 1 1 220px; min-width: 0; }
.how-faq-card h3 { margin: 0 0 8px; font-size: 1.3125rem; line-height: 1.25; }
.how-faq-card p { margin: 0; color: var(--text); }
.how-faq-periods { flex-direction: column; align-items: stretch; gap: 14px; }
.how-faq-periods h3 { margin: 0; }
.how-periods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.how-periods li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 4px 14px; border-radius: 16px; background: var(--tint-100); text-align: center; }
.how-periods svg { width: 30px; height: 30px; fill: none; stroke: var(--brand-deep); stroke-width: 1.8; stroke-linecap: round; }
.how-periods strong { font-size: 1.75rem; line-height: 1.1; letter-spacing: -.02em; color: var(--brand); white-space: nowrap; }
.how-periods small { font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.how-periods span { font-size: .875rem; line-height: 1.3; color: var(--text); }
/* "Co dostanu?" goes first across the full width: heading and numbered list on the left, the still life (art-outputs,
   the same numbers) on the right; on narrow screens heading, picture, list */
.how-faq-gets { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "title art" "list art"; align-items: center; gap: 0 48px; padding: clamp(24px, 3.6vw, 44px); }
.how-faq-gets > h3 { grid-area: title; align-self: end; margin: 0 0 20px; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; letter-spacing: -.02em; }
.how-faq-gets > .album-art { grid-area: art; align-self: center; justify-self: center; width: 100%; max-width: 560px; }
.how-faq-gets > div { grid-area: list; align-self: start; }
@media (max-width: 900px) {
	.how-faq-gets { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "art" "list"; gap: 20px; }
	.how-faq-gets > h3 { margin: 0; }
}
.how-gets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: gets; }
.how-gets li { position: relative; padding-left: 42px; counter-increment: gets; font-size: .97rem; line-height: 1.5; color: var(--text); }
.how-gets li::before { content: counter(gets); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .875rem; font-weight: 700; line-height: 28px; text-align: center; }
.how-gets strong { display: block; font-size: 1.0625rem; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.how-faq-gets .how-gets-more { margin-top: 20px; font-size: .9rem; color: var(--muted); }
.how-gets-more svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.how-faq-sources { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
/* "Můžu rodokmen později rozšířit?" right under "Co dostanu?", across the page: the other cards keep their pairs */
.how-faq-upgrade { grid-column: 1 / -1; }
.how-faq-sources h3 { margin: 0; }
.how-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.how-sources li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 16px; background: var(--tint-100); text-align: center; }
.how-sources svg { width: 30px; height: 30px; fill: none; stroke: var(--brand-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.how-sources strong { font-size: 1.0625rem; line-height: 1.25; color: var(--brand); }
.how-sources span { font-size: .875rem; line-height: 1.3; color: var(--text); }
@media (max-width: 560px) { .how-faq-card { padding: 22px 18px; } }
.how-cta { max-width: 860px; margin: 0 auto; padding: 40px 32px; border-radius: 28px; background: var(--tint-100); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.how-cta > * { margin: 0; }
.how-cta h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; }
.how-cta > p { max-width: 520px; font-size: 1.125rem; color: var(--text); }
.how-cta .hero-actions { justify-content: center; }
@media (max-width: 560px) { .how-cta { padding: 32px 20px; } }
.hand { font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 500; }
.album-art { position: relative; width: 100%; }
.album-art-hero { aspect-ratio: 520 / 400; }
.album-art-step { aspect-ratio: 360 / 260; }
.album-art-faq { aspect-ratio: 200 / 140; }
.album-art-gets { aspect-ratio: 520 / 300; }
.album-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.album-art > .album-over { pointer-events: none; }
.album-photo { position: absolute; box-sizing: border-box; padding: 7px 7px 20px; background: #fbf7ee; box-shadow: 0 2px 3px rgba(58, 34, 40, .18), 0 10px 18px rgba(58, 34, 40, .16); }
.album-photo > img, .album-photo > svg { display: block; width: 100%; height: 100%; object-fit: cover; background: #e9dcc7; }
.album-photo > img { filter: sepia(.85) saturate(.75) contrast(1.05) brightness(1.02); }
.album-photo::after { /* black photo corners */
	content: ""; position: absolute; inset: -4px; pointer-events: none;
	background: linear-gradient(135deg, #3a2228 50%, transparent 50%) left top / 18px 18px no-repeat, linear-gradient(225deg, #3a2228 50%, transparent 50%) right top / 18px 18px no-repeat,
		linear-gradient(45deg, #3a2228 50%, transparent 50%) left bottom / 18px 18px no-repeat, linear-gradient(315deg, #3a2228 50%, transparent 50%) right bottom / 18px 18px no-repeat;
}

/* Generic pages, cards, tables */
.page { padding-top: 28px; padding-bottom: 8px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-header h1 { margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2 { font-size: 1.35rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.prose h2 { margin-top: 1.4em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .35em; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; background: var(--tint-50); }
.table tr:hover td { background: #fdf9fb; }
/* status badges: green done, red a problem, amber not finished yet (waiting for the customer or being worked on), neutral
   the rest – never burgundy, next to the red it reads as an error */
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--line-soft); color: var(--text); white-space: nowrap; }
.status-completed, .status-paid, .status-matched, .status-approved, .status-answered, .status-active, .status-done, .status-auto_ok, .status-reviewed { background: var(--green-bg); color: var(--green); }
.status-failed, .status-unmatched, .status-rejected, .status-needs_review, .status-cancelled, .status-blocked { background: var(--red-bg); color: var(--red); }
.status-draft, .status-awaiting_payment, .status-pending, .status-queued, .status-researching, .status-processing, .status-generating, .status-running, .status-review { background: var(--amber-bg); color: var(--amber); }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; } /* an IBAN must not push the payment card past a phone's screen */
.empty { color: var(--muted); padding: 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.tabs a.active, .tabs a:hover { color: var(--ink); border-bottom-color: var(--brand); }

/* Forms */
.form-fields { display: flex; flex-direction: column; gap: 14px; }
.field-label label { font-weight: 600; font-size: .93rem; }
.field.required .field-label label::after { content: " *"; color: var(--brand); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--input); border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid var(--tint-100); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.field-error, .error-text { color: var(--red); font-size: .85rem; display: block; margin-top: 4px; }
.hint { color: var(--muted); font-size: .82rem; display: block; margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; color: var(--brand-deep); }
.checkbox-field label, .field-control > label { font-weight: 400; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { flex: 1; min-width: 180px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
/* Questions with answers to pick (the chronicle: sources, stories read aloud) – large targets for customers 50+ */
fieldset.choices { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.choices legend { padding: 0; margin-bottom: 2px; font-weight: 600; font-size: .95rem; color: var(--ink); }
fieldset.choices .hint { margin: 0 0 4px; }
.choice { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; cursor: pointer; }
.choice:hover { border-color: var(--tint-300); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--tint-50); }
.choice input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand); }

/* Stories read aloud: links in the tree section (Tree:chronicle), the page opened by the QR code (Front:Listen), review */
.listen-links { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.listen-links h3 { font-size: 1rem; margin: 0 0 2px; }
.listen-links ul { margin: 8px 0 0; padding-left: 20px; }
.listen-links li { margin-bottom: 4px; }
.listen-page h1 { margin-bottom: 4px; }
.listen-years { color: var(--muted); margin: 0 0 20px; }
.listen-player { display: block; width: 100%; margin: 0 0 24px; }
.listen-text p { font-size: 1.1rem; line-height: 1.7; }
.narration-review { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.narration-review audio { display: block; width: 100%; margin: 6px 0; }

/* Order steps */
.order-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; flex-wrap: wrap; counter-reset: os; }
.order-steps li { counter-increment: os; flex: 1; min-width: 150px; padding: 8px 12px; border-radius: 12px; background: var(--tint-50); color: var(--muted); font-size: .9rem; font-weight: 600; }
.order-steps li::before { content: counter(os) ". "; }
.order-steps li.active { background: var(--brand); color: #fff; }
.order-steps li.done { background: var(--tint-100); color: var(--brand-deep); }
.order-steps-long li { min-width: 120px; } /* five steps of "Rodokmen na míru" fit one row of a narrow page */
.summary-box { background: var(--tint-50); border-radius: var(--radius); padding: 20px; }
.payment-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
@media (max-width: 700px) { .payment-grid { grid-template-columns: 1fr; } }
.qr { background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--line); width: 200px; }
.qr svg { display: block; width: 100%; height: auto; }

/* Pedigree form (order step 2) */
.pedigree-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pedigree-help div { background: var(--tint-50); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.pedigree-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.pedigree-scroll { overflow-x: auto; padding-bottom: 10px; }
.pedigree { display: flex; flex-direction: column-reverse; gap: 22px; min-width: 980px; position: relative; }
.pedigree-lines { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; overflow: visible; }
.pedigree-lines path { fill: none; stroke: var(--input); stroke-width: 1.5; }
.pedigree-lines path.male { stroke: #c78da3; }
.pedigree-lines path.female { stroke: #e5c3d0; }
.pedigree-lines path.skipped { stroke: #f0a59c; stroke-dasharray: 4 4; opacity: .5; }
.pedigree-row, .gen-label { position: relative; z-index: 1; }
.pedigree.single { min-width: 0; }
.pedigree-row { display: grid; gap: 10px; position: relative; }
.pedigree-row[data-gen="1"] { grid-template-columns: minmax(240px, 340px); justify-content: center; }
.pedigree-row[data-gen="2"] { grid-template-columns: repeat(2, minmax(200px, 300px)); justify-content: space-around; }
.pedigree-row[data-gen="3"] { grid-template-columns: repeat(4, 1fr); }
.pedigree-row[data-gen="4"] { grid-template-columns: repeat(8, 1fr); }
.gen-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: -14px; }
.pcard { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; font-size: .86rem; display: flex; flex-direction: column; gap: 4px; min-height: 112px; position: relative; transition: border-color .15s, background .15s; }
.pcard .role { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.pcard .role-detail { font-size: .72rem; color: var(--muted); margin-top: -4px; }
.pedigree-row[data-gen="4"] .pcard { padding: 8px 9px; }
.pedigree-row[data-gen="4"] .pcard .pactions button { font-size: .68rem; padding: 3px 6px; }
.pcard .pname { font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.25; }
.pcard .pmeta { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.pcard .pstate { font-size: .76rem; font-weight: 600; }
.pcard .pactions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .pactions button { font-size: .75rem; padding: 4px 8px; }
.pcard.empty-card { border-style: dashed; background: #fdfafb; }
.pcard.male { box-shadow: inset 4px 0 0 var(--brand); }
.pcard.female { box-shadow: inset 4px 0 0 var(--rose-300); }
.pcard.st-available { background: var(--green-bg); border-color: var(--green-line); }
.pcard.st-available .pstate { color: var(--green); }
.pcard.st-partial { background: #eef8f2; border-color: #a9d8bf; }
.pcard.st-partial .pstate { color: var(--green); }
.pcard.st-unavailable { background: var(--amber-bg); border-color: #efcf8a; }
.pcard.st-unavailable .pstate { color: var(--amber); }
.pcard.st-skipped { background: var(--red-bg); border-color: #f0a59c; }
.pcard.st-skipped .pstate { color: var(--red); }
.pcard.hidden-branch { opacity: .35; pointer-events: none; }
.pcard.checking::after { content: ""; position: absolute; inset: 0; border-radius: 10px; background: rgba(255, 255, 255, .6); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2.5px solid var(--tint-200); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.checking-note { display: none; gap: 8px; align-items: center; color: var(--brand); font-weight: 600; font-size: .85rem; }
.is-checking .checking-note { display: inline-flex; }
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(42, 15, 29, .3); }
dialog.modal::backdrop { background: rgba(42, 15, 29, .45); }
.modal-head { padding: 18px 22px 0; }
.modal-head h3 { margin: 0 0 4px; }
.modal-body { padding: 12px 22px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.modal-body label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
/* family editor in the tree section (Tree/default.latte): choices as large rows for customers 50+ */
.pe-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.pe-choice legend { padding: 0; margin-bottom: 4px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.pe-options { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-body .pe-options label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; cursor: pointer; }
.modal-body .pe-options label:has(input:checked) { border-color: var(--brand); background: var(--tint-50); }
.modal-body .hint + .field-error:empty { display: none; }
.alt-dates { display: none; background: var(--tint-50); border-radius: 12px; padding: 12px; }
.alt-dates.open { display: block; }
/* photo of a birth certificate in the person dialog (persons.latte, app.js) */
.doc-scan { padding: 12px 14px; border: 1px solid var(--tint-200); border-radius: 12px; background: var(--tint-50); font-size: .92rem; }
.doc-scan p { margin: 0; }
.doc-scan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 10px 0 8px; }
.doc-scan-preview { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: start; }
.doc-scan-preview[hidden], .doc-scan-status[hidden], .doc-scan[hidden] { display: none; }
.doc-scan-preview img { display: block; width: 132px; max-height: 176px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.doc-scan-status { display: flex; gap: 10px; align-items: center; color: var(--brand); font-weight: 600; }
#pd-scan-message { margin: 0; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; margin: 4px 0 0; padding: 4px; list-style: none; display: none; }
.ac-list.open { display: block; }
.ac-list li { padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.ac-list li[aria-selected=true], .ac-list li:hover { background: var(--tint-100); }
.ac-list small { color: var(--muted); }
.evaluation { margin-top: 20px; }

/* Customer tree section: the family tree chart "vývod" and the list by generations (@treeChart.latte, initTreeChart
   in app.js); the four lines of the grandparents have a colour each (.lin-0 … .lin-3) */
.tree-intro { margin-bottom: 18px; }
.tree-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .tree-layout { grid-template-columns: minmax(0, 1fr); } }
.tree-chart { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.chart-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line-soft); }
.tree-chart [hidden] { display: none !important; }
.chart-toolbar:not(:has(> :not([hidden]))) { display: none; }
.chart-gens { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint-50); }
.chart-gens button { height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--nav); font: 600 .95rem var(--sans); cursor: pointer; }
.chart-gens button:hover { color: var(--ink); }
.chart-gens button[aria-pressed=true] { background: var(--brand); color: #fff; }
.chart-gens button:disabled { opacity: .4; cursor: default; }
.chart-switch, .chart-button { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer; }
.chart-switch:hover, .chart-button:hover { background: var(--tint-50); }
.chart-switch .switch { position: relative; flex-shrink: 0; width: 34px; height: 20px; border-radius: 10px; background: var(--input); transition: background .2s; }
.chart-switch .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .2s; }
.chart-switch[aria-pressed=true] .switch { background: var(--brand); }
.chart-switch[aria-pressed=true] .switch::after { left: 16px; }
.chart-button svg, .chart-search svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chart-search { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; max-width: 300px; height: 46px; margin: 0 0 0 auto; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--muted); font-weight: 400; }
.chart-search input { flex: 1; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 1rem var(--sans); }
.chart-search:focus-within { border-color: var(--tint-300); box-shadow: 0 0 0 3px var(--tint-100); }
.chart-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; background: var(--tint-50); border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.chart-status { margin: 0; padding: 12px 14px 0; color: var(--muted); }
.chart-noscript { padding: 16px; margin: 0; }
.chart-scroll { overflow-x: auto; }
.chart-canvas { position: relative; }
.chart-lines { position: absolute; left: 0; top: 0; pointer-events: none; }
.chart-edge { fill: none; stroke: #d8c3cc; stroke-width: 1.5; stroke-linejoin: round; }
.chart-edge.is-path { stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; }
.is-dimming .chart-edge:not(.is-path) { opacity: .55; }
.chart-band { position: absolute; top: 0; bottom: 0; background: #fcf8f9; }
.chart-head { position: absolute; top: 12px; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.chart-head strong { color: var(--ink); font-size: .95rem; }
.chart-head span { color: var(--muted); font-size: .82rem; }
.chart-card { position: absolute; display: flex; flex-direction: column; justify-content: safe center; align-items: flex-start; gap: 2px; padding: 0 10px 0 11px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(42, 15, 29, .05); color: var(--ink); font-family: var(--sans); text-align: left; cursor: pointer; transition: left .35s ease, top .35s ease, opacity .25s, background .15s, border-color .15s; }
.chart-card:hover { border-color: var(--brand); }
.chart-card:focus-visible { outline: 3px solid var(--rose-300); outline-offset: 2px; }
.chart-card > span { max-width: 100%; }
.cc-name { flex-shrink: 0; font-weight: 700; line-height: 1.2; }
.cc-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.cc-line { flex-shrink: 0; overflow: hidden; color: var(--year); font-size: .8rem; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cc-line.cc-muted { color: var(--muted); font-weight: 500; }
.cc-s { gap: 0; }
.cc-s .cc-name { font-size: .8rem; }
.cc-s .cc-text { display: block; text-overflow: ellipsis; white-space: nowrap; }
.cc-s .cc-line { font-size: .72rem; }
.cc-m .cc-name { font-size: .88rem; }
.cc-l .cc-name { font-size: 1.05rem; }
.cc-l .cc-line { font-size: .86rem; }
.cc-dot { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; }
.cc-s .cc-dot { width: 7px; height: 7px; margin-right: 4px; vertical-align: 0; }
.lin-0 { background: #9b1b48; }
.lin-1 { background: #d77a9c; }
.lin-2 { background: #6e3b7a; }
.lin-3 { background: #b596c5; }
.chart-card.is-start { background: var(--brand); border-color: var(--brand); color: #fff; }
.chart-card.is-start .cc-line { color: var(--tint-100); }
.chart-card.is-family { border-style: dashed; }
.chart-card.is-path { border: 2px solid var(--rose-500); }
.chart-card.is-selected { z-index: 2; border: 2px solid var(--brand); background: var(--tint-50); box-shadow: 0 0 0 4px rgba(155, 27, 72, .14), 0 6px 16px rgba(42, 15, 29, .14); }
.chart-card.is-start.is-selected { background: var(--brand); }
.chart-card.is-dim { opacity: .42; }
.chart-card.is-match { opacity: 1; box-shadow: 0 0 0 3px #f3b6ca; }
.chart-more { position: absolute; z-index: 3; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--brand); font: 700 1.05rem/1 var(--sans); cursor: pointer; }
.chart-more:hover { border-color: var(--brand); background: var(--tint-50); }
.chart-legend { position: absolute; display: flex; flex-direction: column; gap: 6px; font-size: .82rem; }
.chart-legend strong { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.chart-legend ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.chart-legend li { display: flex; align-items: center; gap: 7px; overflow: hidden; color: var(--ink); white-space: nowrap; }
/* the list by generations: the surname line (Rod) and every tree on a phone */
.chart-canvas.is-list { padding: 16px 14px 4px; }
.gen-list { position: relative; margin: 0; padding: 0; list-style: none; }
.gen-list::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 34px; width: 2px; background: var(--tint-200); }
.gen-row { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding-bottom: 18px; }
.gen-num { position: relative; display: grid; place-items: center; width: 34px; height: 34px; box-sizing: border-box; border: 2px solid var(--brand); border-radius: 50%; background: #fff; color: var(--brand); font-size: .78rem; font-weight: 700; }
.gen-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gen-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.gen-title { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gen-chip { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border: 1px solid var(--tint-200); border-radius: 18px; background: #fff; color: var(--brand); font: 600 .88rem var(--sans); cursor: pointer; }
.gen-chip::after { content: "›"; font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.gen-chip[aria-expanded=true] { border-color: var(--brand); background: var(--tint-100); }
.gen-chip[aria-expanded=true]::after { transform: rotate(90deg); }
.gen-couple { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line-soft); }
.gen-couple > :is(.gen-person, .gen-cell):last-child:nth-child(odd of .gen-person, .gen-cell) { grid-column: 1 / -1; }
.gen-caption { grid-column: 1 / -1; margin: 0; padding: 8px 14px; background: #fff; color: var(--muted); font-size: .85rem; }
.gen-person { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 58px; padding: 9px 14px; border: 0; background: #fff; color: var(--ink); font-family: var(--sans); text-align: left; cursor: pointer; }
.gen-person:hover { background: var(--tint-50); }
.gen-person:focus-visible { outline: 3px solid var(--rose-300); outline-offset: -3px; }
.gen-person.is-selected { background: var(--tint-50); box-shadow: inset 0 0 0 2px var(--brand); }
.gen-person.is-match { box-shadow: inset 0 0 0 2px #f3b6ca; }
.gp-name { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.gp-sub { color: var(--year); font-size: .87rem; line-height: 1.35; }
/* the surname line: "N sourozenců" below the bearer and "Rodiče nevěsty" below his wife open a family block below
   the couple – the parents with the year of their wedding, from it a line to each of their children, one group per
   marriage; the line from the parents to the person of the line is burgundy like the path in the chart */
.gen-cell { display: flex; flex-direction: column; align-items: flex-start; background: #fff; }
.gen-cell > .gen-person { align-self: stretch; background: transparent; }
.gen-couple:has(> .gen-cell) > .gen-person { justify-content: flex-start; } /* names on one line beside a cell with a button */
.gen-cell:has(> .gen-person:hover) { background: var(--tint-50); }
.gen-cell:has(> .gen-person.is-selected) { background: var(--tint-50); box-shadow: inset 0 0 0 2px var(--brand); }
.gen-cell:has(> .gen-person.is-match) { box-shadow: inset 0 0 0 2px #f3b6ca; }
.gen-cell > .gen-person.is-selected, .gen-cell > .gen-person.is-match { box-shadow: none; }
.gen-cell > .gen-chip { margin: -2px 14px 12px; }
.gen-chip.is-match { box-shadow: 0 0 0 3px #f3b6ca; }
.gen-body { container-type: inline-size; }
.gen-families { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
@container (min-width: 481px) {
	.gen-families:not(.is-single) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gen-families:not(.is-single) > .gen-family.is-bride { grid-column: 2; }
}
.gen-family { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 10px 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gf-group { display: grid; grid-template-columns: 56px minmax(0, 1fr); }
.gf-rail { display: flex; flex-direction: column; align-items: center; }
.gf-rail::after { content: ""; flex: 1; width: 2px; min-height: 6px; background: #d8c3cc; }
.gf-node { display: inline-flex; align-items: center; justify-content: center; min-width: 12px; height: 22px; margin-top: 6px; padding: 0 6px; box-sizing: border-box; border: 2px solid #d8c3cc; border-radius: 11px; background: #fff; color: var(--year); font-size: .74rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.gf-node:empty { width: 12px; height: 12px; margin-top: 11px; padding: 0; }
.gf-group.is-own .gf-node { border-color: var(--brand); color: var(--brand); }
.gf-group.is-own .gf-rail::after { background: var(--brand); }
.gf-parents { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; padding-bottom: 6px; }
.gf-missing { padding: 6px 8px; color: var(--muted); font-size: .88rem; font-style: italic; }
.gf-children { grid-column: 1 / -1; margin: 0; padding: 0 0 0 56px; list-style: none; }
.gf-children > li { position: relative; }
.gf-children > li::before, .gf-children > li::after { content: ""; position: absolute; left: -29px; box-sizing: border-box; border: 0 solid #d8c3cc; }
.gf-children > li::before { top: 0; height: 50%; width: 25px; border-width: 0 0 2px 2px; border-bottom-left-radius: 10px; }
.gf-children > li::after { top: 0; bottom: 0; border-left-width: 2px; }
.gf-children > li:last-child::after { display: none; }
.gf-children > li.is-above::before { border-left-color: var(--brand); }
.gf-children > li.is-above::after { border-left-color: var(--brand); }
.gf-children > li.is-line::before { z-index: 1; border-color: var(--brand); }
.gf-children > li.is-line::after { top: calc(50% - 10px); }
.gf-person { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; max-width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-family: var(--sans); text-align: left; cursor: pointer; }
.gf-person:hover { background: var(--tint-50); }
.gf-person:focus-visible { outline: 3px solid var(--rose-300); outline-offset: -3px; }
.gf-person.is-selected { background: var(--tint-50); box-shadow: inset 0 0 0 2px var(--brand); }
.gf-person.is-match { box-shadow: inset 0 0 0 2px #f3b6ca; }
.gf-name { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.gf-sub { color: var(--year); font-size: .85rem; line-height: 1.3; }
.gf-tag { color: var(--muted); font-size: .82rem; font-style: italic; line-height: 1.3; }
.gf-tag.is-role { padding: 1px 8px; border-radius: 9px; background: var(--tint-100); color: var(--brand); font-style: normal; font-weight: 700; }
/* person panel beside the chart; on a phone a sheet sliding up from the bottom */
.person-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
@media (max-width: 980px) { .person-panel { position: static; max-height: none; } }
.panel-close { display: none; }
@media (max-width: 720px) {
	.tree-layout .person-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 72vh; padding: 14px 20px 24px; border-width: 1px 0 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 32px rgba(42, 15, 29, .2); transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
	.tree-layout .person-panel.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
	.panel-close { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: center; float: right; width: 44px; height: 44px; margin: 0 -8px 0 8px; border: 0; border-radius: 50%; background: var(--tint-50); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
}
.person-detail .eyebrow { margin: 0 0 4px; }
.person-detail h2 { margin-bottom: 4px; font-size: 1.45rem; }
.person-life { margin: 0 0 14px; color: var(--year); font-weight: 600; }
.person-detail dl.facts { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.half-siblings { display: block; }
dd > .half-siblings:not(:first-child) { margin-top: 3px; }
.kinship { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.panel-label { margin: 0 0 8px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.panel-family { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.panel-family > .actions-row { gap: 8px; }
.panel-family > .actions-row + .panel-label { margin-top: 12px; }
.panel-family .btn span { font-size: 1.15em; line-height: 1; }
.kin-chain { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.kin-chain::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--tint-200); }
.kin-chain li { position: relative; padding-left: 26px; }
.kin-chain li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--brand); border-radius: 50%; background: #fff; }
.kin-chain li.current::before { background: var(--brand); }
.kin-chain li.current a { font-weight: 700; }
.kin-chain span { color: var(--muted); font-size: .9rem; }
.record { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.record img { border-radius: 8px; border: 1px solid var(--line); display: block; margin: 8px 0; }
.record .transcription { background: var(--tint-50); border-radius: 8px; padding: 8px 10px; font-size: .88rem; white-space: pre-wrap; }
.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.attachments figure { margin: 0; font-size: .8rem; }
.attachments img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.template-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.template-choice label { border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; display: block; }
.template-choice input { margin-right: 6px; }
.template-choice label:has(input:checked) { border-color: var(--brand); background: var(--tint-50); }
.image-preview { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px; overflow: auto; }
.image-preview svg { width: 100%; height: auto; display: block; }
.print-thumb { display: block; width: 260px; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--tint-100); }
.timeline li { padding: 0 0 14px 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--tint-300); }
.timeline li.done::before { background: var(--brand); border-color: var(--brand); }
.timeline li.current::before { border-color: var(--brand); }
/* "Rodokmen na míru": the offer of the genealogist and the conversation (Order:summary, Admin:Tree:detail); the messages of
   whoever reads the page (.message-mine) sit on the right */
.status-negotiation { background: var(--amber-bg); color: var(--amber); }
.offer-card { border-color: var(--tint-300); }
.offer-card h2 { margin-top: 4px; }
.offer-scope { font-size: 1.05rem; }
.offer-facts { margin: 0 0 18px; }
.offer-price { font-weight: 700; color: var(--brand); font-size: 1.15rem; }
.messages { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.message { max-width: min(560px, 88%); padding: 12px 16px; border-radius: 14px 14px 14px 4px; background: var(--tint-50); border: 1px solid var(--tint-200); }
.message-mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #fff; border-color: var(--tint-300); }
.message-meta { margin: 0 0 4px; font-size: .82rem; color: var(--muted); }
.message-meta strong { color: var(--ink); }
.message-event { margin: 0 0 4px; font-weight: 600; color: var(--brand-deep); }
.message-body { overflow-wrap: anywhere; }

/* Sharing with the family (Tree:share, Front:Share) */
.share-card { max-width: 780px; }
.share-card h3 { margin-top: 24px; }
.share-url { display: flex; gap: 10px; margin-bottom: 12px; }
.share-url input { flex: 1; min-width: 0; font: .9rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tint-50); }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.share-about { margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .share-url { flex-direction: column; } }

/* Blog (Front:Blog): the list of articles – the newest one wide – and an article in a column for easy reading; quotes
   from a chronicle in the serif font of the book (Model/Chronicle/chronicle.latte) */
.blog-page { padding-top: 32px; }
.blog-head { max-width: 720px; margin-bottom: 28px; }
.blog-head .lead { margin: 0; }
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.blog-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.blog-card-image { display: block; aspect-ratio: 1200 / 630; background: var(--tint-100); }
.blog-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.blog-card h2 { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.2; }
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card h2 a:hover { color: var(--brand); }
.blog-card-body > p { color: var(--text); }
.blog-card .blog-more { margin: auto 0 0; font-weight: 600; }
.blog-card .blog-more a { text-decoration: none; }
.blog-date { margin: 0 0 8px; font-size: .875rem; font-weight: 600; color: var(--muted); }
@media (min-width: 900px) {
	.blog-list > li:first-child { grid-column: 1 / -1; }
	.blog-list > li:first-child .blog-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
	.blog-list > li:first-child .blog-card-image { aspect-ratio: auto; min-height: 100%; }
	.blog-list > li:first-child .blog-card-body { justify-content: center; padding: 36px 40px; }
	.blog-list > li:first-child h2 { font-size: 2rem; }
	.blog-list > li:first-child .blog-card .blog-more { margin-top: 8px; }
}
.page-blog .site-footer { margin-top: 56px; }
.blog-article { padding-top: 32px; }
.blog-article-head { max-width: 768px; }
.blog-crumb { margin: 0 0 14px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.blog-crumb a { text-decoration: none; }
.blog-article-head h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; }
.blog-article-head .lead { max-width: none; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.55; }
.blog-cover { max-width: 768px; margin: 28px auto 8px; } /* as wide as the text below it */
.blog-cover img { display: block; width: 100%; height: auto; border-radius: 20px; }
.blog-prose { max-width: 768px; padding-top: 24px; font-size: 1.125rem; line-height: 1.7; color: var(--text); }
.blog-prose > :first-child { margin-top: 0; }
.blog-prose h2 { margin: 1.9em 0 .55em; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.blog-prose h3 { margin: 1.6em 0 .5em; font-size: 1.3125rem; }
.blog-prose p, .blog-prose ul, .blog-prose ol { margin: 0 0 1.1em; }
.blog-prose li { margin-bottom: .4em; }
.blog-prose strong { color: var(--ink); }
.blog-prose figure { margin: 2em 0; }
.blog-prose figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.blog-prose figcaption { margin-top: 10px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
/* a picture wider than the text, up to the width of the cover */
.blog-prose .blog-wide { width: min(1040px, 100vw - 48px); margin-left: 50%; transform: translateX(-50%); }
@media (max-width: 560px) { .blog-prose .blog-wide { width: calc(100vw - 36px); } }
.blog-prose blockquote { margin: 1.8em 0; padding: 22px 26px; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; background: #fbf8f1; color: #2a1a22; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.1875rem; line-height: 1.6; }
.blog-prose blockquote p:last-child { margin-bottom: 0; }
.blog-prose blockquote footer { margin-top: 10px; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
/* a box like the info box of the chronicle (a term the reader may not know) */
.blog-box { margin: 1.8em 0; padding: 20px 24px; border: 1px solid var(--tint-200); border-radius: 16px; background: var(--tint-50); font-size: 1.0625rem; }
.blog-box > :last-child { margin-bottom: 0; }
.blog-box h3 { margin: 0 0 6px; font-size: 1.125rem; color: var(--brand-deep); }
/* steps in a row, e.g. how a surname changed in the registers (one under another on phones) */
.blog-prose .blog-names { list-style: none; margin: 1.8em 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.blog-names li { position: relative; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--tint-200); border-radius: 16px; background: var(--tint-50); line-height: 1.35; }
.blog-names li + li::before { content: "→"; position: absolute; left: -7px; top: 50%; transform: translate(-50%, -50%); font-weight: 700; color: var(--rose-500); }
.blog-names .blog-names-year { display: block; font-size: .875rem; font-weight: 700; color: var(--muted); }
.blog-names strong { display: block; margin: 2px 0 6px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.75rem; font-weight: normal; line-height: 1.1; color: var(--brand); }
.blog-names li > span:last-child { display: block; font-size: .9375rem; }
@media (max-width: 640px) {
	.blog-prose .blog-names { grid-template-columns: 1fr; }
	.blog-names li + li::before { content: "↓"; left: 32px; top: -7px; }
}
/* a file to open (a sample chronicle) */
.blog-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 1.6em 0 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.blog-download p { flex: 1 1 280px; margin: 0; font-size: 1rem; line-height: 1.5; }
.blog-download strong { display: block; font-size: 1.0625rem; }
.blog-cta-wrap { margin-top: 48px; }
.blog-others { max-width: 768px; margin-top: 40px; }
.blog-others h2 { font-size: 1.3rem; }
.blog-others ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.blog-others li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.blog-others .blog-date { margin: 0; }

/* Admin */
.admin-body { background: #faf6f8; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-nav { background: var(--ink); color: #e6d6dd; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-nav img { height: 26px; width: auto; margin: 0 6px 22px; }
.admin-nav a { display: flex; justify-content: space-between; color: #e6d6dd; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .93rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav .count { background: var(--rose-500); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; font-weight: 700; }
.admin-nav hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 14px 0; }
.admin-main { padding: 28px 32px; min-width: 0; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { position: static; height: auto; } .admin-main { padding: 20px 14px; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; }
.stat strong { display: block; font: 700 1.8rem/1.1 var(--sans); letter-spacing: -.02em; color: var(--brand-deep); }
.stat span { color: var(--muted); font-size: .88rem; }
.review-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
/* minmax(0, …): a wide table scrolls in its .table-wrap instead of widening the card past a phone screen */
@media (max-width: 1100px) { .review-grid { grid-template-columns: minmax(0, 1fr); } }
/* Tree questions (Tree:questions): what can be asked, with pictograms, and the steps shown while the list is empty */
.ask-topics { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ask-topics li, .ask-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.ask-topics strong { display: block; color: var(--ink); }
.ask-icon { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--tint-100); display: grid; place-items: center; }
.ask-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ask-empty { padding: 20px 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.ask-steps { counter-reset: ask-step; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ask-steps li { counter-increment: ask-step; }
.ask-steps li::before { content: counter(ask-step); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; display: grid; place-items: center; }
.ask-steps strong { color: var(--ink); }
.ask-note { margin: 16px 0 0; }
.record .answer-label { margin: 0 0 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.prompt-log { display: flex; flex-direction: column; gap: 12px; }
.prompt-log .q { background: var(--tint-50); border-radius: 10px; padding: 10px 12px; }
.prompt-log .a { border-left: 3px solid var(--tint-300); padding: 4px 12px; white-space: pre-wrap; font-size: .92rem; }
pre.log { background: #1f1218; color: #f1dfe7; padding: 14px; border-radius: 10px; overflow: auto; max-height: 420px; font-size: .8rem; }
.pdf-frame { width: 100%; height: 780px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
/* Gift voucher to print (Front:Voucher:print), design „D2“ of the canvas „Odkaz rodu – vybrané poukazy“: DL 210 × 99 mm
   drawn in voucher pixels (794 × 374 = 210 × 99 mm at 96 dpi). --u is one of them, smaller on a narrower screen
   (without container queries the card keeps its size and is cut off); on paper A4 landscape with cut marks. */
.voucher-sheet { container-type: inline-size; position: relative; width: min(794px, 100% - 32px); margin: 32px auto 0; }
.voucher-card { --u: 1px; position: relative; aspect-ratio: 794 / 374; overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(42, 15, 29, .06), 0 12px 32px rgba(42, 15, 29, .12); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@supports (width: 1cqw) { .voucher-card { --u: calc(100cqw / 794); } }
.voucher-card p { margin: 0; }
.voucher-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.voucher-head { position: absolute; left: calc(34 * var(--u)); top: calc(30 * var(--u)); width: calc(204 * var(--u)); }
.voucher-head img { display: block; width: calc(168 * var(--u)); height: auto; }
.voucher-card .voucher-eyebrow { margin-top: calc(34 * var(--u)); font-size: calc(11.5 * var(--u)); line-height: 1.2; font-weight: 800; letter-spacing: calc(2 * var(--u)); text-transform: uppercase; color: var(--brand); }
.voucher-title { margin: calc(6 * var(--u)) 0 0; font-size: calc(40 * var(--u)); line-height: 1.02; letter-spacing: calc(-1 * var(--u)); font-weight: 800; color: var(--ink); }
.voucher-figure { position: absolute; left: calc(252 * var(--u)); top: calc(20 * var(--u)); width: calc(336 * var(--u)); height: calc(246 * var(--u)); box-sizing: border-box; margin: 0; padding: calc(12 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--tint-50); display: flex; align-items: center; justify-content: center; }
.voucher-figure > svg { display: block; flex: none; width: calc(312 * var(--u)); height: auto; margin: 0; overflow: visible; } /* Rod, Původ, the chronicle */
.voucher-bearers .voucher-figure > svg { width: calc(225 * var(--u)); } /* Příjmení at the size of its viewBox, like Rod */
.voucher-gets { position: absolute; left: calc(34 * var(--u)); top: calc(290 * var(--u)); width: calc(552 * var(--u)); }
.voucher-gets ul { list-style: none; margin: calc(8 * var(--u)) 0 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; column-gap: calc(16 * var(--u)); align-items: center; }
.voucher-gets li { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(13.5 * var(--u)); line-height: 1.3; font-weight: 700; color: var(--ink); }
.voucher-gets svg { flex: none; width: calc(30 * var(--u)); height: calc(30 * var(--u)); box-sizing: border-box; padding: calc(6 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--tint-100); fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.voucher-card .voucher-label { font-size: calc(11 * var(--u)); line-height: 1.2; font-weight: 800; letter-spacing: calc(1.6 * var(--u)); text-transform: uppercase; color: var(--muted); }
.voucher-stub { position: absolute; left: calc(600 * var(--u)); top: calc(14 * var(--u)); width: calc(172 * var(--u)); height: calc(346 * var(--u)); box-sizing: border-box; padding: calc(18 * var(--u)) calc(10 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)); display: flex; flex-direction: column; justify-content: center; }
.voucher-card .voucher-stub .voucher-label { letter-spacing: calc(1.2 * var(--u)); }
.voucher-card .voucher-stub .voucher-label ~ .voucher-label { margin-top: calc(14 * var(--u)); }
.voucher-card .voucher-stub-code { align-self: flex-start; margin-top: calc(6 * var(--u)); padding: calc(7 * var(--u)) calc(9 * var(--u)); background: var(--tint-50); border: calc(1.5 * var(--u)) dashed var(--rose-300); border-radius: calc(8 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.2; font-weight: 800; letter-spacing: calc(.4 * var(--u)); color: var(--brand-deep); white-space: nowrap; }
.voucher-card .voucher-date { margin-top: calc(3 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.2; font-weight: 700; }
.voucher-steps { list-style: none; counter-reset: voucher-step; margin: calc(6 * var(--u)) 0 0; padding: 0; display: flex; flex-direction: column; gap: calc(4 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: 1.35; }
.voucher-steps li { display: flex; gap: calc(7 * var(--u)); counter-increment: voucher-step; }
.voucher-steps li::before { content: counter(voucher-step); font-weight: 800; color: var(--brand); }
.voucher-marks { display: none; }
.voucher-actions { margin: 28px auto 48px; text-align: center; }
.voucher-actions .small { margin: 12px 0 0; }
.voucher-code { font: 700 2rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .1em; color: var(--brand-deep); background: #fff; display: inline-block; padding: 10px 20px; border-radius: 10px; border: 1px dashed var(--tint-300); }
@page tree { size: A4 landscape; margin: 10mm; }
@page voucher { size: A4 landscape; margin: 12mm; }
@media print {
	.site-header, .site-footer, .no-print, .flashes { display: none !important; }
	body { background: #fff; }
	/* the tree chart (Tree:default, Share:default) prints alone on a landscape page */
	main:has(.tree-chart) { page: tree; }
	/* the gift voucher at its real size, 210 × 99 mm, with cut marks in the corners; the whole body on that page,
	   otherwise anything before main (the skip link) leaves a blank page in the default size before it */
	body:has(.voucher-sheet) { page: voucher; }
	.voucher-sheet { width: 210mm; max-width: none; margin: 10mm auto 0; }
	.voucher-card { box-shadow: none; }
	.voucher-marks { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
	.tabs, .page-header .actions-row, .page-header .pill, .tree-layout .person-panel, .chart-more, .share-about { display: none !important; }
	.tree-layout { display: block; }
	.tree-chart { border: 0; overflow: visible; }
	.chart-scroll { overflow: visible; }
	.chart-card { box-shadow: none !important; transition: none; }
	.chart-card.is-dim { opacity: 1; }
	.chart-band, .chart-card.is-start, .cc-dot, .gen-num, .gen-family { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Request to the registry office (Front:Registry): the steps and the letter as a sheet of paper */
.registry-office { margin: 16px 0 8px; padding: 12px 16px; border-radius: 12px; background: var(--tint-100); }
.registry-steps { padding-left: 22px; }
.registry-steps li { margin-bottom: 8px; }
.registry-letter .letter { max-width: 720px; padding: 36px 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 640px) {
	.registry-letter .letter { padding: 20px 16px; font-size: 10pt; }
	.registry-letter .letter-to, .registry-letter .letter-sign { margin-left: 0; }
}
