/* Czech additions on top of hu-style.css, the Hungarian stylesheet copied as is.
   Only what the Czech site adds or changes lives here, so the Hungarian file can be re-copied. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy);
  padding: .6rem 1rem;
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: .5rem; }

/* Brand: the Hungarian mark plus a wordmark, and the line that says what the name means
   (decisions.md 23-09-2026: the name alone reads as a breakup). */
.brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}
.brand img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
}
.brand-tagline {
  color: rgba(232, 221, 200, .78);
  font-size: .75rem; /* 12px, the smallest text on the site (QA K7) */
  letter-spacing: .02em;
  white-space: nowrap;
  /* With large text it would run under the menu button (persona test P6); cut it instead. */
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand:hover .brand-name { color: var(--sand); }

/* Third hero button: quieter than the other two. */
.btn-ghost {
  border: 1px solid rgba(232, 221, 200, .4);
  background: transparent;
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(185, 151, 91, .12); color: var(--white); }

/* Hero video: the poster fills the frame; the Hungarian .hero-play button sits on top. */
.hero-visual.portrait .hero-video { background: var(--navy); }
.hero-video::cue { font-size: .95rem; }

/* Anchored sections clear the sticky nav. */
section[id] { scroll-margin-top: 72px; }

/* Place search */
.place-search { position: relative; }
.place-combo { position: relative; flex: 1 1 auto; min-width: 0; }
.place-search .quick-input { font-size: 1rem; min-height: 48px; }
.place-search button { min-height: 48px; padding: 0 1.3rem; }
.place-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  margin: 0;
  padding: .3rem;
  list-style: none;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.place-list li a {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .65rem .75rem;
  border-radius: 6px;
  color: var(--navy);
  text-decoration: none;
}
.place-list li a strong { font-weight: 700; }
.place-list li a small { color: var(--muted); font-size: .8rem; }
.place-list li.active a,
.place-list li a:hover { background: rgba(185, 151, 91, .14); }
.place-status:empty { display: none; }
.place-status { margin-top: .6rem; color: #9a3b39; font-size: .88rem; font-weight: 600; }
.place-note { margin-top: .6rem; color: var(--muted); font-size: .82rem; }
.urgent-panel { grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr); }
.urgent-panel .place-status,
.urgent-panel .place-note { grid-column: 1 / -1; margin-top: 0; }
.urgent-title { font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.urgent-sub { font-size: .92rem; margin-top: .35rem; }
.eyebrow.light { color: var(--gold); }

/* Calculator placeholder, built in the next round. */
.calc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1rem;
  border: 2px dashed rgba(185, 151, 91, .45);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  color: var(--muted);
}

.poradna-all { margin-top: 1.5rem; }
.poradna-all.center { text-align: center; }
.poradna-all a { color: var(--navy); font-weight: 700; }

/* FAQ as <details>: opens without JavaScript, one open at a time where name= is supported. */
details.acc-item { border: 1px solid var(--sand); border-radius: var(--radius); background: var(--white); }
details.acc-item > summary { list-style: none; }
details.acc-item > summary::-webkit-details-marker { display: none; }
details.acc-item[open] .acc-arrow { transform: rotate(180deg); }
details.acc-item > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* Note for funeral homes */
.funeral-homes { background: var(--white); }
.funeral-homes-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(232, 221, 200, .35);
}
.funeral-homes-box p { margin-top: .5rem; color: var(--text); }
.funeral-homes-box a { color: var(--navy); font-weight: 700; word-break: break-word; }

/* District page reached from a village search: why the visitor is here (place-list.js, QA C3). */
.place-obec-note { margin: 0 0 1.5rem; padding: .85rem 1rem; border-left: 4px solid var(--gold); border-radius: var(--radius); background: rgba(232, 221, 200, .35); color: var(--navy); font-weight: 600; }

/* 404 */
.notfound { display: flex; align-items: center; }
.notfound .btn-row { margin-top: 1.5rem; }

@media (max-width: 860px) {
  /* Room for the sticky action bar, so it never covers the footer. */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* The bar hides while the place search has focus: above the keyboard it would cover the
     suggestions (index.astro sets kb-open; QA B2). */
  html.has-bar-js .mobile-action-bar.kb-open { transform: translateY(115%); opacity: 0; visibility: hidden; }
}

/* Phone menu: opaque, so the hero text does not show through (QA K8). */
@media (max-width: 980px) {
  .nav-links.open { background: rgb(17, 24, 39); }
}

