/*
Theme Name: Kaster
Theme URI: https://kastergroup.eu/
Author: Kaster Group
Description: Lightweight classic theme for the Kaster Group journal. Mirrors the main kastergroup.eu static site (header, typography, cards, article layout). Polylang-aware (EN · PL · UA), Yoast handles meta and schema.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: kaster
*/

/* WordPress-specific additions on top of the main site stylesheet (assets/site.css or https://kastergroup.eu/style.css) */
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:#383839;color:#f5f1e5;padding:10px 16px}.skip:focus{left:12px;top:12px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.admin-bar .hd{top:32px}@media(max-width:782px){.admin-bar .hd{top:46px}}
.hd .menu a.on{opacity:1;border-bottom:1px solid currentColor;padding-bottom:2px}
.langs a{white-space:nowrap}
/* cards */
.bcard h3{transition:opacity .4s}.bcard:hover h3{opacity:.7}
.bcard .bex{display:block;margin-top:10px;font:300 15px/24px Jost,sans-serif;opacity:.85}
.bempty{text-align:center;font:300 17px/28px Jost,sans-serif;padding:40px 20px 80px}
/* pagination */
.pager{display:flex;justify-content:center;gap:28px;padding:30px 20px 10px;font:500 10px Jost,sans-serif;letter-spacing:3px;text-transform:uppercase}
.pager a,.pager span{opacity:.6;transition:opacity .4s}.pager a:hover,.pager .current{opacity:1}
/* article body extras (content comes from the editor) */
.abody h3{font:400 20px/30px "Libre Caslon Text",serif;margin:40px 0 14px}
.abody blockquote:not(.pq){font:italic 400 24px/38px "Libre Caslon Text",serif;margin:48px 0;padding:28px 0;border-top:1px solid #38383933;border-bottom:1px solid #38383933;text-align:center}
.pq p,.abody blockquote p{margin:0!important}
.abody strong{font-weight:500}
.abody figure{margin:48px 0}.abody figcaption{font:300 13px/20px Jost,sans-serif;opacity:.7;margin-top:10px;text-align:center}
.abody img{height:auto}
.abody .bimg img,.abody figure img{width:100%;height:auto}
.abody ol{margin:0 0 22px;padding-left:1.2em}.abody ul{padding-left:1.1em}
.abody table{width:100%;border-collapse:collapse;margin:0 0 22px;font-size:15px}.abody td,.abody th{border-bottom:1px solid #38383933;padding:10px 8px;text-align:left}
.abody .alignleft{float:left;margin:6px 24px 12px 0;max-width:50%}.abody .alignright{float:right;margin:6px 0 12px 24px;max-width:50%}.abody .aligncenter{margin-left:auto;margin-right:auto}
.abody .wp-caption{max-width:100%}
.abody > *:first-child{margin-top:0}
.adate .sep{opacity:.5;margin:0 6px}
.ahero.noimg{height:0;min-height:0}
.arel{padding-bottom:20px}
/* 404 / simple pages */
.pg-simple{padding:200px 20px 60px;text-align:center}.pg-simple h1{font:400 34px/46px "Libre Caslon Text",serif;margin-bottom:18px}.pg-simple p{font:300 17px/28px Jost,sans-serif;margin-bottom:30px}
/* reveal is added by JS only, so content never stays hidden without JS */
@media(max-width:700px){.hd .menu a.on{border:0}.admin-bar .hd.open .menu{top:118px}}
/* 1.0.2: legal line, policy links, properties and valuation in the menu */
.legal{grid-column:1/-1;margin-top:-14px;font-size:10px;line-height:17px;opacity:.75;max-width:980px}
.legal a{text-decoration:underline;text-underline-offset:2px}
.legal .sep{opacity:.5;margin:0 5px}

/* v5 (2026-10-20): "Free valuation" as a submenu under Real estate. Desktop: hover or keyboard focus opens it (the link stays in the tab order and opens the panel when focused). Burger overlay: always shown, indented. */
.menu .dd{position:relative;display:flex;align-items:center}
.menu .dd>a:after{content:"";display:inline-block;width:4px;height:4px;border:solid currentColor;border-width:0 1px 1px 0;transform:translateY(-3px) rotate(45deg);margin-left:8px;opacity:.75}
.menu .dd-m{position:absolute;top:100%;left:-24px;min-width:210px;padding:26px 24px 20px;background:#f5f1e5;color:#383839;border:1px solid rgba(56,56,57,.14);border-top:0;opacity:0;pointer-events:none;transform:translateY(-6px);transition:opacity .3s ease,transform .3s ease;z-index:20}
.menu .dd:hover .dd-m,.menu .dd:focus-within .dd-m{opacity:1;pointer-events:auto;transform:none}
.menu .dd-m a{display:block;color:#383839;opacity:1}
.menu .dd-m a:hover,.menu .dd-m a:focus-visible{opacity:.7}
.menu .dd-m a.on{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
@media(max-width:1023px){
.menu{overflow-y:auto;overscroll-behavior:contain}
.menu .dd{flex-direction:column;align-items:flex-start}
.menu .dd>a:after{display:none}
.menu .dd-m{position:static;min-width:0;padding:0 0 14px 2px;background:none;border:0;opacity:1;pointer-events:auto;transform:none;transition:none}
.menu .dd-m a{font:400 11px/1 Jost,sans-serif;letter-spacing:3px;text-transform:uppercase;color:#383839;padding:6px 0 8px 20px;border-left:1px solid rgba(56,56,57,.25)}
}
@media(prefers-reduced-motion:reduce){.menu .dd-m{transition:none}}
