/* CERT adapter: central site.css owns the brand. This sheet contains only
   scoped layout, verification states, document layout and minimal fallback. */
:where(.cert-app) { margin: 0; color: var(--mh-ink, #08233e); background: var(--mh-background, #edf5fa); font: 1rem/1.65 var(--mh-sans, system-ui, sans-serif); color-scheme: light; }
:where(.cert-app *) { box-sizing: border-box; }
:where(.cert-app .mh-shell) { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
:where(.cert-app .mh-section) { padding-block: 48px; }
:where(.cert-app a) { color: var(--mh-blue, #076a9f); text-underline-offset: .2em; }
:where(.cert-app img) { max-width: 100%; }
:where(.cert-app .mh-card) { padding: 24px; border: 1px solid var(--mh-border, #c9d5df); border-radius: var(--mh-radius, 20px); background: var(--mh-white, white); }
:where(.cert-app .mh-button) { display: inline-flex; padding: 12px 20px; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--mh-border, #c9d5df); border-radius: 999px; font: inherit; text-decoration: none; }
:where(.cert-app .mh-button-primary) { color: white; background: var(--mh-blue, #076a9f); }
.cert-app :is(a, button, input, select, summary, .cert-table):focus-visible { outline: 3px solid var(--mh-blue, #076a9f); outline-offset: 4px; }
.cert-app .cert-skip { position: absolute; left: 24px; top: -100px; z-index: 10; padding: 12px 20px; color: white; background: var(--mh-ink, #08233e); }
.cert-app .cert-skip:focus { top: 12px; }
.cert-app .top, .cert-app footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 22px max(24px, calc((100% - var(--mh-shell, 1160px)) / 2)); background: var(--mh-white, white); border-block-end: 1px solid var(--mh-border, #c9d5df); }
.cert-app .brand { display: flex; align-items: center; gap: 12px; color: var(--mh-ink, #08233e); font-size: 22px; font-weight: 750; line-height: 1.2; text-decoration: none; }
.cert-app .brand img { width: 44px; height: 44px; flex: none; }
.cert-app .brand small { display: block; margin-top: 5px; color: var(--mh-muted, #52697d); font-size: 14px; font-weight: 500; }
.cert-app nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cert-app nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.cert-app .cert-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: center; gap: 48px; }
.cert-app .hero h1 { margin: 0 0 24px; font-size: clamp(2.4rem, 4.5vw, 3.7rem); font-weight: 720; line-height: 1.08; letter-spacing: -.045em; }
.cert-app .privacy, .cert-app .small, .cert-app .hint { color: var(--mh-muted, #52697d); font-size: 14px; line-height: 1.65; }
.cert-app .status-card h2 { font-family: inherit; font-size: 26px; line-height: 1.25; }
.cert-app .status-card h2::after { display: none; }
.cert-app .status-card .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cert-app .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--mh-border, #c9d5df); border-radius: 999px; font-size: 14px; }
.cert-app .badge.good::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #267247; }
.cert-app .badge.warning { color: #704b06; background: #fff2d7; }
.cert-app .workspace { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 48px; }
.cert-app .section-intro p, .cert-app .steps { color: var(--mh-text, #3d5d75); }
.cert-app .steps { padding-left: 22px; }
.cert-app .steps li { padding-block: 8px; }
.cert-app form { padding: 30px; border: 1px solid var(--mh-border, #c9d5df); border-radius: var(--mh-radius, 20px); background: var(--mh-white, white); box-shadow: var(--mh-shadow, none); }
.cert-app .form-heading, .cert-app .section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.cert-app .form-heading h3 { margin: 0; }
.cert-app .pill { padding: 5px 10px; border-radius: 6px; background: var(--mh-background, #edf5fa); font-size: 13px; }
.cert-app label { display: block; margin-bottom: 20px; color: var(--mh-ink, #08233e); font-size: 16px; font-weight: 650; }
.cert-app .hint { display: block; margin-top: 5px; font-weight: 400; }
.cert-app input, .cert-app select { display: block; width: 100%; min-width: 0; min-height: 48px; margin-top: 8px; padding: 11px; border: 1px solid var(--mh-border-strong, #7d91a2); border-radius: 7px; color: var(--mh-ink, #08233e); background: var(--mh-white, white); font: 400 16px/1.4 var(--mh-sans, system-ui, sans-serif); }
.cert-app input::placeholder { color: #52697d; opacity: 1; }
.cert-app button { font-family: inherit; cursor: pointer; }
.cert-app button:disabled { opacity: .65; cursor: wait; }
.cert-app .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.cert-app #pin-field { margin-bottom: 24px; padding-left: 16px; border-left: 3px solid var(--mh-blue, #076a9f); }
.cert-app [hidden] { display: none !important; }
.cert-app #result { padding: 18px; border: 1px solid var(--mh-border, #c9d5df); border-left: 4px solid var(--mh-blue, #076a9f); border-radius: 8px; background: var(--mh-white, white); overflow-wrap: anywhere; }
.cert-app #result[data-state=invalid] { color: #773d2f; border-color: #b96650; background: #fcf0eb; }
.cert-app #result[data-state=valid] { color: #205238; border-color: #4d865d; background: #e8f5e9; }
.cert-app .key-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 28px; }
.cert-app .key { min-width: 0; }
.cert-app .key p { font-size: 15px; }
.cert-app code, .cert-app pre { font-family: ui-monospace, monospace; font-size: .85em; overflow-wrap: anywhere; }
.cert-app code { word-break: break-word; }
.cert-app pre { padding: 18px; overflow-x: auto; border: 1px solid var(--mh-border, #c9d5df); background: var(--mh-surface, #f7fbfd); border-radius: 8px; }
.cert-app details { padding: 20px; border: 1px solid var(--mh-border, #c9d5df); border-radius: 12px; background: var(--mh-surface, #f7fbfd); }
.cert-app summary { cursor: pointer; font-weight: 650; }
.cert-app .explanation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 32px; }
.cert-app .explanation p { color: var(--mh-text, #3d5d75); font-size: 16px; }
.cert-app .note { padding-block: 24px 40px; }
.cert-app footer { align-items: flex-start; border-top: 1px solid var(--mh-border, #c9d5df); }
/* Reading layout for the handbook and generated technical manuals. */
.cert-app .cert-reading { max-width: 880px; margin-inline: auto; padding: 48px 24px; }
.cert-app .cert-reading h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; }
.cert-app .cert-reading h2 { margin-top: 56px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cert-app .cert-reading h3 { margin-top: 32px; }
.cert-app .cert-toc { display: block; padding: 20px 24px; margin-block: 28px; border: 1px solid var(--mh-border, #c9d5df); border-radius: var(--mh-radius, 20px); background: var(--mh-white, white); }
.cert-app .cert-toc ol { margin-bottom: 0; padding-left: 22px; }
.cert-app .cert-table { max-width: 100%; overflow-x: auto; }
.cert-app .cert-reading li { margin-block: 10px; }
.cert-app .cert-reading table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cert-app .cert-table table { min-width: 560px; }
.cert-app .cert-reading :is(th, td) { padding: 12px; border-bottom: 1px solid var(--mh-border, #c9d5df); text-align: left; overflow-wrap: anywhere; }
.cert-app .cert-doc-meta { padding: 16px 20px; border-left: 3px solid var(--mh-blue, #076a9f); background: var(--mh-white, white); font-size: 14px; }
@media (max-width: 850px) {
  .cert-app .cert-hero-grid, .cert-app .workspace { grid-template-columns: 1fr; gap: 28px; }
  .cert-app .hero h1 br { display: none; }
  .cert-app .explanation { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .cert-app .key-grid, .cert-app .grid { grid-template-columns: 1fr; }
  .cert-app form { padding: 20px; }
  .cert-app .mh-actions { align-items: stretch; }
  .cert-app .mh-actions > * { width: 100%; }
  .cert-app .brand { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cert-app *, .cert-app *::before, .cert-app *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .cert-app { background: white; font-size: 11pt; }
  .cert-app :is(.cert-skip, nav, .mh-actions) { display: none; }
  .cert-app .top, .cert-app footer { padding: 12px 0; background: white; }
  .cert-app .cert-reading { max-width: none; padding: 0; }
  .cert-app :is(h1, h2, h3) { break-after: avoid; }
  .cert-app :is(pre, tr, .cert-doc-meta) { break-inside: avoid; }
  .cert-app pre { white-space: pre-wrap; }
  .cert-app a { color: black; }
  @page { size: A4; margin: 18mm; }
}

/* Publisher job summary stays readable on narrow screens. */
.cert-app #job-status{overflow-wrap:anywhere}
.cert-app .job-import{margin-block-end:1rem;padding-block-end:1rem;border-block-end:1px solid #dce7ee}

/* Accessible compact navigation and legible Czech copy. No cryptographic UI logic changes. */
.cert-app .top { position: relative; z-index: 4; }
.cert-app .top > .cert-desktop-nav a { color: var(--mh-ink, #08233e); text-decoration: none; font-weight: 550; }
.cert-app .top > .cert-desktop-nav a:hover { color: var(--mh-blue, #076a9f); text-decoration: underline; }
.cert-app .cert-mobile-menu { display: none; }
.cert-app :is(h1, h2, h3) { text-wrap: balance; hyphens: manual; word-break: normal; }
.cert-app :is(p, li) { text-wrap: pretty; }
.cert-app .hero .mh-actions + .privacy { margin-block: 18px 0; padding-inline: 3px; line-height: 1.55; }
.cert-app form + #result { margin-block: 18px 0; }

@media (max-width: 850px) {
  .cert-app .top { flex-wrap: nowrap; gap: 12px; padding: 14px 16px; }
  .cert-app .top > .cert-desktop-nav { display: none; }
  .cert-app .brand { min-width: 0; gap: 8px; font-size: 18px; }
  .cert-app .brand img { width: 40px; height: 40px; }
  .cert-app .brand small { font-size: 11px; line-height: 1.3; }
  .cert-app .cert-mobile-menu { display: block; flex: none; margin-left: auto; border: 0; padding: 0; background: none; }
  .cert-app .cert-mobile-menu > summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--mh-border, #c9d5df); border-radius: 10px; color: var(--mh-ink, #08233e); background: var(--mh-white, #fff); cursor: pointer; list-style: none; font: 600 14px/1.2 var(--mh-sans, system-ui, sans-serif); }
  .cert-app .cert-mobile-menu > summary::-webkit-details-marker { display: none; }
  .cert-app .cert-mobile-menu > summary::before { content: "☰"; font-size: 19px; line-height: 1; margin-right: 8px; }
  .cert-app .cert-mobile-menu[open] > summary { border-color: var(--mh-blue, #076a9f); }
  .cert-app .cert-mobile-menu > nav { display: grid; position: absolute; top: calc(100% - 1px); right: 16px; left: 16px; z-index: 5; gap: 0; padding: 8px; border: 1px solid var(--mh-border, #c9d5df); border-radius: 12px; background: var(--mh-white, #fff); box-shadow: 0 12px 32px rgba(8,35,62,.16); }
  .cert-app .cert-mobile-menu nav a { min-height: 48px; padding: 10px 12px; border-radius: 6px; color: var(--mh-ink, #08233e); text-decoration: none; }
  .cert-app .cert-mobile-menu nav a + a { border-top: 1px solid var(--mh-border, #c9d5df); }
  .cert-app .cert-mobile-menu nav a:hover, .cert-app .cert-mobile-menu nav a:focus-visible { background: var(--mh-background, #edf5fa); }
  .cert-app .hero h1 { max-width: 18ch; font-size: clamp(2rem, 8vw, 3.3rem); line-height: 1.13; letter-spacing: -.035em; }
  .cert-app .mh-section h2 { font-size: clamp(2rem, 7.5vw, 3rem); line-height: 1.15; }
}
@media print { .cert-app .cert-mobile-menu { display: none !important; } }




/* UI refinement, 2026-10-18: clear navigation and consistent breathing room.
   Public visual styles only; no changes to CERT verification/trust logic. */
.cert-app .top > .cert-desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, .8vw, 14px);
}
.cert-app .top > .cert-desktop-nav a {
  padding: 8px clamp(10px, 1vw, 14px);
  border-radius: 10px;
  color: var(--mh-ink, #08233e);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.cert-app .top > .cert-desktop-nav a:hover {
  color: var(--mh-blue, #076a9f);
  background: var(--mh-background, #edf5fa);
  text-decoration: none;
}
.cert-app .top > .cert-desktop-nav a:focus-visible {
  background: var(--mh-background, #edf5fa);
}
.cert-app .hero .mh-actions + .privacy {
  display: block;
  margin-block: 28px 0;
  padding-inline: 0;
  max-width: 60ch;
}
.cert-app .job-import {
  margin-block-end: 26px;
  padding-block-end: 24px;
}
.cert-app #job-status {
  margin-block: 14px 18px;
  line-height: 1.65;
}
.cert-app form + #result {
  margin-block: 30px 0;
  padding: 20px 22px;
  line-height: 1.65;
}
.cert-app #verification-method:not(:empty) {
  margin-block: 14px 0;
}
.cert-app #verification-method:empty {
  display: none;
}
@media (max-width: 850px) {
  .cert-app .top > .cert-desktop-nav { display: none; }
  .cert-app .hero .mh-actions + .privacy { margin-block-start: 24px; }
  .cert-app form + #result { margin-block-start: 26px; }
}
@media (max-width: 480px) {
  .cert-app .top { gap: 14px; }
  .cert-app .cert-mobile-menu > summary {
    min-width: 88px;
    padding-inline: 12px;
  }
  .cert-app form + #result { padding: 18px; }
}