/* Footer links: 44px tall tap targets on touch screens, the text stays where it was (QA C10). */
@media (max-width: 860px), (pointer: coarse) {
  footer a, .footer-link-btn { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
  footer h3 { margin-bottom: .2rem; }
}

@media (max-width: 700px) {
  .urgent-panel { grid-template-columns: 1fr; }
  .place-search { flex-direction: column; align-items: stretch; }
  .place-search button { width: 100%; }
  .hero-cta-row .btn { width: 100%; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 1.08rem; }
}

@media (max-width: 330px) {
  .brand-tagline { display: none; }
}

/* Articles */
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.4rem; color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; line-height: 1.25; scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; color: var(--navy); font-size: 1.12rem; }
.prose p, .prose li { line-height: 1.65; }
.prose ul:not(.check-list), .prose ol { padding-left: 1.3rem; }
.prose ul:not(.check-list) li + li, .prose ol li + li { margin-top: .35rem; }
.prose a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .55rem .65rem; border-bottom: 1px solid var(--sand); text-align: left; vertical-align: top; }
.prose th { background: rgba(232, 221, 200, .4); color: var(--navy); }
.prose .zakon { margin-top: .4rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.prose .zakon::before { content: "§ "; color: var(--gold); font-weight: 700; }
.prose .pillar-callout { margin-top: 1.2rem; }
.prose .numbered-grid, .prose .steps-grid, .prose .timeline-grid { margin-top: 1.2rem; }
.summary-list li { line-height: 1.55; }
.report-error { margin-top: 1rem; font-size: .9rem; }
.report-error a { color: var(--blue); font-weight: 700; }
.related-grid a { display: flex; flex-direction: column; gap: .3rem; }
.related-grid a span { color: var(--muted); font-size: .85rem; font-weight: 400; }
.hero-meta-line a { color: inherit; text-decoration: underline; }
.pillar-faq p { margin-top: .5rem; }
.toc-details > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-details > summary::-webkit-details-marker { display: none; }
.toc-details > summary::after { content: "▼"; color: var(--gold); font-size: .7rem; transition: transform .2s; }
.toc-details[open] > summary::after { transform: rotate(180deg); }
.toc-details > a { display: block; }
@media (max-width: 980px) {
  .toc-card { display: block !important; }
  .toc-details[open] > a { padding: .45rem 0; border-top: 1px solid rgba(232, 221, 200, .6); }
}

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; max-width: 1040px; margin: 0 auto; }
.calc-form, .calc-result { border: 1px solid var(--sand); border-radius: var(--radius); background: var(--white); padding: 1.2rem; }
.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc fieldset + fieldset { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--sand); }
.calc legend { float: left; width: 100%; padding: 0; margin-bottom: .7rem; color: var(--navy); font-weight: 800; }
.calc legend + * { clear: both; }
.calc-options { display: grid; gap: .55rem; }
/* A fieldset is min-content wide by default; with large text on a 320 px phone that pushed the page
   sideways (persona test P5, 27-09-2026). */
