/* Dětský domov Tachov – nový veřejný skin souborový redakční systém. */
:root{--brand-orange:#F47A45;--brand-yellow:#F2C94C;--brand-ink:#1F2937;--brand-green:#426B5A;--surface-warm:#FFF7EF;--surface-soft:#F6F7F8;--surface:#fff;--text:#20242A;--muted:#667085;--line:#E6E8EB;--radius:22px;--shadow:0 18px 50px rgba(31,41,55,.10)}
html{scroll-behavior:smooth}body{background:var(--surface);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:17px;line-height:1.65}a{color:inherit}.wrap{width:min(1240px,calc(100% - 48px));margin-inline:auto}.skip:focus{z-index:2147483647}
.dd-topbar{background:var(--brand-green);color:#fff;font-size:13px}.dd-topbar__in{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px}.dd-topbar__contact{display:flex;align-items:center;gap:18px}.dd-topbar a{color:#fff;text-decoration:none}.dd-topbar a:hover{text-decoration:underline}
.site-head{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.97);border-bottom:1px solid rgba(31,41,55,.08);box-shadow:0 4px 20px rgba(31,41,55,.05);backdrop-filter:blur(14px)}.site-head__in{min-height:84px;display:flex;align-items:center;gap:28px}.brand--img{display:inline-flex;align-items:center;text-decoration:none;flex:0 0 auto}.brand--img img{display:block;max-height:62px;width:auto;object-fit:contain}.site-nav{display:flex;align-items:center;gap:22px;min-width:0;flex:1}.site-nav ul{display:flex;align-items:center;justify-content:center;gap:4px;list-style:none;margin:0;padding:0;flex:1}.site-nav li{margin:0}.site-nav li a{display:flex;align-items:center;gap:5px;padding:12px 11px;border-radius:12px;color:var(--brand-ink);font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap;transition:.15s ease}.site-nav li a:hover,.site-nav li a[aria-current="page"]{background:var(--surface-warm);color:#9c4524}.site-nav li a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--brand-orange)}.external-mark{font-size:11px;opacity:.65}.site-nav__cta{display:flex;gap:8px}.site-head__toggle{display:none}
.btn{border-radius:999px;font-weight:700;min-height:44px;padding:10px 19px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.btn:hover{transform:translateY(-1px)}.btn--primary{background:var(--brand-orange);color:#fff;box-shadow:0 9px 24px rgba(244,122,69,.25)}.btn--primary:hover{background:#df693b}.btn--dark{background:var(--brand-ink);color:#fff}.btn--outline{border-color:var(--line);background:#fff;color:var(--brand-ink)}.btn--ghost{border-color:rgba(31,41,55,.16);background:transparent;color:inherit}.btn--glass{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.11);color:#fff;backdrop-filter:blur(8px)}.btn--lg{min-height:50px;padding:12px 23px}
.dd-hero{position:relative;min-height:620px;height:min(68svh,720px);overflow:hidden;background:#1f2c27;color:#fff}.dd-hero__slides,.dd-hero__slide{position:absolute;inset:0}.dd-hero__slide{opacity:0;transition:opacity .65s ease}.dd-hero__slide.is-active{opacity:1}.dd-hero__slide img{width:100%;height:100%;object-fit:cover;display:block}.dd-hero__fallback{background:var(--brand-green)}.dd-hero__veil{position:absolute;inset:0;background:linear-gradient(90deg,rgba(14,25,22,.78) 0%,rgba(14,25,22,.42) 48%,rgba(14,25,22,.10) 75%)}.dd-hero__content{position:relative;z-index:2;height:100%;min-height:620px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-block:60px;max-width:1240px}.dd-hero__eyebrow,.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:800}.dd-hero__eyebrow{color:#fff3c4;margin:0 0 12px}.dd-hero h1{font-size:clamp(44px,6vw,80px);line-height:.98;letter-spacing:-.04em;max-width:760px;margin:0;text-wrap:balance;text-shadow:0 2px 24px rgba(0,0,0,.22)}.dd-hero__lead{font-size:clamp(18px,2vw,24px);max-width:620px;margin:22px 0 0;color:rgba(255,255,255,.92)}.dd-hero__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}.dd-hero__controls{position:absolute;z-index:3;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;background:rgba(14,25,22,.58);border:1px solid rgba(255,255,255,.2);padding:7px 10px;border-radius:999px;backdrop-filter:blur(12px)}.dd-hero__controls>button{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#fff;font-size:20px;cursor:pointer}.dd-hero__controls>button:hover{background:rgba(255,255,255,.14)}.dd-hero__dots{display:flex;gap:7px}.dd-hero__dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.48);cursor:pointer}.dd-hero__dots button.is-active{background:#fff;transform:scale(1.25)}
.dd-section{padding:78px 0}.dd-section--soft{background:var(--surface-soft)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:32px}.section-head h2,.dd-address h2,.dd-contact-strip h2{font-size:clamp(30px,4vw,48px);line-height:1.06;letter-spacing:-.03em;margin:4px 0 0}.eyebrow{color:var(--brand-green);margin:0}.text-link{font-weight:750;color:var(--brand-green);text-decoration:none}.text-link:hover{text-decoration:underline}
.dd-quick{background:#fff}.dd-quick__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.dd-quick__item{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:14px;min-height:122px;padding:20px;border:1px solid var(--line);border-radius:18px;text-decoration:none;background:#fff;transition:.16s ease}.dd-quick__item:hover{border-color:#f5bb9f;box-shadow:var(--shadow);transform:translateY(-2px)}.dd-quick__icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:var(--surface-warm);color:#a04725;font-weight:800}.dd-quick__item strong{display:block;font-size:16px;line-height:1.2}.dd-quick__item small{display:block;color:var(--muted);line-height:1.4;margin-top:5px}.dd-quick__item b{color:var(--brand-orange);font-size:20px}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.post-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 9px 30px rgba(31,41,55,.05);display:flex;flex-direction:column;min-width:0;transition:.16s ease}.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.post-card__media{display:block;aspect-ratio:4/3;background:#eceeea;overflow:hidden}.post-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.post-card:hover .post-card__media img{transform:scale(1.025)}.post-card__placeholder{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--surface-warm),#eef4ef)}.post-card__body{padding:21px 22px 23px;display:flex;flex-direction:column;flex:1}.post-card__cat{display:block;color:var(--brand-green);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.post-card h3{font-size:21px;line-height:1.23;letter-spacing:-.02em;margin:7px 0 10px}.post-card h3 a{text-decoration:none}.post-card p{color:var(--muted);font-size:15px;line-height:1.55;margin:0 0 15px}.post-card time{font-size:13px;color:var(--muted);margin-top:auto}.post-grid--help .post-card__media{aspect-ratio:3/2}
.dd-help{background:var(--surface-warm)}.dd-help__cta{margin-top:30px;padding:26px 30px;border-radius:var(--radius);background:var(--brand-green);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px}.dd-help__cta h3{font-size:24px;margin:0 0 4px}.dd-help__cta p{margin:0;max-width:720px;color:rgba(255,255,255,.82)}
.dd-address{padding:58px 0;background:#fff}.dd-address__grid{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:70px}.dd-address__contacts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.dd-address__contacts a{padding:18px;border:1px solid var(--line);border-radius:16px;text-decoration:none}.dd-address__contacts small{display:block;color:var(--muted);font-size:12px}.dd-address__contacts strong{display:block;font-size:15px;margin-top:2px;overflow-wrap:anywhere}
.dd-pagehead{background:var(--surface-warm);padding:64px 0 54px;border-bottom:1px solid #f2dfcf}.dd-pagehead h1,.article__head h1{font-size:clamp(38px,5vw,64px);line-height:1.04;letter-spacing:-.035em;margin:8px 0 14px;text-wrap:balance}.dd-pagehead .lead{font-size:19px;color:var(--muted);max-width:760px;margin:0}.crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:13px;margin-bottom:26px}.crumbs a{color:var(--brand-green);text-decoration:none}.crumbs a:hover{text-decoration:underline}.pager{display:flex;justify-content:center;gap:8px;margin-top:42px}.pager a{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;text-decoration:none}.pager a[aria-current="page"]{background:var(--brand-green);color:#fff;border-color:var(--brand-green)}
.article__head{padding:58px 0 0;background:var(--surface-warm);border-bottom:1px solid #f0dfd0}.article__headin{max-width:930px}.article__perex{font-size:20px;line-height:1.55;color:#505966;max-width:820px}.article__meta{font-size:13px;color:var(--muted);margin:18px 0 28px}.article__hero{max-width:1080px;transform:translateY(34px);margin-bottom:34px}.article__hero img{display:block;width:100%;max-height:680px;object-fit:cover;border-radius:26px;box-shadow:var(--shadow)}.article__content{max-width:900px;padding-top:62px;padding-bottom:70px}.article__body{font-size:18px;line-height:1.72;overflow-wrap:anywhere}.article__body p,.article__body div{max-width:100%}.article__body h2{font-size:30px;line-height:1.2;margin-top:38px}.article__body h3{font-size:24px}.article__body a{color:#17608f;text-decoration-thickness:1.5px;text-underline-offset:2px}.article__body a[href$=".pdf" i],.article__body a[href$=".doc" i],.article__body a[href$=".docx" i]{font-weight:750;background:#eef6fb;border-radius:6px;padding:2px 5px}.article__body img.art-inline,.art-img img{max-width:100%;height:auto;border-radius:16px}.art-block{margin:0 0 24px}.art-text>div{padding:0!important;border:0!important;background:transparent!important}.art-text font{font:inherit}.art-text table{width:100%!important;border-collapse:collapse;margin:24px 0;font-size:15px;display:block;overflow-x:auto}.art-text th,.art-text td{border:1px solid var(--line)!important;padding:9px 11px!important;background:#fff!important}.art-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0}.art-gallery a{aspect-ratio:4/3;display:block;overflow:hidden;border-radius:14px;background:#eee}.art-gallery img{width:100%;height:100%;object-fit:cover;display:block}.art-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px}.art-video{aspect-ratio:16/9}.art-video iframe{width:100%;height:100%;border:0}.notice{padding:12px 16px;border-radius:12px;background:#fff0bf;color:#725b10;font-weight:700}.empty-state{padding:40px;border:1px dashed var(--line);border-radius:18px;text-align:center;color:var(--muted)}
.dd-contact-strip{padding:54px 0;background:var(--brand-yellow);color:var(--brand-ink)}.dd-contact-strip__in{display:flex;align-items:center;justify-content:space-between;gap:30px}.dd-contact-strip p{margin:8px 0 0}.dd-contact-strip__actions{display:flex;gap:10px;flex-wrap:wrap}
.site-foot{background:#1c2924;color:#fff;padding:56px 0 26px}.dd-foot-grid{display:grid;grid-template-columns:1.4fr repeat(2,1fr);gap:50px}.dd-foot-brand .brand{margin-bottom:14px}.dd-foot-brand .brand img{background:#fff;border-radius:8px}.dd-foot-brand p{color:rgba(255,255,255,.72);margin:8px 0}.dd-foot-brand a,.site-foot a{color:#fff}.site-foot__col .site-foot__h{color:#fff;font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.site-foot__col ul{list-style:none;margin:12px 0 0;padding:0}.site-foot__col li{margin:8px 0}.site-foot__col a{color:rgba(255,255,255,.74);text-decoration:none}.site-foot__col a:hover{color:#fff;text-decoration:underline}.site-foot__social{display:flex;align-items:center;gap:12px;padding-top:34px;margin-top:34px;border-top:1px solid rgba(255,255,255,.12)}.site-foot__bottom{display:flex;justify-content:space-between;gap:24px;padding-top:26px;margin-top:26px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;color:rgba(255,255,255,.58)}.site-foot__bottom p{margin:0}.site-foot__bottom a{color:inherit}
.lightbox[hidden]{display:none}.lightbox{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.9);display:grid;place-items:center;padding:60px}.lightbox img{max-width:92vw;max-height:86vh}.lightbox button{position:fixed;border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:50%;width:48px;height:48px;font-size:28px}.lightbox__close{right:20px;top:20px}.lightbox__prev{left:20px;top:50%}.lightbox__next{right:20px;top:50%}
.inline-on [contenteditable="true"]{outline:2px dashed rgba(244,122,69,.8);outline-offset:4px;border-radius:4px}.inline-on [contenteditable="true"]:focus{outline-style:solid;background:rgba(255,248,238,.75)}
@media(max-width:1180px){.site-nav li a{font-size:13px;padding-inline:8px}.site-nav__cta{display:none}.dd-quick__grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.wrap{width:min(100% - 32px,1240px)}.dd-topbar__contact a:first-child{display:none}.site-head__in{min-height:72px}.brand--img img{max-height:52px}.site-head__toggle{display:inline-flex;margin-left:auto;border:0;background:var(--surface-warm);width:46px;height:46px;border-radius:14px;align-items:center;justify-content:center;color:var(--brand-ink)}.site-nav{position:absolute;display:none;top:100%;left:0;right:0;background:#fff;border-top:1px solid var(--line);box-shadow:0 18px 35px rgba(31,41,55,.12);padding:14px 16px 22px;max-height:calc(100svh - 110px);overflow:auto}.site-head.nav-open .site-nav,.site-nav.is-open{display:block}.site-nav ul{display:block}.site-nav li a{font-size:16px;padding:13px 10px}.site-nav__cta{display:flex;padding:10px}.dd-hero{height:66svh;min-height:520px}.dd-hero__content{min-height:520px}.dd-hero__veil{background:linear-gradient(90deg,rgba(14,25,22,.78),rgba(14,25,22,.22))}.post-grid{grid-template-columns:repeat(2,1fr)}.dd-address__grid{grid-template-columns:1fr;gap:28px}.dd-foot-grid{grid-template-columns:1fr 1fr}.dd-foot-brand{grid-column:1/-1}.article__hero{width:calc(100% - 32px)}.art-gallery{grid-template-columns:repeat(2,1fr)}.dd-contact-strip__in{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){body{font-size:16px}.wrap{width:calc(100% - 28px)}.dd-topbar__in{min-height:42px}.dd-topbar__contact{gap:10px}.dd-topbar__contact a{font-size:11px}.dd-topbar__contact a:nth-child(1){display:none}.dd-hero{height:64svh;min-height:500px}.dd-hero__content{min-height:500px;padding-block:42px 80px}.dd-hero h1{font-size:clamp(40px,13vw,58px)}.dd-hero__lead{font-size:17px}.dd-hero__actions{gap:8px}.dd-hero__actions .btn{width:100%}.dd-hero__controls{bottom:16px}.dd-section{padding:56px 0}.section-head{align-items:flex-start;flex-direction:column;margin-bottom:24px}.dd-quick__grid,.post-grid{grid-template-columns:1fr}.dd-quick__item{min-height:100px}.post-card__media{aspect-ratio:3/2}.dd-help__cta{align-items:flex-start;flex-direction:column}.dd-address{padding:46px 0}.dd-address__contacts{grid-template-columns:1fr}.dd-pagehead,.article__head{padding-top:40px}.article__head h1,.dd-pagehead h1{font-size:38px}.article__perex{font-size:18px}.article__content{padding-top:48px;padding-bottom:52px}.article__body{font-size:17px}.article__hero img{border-radius:18px}.art-gallery{grid-template-columns:1fr 1fr;gap:6px}.art-cols{grid-template-columns:1fr}.dd-contact-strip{padding:42px 0}.dd-contact-strip__actions{width:100%}.dd-contact-strip__actions .btn{flex:1}.dd-foot-grid{grid-template-columns:1fr;gap:26px}.dd-foot-brand{grid-column:auto}.site-foot__bottom{flex-direction:column}.lightbox{padding:50px 12px}.lightbox__prev{left:8px}.lightbox__next{right:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.dd-hero__slide,.post-card,.post-card__media img,.btn{transition:none!important}.dd-hero__slide{transition:none}}

/* 2026-09-08: kontrast tlacitek a necropovane portretni foto patrona */
.site-foot .social__item, .site-foot .social--foot .social__item { background: #fff; color: #15231f !important; border-color: rgba(255,255,255,.72); }
.site-foot .social__item:hover, .site-foot .social--foot .social__item:hover { color: #fff !important; }
.dd-contact-strip .btn--ghost { color: #17211f; border-color: rgba(23,33,31,.24); background: transparent; }
.dd-contact-strip .btn--ghost:hover { background: #fff; color: #17211f; }
.article--patron .article__hero { max-width: 667px; }
.article--patron .article__hero img { width: 100%; height: auto; aspect-ratio: auto; max-height: none; object-fit: contain; object-position: center top; background: #f7f1eb; }

/* Zachovat čitelné tabulky i na telefonu; posouvá se pouze široká tabulka. */
.article__body table { display: table; width: 100% !important; max-width: 100%; border-collapse: collapse; }
.article__body th, .article__body td { overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .article__body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article__body table > tbody, .article__body table > thead { width: 100%; }
  .article__body td, .article__body th { padding: 7px !important; font-size: 14px; min-width: 0; }
  .article__body iframe { max-width: 100%; }
}
.article__hero--small { width: fit-content; max-width: min(100%, var(--original-width)) !important; }
.article__hero--small img { width: auto !important; max-width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain; }

@media (max-width: 700px) { .lightbox__prev, .lightbox__next { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; z-index: 2; } }
