/* Ostroh.info: standalone overrides; Source's compiled CSS remains unchanged. */
:root { --ostroh-ink: #202322; --ostroh-muted: #68706c; --ostroh-line: #dfe5e1; --ostroh-accent: #2a6552; }
body { color: var(--ostroh-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #427d68; outline-offset: 4px; border-radius: 3px; }
.ostroh-header.gh-navigation { padding: 0 max(24px, calc((100vw - 1200px) / 2)); border-bottom: 1px solid var(--ostroh-line); background: #fff; color: var(--ostroh-ink); }
/* Source fixes its mobile header at 64px; our logo and menu occupy two rows. */
#gh-navigation.ostroh-header { height: auto; }
.ostroh-header-top { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ostroh-header .gh-navigation-logo { display: inline-flex; flex-shrink: 0; }
.ostroh-header .gh-navigation-logo img { width: 164px; height: 88px; object-fit: contain; }
.ostroh-header-tools { display: flex; align-items: center; gap: 24px; }
.ostroh-social { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; font-weight: 600; }
.ostroh-social a { color: var(--ostroh-muted); text-decoration: none; }
.ostroh-social a:hover { color: var(--ostroh-accent); text-decoration: underline; }
.ostroh-header .gh-search { display: inline-flex !important; width: 42px; height: 42px; border: 1px solid var(--ostroh-line); border-radius: 50%; }
.ostroh-menu-shell { position: relative; }
.ostroh-menu-shell > summary { display: none; }
.ostroh-menu, .ostroh-menu ul, .ostroh-category-tree, .ostroh-category-tree ul, .ostroh-sidebar-links { padding: 0; margin: 0; list-style: none; }
.ostroh-menu { display: flex; gap: 28px; font-size: 15px; line-height: 1.5; font-weight: 600; }
.ostroh-menu > li { position: relative; }
.ostroh-menu > li > a, .ostroh-menu > li > details > summary { display: block; padding: 15px 0 17px; }
.ostroh-menu summary { cursor: pointer; list-style: none; }
.ostroh-menu summary::-webkit-details-marker { display: none; }
.ostroh-menu summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 2px 3px 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.ostroh-menu details[open] > summary::after { transform: rotate(225deg); margin-bottom: 0; }
.ostroh-menu a { text-decoration: none; }
.ostroh-menu a:hover { color: var(--ostroh-accent); text-decoration: underline; }
.ostroh-menu > li > details > .ostroh-submenu { position: absolute; top: 100%; left: 0; z-index: 50; width: min(320px, calc(100vw - 40px)); max-height: min(65vh, 560px); overflow-y: auto; padding: 12px; background: #fff; border: 1px solid var(--ostroh-line); border-radius: 0 0 8px 8px; box-shadow: 0 10px 24px #182d2512; }
.ostroh-menu .ostroh-submenu { font-size: 14px; line-height: 1.5; font-weight: 400; }
.ostroh-submenu li { margin: 2px 0 0; }
.ostroh-submenu a, .ostroh-submenu summary { display: block; padding: 8px 10px; border-radius: 4px; }
.ostroh-submenu a:hover, .ostroh-submenu summary:hover { background: #f3f6f3; text-decoration: none; }
.ostroh-submenu summary { font-weight: 600; }
.ostroh-submenu .ostroh-submenu { padding: 2px 0 2px 10px; border-left: 2px solid var(--ostroh-line); margin: 2px 0 8px 10px; }
.ostroh-submenu .ostroh-submenu-overview { color: var(--ostroh-muted); font-size: 13px; font-weight: 500; }
.ostroh-story-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(320px, 340px); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 32px 24px 0; align-items: start; }
.ostroh-story-layout .gh-main { min-width: 0; }
.ostroh-story-layout .gh-article { padding: 0; }
.ostroh-story-layout .gh-canvas { display: block; max-width: 100%; }
.ostroh-story-layout .gh-article-header { padding: 0; margin: 0 0 30px; }
.gh-article-title { font-size: clamp(30px, 3.5vw, 42px); line-height: 1.16; letter-spacing: -.025em; font-weight: 700; overflow-wrap: break-word; }
.gh-article-excerpt { font-size: 19px; line-height: 1.55; color: #58615b; }
.gh-article-meta { font-size: 13px; }
.gh-article-author-name { font-size: 14px; }
.ostroh-story-layout .gh-feature-image { margin: 28px 0 0; }
.ostroh-story-layout .gh-feature-image img { width: 100%; height: auto; border-radius: 4px; }
.ostroh-story-layout .gh-content { padding: 0; font-size: 18px; line-height: 1.75; }
.ostroh-story-sidebar { min-width: 0; padding-top: 5px; }
.ostroh-sidebar-section { margin: 0 0 30px; padding-bottom: 28px; border-bottom: 1px solid var(--ostroh-line); }
.ostroh-sidebar-heading { font-size: 17px; line-height: 1.4; margin: 0 0 14px; font-weight: 700; letter-spacing: -.01em; }
.ostroh-sidebar-links { display: grid; gap: 11px; font-size: 14px; line-height: 1.5; }
.ostroh-sidebar-links a { text-decoration: none; }
.ostroh-sidebar-links a:hover { text-decoration: underline; color: var(--ostroh-accent); }
.ostroh-category-disclosure > summary { cursor: pointer; font-size: 14px; font-weight: 600; margin-top: 18px; }
.ostroh-category-tree { margin-top: 12px; font-size: 13px; line-height: 1.55; max-height: 360px; overflow-y: auto; }
.ostroh-category-tree li { margin-top: 8px; }
.ostroh-category-tree ul { padding-left: 14px; border-left: 1px solid var(--ostroh-line); margin: 5px 0 8px 2px; }
.ostroh-category-tree a { text-decoration: none; }
.ostroh-category-tree a:hover { text-decoration: underline; }
.ostroh-telegram { min-width: 0; }
.ostroh-telegram iframe { width: 100% !important; min-width: 0 !important; max-width: 100%; }
.ostroh-channel-link { display: block; font-size: 13px; font-weight: 600; color: var(--ostroh-accent); margin-top: 12px; }
.ostroh-telegram-fallback { font-size: 14px; line-height: 1.6; color: var(--ostroh-muted); }
.ostroh-ad-preview { display: grid; align-content: center; gap: 8px; min-height: 160px; padding: 22px; margin: 20px 0; border: 1px dashed #cbd4ce; border-radius: 4px; background: #f6f8f6; text-align: center; color: var(--ostroh-muted); }
.ostroh-ad-preview[hidden] { display: none; }
.ostroh-ad-preview span { text-transform: uppercase; letter-spacing: .11em; font-size: 10px; }
.ostroh-ad-preview p { margin: 0; font-size: 12px; line-height: 1.6; }
.ostroh-footer.gh-footer { margin-top: 64px; padding: 28px 24px; border-top: 1px solid var(--ostroh-line); background: #f6f8f6; }
.ostroh-footer-inner { max-width: 1152px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ostroh-footer-brand { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ostroh-muted); }
.ostroh-footer-brand img { width: 38px; height: 38px; object-fit: contain; }
.gh-container.has-sidebar .gh-sidebar { padding-top: 0; }
.gh-container { margin-top: 0; padding-top: 32px; }
.gh-container-title { font-size: 22px; letter-spacing: -.02em; }
.gh-card-title { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.25; }
.gh-container.is-list .gh-card-title { font-size: clamp(20px, 2vw, 26px); line-height: 1.28; }
@media (min-width: 1200px) {
    .gh-container.has-sidebar .gh-container-inner { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 40px; }
    .gh-container.has-sidebar .gh-main { grid-column: 1; min-width: 0; }
    .gh-container.has-sidebar .gh-sidebar { grid-column: 2; min-width: 0; }
    .gh-container.has-sidebar .gh-main::after { right: -20px; }
}
.ostroh-archive-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; font-size: 14px; }
.ostroh-archive-pagination a { padding: 10px 14px; border: 1px solid var(--ostroh-line); border-radius: 4px; text-decoration: none; }
.ostroh-archive-pagination a:hover { background: #f3f6f3; }
.gh-archive { padding-top: 42px; }
.gh-archive .gh-article-title { font-size: 36px; }
.ostroh-category-header { padding-inline: 24px; margin-bottom: 0; }
.ostroh-empty-category { padding: 24px 24px 0; font-size: 16px; line-height: 1.6; color: var(--ostroh-muted); }

/* Migrated HTML lives below a wrapper, outside Source's direct-child rules. */
.gh-content [data-wp-trial-body] { min-width: 0; font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.gh-content [data-wp-trial-body] p { font-size: inherit !important; line-height: inherit !important; margin: 0 0 1.15em !important; }
.gh-content [data-wp-trial-body] span { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }
.gh-content [data-wp-trial-body] :is(h1, h2, h3, h4, h5, h6) { font-family: inherit; line-height: 1.3; font-weight: 700; margin: 1.6em 0 .65em; letter-spacing: -.015em; }
.gh-content [data-wp-trial-body] :is(h1, h2) { font-size: 27px; }
.gh-content [data-wp-trial-body] h3 { font-size: 23px; }
.gh-content [data-wp-trial-body] :is(h4, h5, h6) { font-size: 20px; }
.gh-content [data-wp-trial-body] :is(ul, ol) { margin: .5em 0 1.2em; padding-left: 1.4em; }
.gh-content [data-wp-trial-body] li { margin: .35em 0; }
.gh-content [data-wp-trial-body] blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ostroh-accent); font-size: 1.05em; font-style: normal; color: #435348; }
.gh-content [data-wp-trial-body] blockquote p:last-child { margin-bottom: 0 !important; }
.gh-content [data-wp-trial-body] a { color: var(--ostroh-accent); text-decoration: underline; text-underline-offset: 3px; }
.gh-content [data-wp-trial-body] :is(img, video, iframe) { max-width: 100%; }
.gh-content [data-wp-trial-body] img { height: auto; }
.gh-content [data-wp-trial-body] figure { max-width: 100%; margin: 1.4em 0; }
.gh-content [data-wp-trial-body] :is(figcaption, .wp-caption-text, .gallery-caption) { margin-top: 9px; font-size: 13px !important; line-height: 1.5 !important; color: var(--ostroh-muted); text-align: left; }
.gh-content [data-wp-trial-body] .wp-caption { max-width: 100% !important; margin: 1.4em 0; }
.gh-content [data-wp-trial-body] .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; margin: 1.4em 0; }
.gh-content [data-wp-trial-body] .gallery-item { width: auto !important; margin: 0 !important; float: none !important; }
.gh-content [data-wp-trial-body] .gallery br { display: none; }
.gh-content [data-wp-trial-body] table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; margin: 0; }
.gh-content [data-wp-trial-body] :is(th, td) { padding: 11px 13px; border: 1px solid #d7ded9; vertical-align: top; }
.gh-content [data-wp-trial-body] th { font-weight: 650; background: #f3f6f3; }
.ostroh-table-scroll { overflow-x: auto; margin: 1.4em 0; max-width: 100%; }
.gh-content [data-wp-trial-body] :is(pre, code) { font-size: .85em; }
.gh-content [data-wp-trial-body] pre { overflow-x: auto; padding: 16px; background: #f3f6f3; margin: 1.2em 0; }
@media (max-width: 1023px) {
    .ostroh-story-layout { grid-template-columns: minmax(0, 1fr); max-width: 800px; gap: 40px; }
    .ostroh-story-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .ostroh-story-sidebar .ostroh-ad-preview { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .ostroh-header.gh-navigation { padding: 0 20px; }
    .ostroh-header-top { min-height: 84px; gap: 16px; }
    .ostroh-header .gh-navigation-logo img { width: 126px; height: 68px; }
    .ostroh-header-tools { gap: 10px; }
    .ostroh-header-tools .ostroh-social { display: none; }
    .ostroh-menu-shell > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 14px; font-weight: 650; padding: 12px 0; border-top: 1px solid var(--ostroh-line); }
    .ostroh-menu-shell > summary::after { content: "+"; font-size: 22px; font-weight: 400; }
    .ostroh-menu-shell[open] > summary::after { content: "−"; }
    .ostroh-menu { display: block; padding-bottom: 15px; }
    .ostroh-menu > li > a, .ostroh-menu > li > details > summary { padding: 12px 0; }
    .ostroh-menu > li > details > .ostroh-submenu { position: static; width: auto; min-width: 0; max-height: none; padding: 4px 0 8px 10px; border: 0; border-left: 2px solid var(--ostroh-line); border-radius: 0; box-shadow: none; }
    .ostroh-menu .ostroh-submenu { font-size: 14px; }
    .ostroh-story-layout { padding: 30px 20px 0; }
    .gh-article-title { font-size: 30px; line-height: 1.2; }
    .gh-article-excerpt { font-size: 17px; }
    .ostroh-story-layout .gh-content, .gh-content [data-wp-trial-body] { font-size: 17px; line-height: 1.75; }
    .gh-content [data-wp-trial-body] :is(h1, h2) { font-size: 25px; }
    .gh-content [data-wp-trial-body] h3 { font-size: 22px; }
    .ostroh-story-sidebar { grid-template-columns: 1fr; }
    .ostroh-footer-inner { flex-direction: column; align-items: flex-start; }
    .gh-container-title { font-size: 20px; }
    .gh-container { padding-top: 24px; }
    .gh-archive .gh-article-title { font-size: 30px; }
}
/* Telegram's own cross-origin document has a 300px minimum width. */
@media (max-width: 339px) {
    .ostroh-story-sidebar { margin-inline: -10px; }
}
