/*
SOFON Atlas – Modern Design 1.0.0
Marker: SOFON_ATLAS_MODERN_DESIGN_V1
Pouze prezentační vrstva: bez změn obsahu a FSE databáze.
*/

/* ---------- Design system ---------- */
body.sofon-atlas-modern {
    --atlas-page:#f4f7f3;
    --atlas-page-2:#edf3ee;
    --atlas-card:rgba(255,255,255,.9);
    --atlas-card-solid:#fff;
    --atlas-soft:#edf4ef;
    --atlas-ink:#183126;
    --atlas-muted:#5b6d63;
    --atlas-green:#397458;
    --atlas-green-deep:#173f32;
    --atlas-teal:#32717a;
    --atlas-border:rgba(31,76,57,.13);
    --atlas-border-strong:rgba(31,76,57,.24);
    --atlas-shadow-sm:0 8px 24px rgba(28,57,44,.08);
    --atlas-shadow:0 20px 55px rgba(28,57,44,.12);
    --atlas-shadow-lg:0 30px 80px rgba(20,48,37,.17);
    --atlas-radius:20px;
    --atlas-radius-lg:30px;
    --atlas-wide:1180px;

    color:var(--atlas-ink);
    background:
        radial-gradient(circle at 7% 0%,rgba(120,180,139,.13),transparent 28rem),
        radial-gradient(circle at 95% 18%,rgba(83,153,167,.11),transparent 30rem),
        linear-gradient(180deg,var(--atlas-page),#f8faf7 42%,var(--atlas-page-2));
    font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

body.sofon-atlas-modern *,
body.sofon-atlas-modern *::before,
body.sofon-atlas-modern *::after { box-sizing:border-box; }

body.sofon-atlas-modern a {
    text-decoration-thickness:1px;
    text-underline-offset:.18em;
    transition:color .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease,opacity .18s ease;
}

body.sofon-atlas-modern a:focus-visible,
body.sofon-atlas-modern button:focus-visible,
body.sofon-atlas-modern input:focus-visible,
body.sofon-atlas-modern select:focus-visible,
body.sofon-atlas-modern textarea:focus-visible {
    outline:3px solid rgba(50,113,122,.34);
    outline-offset:3px;
}

body.sofon-atlas-modern h1,
body.sofon-atlas-modern h2,
body.sofon-atlas-modern h3,
body.sofon-atlas-modern h4,
body.sofon-atlas-modern h5,
body.sofon-atlas-modern h6 {
    color:var(--atlas-ink);
    letter-spacing:-.025em;
}

body.sofon-atlas-modern img {
    transition:transform .42s cubic-bezier(.2,.75,.25,1),filter .3s ease;
}

body.sofon-atlas-modern .wp-site-blocks { overflow:clip; }
body.sofon-atlas-modern .wp-block-separator { border-color:var(--atlas-border)!important;opacity:1; }

/* ---------- Header ---------- */
body.sofon-atlas-modern>.wp-site-blocks>header.wp-block-template-part {
    position:relative;
    z-index:100;
    margin-block-start:0!important;
}

body.sofon-atlas-modern>.wp-site-blocks>header.wp-block-template-part>header.wp-block-group {
    position:sticky!important;
    top:0;
    z-index:100;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:12px clamp(18px,4vw,64px) 14px!important;
    color:var(--atlas-ink)!important;
    background:linear-gradient(135deg,rgba(247,252,248,.94),rgba(239,248,244,.91) 48%,rgba(231,244,246,.92))!important;
    border-bottom:1px solid var(--atlas-border)!important;
    box-shadow:0 10px 36px rgba(24,60,45,.08);
    backdrop-filter:blur(20px) saturate(145%);
    -webkit-backdrop-filter:blur(20px) saturate(145%);
}

body.sofon-atlas-modern header> .wp-block-group:first-child {
    width:min(100%,var(--atlas-wide));
    margin-inline:auto;
    gap:20px;
}

body.sofon-atlas-modern header .wp-block-site-logo a {
    display:grid;
    place-items:center;
    padding:4px;
    border:1px solid var(--atlas-border);
    border-radius:18px;
    background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(227,242,232,.9));
    box-shadow:var(--atlas-shadow-sm);
}

body.sofon-atlas-modern header .wp-block-site-logo img { border-radius:14px; }

body.sofon-atlas-modern header .wp-block-site-title {
    margin:0;
    font-size:clamp(1.12rem,1.5vw,1.42rem)!important;
    font-weight:760;
    letter-spacing:-.035em;
    line-height:1.05;
}

body.sofon-atlas-modern header .wp-block-site-title a {
    color:var(--atlas-green-deep);
    text-decoration:none;
}

body.sofon-atlas-modern header .wp-block-site-title+p {
    margin:4px 0 0;
    color:var(--atlas-muted);
    font-size:.78rem;
    font-weight:560;
    letter-spacing:.035em;
}

body.sofon-atlas-modern header .wp-block-navigation {
    font-size:.93rem;
    font-weight:690;
}

body.sofon-atlas-modern header .wp-block-navigation-item__content {
    padding:9px 12px!important;
    color:var(--atlas-ink)!important;
    text-decoration:none;
    border-radius:999px;
}

body.sofon-atlas-modern header .wp-block-navigation-item__content:hover,
body.sofon-atlas-modern header .current-menu-item>.wp-block-navigation-item__content {
    color:var(--atlas-green-deep)!important;
    background:rgba(70,130,94,.11);
    transform:translateY(-1px);
}

body.sofon-atlas-modern header>p:empty { display:none; }

body.sofon-atlas-modern header>p.has-text-align-center {
    width:min(100%,var(--atlas-wide));
    margin:7px auto 4px!important;
    color:var(--atlas-muted);
    font-size:.72rem!important;
    line-height:1.2!important;
    letter-spacing:.055em;
    text-transform:uppercase;
}

body.sofon-atlas-modern header>.wp-block-group:last-of-type {
    width:min(100%,var(--atlas-wide));
    margin-inline:auto;
    padding-inline:0!important;
}

body.sofon-atlas-modern .wp-block-search { width:100%; }

body.sofon-atlas-modern .wp-block-search__inside-wrapper {
    min-height:48px;
    padding:4px;
    overflow:hidden;
    background:rgba(255,255,255,.86);
    border:1px solid var(--atlas-border)!important;
    border-radius:16px!important;
    box-shadow:0 8px 25px rgba(29,68,52,.07);
    transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

body.sofon-atlas-modern .wp-block-search__inside-wrapper:focus-within {
    border-color:rgba(50,113,122,.42)!important;
    box-shadow:0 10px 30px rgba(34,86,66,.12);
    transform:translateY(-1px);
}

body.sofon-atlas-modern .wp-block-search__input {
    padding:10px 14px!important;
    color:var(--atlas-ink)!important;
    background:transparent!important;
    border:0!important;
    outline:0!important;
}

body.sofon-atlas-modern .wp-block-search__input::placeholder { color:#75847c; }

body.sofon-atlas-modern .wp-block-search__button {
    min-width:88px;
    margin:0!important;
    padding:10px 17px!important;
    color:#fff!important;
    font-weight:730;
    background:linear-gradient(135deg,var(--atlas-green),var(--atlas-teal))!important;
    border:0!important;
    border-radius:12px!important;
    box-shadow:0 8px 18px rgba(45,101,79,.2);
}

body.sofon-atlas-modern .wp-block-search__button:hover {
    filter:brightness(1.03);
    box-shadow:0 10px 24px rgba(45,101,79,.28);
    transform:translateY(-1px);
}

/* ---------- Home hero ---------- */
body.sofon-atlas-modern.home main { margin-block-start:0; }

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1) {
    position:relative;
    isolation:isolate;
    min-height:510px;
    padding:clamp(62px,8vw,112px) clamp(20px,5vw,72px) clamp(54px,7vw,96px)!important;
    overflow:hidden;
    background:
        radial-gradient(circle at 15% 18%,rgba(116,174,114,.2),transparent 24rem),
        radial-gradient(circle at 82% 6%,rgba(70,151,167,.17),transparent 27rem),
        linear-gradient(145deg,#f6faf6,#edf5ef 52%,#edf6f7);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1)::before,
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1)::after {
    content:"";
    position:absolute;
    z-index:-1;
    border-radius:999px;
    pointer-events:none;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1)::before {
    width:380px;height:380px;top:-190px;right:-100px;background:rgba(66,135,102,.10);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1)::after {
    width:310px;height:310px;left:-160px;bottom:-170px;background:rgba(50,113,122,.09);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1)>.wp-block-group {
    width:min(100%,980px);
    max-width:none!important;
    margin-inline:auto;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1) h1 {
    max-width:900px;
    margin-inline:auto;
    font-size:clamp(2.25rem,5vw,4.85rem)!important;
    font-weight:780;
    line-height:.98;
    letter-spacing:-.055em;
    text-wrap:balance;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1) p {
    max-width:760px;
    margin-inline:auto;
    color:var(--atlas-muted);
    font-size:clamp(1rem,1.35vw,1.17rem);
    line-height:1.75;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1) figure {
    width:min(100%,1080px);
    margin:clamp(30px,4vw,48px) auto 0!important;
    overflow:hidden;
    border-radius:var(--atlas-radius-lg)!important;
    box-shadow:var(--atlas-shadow-lg);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1) figure img {
    width:100%!important;
    height:clamp(260px,34vw,430px)!important;
    object-fit:cover;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1) figure:hover img { transform:scale(1.018); }

/* ---------- Home worlds ---------- */
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) {
    padding:clamp(64px,8vw,110px) clamp(18px,5vw,70px)!important;
    background:linear-gradient(180deg,#edf5ef,#f7f8f2 35%,#f1f5ef)!important;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2)>.wp-block-group {
    width:min(100%,var(--atlas-wide));
    max-width:var(--atlas-wide)!important;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) h2 {
    font-size:clamp(2rem,3.5vw,3.2rem);
    font-weight:760;
    line-height:1.05;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3) {
    gap:clamp(22px,4vw,58px)!important;
    margin-block:20px!important;
    padding:clamp(20px,3vw,32px);
    overflow:hidden;
    background:var(--atlas-card)!important;
    border:1px solid var(--atlas-border);
    border-radius:var(--atlas-radius-lg);
    box-shadow:var(--atlas-shadow);
    backdrop-filter:blur(14px);
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3):hover {
    border-color:var(--atlas-border-strong);
    box-shadow:0 28px 66px rgba(26,57,43,.15);
    transform:translateY(-3px);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3 a[href*="svet-souse"]) {
    background:linear-gradient(135deg,rgba(248,252,247,.97),rgba(227,241,220,.92))!important;
}
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3 a[href*="svet-vody"]) {
    background:linear-gradient(135deg,rgba(248,252,253,.97),rgba(218,238,246,.93))!important;
}
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3 a[href*="svet-vzduchu"]) {
    background:linear-gradient(135deg,rgba(250,252,253,.97),rgba(225,239,243,.93))!important;
}
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3 a[href*="/rostliny/"]) {
    background:linear-gradient(135deg,rgba(248,252,246,.97),rgba(224,240,215,.93))!important;
}
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3 a[href*="/nerosty/"]) {
    background:linear-gradient(135deg,rgba(252,251,248,.97),rgba(239,230,211,.93))!important;
}
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3 a[href*="prehistor"]),
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3 a[href*="dinosaur"]) {
    background:linear-gradient(135deg,rgba(250,249,245,.97),rgba(228,224,204,.93))!important;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) h3 {
    margin-top:0;
    font-size:clamp(1.7rem,2.5vw,2.5rem);
    font-weight:760;
    line-height:1.06;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) h3 a {
    color:var(--atlas-green-deep);
    text-decoration:none;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-list {
    margin:18px 0 0;
    padding-left:0;
    list-style:none;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-list>li {
    position:relative;
    margin:5px 0;
    padding-left:25px;
    color:var(--atlas-muted);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-list>li::before {
    content:"•";
    position:absolute;
    left:6px;
    color:var(--atlas-green);
    font-weight:900;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-list a {
    color:var(--atlas-ink);
    text-decoration-color:rgba(57,116,88,.32);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) figure {
    margin:0!important;
    overflow:hidden;
    border-radius:23px!important;
    box-shadow:0 16px 38px rgba(25,60,44,.14);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) figure img {
    min-height:245px;
    object-fit:cover;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3):hover figure img {
    transform:scale(1.025);
}

/* ---------- Home help ---------- */
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(3) {
    padding:clamp(66px,8vw,110px) clamp(20px,5vw,70px)!important;
    color:rgba(255,255,255,.88)!important;
    background:
        radial-gradient(circle at 88% 10%,rgba(108,171,155,.22),transparent 28rem),
        linear-gradient(135deg,#112f26,#174a3a 48%,#214f56)!important;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(3) h2,
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(3) h3,
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(3) h4 { color:#fff!important; }

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(3) p { color:rgba(255,255,255,.78); }

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(3) figure {
    overflow:hidden;
    border:1px solid rgba(255,255,255,.13);
    border-radius:var(--atlas-radius-lg);
    box-shadow:0 24px 60px rgba(3,18,13,.28);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(3) .wp-block-buttons { gap:9px!important; }

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(3) .wp-block-button__link {
    padding:11px 16px;
    color:#fff!important;
    font-size:.93rem;
    font-weight:690;
    text-decoration:none;
    background:rgba(255,255,255,.09)!important;
    border:1px solid rgba(255,255,255,.17);
    border-radius:999px;
    backdrop-filter:blur(8px);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(3) .wp-block-button__link:hover {
    background:rgba(255,255,255,.16)!important;
    border-color:rgba(255,255,255,.28);
    transform:translateY(-2px);
}

/* ---------- Home recent posts ---------- */
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) {
    padding:clamp(62px,8vw,105px) clamp(18px,5vw,70px)!important;
    background:linear-gradient(180deg,#f7f9f6,#eef4ef)!important;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4)>* {
    width:min(100%,var(--atlas-wide));
    margin-inline:auto;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) h4 {
    margin-bottom:30px!important;
    font-size:clamp(1.9rem,3vw,2.9rem)!important;
    font-weight:760;
    line-height:1.06!important;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) h4 sub {
    display:inline-block;
    margin-top:8px;
    color:var(--atlas-muted);
    font-size:.45em;
    font-weight:580;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) ul.wp-block-post-template {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) li.wp-block-post { margin:0!important; }

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) li.wp-block-post>.wp-block-columns {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 96px;
    align-items:stretch!important;
    gap:0!important;
    min-height:96px;
    margin:0!important;
    padding:0!important;
    overflow:hidden;
    background:var(--atlas-card-solid)!important;
    border:1px solid var(--atlas-border)!important;
    border-radius:17px!important;
    box-shadow:0 8px 24px rgba(25,56,42,.07);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) li.wp-block-post>.wp-block-columns:hover {
    border-color:var(--atlas-border-strong)!important;
    box-shadow:0 15px 34px rgba(24,56,42,.12);
    transform:translateY(-2px);
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) li.wp-block-post>.wp-block-columns>.wp-block-column:nth-child(1) {
    display:flex;
    align-items:center;
    padding:14px 15px;
}
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) li.wp-block-post>.wp-block-columns>.wp-block-column:nth-child(2) { display:none!important; }
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) li.wp-block-post>.wp-block-columns>.wp-block-column:nth-child(3) {
    width:96px;
    max-width:96px;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) .wp-block-post-title {
    width:100%;
    margin:0!important;
    font-size:1rem!important;
    font-weight:720;
    line-height:1.22!important;
    text-align:left!important;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) .wp-block-post-title a {
    color:var(--atlas-ink);
    text-decoration:none;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) .wp-block-template-part,
body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) .wp-block-post-featured-image {
    width:100%;
    height:100%!important;
    margin:0!important;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) .wp-block-post-featured-image img {
    width:100%;
    height:100%!important;
    object-fit:cover;
}

body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) li.wp-block-post:hover img { transform:scale(1.06); }

/* ---------- Single post ---------- */
body.sofon-atlas-modern.single-post main { padding-bottom:clamp(48px,7vw,96px); }

body.sofon-atlas-modern.single-post main>.wp-block-group:first-child {
    max-width:none!important;
    padding:clamp(54px,7vw,92px) clamp(18px,5vw,70px) clamp(24px,4vw,46px)!important;
    background:
        radial-gradient(circle at 12% 18%,rgba(104,169,125,.16),transparent 25rem),
        radial-gradient(circle at 88% 0%,rgba(66,137,150,.14),transparent 27rem),
        linear-gradient(145deg,#f4f8f4,#eaf3ed 56%,#edf5f6);
}

body.sofon-atlas-modern.single-post main>.wp-block-group:first-child>.wp-block-group {
    width:min(100%,var(--atlas-wide));
    max-width:var(--atlas-wide)!important;
    margin-inline:auto;
}

body.sofon-atlas-modern.single-post .wp-block-post-title {
    max-width:960px;
    margin-inline:auto;
    font-size:clamp(2.35rem,5vw,4.8rem)!important;
    font-weight:790;
    line-height:.98;
    letter-spacing:-.055em;
    text-wrap:balance;
}

body.sofon-atlas-modern.single-post main>.wp-block-group:first-child .wp-block-post-terms {
    max-width:1000px;
    margin-inline:auto;
    color:var(--atlas-muted);
    font-size:.86rem;
    line-height:2.15;
}

body.sofon-atlas-modern.single-post main>.wp-block-group:first-child .wp-block-post-terms a {
    display:inline-block;
    margin:2px 3px;
    padding:4px 9px;
    color:var(--atlas-green-deep);
    font-weight:650;
    line-height:1.35;
    text-decoration:none;
    background:rgba(255,255,255,.68);
    border:1px solid var(--atlas-border);
    border-radius:999px;
}

body.sofon-atlas-modern.single-post main>.wp-block-group:first-child .wp-block-post-terms a:hover {
    background:#fff;
    border-color:var(--atlas-border-strong);
    box-shadow:var(--atlas-shadow-sm);
    transform:translateY(-1px);
}

body.sofon-atlas-modern.single-post main>.wp-block-group:first-child .wp-block-post-featured-image {
    width:min(100%,1160px);
    margin:28px auto 0!important;
    overflow:hidden;
    border-radius:var(--atlas-radius-lg);
    box-shadow:var(--atlas-shadow-lg);
}

body.sofon-atlas-modern.single-post main>.wp-block-group:first-child .wp-block-post-featured-image img {
    width:100%;
    max-height:650px;
    object-fit:cover;
}

body.sofon-atlas-modern.single-post .entry-content {
    width:min(calc(100% - 34px),960px);
    max-width:960px!important;
    margin:clamp(30px,5vw,58px) auto 0;
    padding:clamp(28px,5vw,56px) clamp(22px,5vw,62px);
    color:#263a31;
    font-size:clamp(1rem,1.2vw,1.1rem);
    line-height:1.78;
    background:var(--atlas-card);
    border:1px solid var(--atlas-border);
    border-radius:var(--atlas-radius-lg);
    box-shadow:var(--atlas-shadow);
    backdrop-filter:blur(12px);
}

body.sofon-atlas-modern.single-post .entry-content>p:first-child {
    margin-top:0;
    color:var(--atlas-green);
    font-size:clamp(1.1rem,1.8vw,1.35rem);
    font-style:italic;
    font-weight:650;
}

body.sofon-atlas-modern.single-post .entry-content h5 {
    margin:34px 0 14px;
    padding-bottom:9px;
    color:var(--atlas-green-deep);
    font-size:clamp(1.18rem,1.6vw,1.4rem);
    font-weight:780;
    border-bottom:1px solid var(--atlas-border);
}

body.sofon-atlas-modern.single-post .entry-content .table-responsive {
    width:100%;
    overflow-x:auto;
}

body.sofon-atlas-modern.single-post .entry-content table {
    width:100%;
    margin:0 0 15px;
    overflow:hidden;
    border-collapse:separate;
    border-spacing:0;
    background:rgba(242,247,243,.72);
    border:1px solid var(--atlas-border);
    border-radius:15px;
}

body.sofon-atlas-modern.single-post .entry-content th,
body.sofon-atlas-modern.single-post .entry-content td {
    padding:11px 14px;
    border:0;
    border-bottom:1px solid var(--atlas-border);
    vertical-align:top;
}

body.sofon-atlas-modern.single-post .entry-content tr:last-child th,
body.sofon-atlas-modern.single-post .entry-content tr:last-child td { border-bottom:0; }

body.sofon-atlas-modern.single-post .entry-content th {
    width:38%;
    color:var(--atlas-green-deep);
    font-weight:720;
    background:rgba(217,234,222,.42);
}

body.sofon-atlas-modern.single-post .entry-content img {
    max-width:100%;
    height:auto;
    border-radius:18px;
}

body.sofon-atlas-modern.single-post .entry-content .mb-3>p>img,
body.sofon-atlas-modern.single-post .entry-content img[alt*="výskyt" i] {
    display:block;
    margin:12px auto 0;
    padding:8px;
    background:#fff;
    border:1px solid var(--atlas-border);
    box-shadow:var(--atlas-shadow-sm);
}

/* Related posts */
body.sofon-atlas-modern.single-post .crp_related {
    margin-top:44px;
    padding-top:30px;
    border-top:1px solid var(--atlas-border);
}

body.sofon-atlas-modern.single-post .crp_related>h2 {
    margin:0 0 18px;
    font-size:clamp(1.45rem,2.4vw,2rem);
    font-weight:760;
}

body.sofon-atlas-modern.single-post .crp_related ul {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:13px!important;
    margin:0!important;
    padding:0!important;
}

body.sofon-atlas-modern.single-post .crp_related li {
    width:auto!important;
    margin:0!important;
    overflow:hidden;
    background:var(--atlas-card-solid);
    border:1px solid var(--atlas-border);
    border-radius:16px;
    box-shadow:0 8px 22px rgba(29,61,47,.07);
}

body.sofon-atlas-modern.single-post .crp_related a.crp_link {
    display:grid;
    grid-template-columns:76px 1fr;
    align-items:center;
    min-height:76px;
    color:var(--atlas-ink);
    text-decoration:none;
}

body.sofon-atlas-modern.single-post .crp_related figure {
    width:76px!important;
    height:76px!important;
    margin:0!important;
    overflow:hidden;
}

body.sofon-atlas-modern.single-post .crp_related img {
    width:100%!important;
    height:100%!important;
    margin:0!important;
    object-fit:cover;
    border-radius:0!important;
}

body.sofon-atlas-modern.single-post .crp_related .crp_title {
    padding:10px 12px;
    font-size:.9rem;
    font-weight:700;
    line-height:1.25;
}

body.sofon-atlas-modern.single-post .crp_related li:hover img { transform:scale(1.06); }

/* Post nav */
body.sofon-atlas-modern.single-post main>.wp-block-group:last-child {
    width:min(calc(100% - 34px),880px);
    max-width:880px!important;
    margin:24px auto 0;
}

body.sofon-atlas-modern.single-post .wp-block-post-navigation-link a {
    display:inline-flex;
    padding:11px 15px;
    color:var(--atlas-green-deep);
    font-weight:680;
    text-decoration:none;
    background:var(--atlas-card);
    border:1px solid var(--atlas-border);
    border-radius:999px;
    box-shadow:var(--atlas-shadow-sm);
}

/* ---------- Pages ---------- */
body.sofon-atlas-modern.page main { padding-bottom:clamp(50px,7vw,90px); }

body.sofon-atlas-modern.page main>.wp-block-group:first-child {
    max-width:none!important;
    padding:clamp(48px,6vw,78px) clamp(18px,5vw,70px) clamp(26px,4vw,44px)!important;
    background:
        radial-gradient(circle at 12% 10%,rgba(112,170,129,.13),transparent 23rem),
        linear-gradient(145deg,#f5f9f5,#edf4ef 65%,#edf5f6);
}

body.sofon-atlas-modern.page main>.wp-block-group:first-child .wp-block-post-title {
    max-width:1050px;
    margin-inline:auto;
    font-size:clamp(2.25rem,4.5vw,4.35rem);
    font-weight:790;
    line-height:1;
    letter-spacing:-.05em;
    text-wrap:balance;
}

body.sofon-atlas-modern.page .entry-content {
    width:min(calc(100% - 34px),1120px);
    max-width:1120px!important;
    margin:clamp(28px,4vw,48px) auto 0;
    padding:clamp(26px,4vw,48px) clamp(18px,4vw,48px);
    color:var(--atlas-ink);
    background:var(--atlas-card);
    border:1px solid var(--atlas-border);
    border-radius:var(--atlas-radius-lg);
    box-shadow:var(--atlas-shadow);
}

/* Kategorie Atlasu */
body.sofon-atlas-modern.page-id-1284 .entry-content .is-layout-grid { gap:10px!important; }
body.sofon-atlas-modern.page-id-1284 .entry-content .is-layout-grid>* { min-width:0; }

body.sofon-atlas-modern.page-id-1284 .entry-content .wp-block-button__link {
    color:var(--atlas-green-deep);
    font-weight:680;
    text-decoration:none;
    background:var(--atlas-soft);
    border:1px solid var(--atlas-border);
    border-radius:999px;
}

body.sofon-atlas-modern.page-id-1284 .entry-content .wp-block-button__link:hover {
    background:#fff;
    border-color:var(--atlas-border-strong);
    box-shadow:var(--atlas-shadow-sm);
    transform:translateY(-1px);
}

/* Index A-Z */
body.sofon-atlas-modern.page-id-398 .entry-content { max-width:1240px!important; }

body.sofon-atlas-modern.page-id-398 .pld-minimal-list-inr {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin:0;
    padding:0;
}

body.sofon-atlas-modern.page-id-398 .pld-list {
    display:block;
    margin:0!important;
    padding:14px 15px!important;
    text-align:left;
    background:var(--atlas-card-solid);
    border:1px solid var(--atlas-border);
    border-radius:14px;
    box-shadow:0 5px 16px rgba(28,61,46,.05);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

body.sofon-atlas-modern.page-id-398 .pld-list:hover {
    border-color:var(--atlas-border-strong);
    box-shadow:0 10px 24px rgba(28,61,46,.09);
    transform:translateY(-1px);
}

body.sofon-atlas-modern.page-id-398 .pld-list-title {
    margin-bottom:7px;
    font-weight:760;
    line-height:1.2;
}

body.sofon-atlas-modern.page-id-398 .pld-list-title a {
    color:var(--atlas-green-deep);
    text-decoration:none;
}

body.sofon-atlas-modern.page-id-398 .pld-post-meta {
    font-size:.74rem;
    line-height:1.45;
}

body.sofon-atlas-modern.page-id-398 .pld-post-meta a {
    display:inline-block;
    margin:2px 3px 2px 0;
    padding:2px 6px;
    color:var(--atlas-muted);
    text-decoration:none;
    background:var(--atlas-soft);
    border-radius:999px;
}

/* Forms */
body.sofon-atlas-modern .fluentform input:not([type="checkbox"]):not([type="radio"]),
body.sofon-atlas-modern .fluentform select,
body.sofon-atlas-modern .fluentform textarea,
body.sofon-atlas-modern .frm-fluent-form input:not([type="checkbox"]):not([type="radio"]),
body.sofon-atlas-modern .frm-fluent-form select,
body.sofon-atlas-modern .frm-fluent-form textarea {
    min-height:46px;
    color:var(--atlas-ink)!important;
    background:rgba(255,255,255,.84)!important;
    border:1px solid var(--atlas-border-strong)!important;
    border-radius:12px!important;
}

body.sofon-atlas-modern .fluentform textarea,
body.sofon-atlas-modern .frm-fluent-form textarea { min-height:150px; }

body.sofon-atlas-modern .fluentform button,
body.sofon-atlas-modern .frm-fluent-form button {
    padding:11px 18px!important;
    color:#fff!important;
    font-weight:720!important;
    background:linear-gradient(135deg,var(--atlas-green),var(--atlas-teal))!important;
    border:0!important;
    border-radius:12px!important;
    box-shadow:0 9px 20px rgba(45,101,79,.18);
}

/* ---------- Archive / search ---------- */
body.sofon-atlas-modern.archive main,
body.sofon-atlas-modern.search main {
    padding:clamp(52px,7vw,86px) clamp(18px,5vw,70px) clamp(58px,8vw,104px)!important;
    background:
        radial-gradient(circle at 90% 0%,rgba(74,145,157,.10),transparent 26rem),
        linear-gradient(180deg,#f5f8f4,#eef4ef)!important;
}

body.sofon-atlas-modern.archive main>*,
body.sofon-atlas-modern.search main>* {
    width:min(100%,var(--atlas-wide));
    margin-inline:auto;
}

body.sofon-atlas-modern.archive .wp-block-query-title,
body.sofon-atlas-modern.search .wp-block-query-title {
    padding-top:0!important;
    font-size:clamp(2.3rem,4.7vw,4.5rem);
    font-weight:790;
    line-height:1;
    letter-spacing:-.05em;
}

body.sofon-atlas-modern.archive .wp-block-term-description {
    max-width:860px;
    color:var(--atlas-muted);
    font-size:1rem!important;
    line-height:1.7!important;
}

body.sofon-atlas-modern.archive ul.wp-block-post-template,
body.sofon-atlas-modern.search ul.wp-block-post-template {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:16px!important;
    margin-top:30px;
}

body.sofon-atlas-modern.archive li.wp-block-post,
body.sofon-atlas-modern.search li.wp-block-post {
    overflow:hidden;
    background:var(--atlas-card-solid);
    border:1px solid var(--atlas-border);
    border-radius:19px;
    box-shadow:0 8px 24px rgba(28,61,46,.07);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

body.sofon-atlas-modern.archive li.wp-block-post:hover,
body.sofon-atlas-modern.search li.wp-block-post:hover {
    border-color:var(--atlas-border-strong);
    box-shadow:0 17px 36px rgba(28,61,46,.12);
    transform:translateY(-3px);
}

body.sofon-atlas-modern.archive li.wp-block-post .wp-block-post-featured-image,
body.sofon-atlas-modern.search li.wp-block-post .wp-block-post-featured-image {
    margin:0!important;
    overflow:hidden;
    border-radius:0!important;
}

body.sofon-atlas-modern.archive li.wp-block-post:hover img,
body.sofon-atlas-modern.search li.wp-block-post:hover img { transform:scale(1.045); }

body.sofon-atlas-modern.archive li.wp-block-post .wp-block-post-title,
body.sofon-atlas-modern.search li.wp-block-post .wp-block-post-title {
    margin:0!important;
    padding:2px 13px 15px;
    font-size:1.05rem!important;
    font-weight:720;
    line-height:1.25;
}

body.sofon-atlas-modern.archive li.wp-block-post .wp-block-post-title a,
body.sofon-atlas-modern.search li.wp-block-post .wp-block-post-title a {
    color:var(--atlas-ink);
    text-decoration:none;
}

/* Pagination */
body.sofon-atlas-modern .wp-block-query-pagination {
    margin-top:34px;
    gap:8px;
}

body.sofon-atlas-modern .wp-block-query-pagination a,
body.sofon-atlas-modern .wp-block-query-pagination .page-numbers {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    min-height:38px;
    padding:7px 10px;
    color:var(--atlas-green-deep);
    font-weight:670;
    text-decoration:none;
    background:var(--atlas-card);
    border:1px solid var(--atlas-border);
    border-radius:11px;
}

body.sofon-atlas-modern .wp-block-query-pagination .current,
body.sofon-atlas-modern .wp-block-query-pagination a:hover {
    color:#fff;
    background:var(--atlas-green);
    border-color:var(--atlas-green);
}

/* ---------- Footer ---------- */
body.sofon-atlas-modern>.wp-site-blocks>footer.wp-block-template-part { margin-block-start:0!important; }

body.sofon-atlas-modern>.wp-site-blocks>footer.wp-block-template-part>.wp-block-group {
    padding:clamp(48px,6vw,76px) clamp(18px,5vw,70px) 30px!important;
    color:rgba(255,255,255,.78);
    background:
        radial-gradient(circle at 80% 10%,rgba(100,169,147,.14),transparent 25rem),
        linear-gradient(145deg,#102d25,#173f32 54%,#183a3f)!important;
    border-top:1px solid rgba(255,255,255,.07);
}

body.sofon-atlas-modern footer>.wp-block-group>.wp-block-columns {
    width:min(100%,var(--atlas-wide));
    margin-inline:auto;
    padding-bottom:26px;
}

body.sofon-atlas-modern footer .wp-block-site-title,
body.sofon-atlas-modern footer .wp-block-site-title a,
body.sofon-atlas-modern footer h2,
body.sofon-atlas-modern footer h3 { color:#fff!important; }

body.sofon-atlas-modern footer .wp-block-site-tagline { color:rgba(255,255,255,.63); }

body.sofon-atlas-modern footer .wp-block-site-logo a {
    display:inline-flex;
    padding:5px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.1);
    border-radius:17px;
}

body.sofon-atlas-modern footer .wp-block-navigation-item__content {
    color:rgba(255,255,255,.74)!important;
    text-decoration:none;
}

body.sofon-atlas-modern footer .wp-block-navigation-item__content:hover {
    color:#fff!important;
    transform:translateX(2px);
}

body.sofon-atlas-modern footer .wp-block-image {
    overflow:hidden;
    border-radius:18px;
    opacity:.86;
}

body.sofon-atlas-modern footer .wp-block-quote {
    width:min(100%,960px);
    margin:18px auto!important;
    padding:16px 20px;
    color:rgba(255,255,255,.58);
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.07);
    border-radius:16px;
}

body.sofon-atlas-modern footer>.wp-block-group>p { color:rgba(255,255,255,.56); }
body.sofon-atlas-modern footer>.wp-block-group>p a { color:rgba(255,255,255,.70); }

/* ---------- Dark mode compatibility ---------- */
html[data-wp-dark-mode-active] body.sofon-atlas-modern {
    --atlas-page:#131a17;
    --atlas-page-2:#17201c;
    --atlas-card:rgba(29,40,35,.91);
    --atlas-card-solid:#1c2722;
    --atlas-soft:#24342c;
    --atlas-ink:#edf5f0;
    --atlas-muted:#adbbb3;
    --atlas-green:#78b38f;
    --atlas-green-deep:#9bd0ae;
    --atlas-teal:#7bbbc2;
    --atlas-border:rgba(212,237,222,.10);
    --atlas-border-strong:rgba(212,237,222,.20);
    --atlas-shadow-sm:0 8px 24px rgba(0,0,0,.15);
    --atlas-shadow:0 20px 55px rgba(0,0,0,.22);
    --atlas-shadow-lg:0 30px 80px rgba(0,0,0,.30);

    color:var(--atlas-ink)!important;
    background:linear-gradient(180deg,#121915,#17201c)!important;
}

html[data-wp-dark-mode-active] body.sofon-atlas-modern h1,
html[data-wp-dark-mode-active] body.sofon-atlas-modern h2,
html[data-wp-dark-mode-active] body.sofon-atlas-modern h3,
html[data-wp-dark-mode-active] body.sofon-atlas-modern h4,
html[data-wp-dark-mode-active] body.sofon-atlas-modern h5 { color:var(--atlas-ink)!important; }

html[data-wp-dark-mode-active] body.sofon-atlas-modern>.wp-site-blocks>header.wp-block-template-part>header.wp-block-group {
    background:linear-gradient(135deg,rgba(22,31,27,.95),rgba(26,39,33,.94))!important;
}

html[data-wp-dark-mode-active] body.sofon-atlas-modern header .wp-block-site-logo a,
html[data-wp-dark-mode-active] body.sofon-atlas-modern .wp-block-search__inside-wrapper {
    background:rgba(30,44,37,.92);
}

html[data-wp-dark-mode-active] body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1),
html[data-wp-dark-mode-active] body.sofon-atlas-modern.single-post main>.wp-block-group:first-child,
html[data-wp-dark-mode-active] body.sofon-atlas-modern.page main>.wp-block-group:first-child {
    background:
        radial-gradient(circle at 12% 10%,rgba(82,139,98,.12),transparent 24rem),
        linear-gradient(145deg,#16201b,#1b2922 58%,#1a292c)!important;
}

html[data-wp-dark-mode-active] body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2),
html[data-wp-dark-mode-active] body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4),
html[data-wp-dark-mode-active] body.sofon-atlas-modern.archive main,
html[data-wp-dark-mode-active] body.sofon-atlas-modern.search main {
    background:linear-gradient(180deg,#17201c,#121915)!important;
}

html[data-wp-dark-mode-active] body.sofon-atlas-modern.home main>.wp-block-group:nth-child(2) .wp-block-columns:has(h3) {
    background:linear-gradient(135deg,rgba(31,44,37,.96),rgba(30,47,39,.92))!important;
}

html[data-wp-dark-mode-active] body.sofon-atlas-modern.single-post .entry-content { color:#dce8e1; }
html[data-wp-dark-mode-active] body.sofon-atlas-modern.single-post .entry-content table { background:rgba(35,50,42,.88); }
html[data-wp-dark-mode-active] body.sofon-atlas-modern.single-post .entry-content th { background:rgba(63,92,75,.32); }

html[data-wp-dark-mode-active] body.sofon-atlas-modern .fluentform input:not([type="checkbox"]):not([type="radio"]),
html[data-wp-dark-mode-active] body.sofon-atlas-modern .fluentform select,
html[data-wp-dark-mode-active] body.sofon-atlas-modern .fluentform textarea {
    color:var(--atlas-ink)!important;
    background:#202e27!important;
}

/* ---------- Responsive ---------- */
@media (max-width:1100px) {
    body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) ul.wp-block-post-template {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    body.sofon-atlas-modern.archive ul.wp-block-post-template,
    body.sofon-atlas-modern.search ul.wp-block-post-template {
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
    body.sofon-atlas-modern.page-id-398 .pld-minimal-list-inr {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:900px) {
    body.sofon-atlas-modern>.wp-site-blocks>header.wp-block-template-part>header.wp-block-group {
        padding-inline:18px!important;
    }
    body.sofon-atlas-modern header>.wp-block-group:first-child { flex-wrap:nowrap!important; }
    body.sofon-atlas-modern header .wp-block-navigation__responsive-container-open {
        display:flex;
        align-items:center;
        justify-content:center;
        width:42px;
        height:42px;
        color:var(--atlas-green-deep);
        background:var(--atlas-card);
        border:1px solid var(--atlas-border);
        border-radius:12px;
    }
    body.sofon-atlas-modern .wp-block-navigation__responsive-container.is-menu-open {
        padding:24px!important;
        color:var(--atlas-ink);
        background:var(--atlas-page)!important;
    }
    body.sofon-atlas-modern.archive ul.wp-block-post-template,
    body.sofon-atlas-modern.search ul.wp-block-post-template {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    body.sofon-atlas-modern.single-post .crp_related ul { grid-template-columns:1fr; }
}

@media (max-width:720px) {
    body.sofon-atlas-modern header .wp-block-site-logo img { width:48px!important; }
    body.sofon-atlas-modern header .wp-block-site-title+p,
    body.sofon-atlas-modern header>p.has-text-align-center { display:none; }

    body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1) { min-height:auto; }
    body.sofon-atlas-modern.home main>.wp-block-group:nth-child(1) h1 {
        font-size:clamp(2.2rem,11vw,3.6rem)!important;
    }

    body.sofon-atlas-modern.home main>.wp-block-group:nth-child(4) ul.wp-block-post-template,
    body.sofon-atlas-modern.archive ul.wp-block-post-template,
    body.sofon-atlas-modern.search ul.wp-block-post-template {
        grid-template-columns:1fr!important;
    }

    body.sofon-atlas-modern.page-id-398 .pld-minimal-list-inr { grid-template-columns:1fr; }

    body.sofon-atlas-modern.single-post .entry-content,
    body.sofon-atlas-modern.page .entry-content {
        width:calc(100% - 24px);
        border-radius:22px;
    }

    body.sofon-atlas-modern.single-post .entry-content th,
    body.sofon-atlas-modern.single-post .entry-content td { padding:9px 10px; }
}

@media (prefers-reduced-motion:reduce) {
    body.sofon-atlas-modern *,
    body.sofon-atlas-modern *::before,
    body.sofon-atlas-modern *::after {
        transition-duration:.01ms!important;
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
    }
}
