/* Accessible interaction layer. Loaded after the route presentation styles. */
html{scroll-padding-top:var(--dm-focus-inset,100px)}
body .wrap :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
body .top :is(a,button,input,select):focus-visible,
body .footer a:focus-visible,body .skip:focus-visible{
  outline:2px solid #fff;outline-offset:2px;
  box-shadow:0 0 0 6px #0b2545;
}
body .skip:focus{position:fixed;inset:8px auto auto 8px;z-index:100000;color:#0b2545;background:#fff;padding:12px 16px;max-width:calc(100vw - 16px)}
body .top .header-actions button{min-width:44px;min-height:44px;justify-content:center}
body .wrap :is(.controls button,.dm-reference-tabs button,.dm-reference-tabs a,.dm-home-view button,.dm-home-more,.dm-home-extra-actions button,.dm-mode-select,[data-site-reset],[data-site-example],[data-chart-export]){min-height:44px}
body .wrap :is(.dm-home-more,[data-fullscreen]){min-width:44px}
body .wrap :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select){min-height:44px}
body .wrap summary{min-height:24px}
body .wrap .dm-expanded-guide a{overflow-wrap:anywhere}
body .wrap :is(.dm-site-breadcrumb,.dm-premium-crumb,.dm-article-jump) a{white-space:normal;overflow-wrap:anywhere}
body .wrap :is(.dm-site-hero-copy,.dm-premium-hero-copy,.dm-card-copy,.dm-expanded-guide,.dm-calc-inputs,.dm-calc-screen,.dm-calc-method){min-width:0;overflow-wrap:anywhere}
body .wrap :is(.table-scroll,.dm-concept-table){max-width:100%;overflow-x:auto}
body .wrap .dm-status[data-error="true"]{color:#f7d48f}
body .top .desktopnav a.dm-current-section{color:#91f6d9;background:#1b4b54}
@media(max-width:1120px){
  body .top,body.admin-bar .top{position:relative;top:auto}
  body .top .topinner{display:flex;flex-wrap:wrap;justify-content:space-between;column-gap:8px;row-gap:6px}
  body .top .topinner>.brand{margin-inline-end:auto;flex-shrink:1;min-width:0}
  body .top .header-actions{order:2;flex-shrink:0;gap:6px}
  body .top .header-actions .locale-status{display:none}
  body .top .mobile-menu-btn{display:none}
  body.dm-nav-ready .top .mobile-menu-btn{display:inline-flex;align-items:center}
  body .top .desktopnav{order:3;display:flex;width:100%;flex:1 1 100%;justify-content:flex-start;flex-wrap:wrap;padding:4px 0}
  body.dm-nav-ready .top .desktopnav:not(.open){display:none}
  body .top .desktopnav.open{display:flex}
  body .top .desktopnav a{min-height:44px;display:flex;align-items:center;white-space:normal}
  html{scroll-padding-top:var(--dm-focus-inset,12px)}
}
@media(max-width:380px){
  body .top .topinner>.brand img{width:min(140px,100%);height:auto}
  body .wrap :is(.dm-calc-console .dm-form-grid,.dm-premium-settings){grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  body .wrap *,body .wrap *::before,body .wrap *::after,body .top *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media(forced-colors:active){
  body .wrap :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible,body .top :is(a,button,input,select):focus-visible,body .footer a:focus-visible,body .skip:focus-visible{outline:3px solid Highlight;box-shadow:none}
}

/* Runtime audit 2026-12-04: improve actual shared targets and readable text.
   Preserve the approved brand artwork; use a darker semantic text accent. */
body:not(.dark){--accent:#076e66}
body .footer .footerinner a:not(.brand){min-height:28px;display:flex;align-items:center}
body .wrap .dm-lab-checks input[type=checkbox]{width:28px;height:28px;min-width:28px;min-height:28px;flex:0 0 28px;padding:0;accent-color:var(--accent)}
body .wrap .dm-home-step-icons b{background:#087069;color:#fff!important}
/* Change foreground and background together when the theme switches. */
body .wrap :is([data-site-example],.dm-mode-select,[data-chart-export]){
  background:var(--surface);color:var(--ink);border-color:var(--border);transition-property:transform;
}
body .wrap :is([data-site-example],.dm-mode-select){color:var(--accent)}
body .wrap .dm-mode-select[aria-pressed=true]{background:var(--accent2);color:var(--accent);border-color:var(--accent)}
body .wrap :is([data-site-example],.dm-mode-select,[data-chart-export]):hover{background:var(--accent2);color:var(--accent)}
