/* ORGANIZATIONS layout adapter. Brand tokens and mh-* components come from
   https://miloslavhub.cz/wp-content/uploads/miloslavhub/site.css.
   Keep selectors scoped; do not duplicate the central design system. */

/* Basic readable document also works if the central resource is unavailable. */
body.org-site { margin: 0; font-family: var(--mh-sans, system-ui, sans-serif); line-height: 1.7; }
.org-site { overflow-wrap: anywhere; }
.org-site .org-header { border-bottom: 1px solid var(--mh-border, #ccd4dc); background: var(--mh-white, white); }
.org-site .org-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.org-site .org-brand { display: flex; align-items: center; gap: 14px; color: var(--mh-ink, #08233e); text-decoration: none; font-size: 23px; font-weight: 720; line-height: 1.2; }
.org-site .org-brand img { flex: none; width: 44px; height: 44px; }
.org-site .org-brand small { display: block; margin-top: 5px; font-size: 11px; letter-spacing: .12em; }
.org-site .org-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.org-site .org-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; font-weight: 650; }
.org-site .org-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.org-site a:focus-visible, .org-site [tabindex="0"]:focus-visible { outline: 3px solid var(--mh-blue, #076a9f); outline-offset: 4px; }
.org-site .org-skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 18px; background: white; color: #08233e; }
.org-site .org-skip:focus { top: 12px; }
.org-site .org-caption { margin-top: 20px; margin-bottom: 0; color: var(--mh-muted, #52697d); font-size: 14px; line-height: 1.6; }
.org-site .org-context { align-self: center; }
.org-site .org-context .org-context-title { font-family: var(--mh-sans, system-ui, sans-serif); font-size: 25px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.org-site .org-context .org-context-title:after { display: none; }
.org-site .org-roles { margin: 22px 0 0; padding: 0; list-style: none; }
.org-site .org-roles li { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-top: 1px solid var(--mh-border, #ccd4dc); }
.org-site .org-roles li > span { color: var(--mh-blue, #076a9f); font-size: 13px; font-weight: 700; }
.org-site .org-roles strong { display: block; font-size: 17px; }
.org-site .org-roles small { display: block; color: var(--mh-muted, #52697d); font-size: 13px; }
.org-site .org-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.org-site .org-status-label { display: inline-block; padding: 5px 13px; border: 1px solid var(--mh-border, #ccd4dc); border-radius: 999px; color: var(--mh-ink, #08233e); background: var(--mh-warm-light, #faf7f1); font-size: 15px; font-weight: 700; }
.org-site .org-facts { margin-bottom: 0; }
.org-site .org-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding-block: 14px; border-bottom: 1px solid var(--mh-border, #ccd4dc); font-size: 16px; }
.org-site .org-facts dt { color: var(--mh-text, #3d5d75); }
.org-site .org-facts dd { margin: 0; font-weight: 650; }
.org-site .org-contact { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.org-site .org-contact > div { max-width: 620px; }
.org-site .org-contact .mh-button { flex-shrink: 0; max-width: 100%; }
.org-site .org-footer { padding-block: 28px; color: var(--mh-white, white); background: var(--mh-ink, #08233e); font-size: 13px; }
.org-site .org-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.org-site .org-footer p { margin: 0; }
.org-site .org-footer a:focus-visible { outline-color: white; }

/* Handbook navigation, reading measure and print. No WordPress theme dependency. */
.org-site .org-manual { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.org-site .org-contents { position: sticky; top: 24px; align-self: start; }
.org-site .org-contents h2 { font-size: 28px; }
.org-site .org-contents ol { padding-left: 22px; margin-bottom: 0; }
.org-site .org-contents a { display: inline-block; padding-block: 7px; font-size: 16px; }
.org-site .org-reading { max-width: var(--mh-reading-width, 780px); }
.org-site .org-reading section + section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--mh-border, #ccd4dc); }
.org-site .org-reading h2 { font-size: clamp(2rem, 3vw, 2.7rem); }
.org-site .org-reading h3 { font-size: 21px; }
.org-site .org-reading li + li { margin-top: 10px; }
.org-site .org-reading code { font-size: .9em; }
.org-site .org-table-wrap { overflow-x: auto; }
.org-site table { width: 100%; border-collapse: collapse; font-size: 16px; text-align: left; }
.org-site caption { margin-bottom: 12px; text-align: left; font-weight: 650; }
.org-site th, .org-site td { padding: 14px 12px; border-bottom: 1px solid var(--mh-border, #ccd4dc); vertical-align: top; }
.org-site th { color: var(--mh-ink, #08233e); }

@media (max-width: 1024px) {
  .org-site .org-header-inner, .org-site .org-contact { flex-wrap: wrap; }
  .org-site .org-manual { grid-template-columns: 1fr; gap: 32px; }
  .org-site .org-contents { position: static; }
  .org-site .org-contents ol { display: flex; flex-wrap: wrap; gap: 4px 30px; }
}
@media (max-width: 760px) {
  .org-site .org-header-inner { gap: 10px; }
  .org-site .org-nav { width: 100%; gap: 4px 16px; }
  .org-site .org-two-column { grid-template-columns: 1fr; gap: 24px; }
  .org-site .org-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .org-site .org-contact .mh-button { font-size: 15px; }
}
@media print {
  @page { margin: 18mm; }
  body.org-site { color: #111; background: white; font-size: 11pt; }
  .org-site .org-nav, .org-site .org-contents, .org-site .org-skip { display: none; }
  .org-site .org-manual { display: block; }
  .org-site .mh-shell { width: 100%; }
  .org-site .mh-hero, .org-site .mh-section, .org-site .org-footer { padding-block: 18px; background: white; color: #111; }
  .org-site .org-reading { max-width: none; }
  .org-site h2, .org-site h3 { break-after: avoid; }
  .org-site tr, .org-site .mh-card { break-inside: avoid; }
  .org-site a { color: #111; }
  .org-site .org-footer { border-top: 1px solid #bbb; }
}
