/* Presentation only. Warm light belongs to the wall, never the painting. */
html body.mf-site.mf-polish {
  --paper:#554235; --surface:#604a3b; --soft:#6c5443;
  --ink:#fff7ed; --muted:#ead9c6; --accent:#f0c98a; --wine:#f0c98a;
  --line:rgb(242 218 185 / .24);
  --cine-glass-fill:linear-gradient(135deg,#fff9e009,transparent 65%),rgb(73 53 40 / .16);
  --cine-glass-edge:rgb(255 235 207 / .2);
  --cine-glass-shadow-stack:inset 0 1px 0 #fff5df12,0 12px 30px -22px #08040280;
  --polish-nav:#eddbc4; --polish-nav-ink:#1b130d;
  background:radial-gradient(ellipse at 10% 18%,#b772421a,transparent 48%),radial-gradient(ellipse at 92% 48%,#d7a76b10,transparent 42%),#554235!important;
  color:var(--ink); overflow-x:clip;
}
html body.mf-polish :is(.artist-section,.journal-section,.intro-strip,.site-footer) {
  background:transparent!important; color:var(--ink);
}
html body.mf-polish .cinematic-hero .cine-band { background:linear-gradient(#554235cc,#554235)!important; }
html body.mf-polish .hero-atelier.luminous-hero.cinematic-hero { background:#30251f; }
html body.mf-polish .flow-ambient { opacity:.46; }

/* A single glass toolbar. Real padding keeps every logo away from the curved edge. */
html body.mf-site.mf-polish .header-inner {
  box-sizing:border-box; width:calc(100% - 48px); max-width:1480px;
  min-height:104px; padding:8px 22px!important; gap:20px;
  border:1px solid #fff4dc70; border-radius:24px;
  background:var(--polish-nav)!important; color:var(--polish-nav-ink);
  box-shadow:inset 0 1px 0 #fff9,0 12px 35px -22px #130a06a6!important;
}
html body.mf-site.mf-polish .header-inner::after { display:none; }
html body.mf-site.mf-polish:not(.mf-flow-home) .site-header { margin-top:12px; }
html body.mf-site.mf-polish .header-inner :is(.brand,.desktop-nav,.header-actions) {
  padding:0!important; background:transparent!important; border:0!important; box-shadow:none!important;
}
html body.mf-site.mf-polish .header-inner :is(a,summary,strong,small,.menu-toggle,.icon) { color:var(--polish-nav-ink)!important; }
html body.mf-site.mf-polish .header-actions { flex:0 0 auto; gap:8px; }
html body.mf-site.mf-polish .site-header .brand { gap:10px; min-width:0; flex:0 1 auto; }
html body.mf-site.mf-polish .site-header .brand > span { min-width:0; display:grid; row-gap:6px; }
/* Nastaliq glyphs extend outside tight line boxes. Reserve both ink and gap. */
html body.mf-site.mf-polish .site-header .brand strong { line-height:2.1!important; margin:0!important; padding-block:1px 4px; }
html body.mf-site.mf-polish .site-header .brand small { line-height:2.1!important; font-size:10.5px!important; margin:0!important; letter-spacing:0; }
html[lang^=en] body.mf-site.mf-polish .site-header .brand strong { line-height:1.5!important; padding-block:0; }
html body.mf-site.mf-polish .site-header .brand > .brand-logo-mark {
  box-sizing:border-box!important; width:52px; height:52px; min-width:52px; max-width:52px;
  aspect-ratio:1; flex:none; padding:3px; object-fit:contain; border-radius:50%;
  background:#fcf8ef; border:1px solid #76533320; box-shadow:none; transform:none;
}
html body.mf-site.mf-polish .header-inner :is(.button,.icon-button,.language-picker summary) {
  background:transparent!important; box-shadow:none!important; border-color:#65452b40!important;
}
html body.mf-site.mf-polish .header-inner :is(.button,.icon-button,.language-picker summary):is(:hover,:focus-visible) { background:#fff6df70!important; }
html body.mf-site.mf-polish .menu-toggle > span {
  position:static!important; width:auto; height:auto; min-width:0; padding:0; margin:0;
  border:0; border-radius:0; background:transparent; box-shadow:none; font-size:14px; line-height:1.8;
}
html body.mf-polish .language-picker nav { background:#f4e5d1!important; color:#34251b; box-shadow:0 14px 32px #10090030!important; }
html body.mf-polish .language-picker nav a { color:#34251b!important; }
html body.mf-polish .language-picker nav a:is(:hover,[aria-current=true]) { background:#76533318!important; }
html body.mf-site.mf-polish .entry-links {
  background:var(--polish-nav)!important; border:1px solid #fff4dc60!important;
  box-shadow:inset 0 1px 0 #fff9,0 14px 30px -24px #100900a6!important;
}
html body.mf-site.mf-polish .entry-links .entry-link { color:var(--polish-nav-ink)!important; }
html body.mf-site.mf-polish .entry-links .entry-link:is(:hover,:focus-visible) { background:#fff7e563!important; }

/* Flatten nested cards. Input, navigation and dialog boundaries stay meaningful. */
html body.mf-site.mf-polish :is(.art-card,.journal-card,.process-card,.contact-card,.commission-panel,.lesson-grid li,.lessons-steps li,.course-card,.site-footer .footer-grid>*) {
  background:transparent!important; border:0!important; box-shadow:none!important;
  backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
}
html body.mf-site.mf-polish .site-footer { border-top:1px solid var(--line); }
html body.mf-site.mf-polish .site-footer .footer-grid>* { padding:0; }
html body.mf-site.mf-polish .site-footer .brand { min-width:0; max-width:100%; align-items:flex-start; }
html body.mf-site.mf-polish .site-footer .brand>.brand-logo-full {
  box-sizing:border-box!important; width:min(180px,100%); max-width:100%; height:auto;
  aspect-ratio:320/515; padding:12px; border:0; border-radius:16px; object-fit:contain;
}
html body.mf-site.mf-polish .site-footer .brand small { white-space:normal; overflow-wrap:anywhere; }
html body.mf-site.mf-polish .footer-bottom { border-top:1px solid var(--line)!important; padding-top:22px!important; }
html body.mf-site.mf-polish .art-card { padding:0!important; }
html body.mf-site.mf-polish .art-media {
  background:linear-gradient(135deg,#fff4df19,transparent 65%)!important;
  padding:4px!important; border:1px solid #f7ddba33!important; border-radius:10px;
  box-shadow:inset 0 1px 0 #fff5,0 20px 34px -26px #110904b3!important;
}
html body.mf-site.mf-polish :is(.art-image-button,.canvas-frame) { background:transparent!important; border:0!important; }
html body.mf-site.mf-polish .art-serial { background:transparent!important; border:0!important; box-shadow:none!important; }
html body.mf-site.mf-polish .art-info { padding:14px 4px 4px; }
html body.mf-site.mf-polish .art-card-bottom { border-color:var(--line); }
html body.mf-site.mf-polish .commission-form { background:#fff4df08!important; border-color:var(--line); box-shadow:none!important; }
html body.mf-site.mf-polish :is(.artist-visual,.artist-video,.lessons-note,.selected-art,.viewer-navigation) {
  background:#fff4df08!important; border-color:var(--line); box-shadow:none!important;
}
html body.mf-site.mf-polish :is(.button,.icon-button,.filters button,.gallery-layout,.gallery-layout button,.search-field) {
  background:var(--cine-glass-fill); box-shadow:none; border-color:var(--line);
}
html body.mf-site.mf-polish .collection .gallery-tools { align-items:center; gap:14px; }
html body.mf-site.mf-polish .collection .gallery-tools .search-field {
  box-sizing:border-box; height:auto; min-height:54px; padding:4px 12px; gap:10px; border:1px solid var(--line);
}
html body.mf-site.mf-polish .search-field input { background:transparent!important; box-shadow:none!important; border:0!important; }
html body.mf-site.mf-polish .search-field input:focus-visible { outline:none; }
html body.mf-site.mf-polish .search-field:focus-within { outline:3px solid #f2cb8c; outline-offset:3px; }
html body.mf-site.mf-polish .search-field .icon { flex:0 0 20px; width:20px; height:20px; }
html body.mf-site.mf-polish .gallery-layout { background:transparent!important; border:0!important; padding:0; gap:6px; }
html body.mf-site.mf-polish .mf-quick-contact { background:var(--polish-nav)!important; border:1px solid #fff4dc70!important; }
html body.mf-site.mf-polish .mf-quick-contact a { color:var(--polish-nav-ink)!important; background:transparent!important; border:0!important; box-shadow:none!important; }
html body.mf-site.mf-polish :is(.mobile-menu,.art-dialog,.zoom-dialog) { background:#30251f!important; border:1px solid var(--line); }
html body.mf-site.mf-polish #art-dialog .detail-info { background:transparent!important; border:0; box-shadow:none; }
html body.mf-polish :is(a,button,summary,input,textarea,select):focus-visible { outline:3px solid #f2cb8c; outline-offset:4px; }
html body.mf-polish :is(.header-inner,.entry-links,.mf-quick-contact,.language-picker nav) :is(a,button,summary):focus-visible { outline-color:#5c371b; }

@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  html body.mf-site.mf-polish :is(.header-inner,.entry-links,.mf-quick-contact) {
    background:linear-gradient(135deg,#fff9e019,transparent 65%),rgb(239 219 192 / .58)!important;
    backdrop-filter:blur(10px) saturate(1.08)!important; -webkit-backdrop-filter:blur(10px) saturate(1.08)!important;
  }
  html body.mf-site.mf-polish .language-picker nav { background:rgb(244 229 209 / .84)!important; backdrop-filter:blur(10px)!important; -webkit-backdrop-filter:blur(10px)!important; }
  html body.mf-site.mf-polish .mobile-menu { background:rgb(48 37 31 / .72)!important; backdrop-filter:blur(16px)!important; -webkit-backdrop-filter:blur(16px)!important; }
}
@media(min-width:701px) and (max-width:1100px) {
  html body.mf-polish .site-header .desktop-nav { display:none; }
  html body.mf-polish .site-header .menu-toggle { display:flex; }
}
@media(max-width:700px) {
  html body.mf-site.mf-polish .header-inner { width:calc(100% - 24px); padding:8px 12px!important; gap:10px; border-radius:22px; min-height:78px; }
  html body.mf-site.mf-polish .site-header .brand { gap:8px; }
  html body.mf-site.mf-polish .site-header .brand > span { row-gap:0; }
  html body.mf-site.mf-polish .site-header .brand>.brand-logo-mark { width:40px; height:40px; min-width:40px; max-width:40px; }
  html body.mf-site.mf-polish .header-actions { gap:6px; }
  html body.mf-site.mf-polish .site-header .brand strong { font-size:15px!important; white-space:normal; line-height:1.8; }
  html body.mf-site.mf-polish .site-header .brand small { display:none; }
  html body.mf-site.mf-polish .menu-toggle { min-width:64px; width:auto; gap:6px; padding-inline:8px; }
  html body.mf-site.mf-polish .language-picker summary { padding-inline:9px; }
  html body.mf-site.mf-polish .collection .gallery-tools { align-items:stretch; }
  html body.mf-site.mf-polish .collection .gallery-tools .search-field { flex:0 0 auto!important; width:100%; min-width:0; max-width:none; }
  html body.mf-site.mf-polish .site-footer .brand>.brand-logo-full { width:150px; }
  html body.mf-site.mf-polish .footer-contact>a { min-height:44px; }
}
@media(max-width:359px) {
  html body.mf-site.mf-polish .header-inner { padding-inline:10px!important; gap:6px; }
  html body.mf-site.mf-polish .header-actions { gap:4px; }
  html body.mf-site.mf-polish .site-header .brand { gap:5px; }
  html body.mf-site.mf-polish .site-header .brand strong { font-size:13px!important; }
  html body.mf-site.mf-polish .site-header .brand>.brand-logo-mark { width:36px; height:36px; min-width:36px; max-width:36px; }
  html body.mf-site.mf-polish .menu-toggle { min-width:56px; padding-inline:5px; }
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  html body.mf-site.mf-polish :is(.header-inner,.entry-links,.mf-quick-contact) { background:var(--polish-nav)!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
  html body.mf-site.mf-polish .language-picker nav { background:#f4e5d1!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
  html body.mf-site.mf-polish :is(.commission-form,.artist-video,.lessons-note,.selected-art,.viewer-navigation) { background:#382b23!important; }
  html body.mf-site.mf-polish .mobile-menu { background:#30251f!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
}
@media(forced-colors:active) {
  html body.mf-site.mf-polish,html body.mf-site.mf-polish :is(.header-inner,.entry-links,.mf-quick-contact,.language-picker nav,.commission-form,.art-media,.mobile-menu,.art-dialog,.zoom-dialog) { background:Canvas!important; color:CanvasText!important; box-shadow:none!important; backdrop-filter:none!important; }
  html body.mf-site.mf-polish :is(.header-inner,.entry-links,.mf-quick-contact,.language-picker nav) :is(a,button,summary,strong,small) { color:LinkText!important; }
  html body.mf-site.mf-polish :is(button,summary,input,textarea,select,.art-media) { border:1px solid ButtonText!important; }
}
@media print { html body.mf-site.mf-polish { background:white!important; color:black!important; } }
