/*
Theme Name: Tatar Merkezi VIP
Version: 96.0
Description: Clean unified multilingual institutional design.
*/
:root{--green:#0d5b4d;--green2:#147a64;--ink:#20292b;--muted:#66736f;--ivory:#f7f4ed;--paper:#fff;--gold:#c69b3c;--line:#ddd8cd;--shadow:0 18px 45px rgba(25,55,47,.09);--radius:24px;--sidebar:360px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ivory);color:var(--ink);font-family:Arial,"Noto Sans",sans-serif;line-height:1.65}img{max-width:100%;height:auto}a{color:var(--green);text-decoration:none}h1,h2,h3,h4{font-family:Georgia,"Times New Roman",serif;color:var(--ink);line-height:1.08;margin-top:0}h1{font-size:clamp(40px,5vw,72px)}h2{font-size:clamp(30px,3vw,46px)}h3{font-size:24px}.container{width:min(1160px,calc(100% - 48px));margin-inline:auto}body>header,.utility,.header,.premium-header,.v25-header,.navbar{display:none!important}main{display:block!important;min-height:65vh;background:var(--ivory)!important;background-image:none!important}.section,.v25-section,.v63-reading,.v69-library-body,.tm-news-shell{padding:72px 0;background:transparent!important}.section.white{background:#fff!important}.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding:92px 0 48px!important;background:linear-gradient(180deg,#fff 0%,var(--ivory) 100%)!important;border-bottom:1px solid var(--line)}.page-hero .inner,.v63-info-hero .container,.v69-library-hero .container{max-width:1000px}.eyebrow,.v25-kicker,.tm-news-kicker{font:700 13px/1.2 Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#8b3d48;margin-bottom:18px}.page-hero p,.v63-info-hero p,.v69-library-hero p{font-size:20px;color:var(--muted);max-width:760px}.content-card,.media-card,.press-card,.report-card,.v54-direction-card,.v25-event-card,.tm-news-card,.v69-book-card,.director-profile-clean{background:#fff!important;border:1px solid var(--line)!important;border-radius:var(--radius)!important;box-shadow:var(--shadow)!important;overflow:hidden}.content-card,.press-card,.report-card{padding:30px}.grid,.cards,.media-grid,.press-grid,.report-grid,.v25-event-grid,.tm-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.media-card img,.tm-news-card img,.v25-event-card img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#f1eee7}.btn,.v25-btn,.tm-primary-btn,.v63-source-btn,.v69-book-button{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;background:var(--green)!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:13px 22px!important;font-weight:700}.tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}.tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 18px;color:var(--green)}.tab.active{background:var(--green);color:#fff}.v63-reading-grid,.v63-bio-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:56px;align-items:start}.v63-prose{font-size:18px;max-width:850px}.v63-prose p{margin:0 0 1.2em}.v63-prose h2{margin-top:1.4em}.v63-portrait img,.director-photo-clean img{width:100%;border-radius:20px;object-fit:contain;background:#fff}.v63-art-tulip{max-width:180px;opacity:.65}.director-profile-clean{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:42px;padding:28px;align-items:center}.director-photo-clean{margin:0}.director-facts-list{margin:0}.director-facts-list>div{padding:16px 0;border-bottom:1px solid var(--line)}.director-facts-list dt{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--green)}.director-facts-list dd{margin:5px 0 0;font-size:17px}.v69-book-card{display:grid;grid-template-columns:220px 1fr;gap:36px;padding:30px}.v69-book-cover img{width:100%;object-fit:contain}.tm-opening-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tm-opening-gallery img,.tm-event-photo{width:100%;height:auto;object-fit:contain;border-radius:18px;background:#fff}.tm-opening-feature{margin-bottom:28px}.tm-opening-feature img{width:100%;max-height:760px;object-fit:contain;border-radius:22px;background:#fff}
/* Homepage */
.v34-ornamental-canvas{display:block!important;background:var(--ivory)!important}.tm-home-hero{display:block!important;padding:58px 0 72px!important;background:linear-gradient(180deg,#fff,var(--ivory))!important}.tm-home-hero-inner{width:min(1160px,calc(100% - 48px));margin:auto;display:grid;grid-template-columns:.92fr 1.08fr;gap:54px;align-items:center}.tm-home-copy h1{font-size:clamp(42px,5vw,68px);margin:0 0 28px}.tm-home-copy h1 span{display:block}.tm-hero-actions{display:flex;gap:12px;flex-wrap:wrap}.tm-secondary-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:999px;padding:13px 22px;background:#fff;color:var(--green);font-weight:700}.tm-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}.tm-hero-stats>div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}.tm-hero-stats strong{display:block;font:700 23px Georgia;color:var(--green)}.tm-hero-stats span{font-size:13px;color:var(--muted)}.tm-home-photo{width:100%;border-radius:28px;box-shadow:var(--shadow);object-fit:contain;background:#fff}.tm-visual-badges{display:none}.v25-directions,.v25-location,.v25-media,.v25-real-events{display:block!important;padding:76px 0!important;background:transparent!important}.v25-direction-grid,.v25-location-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}.v54-direction-photo img,.v25-location-photo img{width:100%;height:auto;object-fit:contain;border-radius:20px}.v25-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}.v25-media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.v25-media-grid>a{display:block;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}.v25-media-grid img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#fff}.v25-media-grid div{padding:20px}.v25-location-copy{padding:30px;background:#fff;border:1px solid var(--line);border-radius:22px}
/* Unified sidebar */
.tm-sidebar-toggle{position:fixed;left:26px;top:26px;width:68px;height:68px;border:0;border-radius:20px;background:var(--green);box-shadow:0 12px 30px rgba(13,91,77,.25);z-index:10002;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.tm-sidebar-toggle span{display:block;width:30px;height:3px;border-radius:3px;background:#fff}.tm-sidebar-backdrop{position:fixed;inset:0;background:rgba(17,31,28,.48);opacity:0;pointer-events:none;transition:.25s;z-index:10000}.tm-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(var(--sidebar),88vw);padding:24px;background:#fff;z-index:10001;transform:translateX(-102%);transition:.28s;overflow:auto;border-right:1px solid var(--line);box-shadow:20px 0 50px rgba(20,40,35,.15)}body.tm-sidebar-open .tm-sidebar{transform:none}body.tm-sidebar-open .tm-sidebar-backdrop{opacity:1;pointer-events:auto}.tm-sidebar-brand{padding:8px 62px 20px 0}.tm-sidebar-brand-link{display:flex;gap:14px;align-items:center}.tm-sidebar-brand img{width:64px}.tm-sidebar-brand-copy strong{display:block;font:700 21px/1.05 Georgia;color:var(--ink)}.tm-sidebar-brand-copy small{display:block;margin-top:6px;color:var(--muted);font-size:12px}.tm-sidebar-search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:999px;padding:9px 14px;margin-bottom:14px}.tm-sidebar-search input{border:0;outline:0;width:100%;font-size:15px}.tm-sidebar-langs-top{display:flex!important;margin:8px 0 14px}.tm-sidebar-langs-top .tm-lang-switch{display:flex!important;gap:7px}.tm-lang-switch a{display:inline-flex;padding:7px 10px;border:1px solid var(--line);border-radius:999px;font-size:12px;font-weight:800}.tm-lang-switch a.active{background:var(--green);color:#fff}.tm-sidebar-menu{display:grid;gap:4px}.tm-sidebar-menu a{display:flex;align-items:center;gap:13px;padding:10px 12px;border-radius:13px;color:#23453f;font-weight:700}.tm-sidebar-menu a.active,.tm-sidebar-menu a:hover{background:#edf6f2;color:var(--green)}.tm-nav-icon{width:24px;text-align:center}.tm-sidebar-bottom{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.tm-sidebar-contact{display:grid;gap:4px}
/* Footer: same appearance regardless of old markup */
.footer,.v25-footer,.premium-footer{display:block!important;background:#0c4c41!important;color:#e9f1ee!important;padding:52px 0 26px!important;border:0!important}.footer h3,.footer h4,.v25-footer h3,.v25-footer h4{color:#fff!important}.footer a,.v25-footer a{color:#e9f1ee!important;display:block;margin:6px 0}.footer p,.v25-footer p,.copyright,.v25-copy{color:#cbd9d5!important}.footer-grid,.v25-footer-grid{display:grid!important;grid-template-columns:2fr 1fr 1fr 1fr!important;gap:34px!important}.footer-logo,.v25-footer-brand img{width:72px}.v25-footer-brand{display:flex;gap:16px}.copyright,.v25-copy{border-top:1px solid rgba(255,255,255,.16);margin-top:30px;padding-top:20px;font-size:13px}
/* Kill all inherited decorative pseudo-elements */
body:before,body:after,main:before,main:after,.hero-medallion,.heritage-corner,.v33-title-ornament{content:none!important;display:none!important;background:none!important;background-image:none!important}
@media(min-width:1250px){body{padding-left:0}}
@media(max-width:900px){.container,.tm-home-hero-inner{width:min(100% - 32px,760px)}.tm-home-hero-inner,.director-profile-clean,.v69-book-card,.v63-reading-grid,.v63-bio-grid,.v25-location-grid,.v25-direction-grid{grid-template-columns:1fr}.grid,.cards,.media-grid,.press-grid,.report-grid,.v25-event-grid,.tm-news-grid,.v25-media-grid,.tm-opening-gallery{grid-template-columns:repeat(2,1fr)}.footer-grid,.v25-footer-grid{grid-template-columns:1fr 1fr!important}.tm-home-visual{order:2}.tm-home-copy{order:1}}
@media(max-width:600px){body{font-size:16px}.tm-sidebar-toggle{left:20px;top:20px;width:64px;height:64px}.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding:110px 0 38px!important}.tm-home-hero{padding:112px 0 50px!important}.tm-home-copy h1{font-size:42px}.tm-hero-stats{grid-template-columns:1fr 1fr}.grid,.cards,.media-grid,.press-grid,.report-grid,.v25-event-grid,.tm-news-grid,.v25-media-grid,.tm-opening-gallery{grid-template-columns:1fr}.footer-grid,.v25-footer-grid{grid-template-columns:1fr!important}.v69-book-card,.director-profile-clean{padding:18px}.v25-section-head{align-items:start;flex-direction:column}.section,.v25-section,.v63-reading,.v69-library-body,.tm-news-shell,.v25-directions,.v25-location,.v25-media,.v25-real-events{padding:52px 0!important}}

/* v72 — critical unified layout repair */
/* Never hide the homepage main canvas: previous wildcard matched "v34-ornamental-canvas" itself. */
.v34-ornamental-canvas{display:block!important;visibility:visible!important;opacity:1!important}
.v34-ornamental-canvas::before,.v34-ornamental-canvas::after{display:none!important;content:none!important}
/* Disable only known legacy ornament decorations, not containers whose class happens to contain the word ornament. */
.ornament,.ornament-strip,.ornament-band,.ornament-side,.ornament-corner,.hero-medallion,.heritage-corner,.v33-title-ornament{display:none!important;background:none!important;background-image:none!important}
/* The broad v71 selector is neutralized for homepage canvas. */
main.v34-ornamental-canvas{display:block!important}

/* Light institutional footer — no black/dark block. */
.footer,.v25-footer,.premium-footer{background:#f7f4ee!important;color:#46544f!important;border-top:1px solid #d9d2c6!important}
.footer h3,.footer h4,.v25-footer h3,.v25-footer h4{color:#173f37!important}
.footer a,.v25-footer a{color:#315b52!important}
.footer p,.v25-footer p,.copyright,.v25-copy{color:#6d7773!important}
.copyright,.v25-copy{border-top:1px solid #d9d2c6!important}

/* Library uses the same visual system as the rest of the site. */
.v69-library-page{background:var(--ivory)!important}
.v69-library-hero{padding-top:118px!important}
.v69-book-cover{align-self:start;background:#eef1e7!important;border:1px solid var(--line);border-radius:18px;padding:12px;box-shadow:none!important}
.v69-book-cover img{display:block;width:100%;height:auto;object-fit:contain;border-radius:10px}
.v69-book-copy h2{margin:8px 0 12px;font-size:clamp(34px,4vw,54px)}
.v69-book-copy h3{font-size:24px;margin:0 0 18px;color:var(--green)}
.v69-book-copy p{font-size:18px;color:#39443f}
.v69-book-meta{color:var(--muted)!important}
.v69-source-note{display:block;margin-top:10px;color:var(--muted)}

@media(max-width:600px){
  .v69-library-hero,.page-hero,.v63-info-hero,.tm-news-shell{padding-top:145px!important}
  .tm-home-hero{padding-top:120px!important}
  .tm-home-copy h1{font-size:38px!important;line-height:1.04}
  .tm-home-hero-inner{gap:30px}
  .tm-hero-stats{grid-template-columns:1fr!important}
  .v69-book-card{grid-template-columns:1fr!important;gap:24px!important;padding:18px!important}
  .v69-book-cover{max-width:240px;margin:0 auto}
  .v69-book-copy h2{font-size:38px!important}
  .v69-book-copy h3{font-size:22px!important}
  .footer,.v25-footer,.premium-footer{padding-top:42px!important}
}

/* v88 — one official footer on every page */
body>footer:not(.tm-global-footer){display:none!important}
.tm-global-footer{display:block!important;background:#cfeee2;color:#294f45;border-top:1px solid #acd7c7;padding:48px 0 24px}
.tm-global-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.25fr;gap:34px}
.tm-global-footer-brand img{display:block;width:64px;height:auto;margin-bottom:14px}.tm-global-footer-brand strong{display:block;max-width:440px;font-family:Georgia,"Times New Roman",serif;font-size:21px;line-height:1.18;color:#124f42}.tm-global-footer p{margin:8px 0;color:#4f6f66}.tm-global-footer h2{margin:0 0 14px;font-family:Arial,"Noto Sans",sans-serif;font-size:14px;line-height:1.2;letter-spacing:.1em;text-transform:uppercase;color:#124f42}.tm-global-footer a{display:block;margin:7px 0;color:#245f52}.tm-global-footer-copy{margin-top:30px;padding-top:20px;border-top:1px solid #acd7c7;color:#4f6f66;font-size:13px}
@media(max-width:900px){.tm-global-footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.tm-global-footer{padding-top:38px}.tm-global-footer-grid{grid-template-columns:1fr;gap:24px}.tm-global-footer-brand strong{font-size:19px}.tm-sidebar-toggle{width:46px!important;height:46px!important}.tm-home-copy h1{font-size:clamp(28px,8vw,34px)!important}.page-hero h1,.v63-info-hero h1,.v69-library-hero h1,.tm-news-shell h1{font-size:clamp(29px,8.3vw,36px)!important}}

/* v77 — mint palette and event schedule */
:root{--ivory:#eaf7f2;--paper:#ffffff;--line:#cfe5dc;--muted:#58736a;--shadow:0 18px 45px rgba(13,91,77,.09)}
html,body,main,.v34-ornamental-canvas,.tm-home-hero,.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell,
.section,.v25-section,.v63-reading,.v69-library-body,.v25-directions,.v25-location,.v25-media,.v25-real-events{
  background:#eaf7f2!important;background-image:none!important;
}
.tm-home-hero,.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{background:linear-gradient(180deg,#f8fffc 0%,#eaf7f2 100%)!important}
.footer,.v25-footer,.premium-footer{background:#cfeee2!important;color:#294f45!important;border-top:1px solid #acd7c7!important}
.footer h3,.footer h4,.v25-footer h3,.v25-footer h4{color:#124f42!important}
.footer a,.v25-footer a{color:#245f52!important}.footer p,.v25-footer p,.copyright,.v25-copy{color:#4f6f66!important}
.copyright,.v25-copy{border-top-color:#acd7c7!important}.v25-footer-brand{display:block!important}
.tm-schedule-page{min-height:100vh;background:#eaf7f2!important}.tm-schedule-hero{text-align:center;padding:100px 0 34px}
.tm-schedule-hero p{max-width:720px;margin:0 auto;color:var(--muted);font-size:18px}
.tm-schedule-body{padding:0 0 80px}.tm-schedule-frame{max-width:900px;margin:0 auto;background:#fff;border:1px solid #cfe5dc;border-radius:24px;padding:18px;box-shadow:var(--shadow)}
.tm-schedule-frame img{display:block;width:100%;height:auto;border-radius:14px}
@media(max-width:600px){.tm-schedule-hero{padding:92px 0 26px}.tm-schedule-frame{padding:8px;border-radius:16px}.tm-schedule-frame img{border-radius:10px}}

/* v90 final overrides — keep below all legacy theme rules */
.tm-sidebar-toggle{width:52px!important;height:52px!important;left:22px!important;top:22px!important;border-radius:14px!important;gap:5px!important;box-shadow:0 5px 14px rgba(13,91,77,.16)!important}
.tm-sidebar-toggle span{width:23px!important;height:2px!important;margin:0!important}
.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding-top:108px!important}
.media-card .tm-event-photo{display:block;width:100%;aspect-ratio:16/10;overflow:hidden;border-radius:0!important;background:#edf3f0;cursor:zoom-in}
.media-card .tm-event-photo img{display:block;width:100%;height:100%!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center;background:#edf3f0;transition:transform .25s ease}
.media-card .tm-event-photo:hover img{transform:scale(1.025)}
.gallery-grid img{display:block;width:100%;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;background:#fff}
@media(max-width:600px){
  .tm-sidebar-toggle{width:50px!important;height:50px!important;left:18px!important;top:18px!important;border-radius:13px!important}
  .tm-sidebar-toggle span{width:22px!important}
  .page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding-top:112px!important}
  .tm-home-hero{padding-top:108px!important}
  .media-card .tm-event-photo{aspect-ratio:4/3}
}

/* v91 — official institutional line above the homepage title */
.tm-official-line{max-width:560px;margin:0 0 17px;padding-left:12px;border-left:3px solid var(--gold);color:#35685d;font-size:12px;font-weight:800;line-height:1.45;letter-spacing:.055em;text-transform:uppercase}
@media(max-width:600px){.tm-official-line{margin-bottom:14px;padding-left:10px;font-size:11px;line-height:1.4;letter-spacing:.035em}}

/* v92 — restrained Tatar identity: both ornaments are fixed at 10% opacity */
.tm-home-hero{position:relative;overflow:hidden;padding-bottom:98px!important}
.tm-home-hero::before,.tm-home-hero::after{content:"";position:absolute;display:block;pointer-events:none;user-select:none;opacity:.1;background-repeat:no-repeat;background-size:contain;z-index:0}
.tm-home-hero::before{top:0;left:0;width:min(420px,32vw);aspect-ratio:1/1;background-image:url('assets/tatar-ornament-corner.webp');background-position:left top}
.tm-home-hero::after{left:50%;bottom:2px;width:min(860px,72vw);height:80px;transform:translateX(-50%);background-image:url('assets/tatar-ornament-divider.webp');background-position:center bottom}
.tm-home-hero-inner{position:relative;z-index:1}
@media(max-width:600px){
  .tm-home-hero{padding-bottom:78px!important}
  .tm-home-hero::before{top:8px;width:230px}
  .tm-home-hero::after{bottom:0;width:88vw;height:58px}
}

/* v90 — compact menu control and consistent event previews */
.tm-sidebar-toggle{
  width:52px!important;height:52px!important;left:22px!important;top:22px!important;
  border-radius:14px!important;gap:5px!important;
  box-shadow:0 5px 14px rgba(13,91,77,.16)!important;
}
.tm-sidebar-toggle span{width:23px!important;height:2px!important;margin:0!important}
.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding-top:108px!important}

.media-card .tm-event-photo{
  display:block;width:100%;aspect-ratio:16/10;overflow:hidden;
  border-radius:0!important;background:#edf3f0;cursor:zoom-in;
}
.media-card .tm-event-photo img{
  display:block;width:100%;height:100%!important;aspect-ratio:auto!important;
  object-fit:cover!important;object-position:center;background:#edf3f0;
  transition:transform .25s ease;
}
.media-card .tm-event-photo:hover img{transform:scale(1.025)}
.gallery-grid img{display:block;width:100%;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;background:#fff}

@media(max-width:600px){
  .tm-sidebar-toggle{width:50px!important;height:50px!important;left:18px!important;top:18px!important;border-radius:13px!important}
  .tm-sidebar-toggle span{width:22px!important}
  .page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding-top:112px!important}
  .tm-home-hero{padding-top:108px!important}
  .media-card .tm-event-photo{aspect-ratio:4/3}
}

/* v87 — editorial polish, accessibility and compact mobile rhythm */
:focus-visible{outline:3px solid #c69b3c!important;outline-offset:3px}
.tm-skip-link{position:fixed;left:18px;top:-80px;z-index:30000;padding:12px 18px;border-radius:10px;background:#fff;color:var(--green);font-weight:700;box-shadow:0 8px 28px rgba(0,0,0,.18)}.tm-skip-link:focus{top:18px}
.media-meta{display:flex!important;align-items:center;flex-wrap:wrap;gap:8px!important;margin:16px 20px 4px!important}
.media-meta span{display:inline-flex;padding:5px 10px;border-radius:999px;background:#edf6f2;color:#235d50;font-size:12px;font-weight:700;line-height:1.2}
.media-card>h3,.media-card>p{margin-left:20px!important;margin-right:20px!important}.media-card>p{margin-bottom:22px!important}
.tm-opening-more{text-align:center;margin:24px 0 0}.gallery-note{max-width:760px;color:var(--muted);font-size:17px;margin:0 0 28px}
.gallery-grid figure{position:relative;overflow:hidden}.gallery-grid img{cursor:zoom-in;transition:transform .25s ease}.gallery-grid figure:hover img{transform:scale(1.015)}
.gallery-grid figcaption{display:flex;flex-direction:column;gap:3px}.gallery-grid figcaption strong{color:var(--green);font-size:12px;letter-spacing:.08em;text-transform:uppercase}.gallery-grid figcaption span{font-size:16px}
.award{display:flex;flex-direction:column}.award-date{display:block;margin-bottom:12px;color:var(--muted);font-size:13px;font-weight:700;letter-spacing:.04em}.award b{margin-bottom:12px}.awards-grid{align-items:stretch}
.tm-lightbox{position:fixed;inset:0;z-index:20000;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:72px 22px 28px;background:rgba(8,26,22,.92);opacity:0;visibility:hidden;transition:.2s}.tm-lightbox.is-open{opacity:1;visibility:visible}.tm-lightbox img{max-width:min(1100px,95vw);max-height:78vh;object-fit:contain;border-radius:12px;background:#fff}.tm-lightbox p{max-width:900px;margin:14px 0 0;color:#fff;text-align:center}.tm-lightbox-close{position:absolute;right:22px;top:18px;width:46px;height:46px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:32px;line-height:1;cursor:pointer}body.tm-lightbox-open{overflow:hidden}
.tm-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:600px){
 h1{font-size:clamp(30px,9vw,38px)!important;line-height:1.08!important;overflow-wrap:anywhere}
 h2{font-size:clamp(27px,8vw,34px)!important;line-height:1.12!important}
 .tm-home-copy h1{font-size:clamp(30px,8.7vw,36px)!important;line-height:1.07!important}
 .tm-sidebar-toggle{box-shadow:0 8px 20px rgba(13,91,77,.2)!important}
 .tm-opening-gallery-preview figure:nth-child(n+5){display:none}
 .tm-opening-gallery-preview{grid-template-columns:1fr 1fr!important;gap:10px!important}
 .tm-opening-gallery-preview img{border-radius:12px!important}
 .media-card>h3{font-size:26px!important}
 .gallery-grid figcaption{padding:14px!important}
}


/* v73 language control */
.tm-langs{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:4px!important;border:1px solid rgba(18,84,70,.18)!important;border-radius:999px!important;background:#fff!important;box-shadow:0 8px 24px rgba(20,50,42,.08)!important}
.tm-langs a{display:flex!important;align-items:center!important;justify-content:center!important;min-width:46px!important;height:34px!important;padding:0 11px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#315b52!important;font:700 12px/1 Arial,sans-serif!important;letter-spacing:.06em!important;text-decoration:none!important}
.tm-langs a.active{background:#0f6758!important;color:#fff!important;box-shadow:none!important}
.tm-sidebar-langs-top{margin:12px 0 20px!important}
@media(max-width:760px){.tm-langs a{min-width:42px!important;height:32px!important;padding:0 9px!important;font-size:11px!important}.tm-sidebar-langs-top{margin-top:8px!important}}

/* v74 compact mobile navigation control */
.tm-sidebar-toggle{width:56px!important;height:56px!important;border-radius:17px!important;gap:5px!important}
.tm-sidebar-toggle span{width:25px!important;height:2.5px!important}
@media(max-width:600px){.tm-sidebar-toggle{left:18px!important;top:18px!important;width:54px!important;height:54px!important;border-radius:16px!important}.tm-sidebar-toggle span{width:24px!important}.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding-top:92px!important}.tm-home-hero{padding-top:96px!important}}


/* v75 FINAL QA — compact mobile navigation and final language switch */
.tm-langs a{min-width:46px!important;text-align:center!important;letter-spacing:.06em!important}
@media (max-width: 760px){
  .tm-sidebar-toggle{width:48px!important;height:48px!important;left:18px!important;top:18px!important;border-radius:14px!important;padding:0!important}
  .tm-sidebar-toggle span{width:22px!important;height:2px!important;margin:3px auto!important}
  .tm-sidebar{width:min(86vw,360px)!important}
  .tm-sidebar-brand{padding-top:22px!important}
  .tm-sidebar-brand img{width:72px!important;height:auto!important}
  .tm-sidebar-brand-copy strong{font-size:20px!important;line-height:1.05!important}
  .tm-sidebar-brand-copy small{font-size:13px!important;line-height:1.35!important}
  .tm-sidebar-search{margin-top:18px!important}
  .tm-sidebar-menu a{min-height:52px!important;padding:12px 16px!important;font-size:17px!important}
  .tm-sidebar-langs-top .tm-langs{padding:4px!important;gap:2px!important}
  .tm-sidebar-langs-top .tm-langs a{min-width:52px!important;padding:9px 10px!important;font-size:13px!important}
}


/* v76 — strict institutional white system; decorative florals removed */
html,body,main,
.v34-ornamental-canvas,.tm-home-hero,.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell,
.section,.v25-section,.v63-reading,.v69-library-body,.v25-directions,.v25-location,.v25-media,.v25-real-events{
  background:#fff!important;background-image:none!important;
}
.v63-art-tulip,.v63-art-tulip img,[class*="flower"],[class*="floral"],.ornament,.ornament-strip,.ornament-band,.ornament-side,.ornament-corner{
  display:none!important;content:none!important;background:none!important;background-image:none!important;
}
.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{border-bottom:1px solid #e7e5df!important}
.tm-home-hero{padding:48px 0 56px!important}
.tm-home-hero-inner{max-width:1080px!important;grid-template-columns:.88fr 1.12fr!important;gap:42px!important}
.tm-home-copy h1{font-size:clamp(38px,4.35vw,60px)!important;line-height:1.03!important;margin-bottom:22px!important}
.tm-hero-stats{margin-top:22px!important;gap:10px!important}
.tm-hero-stats>div{padding:14px 16px!important}
.v25-directions,.v25-location,.v25-media,.v25-real-events{padding:60px 0!important}
.content-card,.media-card,.press-card,.report-card,.v54-direction-card,.v25-event-card,.tm-news-card,.v69-book-card,.director-profile-clean,.v25-location-copy,.tm-hero-stats>div{
  box-shadow:none!important;
}
@media(max-width:900px){
 .tm-home-hero-inner{grid-template-columns:1fr!important;max-width:720px!important;gap:28px!important}
}
@media(max-width:600px){
 body{background:#fff!important}
 .container,.tm-home-hero-inner{width:calc(100% - 44px)!important;max-width:620px!important}
 .tm-home-hero{padding:88px 0 38px!important}
 .tm-home-copy h1{font-size:34px!important;line-height:1.04!important;margin-bottom:20px!important}
 .tm-hero-actions{gap:9px!important}
 .tm-primary-btn,.tm-secondary-btn{padding:11px 17px!important;font-size:15px!important}
 .tm-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:18px!important}
 .tm-hero-stats>div{padding:12px 10px!important;border-radius:14px!important}
 .tm-hero-stats strong{font-size:19px!important}
 .tm-hero-stats span{font-size:11px!important;line-height:1.25!important}
 .section,.v25-section,.v63-reading,.v69-library-body,.v25-directions,.v25-location,.v25-media,.v25-real-events{padding:42px 0!important}
 .page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding:88px 0 32px!important;background:#fff!important}
}

/* v77 final overrides — mint palette */
:root{--ivory:#eaf7f2;--paper:#ffffff;--line:#cfe5dc;--muted:#58736a;--shadow:0 18px 45px rgba(13,91,77,.09)}
html,body,main,.v34-ornamental-canvas,.tm-home-hero,.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell,
.section,.v25-section,.v63-reading,.v69-library-body,.v25-directions,.v25-location,.v25-media,.v25-real-events{
  background:#eaf7f2!important;background-image:none!important;
}
.tm-home-hero,.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{background:linear-gradient(180deg,#f8fffc 0%,#eaf7f2 100%)!important}
.footer,.v25-footer,.premium-footer{background:#cfeee2!important;color:#294f45!important;border-top:1px solid #acd7c7!important}
.footer h3,.footer h4,.v25-footer h3,.v25-footer h4{color:#124f42!important}
.footer a,.v25-footer a{color:#245f52!important}.footer p,.v25-footer p,.copyright,.v25-copy{color:#4f6f66!important}
.copyright,.v25-copy{border-top-color:#acd7c7!important}.v25-footer-brand{display:block!important}
.tm-schedule-page{min-height:100vh;background:#eaf7f2!important}.tm-schedule-hero{text-align:center;padding:100px 0 34px}
.tm-schedule-hero p{max-width:720px;margin:0 auto;color:var(--muted);font-size:18px}
.tm-schedule-body{padding:0 0 80px}.tm-schedule-frame{max-width:900px;margin:0 auto;background:#fff;border:1px solid #cfe5dc;border-radius:24px;padding:18px;box-shadow:var(--shadow)}
.tm-schedule-frame img{display:block;width:100%;height:auto;border-radius:14px}
@media(max-width:600px){.tm-schedule-hero{padding:92px 0 26px}.tm-schedule-frame{padding:8px;border-radius:16px}.tm-schedule-frame img{border-radius:10px}}

/* v90 release overrides */
.tm-sidebar-toggle{width:52px!important;height:52px!important;left:22px!important;top:22px!important;border-radius:14px!important;gap:5px!important;box-shadow:0 5px 14px rgba(13,91,77,.16)!important}
.tm-sidebar-toggle span{width:23px!important;height:2px!important;margin:0!important}
.page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding-top:108px!important}
.media-card .tm-event-photo{display:block;width:100%;aspect-ratio:16/10;overflow:hidden;border-radius:0!important;background:#edf3f0;cursor:zoom-in}
.media-card .tm-event-photo img{display:block;width:100%;height:100%!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center;background:#edf3f0;transition:transform .25s ease}
.media-card .tm-event-photo:hover img{transform:scale(1.025)}
.gallery-grid img{display:block;width:100%;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;background:#fff}
@media(max-width:600px){
  .tm-sidebar-toggle{width:50px!important;height:50px!important;left:18px!important;top:18px!important;border-radius:13px!important}
  .tm-sidebar-toggle span{width:22px!important}
  .page-hero,.v63-info-hero,.v69-library-hero,.tm-news-shell{padding-top:112px!important}
  .tm-home-hero{padding-top:108px!important}
  .media-card .tm-event-photo{aspect-ratio:4/3}
}

/* v92 final ornament placement */
.tm-home-hero{position:relative;overflow:hidden;padding-bottom:98px!important}
.tm-home-hero::before,.tm-home-hero::after{content:"";position:absolute;display:block;pointer-events:none;user-select:none;opacity:.1;background-repeat:no-repeat;background-size:contain;z-index:0}
.tm-home-hero::before{top:0;left:0;width:min(420px,32vw);aspect-ratio:1/1;background-image:url('assets/tatar-ornament-corner.webp');background-position:left top}
.tm-home-hero::after{left:50%;bottom:2px;width:min(860px,72vw);height:80px;transform:translateX(-50%);background-image:url('assets/tatar-ornament-divider.webp');background-position:center bottom}
.tm-home-hero-inner{position:relative;z-index:1}
@media(max-width:600px){.tm-home-hero{padding-bottom:78px!important}.tm-home-hero::before{top:8px;width:230px}.tm-home-hero::after{bottom:0;width:88vw;height:58px}}

/* v93 — menu button moved away from the ornamental corner */
.tm-sidebar-toggle{left:auto!important;right:22px!important}
@media(max-width:600px){.tm-sidebar-toggle{left:auto!important;right:18px!important}}

/* v94 — the oversized homepage title is retained only for accessibility and SEO */
.tm-home-title-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.tm-home-hero-inner{grid-template-columns:minmax(280px,.62fr) minmax(0,1.38fr)!important}
.tm-official-line{max-width:500px;margin:0 0 30px!important}
@media(max-width:900px){.tm-home-hero-inner{grid-template-columns:1fr!important}.tm-official-line{max-width:620px}}

/* v95 — larger primary photograph on the homepage */
@media(min-width:901px){
  .tm-home-hero-inner{max-width:1180px!important;grid-template-columns:minmax(360px,.78fr) minmax(0,1.22fr)!important;gap:48px!important}
  .tm-home-photo,.tm-home-photo img{width:100%!important}
  .tm-home-photo img{display:block!important;height:auto!important}
  .tm-hero-actions{flex-wrap:nowrap!important;align-items:center!important}
  .tm-primary-btn,.tm-secondary-btn{white-space:nowrap!important}
}
