/*
Theme Name: OVA Native Studio
Description: Native editable OVA content, project review and recovery, installed-product filters, authored technical sheets and direct contact submission. No automatic content import.
Version: 0.2.14
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: ova-native-studio
*/
/* Original design lives in assets/source-v218.css. Only native WP compatibility here. */
.brand img,.custom-logo-link img{height:36px;width:auto;object-fit:contain;display:block}
.footer-logo img{height:36px;width:auto;object-fit:contain}
.footer-logo .custom-logo-link img{filter:brightness(0) invert(1)}
.footer-grid ul{list-style:none;margin:0;padding:0}
.desktop-nav summary>a{color:inherit;text-decoration:none}
.desktop-nav details details{padding:8px 0}.desktop-nav details details>div{position:static;box-shadow:none;border:0;padding:8px 0 0 16px}
.menu-subnav .menu-subnav{padding-left:24px}.menu-subnav details>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:8px 0}.menu-subnav summary>a{font-size:15px}
[hidden]{display:none!important}
.ova-native-site:not(.ova-js-ready) .reveal{opacity:1;transform:none}
.admin-bar .site-header{top:32px}.admin-bar .full-menu{top:124px}
.ova-native-site figure{margin-inline:0}
.ova-native-site .wp-block-image img{height:auto}
.ova-native-site .ova-native-record .wp-block-image img{max-width:100%}
.ova-native-site .ova-native-media-panel{margin:0;min-width:0;position:relative;display:flex;flex-direction:column}
.ova-native-slides{flex:1;min-height:0;position:relative;width:100%}
.ova-native-slide{display:block;width:100%;height:100%;position:relative;padding:0;background:transparent;border:0}
.ova-native-slide img{width:100%;height:100%;object-fit:contain}
.ova-native-media-panel .product-gallery-controls{position:static;align-self:flex-end;margin-top:8px;flex-shrink:0}
.ova-native-site .ova-native-record .product-description-copy{display:block!important;overflow:visible;max-height:none}
.ova-native-site .ova-native-record .product-copy-stack{overflow:auto}
.ova-native-record .product-description-copy h2,.ova-native-record .product-description-copy h3{font:400 15px/1.4 Manrope,sans-serif;margin:22px 0 8px}
.ova-native-record .product-description-copy p{font-size:13px;line-height:1.75}
.ova-native-record .product-description-copy table{font-size:12px;border-collapse:collapse;width:100%}
.ova-native-record .product-description-copy td,.ova-native-record .product-description-copy th{padding:8px;border-bottom:1px solid var(--line);text-align:left}
.ova-native-site .ova-native-record.product-inline-sheet .product-first-screen{padding-inline:0}
.ova-native-permalink{margin:12px 0 24px}
.ova-native-project .detail-hero .image-frame{display:block}
.ova-native-project .page-title{font-size:clamp(42px,7vw,108px)}
.ova-native-record.ova-native-project > .page-intro > p.lede{white-space:pre-line}
.ova-project-body,.ova-media-section,.ova-guidance{padding:50px var(--gutter)}
.ova-project-body{font-size:16px;line-height:1.9;max-width:1100px}
.ova-project-body:empty{display:none}
.ova-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:28px}
.ova-section-heading h2,.ova-guidance h2{font:300 clamp(26px,3.2vw,45px)/1.2 Manrope,sans-serif;letter-spacing:-.05em;margin:0}
.ova-section-heading>span{font-size:11px;color:var(--muted)}
.ova-native-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ova-native-gallery figure{margin:0;min-width:0}
.ova-native-gallery figure>a{display:block;height:auto;background:#e8e7e1}
.ova-native-gallery figure img{height:auto;aspect-ratio:1.5;object-fit:cover}
.ova-native-gallery figcaption{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}
.ova-technical-grid figure img{object-fit:contain}
.ova-technical-title{display:block;font-size:12px;padding:12px 14px}
.ova-document-icon{display:flex;align-items:center;justify-content:center;aspect-ratio:1.5;font-size:24px}
.ova-guidance{background:#e8e7e1;font-size:14px;line-height:1.8}
.product-inline-sheet>.ova-media-section,.product-inline-sheet>.ova-guidance{padding-inline:0}
.product-inline-sheet>.ova-media-section{padding-top:20px;padding-bottom:20px}
.ova-all-projects{margin-top:72px}.ova-all-projects>h2{margin-bottom:28px}
.navigation.pagination{margin:50px 0}.nav-links{display:flex;gap:18px;flex-wrap:wrap}.page-numbers.current{border-bottom:1px solid}
.ova-locked{padding:60px var(--gutter)}.ova-locked input{max-width:100%;padding:12px}
.ova-native-lightbox{width:min(1280px,96vw);max-width:96vw;height:92vh;max-height:92vh;border:0;padding:16px;background:#f2f0eb;color:#272824}
.ova-native-lightbox::backdrop{background:#161815d9}
.ova-native-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.ova-lightbox-toolbar,.ova-lightbox-controls{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ova-lightbox-toolbar button,.ova-lightbox-controls button{border:1px solid var(--line);background:none;padding:9px 15px}
.ova-lightbox-stage{overflow:auto;display:flex;align-items:center;justify-content:center;background:#e7e5de}
.ova-lightbox-stage img{width:100%;height:100%;object-fit:contain}
.ova-lightbox-stage.is-zoomed{display:block}.ova-lightbox-stage.is-zoomed img{width:200%;height:auto;max-width:none;object-fit:initial}
.ova-lightbox-controls{font-size:12px}.ova-lightbox-caption{margin:0;flex:1}
@media(max-width:980px){.admin-bar .full-menu{top:106px}.ova-native-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){.admin-bar .site-header{top:46px}.admin-bar .full-menu{top:120px}}
@media(max-width:680px){.ova-native-gallery{grid-template-columns:1fr}.ova-project-body,.ova-media-section,.ova-guidance{padding-block:32px}.ova-native-slides{min-height:240px}.ova-native-media-panel .ova-native-slide{height:320px}.ova-native-site .ova-native-record .product-copy-stack{overflow:visible}.ova-native-lightbox{height:88vh}.ova-lightbox-controls{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-slide img{animation:none}.reveal{transition:none}.reference-track{animation:none}}
/* Native media has no JavaScript-computed source canvas width. Keep its aspect stable. */
.ova-native-media-panel .ova-native-slides{aspect-ratio:297/210;flex:none;height:auto}
.ova-native-site .ova-native-media-panel .ova-native-slide{aspect-ratio:297/210;width:100%;height:100%}
.ova-native-site .ova-native-media-panel .ova-native-slide>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.ova-native-site .ova-native-record .product-compact-description{display:block}

/* Reveal full product copy only on request. Without working dialog JavaScript the
   current WordPress body stays readable inline; no content is removed or copied. */
.ova-native-site .ova-native-record .product-description-panel[data-native-description-ready] > .product-description-copy{display:none!important}
.ova-native-site .ova-native-record .product-read-description{display:block;align-self:flex-start;font-size:11px;line-height:1.5;flex:none;padding:0 0 5px;border:0;border-bottom:1px solid #8d9581;background:none;color:#47543c;cursor:pointer}
.ova-native-site .product-read-description:focus-visible{outline:2px solid #47543c;outline-offset:4px}
.ova-native-description-dialog .product-description-copy{display:block!important;overflow:visible;max-height:none;font-size:15px;line-height:1.8}
.ova-native-description-dialog .product-description-copy p{font-size:15px;line-height:1.8;margin:0 0 16px}
.ova-native-description-dialog .product-description-copy img,.ova-native-description-dialog .product-description-copy video{max-width:100%;height:auto}
.ova-native-description-dialog .product-description-copy table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:13px}
.ova-native-description-dialog .product-description-copy th,.ova-native-description-dialog .product-description-copy td{padding:8px;border-bottom:1px solid var(--line);text-align:left}
.ova-native-description-dialog .product-zoom-toolbar{position:sticky;top:-24px;background:#f4f3ef;padding-block:10px;z-index:1}
@media(max-width:980px){.ova-native-site .ova-native-record .product-read-description{font-size:14px;min-height:44px}}
@media(max-width:680px){.ova-native-description-dialog .product-description-copy p{font-size:14px}.ova-native-description-dialog .product-zoom-toolbar{top:-17px}}

/* A top-level link and its disclosure button have separate, predictable targets. */
.ova-native-site .desktop-nav > a,.ova-native-site .desktop-nav > details > summary,.ova-native-site .desktop-nav > details > summary > a{font-family:inherit;font-size:14px;font-weight:500;letter-spacing:.06em;line-height:1.5;color:#252822}
.ova-native-site .desktop-nav > details > summary{list-style:none;display:flex;align-items:center;gap:6px;cursor:default}
.ova-native-site .desktop-nav > details > summary::-webkit-details-marker{display:none}
.ova-native-site [data-native-nav-toggle]{display:inline-flex;align-items:center;justify-content:center;flex:none;border:0;padding:0;min-width:36px;min-height:44px;background:transparent;color:inherit;cursor:pointer}
.ova-native-site [data-native-nav-toggle]:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.ova-native-site details > summary > [data-native-nav-toggle] .nav-chevron{transition:transform .2s}
.ova-native-site details[open] > summary > [data-native-nav-toggle] .nav-chevron{transform:rotate(180deg)}
.ova-native-site .full-menu summary{cursor:default}
.ova-native-site .full-menu [data-native-nav-toggle]{margin-left:auto;font-size:24px}
.ova-native-site .full-menu details[open] > summary > [data-native-nav-toggle]{transform:rotate(45deg)}
/* Controls belong to the visible photo/sheet rather than the pale page below it. */
.ova-native-media-frame{position:relative;min-width:0;width:100%;flex:none}
.ova-native-site .ova-native-media-panel .product-gallery-controls{position:absolute;z-index:2;right:10px;bottom:10px;display:flex;align-items:center;gap:8px;margin:0;padding:4px;background:rgba(26,32,24,.78);color:#fff}
.ova-native-site .ova-native-media-panel .product-gallery-controls button{width:44px;height:44px;min-width:44px;min-height:44px;color:#fff;background:transparent;border:1px solid #ffffffa6;cursor:pointer}
.ova-native-site .ova-native-media-panel .product-gallery-controls button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ova-native-site .ova-native-media-panel .product-gallery-controls button:disabled{cursor:default;opacity:.4}
.ova-native-site [data-native-count]{min-width:46px;text-align:center;font-size:11px}
.ova-native-site .ova-native-media-panel .product-gallery-controls[hidden]{display:none!important}

.ova-native-site .full-menu summary.menu-link > a{display:flex;gap:30px;align-items:baseline}

/* Native layout must not rely on the original SPA's absent sizing code. */
.ova-native-site .ova-native-record.product-standard-layout .product-first-screen{height:auto;min-height:0;max-height:none;overflow:visible}
.ova-native-site .ova-native-record.product-standard-layout .product-workspace{height:auto;min-height:0;max-height:none;grid-template-rows:auto;align-items:start}
.ova-native-site .ova-native-record.product-standard-layout .ova-native-media-panel{height:auto;min-height:0;max-height:none;align-self:start}
.ova-native-site .ova-native-record.product-standard-layout .ova-native-media-frame{width:100%;min-width:0;flex:none}
.ova-native-site .ova-native-record.product-standard-layout .ova-native-slides{width:100%;height:auto;min-height:0;aspect-ratio:297/210}
.ova-native-site .ova-native-record.product-standard-layout .ova-native-slide{width:100%;height:auto;aspect-ratio:297/210}
.ova-native-site .ova-native-nav-label{cursor:default;user-select:text}
.ova-native-site .desktop-nav > details > summary > .ova-native-nav-label{font:inherit;letter-spacing:inherit;color:inherit}
.ova-native-site .full-menu summary.menu-link > .ova-native-nav-label{display:flex;gap:30px;align-items:baseline}
.ova-native-site .product-branch-title:not(.has-subtitle){display:block;width:100%}
.ova-native-site .product-branch-title:not(.has-subtitle) .product-branch-name{display:block;max-width:none;overflow-wrap:normal}
@media(min-width:1281px){
 .ova-native-site .ova-native-record.product-standard-layout .product-copy-stack{height:var(--ova-native-column-height,auto);max-height:var(--ova-native-column-height,none);min-height:0;gap:14px;overflow:auto;align-self:start}
 .ova-native-site .ova-native-record.product-standard-layout .product-description-panel{flex:none;min-height:0;overflow:visible}
 .ova-native-site .ova-native-record.product-standard-layout .product-information-panel{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
 .ova-native-site .ova-native-record.product-standard-layout .product-spec-list{flex:1 0 auto;min-height:0;gap:0;margin-top:8px}
 .ova-native-site .ova-native-record.product-standard-layout .product-spec-list > div{flex:none;padding:5px 0}
}
@media(min-width:981px) and (max-width:1280px){
 .ova-native-site .ova-native-record.product-standard-layout .product-workspace{grid-template-rows:auto auto}
}
/* Keep primary navigation stronger than the smaller, quieter dropdown level. */
.ova-native-site .desktop-nav details > div a,.ova-native-site .desktop-nav details > div summary,.ova-native-site .desktop-nav details > div summary > a{font-size:12px;font-weight:400;line-height:1.5;letter-spacing:.04em;color:#62675e}
.ova-native-site .desktop-nav details > div a:hover,.ova-native-site .desktop-nav details > div a:focus-visible,.ova-native-site .desktop-nav details > div a[aria-current="page"]{color:#252822}
.ova-native-site .full-menu .menu-subnav a{font-size:14px;line-height:1.5}

/* Long native titles and their subtitles must wrap instead of sharing a fixed
   single line. Source model names are short; edited WordPress titles need room. */
.ova-native-site .product-title-row > div{min-width:0;max-width:100%}
.ova-native-site .product-title-row h1{flex-wrap:wrap;row-gap:8px;min-width:0;max-width:100%;overflow-wrap:break-word}
.ova-native-site .product-title-row h1 > span{min-width:0;max-width:100%}
/* Project navigation follows the draft casing, including native taxonomy fallbacks. */
.ova-native-site .nav-projects > .projects-dropdown a,
.ova-native-site .menu-projects > .menu-subnav a{text-transform:uppercase}

/* Compact, keyboard-accessible route-preserving language choice. */
.ova-language-switcher{display:flex;align-items:center;gap:2px;flex-shrink:0;margin-right:16px;font-size:11px;font-weight:400;letter-spacing:.06em;line-height:1.2}
.ova-language-switcher a{display:inline-flex;min-width:30px;min-height:40px;align-items:center;justify-content:center;color:#70736b;text-decoration:none}
.ova-language-switcher a[aria-current]{color:#252822;font-weight:600}
.ova-language-switcher a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
body.menu-open .ova-language-switcher a{color:#b8bbb1}body.menu-open .ova-language-switcher a[aria-current]{color:#f4f3ee}
.site-header .desktop-nav{margin-right:24px}
@media(max-width:980px){.site-header .ova-language-switcher{margin-left:auto;margin-right:16px}.site-header .brand{margin-right:16px}}
@media(max-width:400px){.site-header .ova-language-switcher{margin-right:8px}.site-header .brand{margin-right:6px}.site-header .brand img,.site-header .custom-logo-link img{max-width:142px;height:auto;max-height:36px}}

/* Keep current project excerpt styling while respecting editor-authored line breaks. */
.project-archive-card p.project-card-scope{white-space:pre-line}
.ova-original-documents-note{margin:24px var(--gutter);max-width:70ch;color:#70736b;font-size:11px;line-height:1.5}.ova-original-documents-note p{margin:0}

/* Contact H1 keeps the original small eyebrow appearance. */
.contact-page .page-intro>h1.eyebrow{display:inline;margin:0;font-family:inherit;line-height:inherit}

/* Each project keeps its full current scope in an independent native disclosure.
   Only the small label/arrow is visible initially, including without JavaScript. */
.project-archive-card > .project-card-details{margin-top:2px;min-width:0}
.project-card-details > summary{display:flex;align-items:center;gap:9px;width:max-content;max-width:100%;min-height:44px;padding:5px 0;box-sizing:border-box;list-style:none;cursor:pointer;color:#596052;font-size:12px;line-height:1.5;font-weight:400}
.project-card-details > summary::-webkit-details-marker{display:none}
.project-card-details > summary > span:first-child{min-width:0;overflow-wrap:anywhere}
.project-card-details-arrow{width:6px;height:6px;flex:none;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.project-card-details[open] > summary > .project-card-details-arrow{transform:translateY(1px) rotate(225deg)}
.project-card-details > summary:hover{color:#252822}
.project-card-details > summary:focus-visible{outline:2px solid #68735b;outline-offset:3px}
.project-archive-card > .project-card-details > .project-card-scope{margin:0 0 8px;overflow-wrap:anywhere}
/* Preserve photo caption data and alt text, without captions under project photos. */
.project-archive-card > .native-project-card-caption,.project-album-viewer .native-album-caption{display:none}
.project-card-details .project-application-link{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.project-card-details .project-application-link:hover{color:#252822}
.project-card-details .project-application-link:focus-visible{outline:2px solid #68735b;outline-offset:3px}

/* Give every home photograph the same gentle motion without changing its crop
   position or media. Pausing inactive images preserves the outgoing fade;
   alternating forever avoids a jump or an exhausted animation on later visits. */
@keyframes ova-hero-gentle-zoom{from{transform:scale(1)}to{transform:scale(1.06)}}
.home-page .hero .hero-slide img{animation:ova-hero-gentle-zoom 15s ease-in-out infinite alternate both;animation-play-state:paused}
.home-page .hero .hero-slide.active img{animation-play-state:running}
.home-page .hero[data-native-hero-motion="paused"] .hero-slide img{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.home-page .hero .hero-slide img{animation:none;transform:none}}