.calc fieldset { min-width: 0; }
.calc-option span, .calc-line { overflow-wrap: break-word; }
.calc-option, .calc-check { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; border: 1px solid var(--sand); border-radius: var(--radius); cursor: pointer; }
.calc-option:has(input:checked) { border-color: var(--gold); background: rgba(185, 151, 91, .1); }
.calc-option input, .calc-check input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--navy); flex: 0 0 auto; }
.calc-option span { display: flex; flex-direction: column; gap: .15rem; }
.calc-option small, .calc-help { color: var(--muted); font-size: .84rem; }
.calc-check span { font-size: .92rem; line-height: 1.5; }
.calc-check a { color: var(--blue); }
.calc-range { display: flex; align-items: center; gap: 1rem; }
.calc-range input { flex: 1 1 auto; accent-color: var(--gold); height: 32px; }
.calc-range output { min-width: 4.5rem; color: var(--navy); font-weight: 800; text-align: right; }
.calc-help { margin-top: .4rem; }
.calc-total { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.calc-total-label { color: var(--sand); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.calc-total-value { font-family: "Playfair Display", Georgia, serif; font-size: 1.7rem; line-height: 1.2; }
.calc-total-note { color: rgba(255, 255, 255, .8); font-size: .84rem; }
.calc-total-net { margin-top: .35rem; padding-top: .5rem; border-top: 1px solid rgba(255, 255, 255, .2); color: var(--white); font-weight: 600; font-size: .95rem; }
.calc-total-net[hidden] { display: none; }
.calc-line { padding: .85rem 0; border-bottom: 1px solid var(--sand); }
.calc-line-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--navy); font-weight: 600; }
.calc-line-head strong { white-space: nowrap; }
.calc-line-basis { margin-top: .3rem; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.calc-sources { margin: .3rem 0 0; padding-left: 1rem; font-size: .8rem; }
.calc-sources a { color: var(--blue); }
.calc-more { margin-top: .9rem; font-size: .9rem; }
.calc-more summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.calc-more ul { margin-top: .5rem; padding-left: 1.1rem; color: var(--muted); }
.calc-checked { margin-top: .9rem; color: var(--muted); font-size: .8rem; }
.calc-actions { margin-top: 1rem; }
.pillar-section .calc { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-line-head { flex-direction: column; gap: .15rem; }
  .calc-actions .btn { width: 100%; }
}
/* The site and date line, only in the printout (Calculator.astro fills in the date). */
.calc-print-line { display: none; }
@media print {
  /* Print only the calculator's result. Everything else is display: none, so it takes no room and
     the printout is one page (visibility: hidden kept the boxes and printed 6 blank pages; QA B5).
     Walk down from body: hide every sibling of the branch that holds the calculator, level by level. */
  body.printing-calc > *:not(:has(.print-me)),
  body.printing-calc :has(.print-me) > *:not(:has(.print-me)):not(.print-me),
  body.printing-calc .print-me > *:not(.calc-result),
  body.printing-calc .calc-actions { display: none !important; }
  body.printing-calc, body.printing-calc :has(.print-me) { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; min-height: 0 !important; }
  body.printing-calc .print-me { display: block; max-width: none; }
  body.printing-calc .print-me .calc-result { border: 0; padding: 0; }
  body.printing-calc .calc-total { background: none; color: #000; border: 1px solid #999; }
  body.printing-calc .calc-total-label, body.printing-calc .calc-total-note, body.printing-calc .calc-total-net { color: #333; }
  body.printing-calc .calc-line { break-inside: avoid; padding: .5rem 0; }
  body.printing-calc .calc-more summary { list-style: none; }
  body.printing-calc .calc-more summary::-webkit-details-marker { display: none; }
  body.printing-calc .calc-print-line { display: block; margin-top: .8rem; color: #333; font-size: .8rem; }
}

.page-narrow { max-width: 820px; }
.hub-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.faq-more { display: inline-block; margin-top: .4rem; color: var(--blue); font-weight: 700; }
.section-sub a { color: var(--blue); text-decoration: underline; }

/* Articles, design 2 (24-09-2026): boxed sections as on the Hungarian guide pages */
.article-body > .pillar-section + .pillar-section, .article-body + .pillar-section { margin-top: 1.1rem; }
.article-body .pillar-section > * + * { margin-top: .9rem; }
.article-body .pillar-section > .eyebrow + h2 { margin-top: .5rem; }
.article-body h2 { margin-top: 0; font-size: 1.45rem; }
.article-body ul:not(.check-list) li + li { margin-top: .4rem; }
.article-body .intro-block p { font-size: 1.05rem; }
.article-body .document-list h3 { margin-top: 0; }
.article-body .doc-toggle-grid { margin-top: 1rem; }
.article-body .doc-toggle-body a, .article-body .document-list a { color: var(--blue); }
.article-body table { border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; }
.article-body th { background: var(--navy); color: var(--white); font-weight: 700; border-bottom: 0; }
.article-body tbody tr:nth-child(even) td { background: rgba(232, 221, 200, .28); }
.article-body td:last-child { font-weight: 600; color: var(--navy); }
.solution-intro .problem-list li { line-height: 1.5; }
.sources-compact details > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.sources-compact details > summary::-webkit-details-marker { display: none; }
.sources-compact-title { color: var(--navy); font-weight: 700; }
.sources-compact-title::after { content: " ▼"; color: var(--gold); font-size: .7rem; }
.sources-compact details[open] .sources-compact-title::after { content: " ▲"; }
.sources-compact .source-list { margin-top: .7rem; font-size: .88rem; }
.sources-note { margin-top: .5rem; color: var(--muted); font-size: .8rem; }
.sources-compact .report-error { margin-top: .9rem; }
/* Bullets, not tick boxes: a tick reads as "done" or "good", wrong on this subject (Dominik, 24-09-2026). */
.article-body .check-list li, .prose .check-list li { font-size: .98rem; padding-left: 1.3rem; }
.article-body .check-list li::before, .prose .check-list li::before { top: .8rem; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); }
.article-body ul:not(.check-list):not(.problem-list) { padding-left: 0; list-style: none; }
.article-body ul:not(.check-list):not(.problem-list) > li { position: relative; padding-left: 1.2rem; }
.article-body ul:not(.check-list):not(.problem-list) > li::before { content: ""; position: absolute; left: 0; top: .7rem; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); }

/* Tables sit in a wrapper that scrolls; the table itself stays full width. Every column wraps: a
   nowrap on the last column squeezed the others and ran prose off the edge (QA B3). */
.article-body .table-wrap { overflow-x: auto; border: 1px solid var(--sand); border-radius: var(--radius); }
.article-body .table-hint { margin-bottom: .35rem; color: var(--muted); font-size: .84rem; }
.article-body .table-hint:not([hidden]) + .table-wrap { margin-top: 0; }
.article-body .table-wrap table { display: table; width: 100%; border: 0; border-radius: 0; margin: 0; }

/* Desktop: the contents list scrolls on its own when it is taller than the window. */
@media (min-width: 981px) {
  .toc-card { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
}

/* Consent banner (assets/consent.js). The Hungarian #cookieBanner, made smaller on phones so it
   covers as little as possible, with both buttons the same size: saying no is as easy as yes. */
#cookieBanner[hidden] { display: none; }
#cookieBanner .cb-text { font-size: .88rem; }
#cookieBanner .cb-accept,
#cookieBanner .cb-decline { min-height: 44px; min-width: 8.5rem; font: inherit; font-weight: 800; }
#cookieBanner .cb-decline { border-color: rgba(255, 255, 255, .55); }
#cookieBanner button:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
@media (max-width: 700px) {
  #cookieBanner {
    display: block;
    right: .5rem;
    bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
    left: .5rem;
    padding: .75rem .85rem;
  }
  #cookieBanner .cb-text { font-size: .8rem; line-height: 1.45; }
  #cookieBanner .cb-btns { flex-wrap: nowrap; margin-top: .6rem; }
  #cookieBanner .cb-accept,
  #cookieBanner .cb-decline { flex: 1 1 0; min-width: 0; padding: .55rem .5rem; }
}
@media print { #cookieBanner { display: none !important; } }

/* "Nastavení cookies" in the footer: a button that looks like the footer links. */
.footer-link-btn {
  display: block;
  border: 0;
  background: none;
  padding: 0;
  margin-bottom: .32rem;
  color: var(--white);
  font: inherit;
  font-size: .88rem;
  text-align: left;
  cursor: pointer;
}
.footer-link-btn:hover { text-decoration: underline; }

/* Consent banner: refusing must look as easy as accepting (ÚOOU on cookies; wiki
   product/legal-review.md). Both buttons get the same weight; only the fill differs slightly. */
.cb-decline { border-color: var(--gold); background: rgba(185, 151, 91, .18); }

/* Small phones with large text (320 px at 150 %, persona test P5, 27-09-2026): nested boxes each
   kept their padding and left the calculator 150 px wide, so it pushed the page sideways. Thinner
   padding there, and a long word in a heading wraps instead of overflowing. */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 350px) {
  .pillar-section { padding-left: .85rem; padding-right: .85rem; }
  .calc-form, .calc-result { padding: .9rem .7rem; }
  .calc-option, .calc-check { padding: .65rem .6rem; gap: .5rem; }
}

/* Printing a town list, a firm page or an article (persona test P7, 27-09-2026): no site header
   (Chromium printed the sticky header over the text), no menu, search, footer or phone bar, and
   text in black, since the hero's white-on-navy loses its background on paper. */
@media print {
  .nav, .skip-link, footer, #hledat, .mobile-action-bar, .sticky-mobile-cta, .toc-card, .hero-video-wrap,
  .company-report, .place-order-note, .breadcrumbs { display: none !important; }
  body { background: #fff !important; color: #000; }
  .partner-profile-hero, .hero, .section-alt { background: none !important; color: #000 !important; padding: 0 0 .6rem !important; min-height: 0 !important; }
  .partner-profile-hero *, .hero *, h1, h2, h3, .calc-total, .calc-total * { color: #000 !important; }
  .calc-total { background: none !important; border: 1px solid #999; }
  a[href^="tel:"] { text-decoration: none; }
  .company-branch-list > *, .partner-profile-section { break-inside: avoid; }
}
.tel-link { white-space: nowrap; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.company-branch-km { margin-top: -.2rem; color: var(--navy); font-size: .9rem; font-weight: 700; }
