/*
Theme Name: HMG Media Theme
Version: 1.0.4
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: hmg-media
*/
@font-face{font-family:Heebo;src:url('fonts/heebo.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Work Sans';src:url('fonts/work-sans.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
:root{color-scheme:light;--paper:#fff;--ink:#080808;--muted:#666;--line:#d5d5d5}
html[data-hmg-dark]{color-scheme:dark;--paper:#171717;--ink:#f6f6f6;--muted:#bdbdbd;--line:#494949}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 'Work Sans',Arial,sans-serif}
a{color:inherit} nav a,.hmg-card a,.hmg-brand a{text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid currentColor;outline-offset:4px}
img,video,iframe{max-width:100%} img,video{height:auto}
h1,h2,h3{font-family:Heebo,Arial,sans-serif;line-height:1.2;margin:.35em 0}
.hmg-wrap{width:min(1344px,calc(100% - 40px));margin-inline:auto}
.hmg-top{background:#050505;color:#fff;padding:9px 0;font-size:.875rem}
.hmg-mast{min-height:162px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem}
.hmg-brand{grid-column:2;text-align:center}
.hmg-brand strong{display:block;border:4px solid;padding:.35em;font-size:1.65rem;text-transform:uppercase}
.hmg-brand small{display:block;margin-top:.35rem;text-transform:uppercase}
.custom-logo{width:auto;max-width:min(220px,56vw);max-height:95px}
button{cursor:pointer} .hmg-mode{justify-self:start;border:1px solid var(--line);border-radius:2rem;background:var(--paper);color:var(--ink);padding:.4rem .9rem;font-weight:bold}
.hmg-nav{border-block:1px solid var(--line);position:relative;z-index:2}
.hmg-nav-inner{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;padding:.45rem 0}
.hmg-nav ul{list-style:none;margin:0;padding:0}
.hmg-nav-inner>ul,.hmg-nav-inner>.menu>ul{display:flex;flex-wrap:wrap;gap:.6rem 1.4rem}
.hmg-nav li{position:relative} .hmg-nav a{font:700 1.125rem/1.35 Heebo,Arial,sans-serif;text-transform:uppercase}
.hmg-nav .sub-menu,.hmg-nav .children{display:none;position:absolute;min-width:14rem;inset-block-start:100%;background:var(--paper);border:1px solid var(--line);padding:.75rem}
.hmg-nav ul ul ul{inset-inline-start:100%;inset-block-start:0}
.hmg-nav li:hover>ul,.hmg-nav li:focus-within>ul{display:block}
.hmg-nav details{position:relative} .hmg-nav details[open] form{max-width:calc(100vw - 32px);position:absolute;inset-inline-end:0;background:var(--paper);padding:.75rem;border:1px solid var(--line)}
main.hmg-wrap{padding-block:56px}
.hmg-lead,.hmg-grid{display:grid;gap:38px}
.hmg-lead{grid-template-columns:1fr 2.12fr 1fr}
.hmg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.hmg-card{margin-bottom:26px;min-width:0}
.hmg-card p{margin:.35rem 0;color:var(--muted)}
.hmg-card img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:5px;display:block;margin-bottom:.65rem}
.hmg-lead h2{font-size:1.125rem;font-weight:600}
.hmg-feature h2{font-size:clamp(1.55rem,3vw,2.4rem)}
.hmg-meta{font-size:.75rem;color:var(--muted);font-weight:bold}
.hmg-meta a{text-transform:uppercase}
.hmg-section{border-top:1px solid var(--line);padding-top:1.5rem;margin-top:1.5rem}
.hmg-story{max-width:820px;margin-inline:auto;overflow-wrap:anywhere}
.hmg-story h1{font-size:clamp(2rem,5vw,3.7rem)}
.hmg-story figure{margin-inline:0}
.hmg-story .gallery{display:flex;flex-wrap:wrap;gap:12px}
.hmg-story .gallery-item{flex:1 1 180px;max-width:100%}
.hmg-footer{border-top:1px solid var(--line);padding:2rem 0}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.screen-reader-text:focus{z-index:20;left:1rem;top:2rem;width:auto;height:auto;clip-path:none;background:var(--paper);padding:.5rem}
@media(max-width:850px){.hmg-lead,.hmg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.hmg-feature{grid-column:1/-1;grid-row:1}.hmg-nav .sub-menu,.hmg-nav .children{position:static;min-width:0}.hmg-mast{min-height:125px}}
@media(max-width:540px){.hmg-lead,.hmg-grid{grid-template-columns:1fr}.hmg-mast{grid-template-columns:auto 1fr;gap:.5rem}.hmg-brand{justify-self:center}.hmg-brand strong{font-size:1.1rem}.hmg-mode{padding:.3rem .5rem}main.hmg-wrap{padding-block:26px}}

.hmg-story-layout{display:grid;grid-template-columns:minmax(0,3.15fr) minmax(0,1fr);gap:30px}
.hmg-story-layout .hmg-story{max-width:none;margin:0;font-size:1.125rem}
.hmg-story h1{font-size:clamp(2rem,4vw,3rem);font-weight:900}
.hmg-story h2{font-size:clamp(1.4rem,3vw,1.875rem)}
.hmg-crumb{border-block:1px solid var(--line);padding:.35rem 0;margin-bottom:2.3rem;text-transform:uppercase}
.hmg-category-list h2{font-size:.875rem;text-transform:uppercase}
.hmg-category-list ul{list-style:none;margin:1.5rem 0;padding:0}
.hmg-category-list li{background:var(--muted);color:var(--paper);border-radius:5px;padding:1.25rem;margin-bottom:.6rem;font-weight:bold;text-transform:uppercase}
.hmg-category-list a{color:inherit;text-decoration:none}
.category h1{font-size:clamp(2.3rem,5vw,4.5rem);font-weight:900;text-transform:uppercase;margin-bottom:2rem}
.category .hmg-card h2{font-size:clamp(1.3rem,2.2vw,1.875rem);font-weight:600}
@media(max-width:850px){.hmg-story-layout{grid-template-columns:1fr}.hmg-crumb{margin-bottom:1.25rem}}



.hmg-menu-toggle{display:none}
@media(max-width:850px){.hmg-nav-ready{justify-content:space-between}.hmg-nav-ready>.hmg-menu-toggle{display:block;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:4px;padding:.55rem .9rem;font:700 1rem Heebo,Arial,sans-serif;min-height:44px}.hmg-nav-inner.hmg-nav-ready>ul{display:none;flex-basis:100%;order:3;flex-direction:column;gap:0}.hmg-nav-inner.hmg-nav-ready.hmg-menu-open>ul{display:flex}.hmg-nav-ready>ul>li>a{display:block;padding:.65rem .25rem;border-top:1px solid var(--line)}.hmg-nav-ready .sub-menu{padding:.25rem .75rem;border:0;border-left:2px solid var(--line)}.hmg-nav-ready .sub-menu a{display:block;padding:.5rem 0;font-size:1rem}}

@media(max-width:850px){.hmg-nav-ready.hmg-menu-open .sub-menu{display:block}}

/* Mow visual alignment measured on VCENTRU.cz, 2026-11-05 */
.hmg-wrap{width:min(1344px,calc(100% - 40px))}
.hmg-top{font-size:14px;line-height:21px;padding:10px 0}
.hmg-mast{min-height:164px}
.hmg-mode{font:800 14px/20px Heebo,Arial,sans-serif;text-transform:uppercase;border-color:var(--line);box-shadow:inset 0 0 4px var(--line);padding:4px 18px}
.hmg-nav-inner{gap:0 24px;padding:0;position:relative}
.hmg-nav a{font-size:18px;line-height:40px}
.hmg-nav .sub-menu a{line-height:24px;padding:5px 0;font-size:16px}
.hmg-nav li.menu-item-has-children>a:after{content:'⌄';font-size:14px;margin-left:5px}
.hmg-nav details>summary{cursor:pointer}
.hmg-meta{font-family:Heebo,Arial,sans-serif;font-size:12px;line-height:18px;font-weight:500;text-transform:uppercase;margin-bottom:6px}
.hmg-lead{gap:40px;grid-template-columns:1fr 2.12fr 1fr}
.hmg-lead .hmg-card{margin-bottom:30px}
.hmg-lead>div:first-child .hmg-card{font-size:15px;line-height:22px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;overflow:hidden}
.hmg-lead>div:first-child h2{display:inline;font-size:18px;line-height:22px;font-weight:600;margin:0}
.hmg-lead>div:first-child p{display:inline;font-size:15px;line-height:22px;margin-left:5px}
.hmg-lead>div:last-child h2{font-size:22px;line-height:26px;font-weight:600;margin:0}
.hmg-feature h2{font-size:30px;line-height:36px;font-weight:600;margin:0 0 10px}
.hmg-feature p{font-size:18px;line-height:27px;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hmg-card img{margin-bottom:15px}
.single main.hmg-wrap,.page main.hmg-wrap{max-width:1040px}
.hmg-story-layout{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:30px}
.hmg-story-layout .hmg-story{font-size:18px;line-height:27px}
.hmg-story h1{font-size:48px;line-height:1.16;font-weight:900;margin:0 0 16px}
.hmg-story h2{font-size:30px;line-height:1.22;font-weight:700;margin:0 0 30px}
.hmg-story p{margin:0 0 30px}
.hmg-story .has-medium-font-size{font-size:20px!important;line-height:30px}
.hmg-story .wp-post-image{display:block;width:100%;border-radius:5px;margin:30px 0}
.hmg-crumb{font:700 14px/24px Heebo,Arial,sans-serif;padding:5px 0;margin-bottom:40px;border-color:#e5e5e5}
.hmg-category-list h2{font:800 14px/20px Heebo,Arial,sans-serif;margin:0 0 30px;display:flex;align-items:center;gap:10px}
.hmg-category-list h2:after{content:'';width:50px;height:3px;border-block:1px solid var(--line)}
.hmg-category-list li{font-size:15px;line-height:22px;min-height:90px;display:flex;align-items:center;padding:20px;margin-bottom:10px}
@media(min-width:851px){.hmg-nav-inner>details{position:absolute;right:0;top:calc(100% + 8px);z-index:3}.hmg-nav details>summary{font-size:0;list-style:none;background:#f6f6f6;color:#080808;border-radius:50%;width:60px;height:60px;display:grid;place-items:center}.hmg-nav details>summary:after{content:'⌕';font-size:30px;line-height:1}.hmg-nav details>summary::-webkit-details-marker{display:none}.hmg-nav details[open] form{top:60px}}
@media(max-width:850px){.hmg-mast{min-height:125px}.hmg-lead,.hmg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.hmg-story-layout{grid-template-columns:1fr}.hmg-story h1{font-size:36px;line-height:1.16}.hmg-nav-inner{padding:7px 0}.hmg-nav-ready .sub-menu a{line-height:24px}.hmg-feature h2{font-size:28px;line-height:34px}}
@media(max-width:540px){.hmg-lead,.hmg-grid{grid-template-columns:1fr}.hmg-story h1{font-size:32px}.hmg-story h2{font-size:26px;line-height:32px}.hmg-crumb{font-size:12px;line-height:20px;margin-bottom:28px}.hmg-category-list li{min-height:70px}.hmg-mode{font-size:12px;padding:4px 8px}.hmg-feature h2{font-size:28px;line-height:34px}}

.hmg-category-list li{gap:8px}
@media(min-width:851px){.hmg-nav-inner>ul{row-gap:0}}

/* Native magazine sections and Mow-style footer */
.hmg-editorial-block{margin-top:60px;padding-top:40px;border-top:1px solid var(--line)}
.hmg-block-heading{display:flex;align-items:center;gap:20px;margin-bottom:30px}
.hmg-block-heading h2{font:700 32px/1.15 Heebo,Arial,sans-serif;margin:0;flex-shrink:0;max-width:100%}
.hmg-block-heading a{text-decoration:none}
.hmg-block-heading>span{flex:1;min-width:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);height:5px}
.hmg-block-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.12fr) minmax(0,1fr);gap:40px}
.hmg-block-mosaic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px}
.hmg-block-grid,.hmg-latest-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px}
.hmg-block-podcasts{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.hmg-section-card{min-width:0;margin:0 0 30px}
.hmg-section-image{display:block;margin-bottom:15px}
.hmg-section-card img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:5px}
.hmg-section-card h3{font:600 22px/26px Heebo,Arial,sans-serif;margin:0}
.hmg-section-card h3 a{text-decoration:none}
.hmg-section-card h3 a:hover{text-decoration:underline}
.hmg-section-card p{font:400 15px/22px 'Work Sans',Arial,sans-serif;color:var(--muted);margin:6px 0 0}
.hmg-section-card--feature h3{font-size:28px;line-height:34px}
.hmg-section-card--feature p{font-size:18px;line-height:27px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hmg-section-card--text .hmg-section-copy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;font-size:15px;line-height:22px}
.hmg-section-card--text h3{display:inline;font-size:18px;line-height:22px}
.hmg-section-card--text p{display:inline;margin-left:5px}
.hmg-latest-grid .hmg-section-card h3{font-size:22px;line-height:26px}
.hmg-latest-grid .hmg-section-card p{font-size:15px;line-height:22px}
.hmg-podcast-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:18px;border-bottom:1px solid var(--line);padding:0 0 20px;margin-bottom:20px}
.hmg-podcast-row .hmg-section-card{margin:0}
.hmg-podcast-row .hmg-section-card p{display:none}
.hmg-episode-number{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--line);border-radius:50%;font-weight:700}
.hmg-more{display:block;padding:16px;border:1px solid var(--line);text-align:center;text-decoration:none;font:700 14px/20px Heebo,Arial,sans-serif;text-transform:uppercase;border-radius:4px}
.hmg-more:hover{background:var(--ink);color:var(--paper);text-decoration:none}
.hmg-editorial-footer{background:#080808;color:#999;padding:0;border:0;margin-top:40px}
.hmg-footer-rail{border-block:1px solid #272727;padding:22px 0}
.hmg-footer-rail ul{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 30px}
.hmg-editorial-footer ul{list-style:none;padding:0;margin:0}
.hmg-editorial-footer a{text-decoration:none;color:inherit}
.hmg-editorial-footer a:hover{color:#fff;text-decoration:underline}
.hmg-footer-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:50px;padding-block:50px 60px}
.hmg-footer-columns>div{min-width:0}
.hmg-footer-columns h2{color:#fff;font:800 14px/20px Heebo,Arial,sans-serif;text-transform:uppercase;margin:0 0 24px;display:flex;align-items:center;gap:12px}
.hmg-footer-columns h2:after{content:'';width:30px;height:3px;border-top:1px solid #333}
.hmg-footer-columns li{margin-bottom:12px;font-size:18px;line-height:24px}
.hmg-footer-brand{display:inline-block;border:4px solid #fff;padding:12px;color:#fff!important;font:800 23px/1.2 Heebo,Arial,sans-serif;text-transform:uppercase;overflow-wrap:anywhere}
.hmg-footer-identity p{font-size:15px;line-height:24px;margin-top:20px}
.hmg-footer-bottom{border-top:1px solid #272727;display:flex;justify-content:center;align-items:center;gap:30px;position:relative;padding-block:35px;font-size:15px;line-height:24px}
.hmg-footer-bottom p{margin:0;text-align:center}
.hmg-footer-bottom>a{position:absolute;right:0;font:700 12px/20px Heebo,Arial,sans-serif;text-transform:uppercase}
@media(max-width:1000px){.hmg-block-split,.hmg-block-mosaic{gap:25px}.hmg-footer-columns{gap:25px}.hmg-latest-grid,.hmg-block-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hmg-footer-bottom{padding-right:60px}}
@media(max-width:850px){.hmg-block-split,.hmg-block-mosaic,.hmg-block-podcasts{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.hmg-block-split>div:nth-child(2){grid-column:1/-1;grid-row:1}.hmg-footer-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.hmg-block-grid,.hmg-latest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hmg-editorial-block{margin-top:40px;padding-top:30px}}
@media(max-width:540px){.hmg-block-split,.hmg-block-mosaic,.hmg-block-grid,.hmg-latest-grid,.hmg-block-podcasts,.hmg-footer-columns{grid-template-columns:1fr}.hmg-block-heading h2{font-size:28px;flex-shrink:1;overflow-wrap:anywhere}.hmg-block-heading{gap:12px}.hmg-section-card--feature h3{font-size:26px;line-height:32px}.hmg-footer-columns{padding-block:35px;gap:30px}.hmg-footer-columns li{font-size:17px}.hmg-footer-bottom{flex-direction:column;padding:24px 0;gap:15px}.hmg-footer-bottom>a{position:static}.hmg-footer-rail ul{gap:10px 20px;font-size:14px}}

/* Consistent archive and search cards */
.hmg-lead-news{margin:24px 0 35px}
.hmg-lead-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 20px}
.hmg-lead-news-item{display:flex;gap:15px;min-width:0;align-items:flex-start}
.hmg-lead-news-image{flex:0 0 85px;display:block}
.hmg-lead-news-image img{display:block;width:85px;height:85px;object-fit:cover;border-radius:0}
.hmg-lead-news-item>div{min-width:0}
.hmg-lead-news-item h3{font:700 14px/20px Heebo,Arial,sans-serif;margin:0 0 5px}
.hmg-lead-news-item h3 a,.hmg-lead-pr a{text-decoration:none}
.hmg-lead-news-item h3 a:hover,.hmg-lead-pr h3 a:hover{text-decoration:underline}
.hmg-lead-news-item time{font:400 12px/18px Heebo,Arial,sans-serif;color:var(--muted)}
.hmg-lead-pr{margin:35px 0 0}
.hmg-lead-pr h3{font:700 24px/30px Heebo,Arial,sans-serif;margin:0 0 18px}
.hmg-lead-pr img{display:block;width:100%;height:auto;border-radius:0}
@media(max-width:1100px) and (min-width:851px){.hmg-lead-news-image{flex-basis:65px}.hmg-lead-news-image img{width:65px;height:65px}.hmg-lead-news-item{gap:10px}}
@media(max-width:540px){.hmg-lead-news-grid{grid-template-columns:1fr;gap:20px}.hmg-lead-news-item h3{font-size:16px;line-height:22px}.hmg-lead-pr h3{font-size:23px;line-height:29px}}
.hmg-ad.hmg-ad--home_wide_top,.hmg-ad.hmg-ad--home_wide_middle,.hmg-ad.hmg-ad--home_wide_bottom{width:min(999px,100%);max-width:100%;margin:50px auto;clear:both}
.hmg-ad.hmg-ad--home_wide_top img,.hmg-ad.hmg-ad--home_wide_middle img,.hmg-ad.hmg-ad--home_wide_bottom img{width:100%;height:auto;max-height:none;object-fit:contain}
@media(max-width:540px){.hmg-ad.hmg-ad--home_wide_top,.hmg-ad.hmg-ad--home_wide_middle,.hmg-ad.hmg-ad--home_wide_bottom{margin:30px auto}}
/* Match Mow's wide article and category count badges. */
.single main.hmg-wrap{width:min(1400px,calc(100% - 40px));max-width:1400px}
.single .hmg-story-layout{grid-template-columns:minmax(0,3.15fr) minmax(0,1fr);gap:30px}
.single .hmg-category-list li{padding:0;min-height:100px;background:#666;color:#fff;font:800 15px/22px Heebo,Arial,sans-serif}
.single .hmg-category-list li>a{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:100px;padding:20px}
.hmg-category-title{min-width:0;overflow-wrap:anywhere}
.hmg-category-count{flex-shrink:0;display:grid;place-items:center;min-width:36px;height:36px;padding:0 6px;border-radius:50%;background:rgba(255,255,255,.3);font-size:14px;line-height:1}
.single .hmg-category-list li:hover{background:#444}
@media(max-width:1000px) and (min-width:851px){.single .hmg-story-layout{grid-template-columns:minmax(0,2.4fr) minmax(0,1fr)}.single .hmg-category-list li>a{padding:16px;gap:8px}}
@media(max-width:850px){.single .hmg-story-layout{grid-template-columns:1fr}.single .hmg-category-list li,.single .hmg-category-list li>a{min-height:80px}.single .hmg-category-list ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.single .hmg-category-list li{margin:0}}
@media(max-width:540px){.single .hmg-category-list ul{grid-template-columns:1fr}}
.hmg-empty-state{max-width:700px;margin:25px auto;padding:35px;border:1px solid var(--line);border-radius:5px}
.hmg-empty-state h1{font-size:36px;line-height:1.2}
.hmg-empty-state h2{font-size:28px;line-height:1.2}
.hmg-empty-state p{color:var(--muted)}
.hmg-empty-state form{margin:24px 0;display:flex;gap:10px;flex-wrap:wrap;align-items:end}
.hmg-empty-state form label{flex:1;min-width:0}
.hmg-empty-state input[type=search]{width:100%;max-width:100%;min-height:44px;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:10px;font:inherit}
.hmg-empty-state input[type=submit],.hmg-empty-state button{min-height:44px;padding:10px 18px;border:1px solid var(--line);background:var(--ink);color:var(--paper);font:inherit}
main.hmg-wrap>h1{overflow-wrap:anywhere}
@media(max-width:540px){.hmg-empty-state{padding:22px}.hmg-empty-state h1{font-size:30px}.hmg-empty-state h2{font-size:24px}.hmg-empty-state form{display:block}.hmg-empty-state form input[type=submit],.hmg-empty-state form button{width:100%;margin-top:10px}}
.hmg-grid>.hmg-card h2{font-size:24px;line-height:29px;font-weight:600;margin:0 0 10px;overflow-wrap:anywhere}
.hmg-grid>.hmg-card p{font-size:15px;line-height:23px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;margin:0}
.navigation.pagination{margin-top:30px;text-align:center}
.navigation.pagination .nav-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px}
.navigation.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px 12px;border:1px solid var(--line);border-radius:3px;text-decoration:none}
.navigation.pagination .current{background:var(--ink);color:var(--paper)}
.navigation.pagination .dots{border-color:transparent}
@media(max-width:540px){.hmg-grid>.hmg-card h2{font-size:22px;line-height:27px}.hmg-grid>.hmg-card p{-webkit-line-clamp:3}.navigation.pagination .page-numbers{min-width:40px;min-height:40px}}


/* Desktop density: match an 80% browser preview while retaining native mobile sizing. */
@media(min-width:1050px){body{zoom:.8}}

/* Six homepage updates in two rows of three, with readable compact cards. */
@media(min-width:541px){.hmg-lead-news-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:25px 18px}.hmg-lead-news-item{display:block}.hmg-lead-news-image{margin-bottom:10px}.hmg-lead-news-image img{width:100%;height:110px;object-fit:cover}}
/* BydleteStylove: ctyri vetsi novinky pod hlavnim clankem, 2 + 2. */
.hmg-lead-news-item:nth-child(n+5){display:none}
@media(min-width:541px){.hmg-lead-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 22px}.hmg-lead-news-image img{height:150px}.hmg-lead-news-item h3{font-size:17px;line-height:23px}}
@media(min-width:851px) and (max-width:1100px){.hmg-lead-news-image img{height:125px}}


/* Keep empty footer sections out of the layout. */
.hmg-editorial-footer .hmg-footer-rail:not(:has(li)),
.hmg-editorial-footer .hmg-footer-columns > div:not(.hmg-footer-identity):not(:has(li)) {
    display: none;
}
.hmg-editorial-footer .hmg-footer-columns:not(:has(> div:not(.hmg-footer-identity) li)) {
    grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 600px) {
    .hmg-editorial-footer .hmg-footer-credits {
        display: block;
        margin-top: .45rem;
    }
    .hmg-editorial-footer .hmg-footer-credits a {
        white-space: nowrap;
    }
}

/* Slovansky.com magazine homepage */
.hmg-slovansky-home .hmg-lead { align-items: start; }
.hmg-slovansky-side { min-width: 0; }
.hmg-slovansky-label { border-block: 1px solid var(--line); padding: .55rem 0; margin: 0 0 1rem; text-transform: uppercase; font-weight: 800; }
.hmg-slovansky-label a { text-decoration: none; }
.hmg-slovansky-side .hmg-card { border-bottom: 1px solid var(--line); padding: 0 0 .85rem; margin: 0 0 .85rem; }
.hmg-slovansky-side .hmg-card h3 { font-size: 1.1rem; line-height: 1.3; }
.hmg-slovansky-side .hmg-card p { font-size: .9rem; line-height: 1.45; }
.hmg-slovansky-side .hmg-partneri { margin-block: 1.875rem; }
.hmg-slovansky-video { width: 100%; border-top: 1px solid var(--line); padding-top: .85rem; margin: 1.25rem 0; }
.hmg-slovansky-rubriki { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem 1rem; }
.hmg-slovansky-rubriki a { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: .55rem 0; text-decoration: none; }
@media (max-width: 850px) { .hmg-slovansky-home .hmg-feature { grid-row: 1; grid-column: 1 / -1; } }
@media (max-width: 540px) { .hmg-slovansky-rubriki { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.hmg-slovansky-lower{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;margin-block:2rem}
.hmg-slovansky-side-photos .hmg-card img{width:100%;aspect-ratio:3/2;object-fit:cover}
.hmg-slovansky-right time{display:block;margin-top:.35rem}
@media(max-width:540px){.hmg-slovansky-lower{grid-template-columns:1fr;gap:1rem}}

/* Slovansky homepage follows the three-column layout of VCENTRU. */
.hmg-slovansky-home.hmg-wrap { width: min(94%, 1320px); max-width: 1320px; }
.hmg-slovansky-home .hmg-lead, .hmg-slovansky-home .hmg-slovansky-lower { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.hmg-slovansky-lower > section:nth-child(1), .hmg-slovansky-lower > section:nth-child(4) { grid-column: 1; }
.hmg-slovansky-lower > section:nth-child(2), .hmg-slovansky-lower > section:nth-child(5) { grid-column: 3; }
.hmg-slovansky-lower > section:nth-child(-n+2) { grid-row: 1; }
.hmg-slovansky-lower > section:nth-child(n+4) { grid-row: 2; }
.hmg-slovansky-lower-center { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.hmg-slovansky-lower-center .hmg-editorial-block { margin-top: 0; }
.hmg-slovansky-lower-center .hmg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hmg-slovansky-home .hmg-slovansky-label { font-size: clamp(20px, 2vw, 30px); margin-bottom: 25px; }
.hmg-slovansky-lower-partner { margin-top: 30px; text-align: center; }
.hmg-slovansky-lower-partner > h3 { margin: 0 0 8px; font-size: 1.15rem; }
@media (max-width: 850px) {
  .hmg-slovansky-home .hmg-lead, .hmg-slovansky-home .hmg-slovansky-lower { grid-template-columns: minmax(0, 1fr); }
  .hmg-slovansky-home .hmg-slovansky-lower > * { grid-column: auto; grid-row: auto; }
}

.hmg-slovansky-timeline { list-style: none; margin: 0 0 28px 6px; padding: 0 0 0 18px; border-left: 2px solid #b9b9b9; }
.hmg-slovansky-timeline li { position: relative; padding: 0 0 18px; }
.hmg-slovansky-timeline li:last-child { padding-bottom: 0; }
.hmg-slovansky-timeline li::before { content: ''; position: absolute; left: -24px; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--hmg-accent, #b32831); }
.hmg-slovansky-timeline time { display: block; font-size: .75rem; opacity: .78; }
.hmg-slovansky-timeline h3 { margin: 5px 0 0; font-size: 1rem; line-height: 1.35; }
@media (max-width: 850px) {
  .hmg-slovansky-home .hmg-slovansky-lower > section:nth-child(n), .hmg-slovansky-home .hmg-slovansky-lower > .hmg-slovansky-lower-center { grid-area: auto; }
}

.hmg-slovansky-home .hmg-slovansky-middle { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,2.2fr) minmax(0,1fr); grid-template-rows: auto auto auto; gap: 24px; margin: 32px 0; }
.hmg-slovansky-middle > aside { display:grid; grid-template-rows: subgrid; grid-row: 1 / span 3; min-width:0; }
.hmg-slovansky-middle-left { grid-column:1; }
.hmg-slovansky-middle-right { grid-column:3; }
.hmg-slovansky-middle-center { grid-column:2; grid-row:1 / span 3; min-width:0; }
.hmg-slovansky-middle > aside > section:nth-child(2) { display:grid; grid-template-rows:subgrid; grid-row:2 / span 2; align-items:start; }
.hmg-slovansky-middle .hmg-slovansky-lower-partner { grid-row:2; margin-top:0; }
.hmg-slovansky-middle .hmg-slovansky-lower-partner img { display:block; width:auto; height:72px; max-width:100%; object-fit:contain; margin:auto; }
@media (max-width:850px) {
 .hmg-slovansky-home .hmg-slovansky-middle { display:flex; flex-direction:column; }
 .hmg-slovansky-middle-center { order:-1; }
 .hmg-slovansky-middle > aside, .hmg-slovansky-middle > aside > section:nth-child(2) { display:block; }
 .hmg-slovansky-middle .hmg-slovansky-lower-partner { margin-top:30px; }
}

.hmg-slovansky-middle > aside > section:nth-child(2) { grid-template-columns:minmax(0,1fr); }
.hmg-slovansky-middle > aside > section:nth-child(2) > * { grid-column:1; min-width:0; }
.hmg-slovansky-middle > aside > section:nth-child(2) > :not(.hmg-slovansky-label):not(article):not(.hmg-slovansky-lower-partner) { grid-row:3; }

/* Slovansky homepage partner artwork at twice its previous display height. */
.hmg-slovansky-home aside .hmg-partneri, body:has(.hmg-slovansky-home) > .hmg-editorial-block .hmg-partneri { --slovansky-logo-height: 96px; }
body:has(.hmg-slovansky-home) .hmg-wrap.hmg-editorial-block > .hmg-partneri a:first-child { --slovansky-logo-height: 144px; }
.hmg-slovansky-home aside .hmg-partneri > a, body:has(.hmg-slovansky-home) .hmg-wrap.hmg-editorial-block > .hmg-partneri > a { width: auto !important; max-width: 100%; min-height: var(--slovansky-logo-height, 96px) !important; }
.hmg-slovansky-home aside .hmg-partneri img, body:has(.hmg-slovansky-home) .hmg-wrap.hmg-editorial-block > .hmg-partneri img { height: var(--slovansky-logo-height, 96px) !important; width: auto !important; max-height: none !important; max-width: 100% !important; object-fit: contain; }

.hmg-slovansky-home aside .hmg-partneri > a[href*="czechinn.cz"] { --slovansky-logo-height: 144px; }
body:has(.hmg-slovansky-home) .hmg-wrap.hmg-editorial-block > .hmg-partneri { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(16px,6vw,90px) !important; }
body:has(.hmg-slovansky-home) .hmg-wrap.hmg-editorial-block > .hmg-partneri > a { min-width:0; justify-self:center; width:100% !important; }
@media(max-width:600px){
 body:has(.hmg-slovansky-home) .hmg-wrap.hmg-editorial-block > .hmg-partneri > a { --slovansky-logo-height: 96px; }
 body:has(.hmg-slovansky-home) .hmg-wrap.hmg-editorial-block > .hmg-partneri img { height:auto !important; max-height:96px !important; }
}

/* Photographic sidebar cards on the Slovansky homepage. */
.hmg-slovansky-below-hotel .hmg-card { display:grid;grid-template-columns:minmax(0,80px) minmax(0,1fr);align-items:start;gap:12px;padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid currentColor; }
.hmg-slovansky-below-hotel .hmg-card > a { display:block; }
.hmg-slovansky-below-hotel .hmg-card img { display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover; }
.hmg-slovansky-below-hotel .hmg-card h3 { margin:0;font-size:18px;line-height:1.25;overflow-wrap:break-word; }

/* Shared rhythm for the homepage sidebars. */
.hmg-slovansky-home aside { min-width:0; }
.hmg-slovansky-home aside .hmg-slovansky-label { font-size:clamp(20px,2.1vw,30px);line-height:1.15;padding:.55rem 0;margin:0 0 25px;overflow-wrap:anywhere; }
.hmg-slovansky-home aside .hmg-card { margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid var(--line); }
.hmg-slovansky-home aside .hmg-card h3 { font-size:18px;line-height:1.3;overflow-wrap:anywhere; }
.hmg-slovansky-below-hotel .hmg-card { border-color:var(--line); }
.hmg-slovansky-middle .hmg-slovansky-rubric-copy { grid-column:1;grid-row:1 !important; }
.hmg-slovansky-home aside .hmg-partneri { margin:0 auto 30px !important; }
.hmg-slovansky-home aside .hmg-partneri > a { justify-content:center; }
.hmg-slovansky-home aside .hmg-slovansky-lower-partner > h3 { margin:0 0 12px;font-size:18px;line-height:1.2; }
.hmg-slovansky-home aside .hmg-slovansky-lower-partner .hmg-partneri { margin-bottom:0 !important; }
@media(max-width:850px){
 .hmg-slovansky-home .hmg-slovansky-middle { gap:30px; }
 .hmg-slovansky-home aside .hmg-slovansky-label { margin-bottom:20px; }
}


.hmg-slovansky-home aside .hmg-slovansky-rubric-partner { display:grid;place-items:center;min-height:144px;margin-top:-12px;margin-bottom:12px !important; }
.hmg-slovansky-home aside .hmg-slovansky-rubric-partner .hmg-partneri { margin:0 !important; }

.hmg-slovansky-home .hmg-slovansky-middle { grid-template-rows:max-content max-content auto; row-gap:12px; }
.hmg-slovansky-middle > aside > section:first-child > .hmg-card:last-child { margin-bottom:0; }
.hmg-slovansky-home aside .hmg-slovansky-rubric-partner { min-height:0; margin:0 0 12px !important; }
.hmg-slovansky-home aside .hmg-slovansky-rubric-partner .hmg-partneri > a { min-height:0 !important; }
.hmg-slovansky-home aside .hmg-slovansky-rubric-partner img { height:96px !important; }
@media(max-width:850px){.hmg-slovansky-home .hmg-slovansky-middle{row-gap:30px}.hmg-slovansky-home aside .hmg-slovansky-rubric-partner{margin-top:12px !important}}

@media(min-width:851px){.hmg-slovansky-home aside .hmg-slovansky-rubric-partner { transform:translateY(-39px); }.hmg-slovansky-middle .hmg-slovansky-rubric-copy > .hmg-slovansky-label,.hmg-slovansky-middle .hmg-slovansky-rubric-copy > .hmg-card { position:relative;top:-29px; }}

.hmg-slovansky-home .hmg-slovansky-middle-left .hmg-slovansky-rubric-partner img[alt="Czech Inn Hotels"] { height:144px !important; }

.hmg-slovansky-middle-right .hmg-slovansky-lower-partner:has(a[rel="sponsored"] img[alt="Dolce Vita – BydleteStylově"]) { position:relative;top:-35px; }

@media(min-width:851px){.single .hmg-story-layout:has(> .hmg-slovansky-story-side){grid-template-columns:minmax(0,1fr) minmax(0,3.15fr) minmax(0,1fr)}}
@media(max-width:850px){.single .hmg-story-layout:has(> .hmg-slovansky-story-side){grid-template-columns:minmax(0,1fr)}.hmg-slovansky-story-side{order:1}}
