/* DOHA 2.9.0 "Ясная витрина": loaded after styles.css and spatial.css, overrides only. */

/* Home: what DOHA is, in numbers */
.home-facts{list-style:none;margin:0 0 28px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:520px}
.home-facts a{display:flex;flex-direction:column;gap:6px;min-height:84px;padding:12px 12px 11px;border:1px solid var(--line);border-radius:4px;background:#0c1016b8;transition:border-color .2s}
.home-facts a:hover{border-color:#d2464c88}
.home-facts strong{font-family:Druk,'Arial Narrow',sans-serif;font-weight:700;font-size:30px;line-height:1;color:var(--red);letter-spacing:0}
.home-facts span{font-size:12px;line-height:1.35;color:#d6d8de}
.hero-intro{margin-bottom:20px}

/* Section tiles explain what is inside */
.spatial-entry{flex-direction:column;align-items:flex-start;justify-content:center;gap:8px}
.spatial-entry p{display:block;font-size:13px;line-height:1.45;color:#b9bec9;margin:0;max-width:calc(100% - 34px)}

/* Readable small print and 44 px touch targets */
.header-contact{font-size:12px;min-height:44px;align-items:center;padding:0}
.age{font-size:11px}
.contact-channel{font-size:12px}
.footer,.footer span{font-size:11px}
.object-heading,.object-caption,.object-caption span{font-size:11px}
.object-bottom>span{font-size:11px;max-width:none}
.object-bottom a{font-size:12px;min-height:44px}
.container-facts span,.gallery-controls span,.map-stage-header span,#map-hint{font-size:11px}
.tabs button{font-size:13px;min-height:44px}
.archive-card .archive-meta,.archive-meta{font-size:11px}
.archive-card a,.event-details summary{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
.map-credit a{display:inline-block;padding:12px 0}

/* No WebGL: keep the picture, drop controls that cannot work */
.scene-unavailable .container-controls,.scene-unavailable .object-views,.scene-unavailable .object-bottom>span,.scene-unavailable .object-caption span:last-child,.scene-unavailable .mountain-room-controls,.scene-unavailable .map-controls>div{display:none!important}
.scene-unavailable .container-fallback{object-fit:cover}
.scene-unavailable.container-stage canvas,.scene-unavailable.chest-room canvas{display:none}

/* Partners: list is always visible under the chest */
.chest-layout .portfolio-panel,.chest-layout .representation-list{display:block}

@media(max-width:720px){
  .home-facts{margin-bottom:24px}
  .home-facts a{min-height:78px;padding:10px 10px 9px}
  .home-facts strong{font-size:26px}
  .home-facts span{font-size:11px}
  .spatial-entry{min-height:92px;padding:18px 20px}
  .spatial-entry h2{font-size:28px}
  .chest-layout .chest-room{height:300px}
}

/* Events on phones: all filters visible, compact cards with the poster beside the text */
@media(max-width:600px){
  .archive-filter{position:static;flex-wrap:wrap;overflow:visible;padding:0;background:none;border:0;gap:6px;margin:0 var(--pad) 22px}
  .archive-filter button{min-height:44px;font-size:12px;padding:8px 13px}
  .archive-grid{gap:14px}
  .archive-card{display:grid;grid-template-columns:118px minmax(0,1fr);gap:14px;align-items:start;padding-bottom:14px;border-bottom:1px solid var(--line)}
  .archive-cover{aspect-ratio:3/4}
  .archive-cover-caption{display:none}
  .archive-play{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:42px;height:42px}
  .archive-card-copy{padding-top:0}
  .archive-card h2{font-size:18px;line-height:1.25;margin:6px 0}
  .archive-card time{margin-top:4px;font-size:12px}
  .archive-card p{font-size:13px;line-height:1.55;margin:4px 0 0}
  .award-record{margin-top:28px}
}
@media(max-width:360px){
  .home-facts{gap:6px}
  .home-facts a{padding:9px 8px}
  .home-facts strong{font-size:23px}
  .home-facts span{font-size:11px}
  .archive-card{grid-template-columns:96px minmax(0,1fr);gap:12px}
  .archive-card h2{font-size:17px}
}
@media(prefers-reduced-motion:reduce){.home-facts a{transition:none}}

/* Higher specificity than the responsive rules in spatial.css */
html body .header .age{font-size:11px}
html body .container-facts article span{font-size:11px}
html body .representation-row .representation-number{font-size:11px}
html body .map-credit,html body .map-credit a{font-size:12px}
html body .representation-filters{margin-bottom:22px}
html body .representation-group+.representation-group{margin-top:34px}

/* 2.9.1: lead line and equal fact cards */
.hero-lead{font-size:20px;line-height:1.3;color:#f1efea;margin:18px 0 8px;font-weight:700}
.home-facts li{display:flex}
.home-facts a{flex:1}
@media(max-width:720px){.hero-lead{font-size:18px;margin-top:14px}}

/* 2.9.1: forum album and lightbox */
.forum-record .archive-section-head h2{margin:8px 0 6px}
.forum-lead{max-width:760px;margin:0 0 20px}
.forum-cover{position:relative;display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#111;cursor:zoom-in}
.forum-cover img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.forum-count{position:absolute;right:14px;bottom:14px;padding:8px 12px;border-radius:20px;background:#0b0c0fd9;border:1px solid #ffffff33;font-size:13px;color:#fff}
.forum-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:8px 0 0}
.forum-thumb{display:block;padding:0;border:0;border-radius:4px;overflow:hidden;background:#15171c;aspect-ratio:3/2;cursor:zoom-in}
.forum-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.forum-thumb:hover img{transform:scale(1.04)}
.forum-more{display:block;width:100%;min-height:48px;margin:10px 0 6px;border:1px solid var(--line);border-radius:4px;background:#0c1016b8;color:#eceae5;font-size:14px}
.forum-more span{color:#ff4a50;margin-left:6px}
.forum-more[hidden]{display:none}
.lightbox-stage{position:relative;display:flex;align-items:center;justify-content:center}
.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:#0b0c0fcc;border:1px solid #ffffff40;color:#fff;font-size:20px;z-index:2}
.lightbox-nav[data-lightbox="-1"]{left:10px}
.lightbox-nav[data-lightbox="1"]{right:10px}
.lightbox-nav[hidden]{display:none}
.lightbox-meta{display:flex;justify-content:space-between;gap:16px;padding:12px 20px 16px;font-size:13px;line-height:1.5;color:#c9c8c4}
#photo-counter{flex-shrink:0;color:#9da3ae}
#large-caption{font-size:13px}
#photo-dialog #large-photo{touch-action:pan-y;user-select:none;-webkit-user-drag:none}
@media(max-width:900px){.forum-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.forum-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.forum-record{margin-top:34px}.lightbox-nav{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.forum-thumb img{transition:none}}

/* 2.9.1: partners stage, brands fly out of the chest into a carousel */
.partners-lead{margin-top:14px;font-size:16px;line-height:1.5;color:#cfd2d9;max-width:560px}
html body .chest-layout .chest-room.brand-stage{height:600px;max-width:960px}
html body .brand-stage canvas{top:0;height:calc(100% - 156px)}
.brand-hint{position:absolute;left:0;right:0;top:20px;margin:0;text-align:center;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#e6e8ee;pointer-events:none;z-index:2;animation:brand-hint 2.2s ease-in-out infinite;transition:opacity .3s}
.brand-stage[data-open=true] .brand-hint,.scene-unavailable .brand-hint{opacity:0;animation:none}
@keyframes brand-hint{0%,100%{opacity:.55}50%{opacity:1}}
.brand-focus{position:absolute;left:16px;right:16px;bottom:72px;height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity .35s,transform .35s;z-index:2}
.brand-stage[data-open=true] .brand-focus{opacity:1;transform:none}
.brand-focus-meta{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#9ea6b4}
.brand-focus-name{font-family:Druk,'Arial Narrow',sans-serif;font-weight:700;font-size:34px;line-height:1.05;text-transform:uppercase;color:#fff;margin:5px 0 3px}
.brand-focus-status{font-size:13px;color:#ff5a60}
html body .brand-stage .mountain-room-controls{justify-content:center}
html body .brand-stage .mountain-room-controls>div{gap:8px;align-items:center}
.brand-step{display:none!important;width:48px;justify-content:center;font-size:20px!important}
.brand-stage[data-open=true] .brand-step{display:inline-flex!important}
.representation-row[data-brand]{cursor:pointer;transition:background .2s}
.representation-row[data-brand]:hover,.representation-row.is-focused{background:#e600050f}
.representation-name{background:none;border:0;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:44px}
.representation-row.is-focused .representation-name{color:#ff5a60}
@media(max-width:720px){html body .chest-layout .chest-room.brand-stage{height:520px}.brand-focus-name{font-size:30px}.partners-lead{font-size:15px}}
@media(max-width:360px){html body .chest-layout .chest-room.brand-stage{height:480px}}
@media(prefers-reduced-motion:reduce){.brand-hint{animation:none;opacity:1}.brand-focus{transition:none}}
.representation-name{min-width:44px}
#photo-dialog #large-photo.is-loading{opacity:.35;transition:opacity .2s}
