/*
Theme Name: AverDesk
Theme URI: https://averdesk.com
Author: AverDesk
Description: Marketing site theme for AverDesk (Open Observatory design). Multilingual via Polylang. Pages are edited in the block editor; heroes use the featured image.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: averdesk
*/

/* The visual system lives in assets/base.css and assets/observatory.css.
   This file only adds the glue between WordPress markup and the prototype classes. */

/* Core blocks → prototype classes */
.wp-block-group{box-sizing:border-box}
.wp-block-heading{margin-top:0}
.wp-block-buttons.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.wp-block-button{margin:0}
.wp-block-button__link{min-height:52px;padding:14px 26px;display:inline-flex;gap:20px;align-items:center;justify-content:center;border-radius:4px;font-size:14px;font-weight:600;border:1px solid #4A56E8;background:#4A56E8;color:#fff;line-height:1.3;text-decoration:none;transition:background .24s,transform .24s;text-align:center}
.wp-block-button__link:hover{background:#3641C7;transform:translateY(-2px)}
.wp-block-button.secondary .wp-block-button__link{background:transparent;color:#171C28;border-color:#C5CCDA}
.wp-block-button.secondary .wp-block-button__link:hover{background:#F1F3F7}
.night-hero .wp-block-button.secondary .wp-block-button__link,.dark .wp-block-button.secondary .wp-block-button__link{color:#E8EAF0;border-color:#D9E0EF70;background:#0B0E1429}
.wp-block-button.text-link .wp-block-button__link{background:none;border:0;color:#4A56E8;font-size:15px;font-weight:500;padding:0;min-height:44px;gap:16px}
.wp-block-button.text-link .wp-block-button__link:after{content:'↗';font-size:19px}
.wp-block-button.text-link .wp-block-button__link:hover{text-decoration:underline;text-underline-offset:5px;transform:none}
.dark .wp-block-button.text-link .wp-block-button__link,.night-hero .wp-block-button.text-link .wp-block-button__link{color:#35C2E8}
.wp-block-list{padding-left:0}
.wp-block-image{margin:0}
.wp-block-image img{height:auto}
.wp-block-image.panorama-figure{position:absolute;inset:0;margin:0;z-index:-2;pointer-events:none}
.wp-block-image.panorama-figure img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.impact-theatre>.panorama-figure img{opacity:.35;object-position:right bottom}
.estate-stage>.panorama-figure img{object-position:center bottom}
.scenarios-panorama>.panorama-figure img{object-position:70% center}
.wp-block-image.product-visual{margin:0 0 32px;border:1px solid #DCE1E9;border-radius:8px;overflow:hidden}
.wp-block-image.product-visual img{width:100%;max-height:500px;object-fit:cover}
.wp-block-image.product-visual figcaption{font-size:12px;padding:14px 20px;background:#F7F8FA;color:#566071;margin:0;text-align:left}
.wp-block-image figcaption.wp-element-caption{font-size:12px;color:#566071;margin-top:14px;text-align:left}
.wp-block-details{border:0;padding:0}
.wp-block-details summary{cursor:pointer}
.wp-block-preformatted{white-space:pre-wrap}
.wp-block-table{margin:0}
@media(max-width:700px){.impact-theatre>.panorama-figure img{opacity:.28;object-position:70% center}.estate-stage>.panorama-figure img{height:64%;top:auto;bottom:0;object-position:74% center}.scenarios-panorama>.panorama-figure img{object-position:78% center;opacity:.65}}

/* Hero image from the featured image */
.panorama-image.hero-featured{z-index:-2}
.immersive-hero .hero-copy h1 br+span{display:inline}

/* Blog listing with WordPress pagination */
.journal-search{display:flex;gap:10px;align-items:center;min-width:0}
.journal-tools>*{min-width:0}
.journal-search input{min-width:0;width:100%}
.journal-search input{flex:1}
.journal-search .button{min-height:52px}
.journal-pagination .page-numbers{min-height:44px;display:inline-flex;align-items:center;padding:0 10px;color:#566071}
.journal-pagination .page-numbers.current{color:#171C28;font-weight:600}
.journal-pagination a.page-numbers:hover{color:#4A56E8}
.journal-item .meta-line{color:#566071;font-size:12px}
@media(min-width:1101px){.journal-item .meta-line{grid-column:3}}
.article-meta{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:#566071;margin:0 0 10px}
.article-prose .wp-block-heading{font-size:36px;letter-spacing:-.04em;line-height:1.2;margin:40px 0 18px}
.article-prose h3{font-size:26px;letter-spacing:-.03em;margin:32px 0 14px}
.article-prose>p,.article-prose>.wp-block-list li{font-size:19px;line-height:1.85;color:#171C28}
.article-prose>.wp-block-list{padding-left:24px;margin:0 0 24px}
.article-prose blockquote{margin:36px 0;padding:0;font-style:italic;font-size:21px;line-height:1.6;color:#2E3545}
.article-prose a:not(.text-link):not(.button){color:#4A56E8;text-decoration:underline;text-underline-offset:4px}
.article-prose .article-cta{margin:48px 0 0;padding:32px;border:1px solid #DCE1E9;border-radius:4px;background:#F7F8FA}
.article-prose .article-cta h2{font-size:28px;margin:0 0 12px}
.article-prose .article-cta p{font-size:16px;margin:0 0 20px}
.article-related{padding-top:40px;border-top:1px solid #DCE1E9;margin-top:60px}
.article-related h2{font-size:22px;margin-bottom:20px}
.article-related .journal-item{padding:28px 0}
.article-cover-wrap{margin:0 0 36px}
.article-cover-wrap img{width:100%;height:auto;border-radius:4px}

/* Legal document */
.legal-document{max-width:860px}
.legal-document h2{font-size:28px;letter-spacing:-.03em;margin:44px 0 16px}
.legal-document p{font-size:16px;line-height:1.75;margin:0 0 14px}
.legal-document blockquote{border:1px solid #DCE1E9;border-radius:4px;padding:14px 20px;margin:20px 0;background:#F7F8FA}
.legal-document .legal-version{color:#566071;font-size:14px;margin-bottom:32px}

/* Forms (contact) — server-side rendering by averdesk-leads plugin */
.form-status:empty{display:none}

/* Search results and 404 */
.state-actions{padding:0 0 80px}
.search-results .journal-item{grid-template-columns:200px 1fr}

/* Category cover in listings */
.category-cover{margin:0 0 40px;aspect-ratio:21/9;overflow:hidden;border-radius:4px}
.category-cover img{width:100%;height:100%;object-fit:cover}

/* Screen reader helper */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Admin editor: approximate site typography */
.editor-styles-wrapper .wp-block-heading{font-family:Manrope,Arial,sans-serif;letter-spacing:-.04em}

/* Editorial lines: extra paragraphs stay in the text column (the grid expects number / heading / text) */
.editorial-lines>article>p{grid-column:3}
.editorial-lines>article>p+p{margin-top:18px}
.editorial-lines>article>.wp-block-list{grid-column:3;margin:0;padding-left:20px;font-size:17px;line-height:1.75}
.editorial-lines>article>.link-row,.editorial-lines>article>a{grid-column:3}
@media(max-width:700px){.editorial-lines>article>p,.editorial-lines>article>.wp-block-list,.editorial-lines>article>.link-row,.editorial-lines>article>a{grid-column:2}}

/* Related articles inside a post: the sidebar grid is narrow on phones */
@media(max-width:700px){.article-related .journal-item{grid-template-columns:1fr}.article-related .journal-cover{grid-column:1;grid-row:auto;aspect-ratio:16/9;max-height:220px}.article-related .journal-item .eyebrow,.article-related .journal-item h2,.article-related .journal-item>p,.article-related .journal-item small{grid-column:1;grid-row:auto}}
@media(max-width:1100px){.article-related .journal-item{grid-template-columns:1fr}.article-related .journal-cover{grid-column:1;grid-row:auto;max-height:240px}.article-related .journal-item .eyebrow,.article-related .journal-item h2,.article-related .journal-item>p,.article-related .journal-item small{grid-column:1;grid-row:auto}}
@media(max-width:1100px){.journal-tools{grid-template-columns:1fr;gap:12px}.journal-tools p{text-align:left;margin:0}}
/* Header CTA stays on one line on phones (UK/RU labels are longer) */
@media(max-width:700px){.header-actions .button{white-space:nowrap;font-size:12px;padding:10px 12px;gap:0}.brand{font-size:21px}}
@media(max-width:360px){.header-actions .button{font-size:11px;padding:9px 10px}}
@media(max-width:700px){.header-actions{flex-shrink:0;margin-left:auto}.header-actions .button{flex-shrink:0}.header-inner .brand{flex-shrink:1;min-width:0}}

/* Sign in link inside the mobile menu (the header hides it on small screens) */
.main-nav .mobile-signin{display:none}
@media(max-width:1100px){.main-nav .mobile-signin{display:flex;color:#4A56E8}}
@media(max-width:700px){.header-actions .button{max-width:none;line-height:1.2}}
/* Only the inner link of a text-link button draws the arrow */
.wp-block-button.text-link::after{content:none}
/* Breadcrumbs wrap instead of squeezing items */
.breadcrumb{flex-wrap:wrap;row-gap:4px}
.breadcrumb>*{white-space:nowrap}
.breadcrumb>span:last-child{white-space:normal}
/* Long single words in headings (RU/UK) must not run off the screen */
h1,h2{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
@media(max-width:700px){.panorama-intro h1{font-size:clamp(34px,9.6vw,60px)}}

/* Cookie consent banner (rendered only when a Google Analytics ID is configured) */
.cookie-consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;display:flex;justify-content:center;pointer-events:none}
.cookie-consent[hidden]{display:none}
.cookie-consent-inner{pointer-events:auto;width:min(1080px,100%);display:flex;gap:32px;align-items:center;justify-content:space-between;background:#FFFFFF;color:#171C28;border:1px solid #DCE1E9;border-radius:4px;padding:20px 24px;box-shadow:0 20px 50px #171C2826}
.cookie-consent h2{font-family:Onest,system-ui,sans-serif;font-size:15px;font-weight:600;letter-spacing:0;margin:0 0 6px}
.cookie-consent p{margin:0;font-size:14px;line-height:1.6;color:#3F495A;max-width:68ch}
.cookie-consent a{color:#4A56E8;text-decoration:underline;text-underline-offset:3px}
.cookie-consent-actions{display:flex;gap:10px;flex-shrink:0}
.cookie-consent-actions .button{min-height:44px;padding:10px 20px;min-width:120px}
.cookie-settings-link{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.cookie-settings-link:hover{color:#4A56E8}
@media(max-width:700px){.cookie-consent{left:8px;right:8px;bottom:8px}.cookie-consent-inner{flex-direction:column;align-items:stretch;gap:16px;padding:18px 16px}.cookie-consent-actions .button{flex:1;min-width:0}}
