/*
Theme Name: Муковісцидоз Україна (cfu.com.ua)
Theme URI: https://www.cfu.com.ua/
Author: Krasnyk Studio
Author URI: https://krasnykstudio.com.ua/
Description: Тема інформаційного сайту «Муковісцидоз Україна». Головні стилі в assets/site.css; тут лише доповнення для WordPress.
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cfu-dzvin
*/

/* WordPress additions on top of assets/site.css (the mockup styles). */
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.admin-bar .top{top:32px}
@media (max-width:782px){.admin-bar .top{top:46px}}
.skip{position:absolute;left:-9999px;top:8px;z-index:20;background:var(--ink);color:var(--paper);padding:10px 14px;border-radius:8px}
.skip:focus{left:16px}

/* news filters are links, styled like the mockup's filter buttons */
.chip-filter{font:500 14px var(--body);padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);text-decoration:none}
.chip-filter small{font:400 12px var(--mono);opacity:.7;margin-left:4px}
.chip-filter[aria-current="page"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* old post content: images, embeds, tables, captions */
.prose img{max-width:100%;height:auto;border-radius:12px}
.prose iframe,.prose video,.prose embed{max-width:100%;width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:12px}
.prose figure{margin:0}
.prose .wp-caption{max-width:100%!important}
.prose .wp-caption-text,.prose figcaption{font:400 13px/1.5 var(--mono);color:var(--muted);margin-top:6px}
.prose table{border-collapse:collapse;display:block;overflow-x:auto;max-width:100%;font-size:15px}
.prose td,.prose th{border:1px solid var(--line);padding:8px 10px;text-align:left}
.prose a{color:var(--teal)}
.prose .alignleft{float:left;margin:4px 20px 12px 0;max-width:50%}
.prose .alignright{float:right;margin:4px 0 12px 20px;max-width:50%}
.prose .aligncenter{display:block;margin-inline:auto}
.prose::after{content:"";display:block;clear:both}
.prose .gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.prose .gallery-item{margin:0}
.prose .gallery br{display:none}
.prose p:empty{display:none}
@media (max-width:640px){.prose .alignleft,.prose .alignright{float:none;margin:12px 0;max-width:100%}}

/* photo albums */
.albums{display:grid;gap:clamp(40px,5vw,64px)}
.album{display:grid;gap:16px;scroll-margin-top:96px}
.album-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.album-head h2{font-size:clamp(20px,2.4vw,28px);max-width:40ch}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.photos a{display:block;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:var(--mist)}
.photos img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.photos a:hover img{transform:scale(1.03)}
.album-index{display:flex;flex-wrap:wrap;gap:8px}

/* homepage news cards with real images */
.post .thumb img{width:100%;height:100%;object-fit:cover;display:block}

.not-found{padding-block:clamp(56px,8vw,104px)}
.not-found .wrap{display:grid;gap:18px;max-width:760px}
.video .frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.8}
.video .frame::after{position:relative;z-index:1}
.video .frame::before{z-index:2}
.video .frame span{z-index:1}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.field .label{font:500 12px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* informational-use notice: band above the footer on every page, note under each article */
.disclaimer-band{background:var(--rose-soft);border-top:1px solid var(--line)}
.disclaimer-band .wrap{display:grid;gap:8px;padding-block:22px}
.disclaimer-band .eyebrow{color:var(--rose)}
.disclaimer-band p{max-width:90ch;font-size:15px;color:var(--ink)}
.disclaimer-note{margin-top:8px;padding:14px 18px;border-radius:12px;background:var(--rose-soft);color:var(--ink);font-size:15px;line-height:1.55}
.disclaimer-note b{color:var(--rose)}
.contact-card .row a.fine{color:var(--teal);text-decoration:none;white-space:nowrap}
