/* Shared public UI: explicit foreground/background pairs in both renderers. */
html[data-mh-shell="public"]{
  --mulk-ui-surface:var(--em-surface,var(--surface,#fff));
  --mulk-ui-soft:var(--em-surface-soft,var(--surface-soft,#edf4f1));
  --mulk-ui-text:var(--em-text,var(--text,#0f172a));
  --mulk-ui-muted:var(--em-muted,var(--muted,#52636a));
  --mulk-ui-line:var(--em-line,var(--line,#dbe6e1));
  --mulk-ui-action:#006b46;
  --mulk-ui-positive:#006b46;
  --mulk-ui-negative:#ae2940;
}
html[data-mh-shell="public"][data-em-theme="dark"]{
  --mulk-ui-action:#6decc3;
  --mulk-ui-positive:#6decc3;
  --mulk-ui-negative:#ffabb8;
}
html[data-mh-shell="public"] .em-shell :is(.em-eyebrow,.em-text-link,.em-search-tabs button.is-active){color:var(--mulk-ui-action)}
html[data-mh-shell="public"] .em-shell :is(.em-language-menu [aria-checked="true"],.em-language-trigger:hover,.em-theme-toggle:hover){color:var(--mulk-ui-action)}
html[data-mh-shell="public"] .em-shell .em-bottom-nav .is-active{color:var(--mulk-ui-action)}
html[data-mh-shell="public"] .em-shell :is(.em-icon-tile,.em-project-cover,.em-index-top .em-icon,.em-empty>svg){color:var(--mulk-ui-action)}
html[data-mh-shell="public"] .em-shell :is(.em-button,.em-text-link){text-decoration:none;max-width:100%;white-space:normal;text-align:center}
html[data-mh-shell="public"] .em-shell .em-text-link{min-height:44px;padding:8px 14px;box-shadow:none;font-size:.82rem}
html[data-mh-shell="public"] .em-shell .em-text-link .em-icon{width:17px;height:17px;order:2}
html[data-mh-shell="public"] .em-shell .em-marketing-notice a{text-decoration:none;flex-shrink:1}
html[data-mh-shell="public"] .em-shell .em-search-box{background:var(--mulk-ui-surface)}
html[data-mh-shell="public"] .em-shell .em-hero-indicator{background:var(--mulk-ui-surface)}
html[data-mh-shell="public"] .em-shell .em-hero-caption{background:var(--mulk-ui-surface);color:var(--mulk-ui-muted)}
html[data-mh-shell="public"] .em-shell .em-hero-copy{
  background:transparent;
  border-radius:inherit;
}
html[data-mh-shell="public"] .em-shell .em-footer{flex-wrap:wrap}
html[data-mh-shell="public"] .em-shell .em-footer>.em-button{font-size:.82rem}
html[data-mh-shell="public"] :is(.em-change,.em-hero-indicator span,.pr-metric.rising strong){color:var(--mulk-ui-positive)}
html[data-mh-shell="public"] :is(.em-change.is-down,.em-hero-indicator span.is-down,.pr-metric.falling strong){color:var(--mulk-ui-negative)}
html[data-mh-shell="public"] .em-flash{background:#e4f8ed;color:#075e3a;border-color:#9bcdb2}
html[data-mh-shell="public"] .em-flash.em-error{background:#fff0f1;color:#8a2731!important;border-color:#e1a5ae}
html[data-mh-shell="public"] .em-error{color:var(--mulk-ui-negative)!important}
html[data-mh-shell="public"][data-em-theme="dark"] .em-flash{background:#0a4833;color:#c9ffea;border-color:#368263}
html[data-mh-shell="public"][data-em-theme="dark"] .em-flash.em-error{background:#4b272b;color:#ffe0e3!important;border-color:#825057}

/* Shared legacy Vue forms and account screens use these variables. */
html[data-mh-shell="public"][data-em-theme="light"] body :is(.mh-day,.mh-midnight){--mh-ink-faint:83 98 108;--mh-positive:0 107 70;--mh-negative:174 41 64;--mh-caution:127 84 10}
html[data-mh-shell="public"][data-em-theme="light"]{--mh-ink-faint:83 98 108;--mh-positive:0 107 70;--mh-negative:174 41 64;--mh-caution:127 84 10}
html[data-mh-shell="public"] .em-auth-card{color:var(--mulk-ui-text);background:var(--mulk-ui-surface);border-color:var(--mulk-ui-line)}
html[data-mh-shell="public"] .em-auth-back{color:var(--mulk-ui-text);border:1px solid var(--mulk-ui-line);background:var(--mulk-ui-soft);border-radius:12px;padding:8px 14px;text-decoration:none}

/* The Vue profile used to retain pale type over dark-only panels in light mode. */
html[data-mh-shell="public"] .pr-page{color:var(--mulk-ui-text)}
html[data-mh-shell="public"] :is(.pr-panel,.pr-metric,.pr-photo-grid button,.pr-plan-card,.pr-timeline article){color:var(--mulk-ui-text);background:var(--mulk-ui-surface);border-color:var(--mulk-ui-line)}
html[data-mh-shell="public"] :is(.pr-muted,.pr-note,.pr-heading p,.pr-description-text,.pr-facts dt,.pr-analysis-controls label,.pr-analysis-meta,.pr-empty,.pr-metric>span,.pr-metric small,.pr-timeline small,.pr-rating-row small,.pr-breadcrumb){color:var(--mulk-ui-muted)}
html[data-mh-shell="public"] :is(.pr-history,.pr-history th,.pr-history td,.pr-rating-row,.pr-tabs){border-color:var(--mulk-ui-line)}
html[data-mh-shell="public"] :is(.pr-history th,.pr-tabs button,.pr-segment button){color:var(--mulk-ui-muted)}
html[data-mh-shell="public"] :is(.pr-tag,.pr-segment){background:var(--mulk-ui-soft);color:var(--mulk-ui-text);border-color:var(--mulk-ui-line)}
html[data-mh-shell="public"] :is(.pr-unit-icon,.pr-plan-art){background:var(--mulk-ui-soft);border-color:var(--mulk-ui-line);color:var(--mulk-ui-action)}
html[data-mh-shell="public"] .pr-details-card ul,html[data-mh-shell="public"] .pr-metric.stable strong{color:var(--mulk-ui-text)}
html[data-mh-shell="public"] .pr-chart text{fill:var(--mulk-ui-muted)}
html[data-mh-shell="public"] .pr-chart line{stroke:var(--mulk-ui-line)}
html[data-mh-shell="public"] .pr-page select{color:var(--mulk-ui-text);background:var(--mulk-ui-surface);border-color:var(--mulk-ui-line)}

/* Text over a photo has its own dark scrim; it does not inherit light-page ink. */
html[data-mh-shell="public"] .pp-hero h1{color:#fff}
html[data-mh-shell="public"] .pp-hero .pp-eyebrow{color:#b6ffe2}
html[data-mh-shell="public"] .pp-hero-content{background:#001b18bd}
html[data-mh-shell="public"] .auth-scene h2{color:#fff}
html[data-mh-shell="public"] .pp-hero-shade{background:linear-gradient(180deg,#001b171a 8%,#001b18f2 100%)}
html[data-mh-shell="public"] .pp-tabs{top:78px}
html[data-mh-shell="public"] .pp-panel{scroll-margin-top:154px}
html[data-mh-shell="public"] :is(.pp-button,.button,.ls-btn,.auth-action--primary){color:#002f21}
html[data-mh-shell="public"] :is(.pp-button.secondary,.button.secondary,.ls-btn.secondary){background:var(--mulk-ui-surface);color:var(--mulk-ui-text)!important;border-color:var(--mulk-ui-line)}
html[data-mh-shell="public"] .button.danger{color:var(--mulk-ui-negative);background:var(--mulk-ui-soft)}
html[data-mh-shell="public"] .pp-section-title>span{color:var(--mulk-ui-action);background:var(--mulk-ui-soft);border-color:var(--mulk-ui-line)}
html[data-mh-shell="public"] .pp-map-message{color:var(--mulk-ui-text);background:var(--mulk-ui-soft)}
html[data-mh-shell="public"][data-em-theme="light"] :is(.pp-reference,.pp-unit-price strong,.ls-price){color:var(--mulk-ui-positive)}

/* Action links keep hrefs, keyboard behavior and browser navigation. */
html[data-mh-shell="public"] :is(.pr-text-button,.text-button,.auth-foot a,.pr-breadcrumb a),
html[data-mh-shell="public"] .em-shell main a:is([class*="underline"],.text-accent,.text-brand):not(.prose a):not(:has(img)){
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;max-width:100%;padding:8px 14px;border:1px solid var(--mulk-ui-line);
  border-radius:11px;background:var(--mulk-ui-soft);color:var(--mulk-ui-text);
  font:inherit;font-size:.85rem;font-weight:650;line-height:1.6;text-decoration:none;
  white-space:normal;text-align:center;
}
html[data-mh-shell="public"] .pr-text-button{margin-top:12px}
html[data-mh-shell="public"] :is(.auth-card,.auth-card .muted,.auth-card .hint,.auth-foot){color:var(--mulk-ui-text)}
html[data-mh-shell="public"] .auth-foot{flex-wrap:wrap;gap:10px}
html[data-mh-shell="public"] :focus-visible{outline:3px solid var(--mulk-ui-action);outline-offset:3px}
@media(max-width:767px){
  html[data-mh-shell="public"] .em-shell .em-hero-copy{border-radius:inherit;background:transparent}
  html[data-mh-shell="public"][data-em-theme="light"] .em-shell .em-hero .em-eyebrow{color:#00452f}
  html[data-mh-shell="public"] .em-shell .em-section{scroll-margin-top:80px}
  html[data-mh-shell="public"] .em-header .em-brand>img{max-width:148px}
  html[data-mh-shell="public"] .em-shell .em-search-tabs button{min-height:44px}
  html[data-mh-shell="public"] .em-shell .em-section-heading{flex-wrap:wrap}
}
