/* NHRM CHROME (28 Nov 2026, @ovi). Robin in the DM: "can u standardize the css accross screens", then in the terminal: "Also check
   loadimg screens its very disjointed and the css isnt consistent. The brand sits in a white box."
   The approved design (plugins/ovi/lens/frames/nhrm.css, built from NHRM-Library-Mockup.html) only reaches inside #nhrm-app. This
   carries its own tokens to everything around it: the ground under the pages, the header, the menu, the loading stripe, the sign in
   and recovery card, the reset page and the account buttons. Every colour, font, corner and shadow below is one the design already uses;
   the only other value is the ground grey, which is the average of the page's own background map. Linked from layouts default.htm and
   account-dashboard.htm (marker ovi-nhrm-chrome); the header ground and header icon colours are the theme's own settings. */
:root{--nh-paper:#f4f1cf;--nh-white:#fffef3;--nh-ink:#20231d;--nh-red:#aa342b;--nh-olive:#626b37;--nh-muted:#666957;--nh-line:#c5c9a4;--nh-field:#a3a882;--nh-yellow:#e3df79;--nh-mono:'Courier New',monospace;--nh-serif:Georgia,'Times New Roman',serif;--nh-sans:Arial,Helvetica,sans-serif;--nh-shadow:6px 6px 0 #c5c49f}

/* the ground: the background map's own average grey under the map, so a page no longer goes white, then paper, then grey. On body, not
   html, so the map still spreads over the whole window; the theme's own ground setting (color), when set, still wins as the inline style. */
body{background-color:#bebebe}
/* the installed app's first launch: paper from the first paint, the same paper as the phone's splash and the app loader after it */
html.nh-app-boot body{background-color:var(--nh-paper)}

/* the header: the theme paints it paper (sticky_menu_background_color); one hairline under it, and the hub logo, a JPEG on white,
   multiplied so the paper shows through instead of a white box */
#layout-header .header-area{border-bottom:1px solid var(--nh-line)}
#layout-header .logo-img{mix-blend-mode:multiply}

/* the header icons drawn by the page itself: two icon fonts from two outside servers used to show empty boxes for up to three
   seconds; the glyphs are now masks in the header's own colour, there from the first paint */
#layout-header i.fa-bars,#layout-header i.fa-search,#layout-header i.fa-times{font-family:inherit!important;font-style:normal}
#layout-header i.fa-bars::before,#layout-header i.fa-search::before,#layout-header i.fa-times::before{content:''!important;display:inline-block;width:1em;height:1em;vertical-align:-.125em;background:currentColor;-webkit-mask:var(--nh-glyph) center/contain no-repeat;mask:var(--nh-glyph) center/contain no-repeat}
#layout-header i.fa-bars{--nh-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 6.5h16M4 12h16M4 17.5h16'/%3E%3C/svg%3E")}
#layout-header i.fa-search{--nh-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.6 15.6l4.9 4.9'/%3E%3C/svg%3E")}
#layout-header i.fa-times{--nh-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")}

/* the language switch: the design's ink, in its mono */
#layout-header .lang-switcher .lang-link{color:var(--nh-ink)!important;border-color:var(--nh-ink)!important;font-family:var(--nh-mono)!important;border-radius:0!important}
#layout-header .lang-switcher .lang-link.active{background:var(--nh-ink)!important;color:var(--nh-white)!important}
#layout-header .lang-switcher .divider{color:var(--nh-line)}

/* the menu: ink like the footer. Not !important, so the theme's side_background_color still wins when someone sets it; it is left empty
   because the Appearance tool hands that same setting to the pocket as its panel ground. The close button and the sign in line in the
   footer's own inks. */
#layout-header #sidebar-wrapper{background:var(--nh-ink)}
#sidebar-wrapper #menu-close{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--nh-white)!important}
#sidebar-wrapper .nav__list strong{color:var(--nh-yellow)}

/* the framework's loading stripe at the top of the page, blue until now */
.stripe-loading-indicator .stripe,.stripe-loading-indicator .stripe-loaded{background:var(--nh-red)!important;box-shadow:none!important}

/* the sign in, join and recovery card, and the reset page that reuses it: the design's paper card, square, ink buttons in mono capitals */
html body .cm-auth-page{display:flex;justify-content:center;align-items:center;padding:1.5rem 1rem;min-height:40vh}
html body .cm-auth-card{width:100%;max-width:560px;background:var(--nh-white);border:1px solid var(--nh-line);border-radius:0!important;padding:2rem 2.5rem;box-shadow:var(--nh-shadow);text-align:center;color:var(--nh-ink);font-family:var(--nh-sans)}
html body .cm-auth-icon{width:48px;height:48px;margin:0 auto .85rem;border-radius:50%;background:var(--nh-red)!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center;color:var(--nh-white)}
html body .cm-auth-icon svg{width:22px;height:22px}
html body .cm-auth-title{font:700 1.5rem/1.2 var(--nh-serif);color:var(--nh-ink);margin:0 0 .35rem;text-wrap:balance}
html body .cm-auth-subtitle{font:.95rem/1.5 var(--nh-serif);color:var(--nh-muted);margin:0 0 1.25rem;text-align:center}
html body .cm-auth-form{text-align:left}
html body .cm-auth-field{margin-bottom:.9rem}
html body .cm-auth-field label{display:block;font:700 11px/1.4 var(--nh-mono);text-transform:uppercase;letter-spacing:1.6px;color:var(--nh-ink);margin-bottom:.4rem}
html body .cm-auth-input{width:100%;background:#fff;border:1px solid var(--nh-field);border-radius:0;padding:.6rem .8rem;font:16px/1.3 var(--nh-serif);color:var(--nh-ink)}
html body .cm-auth-input:focus{outline:3px solid var(--nh-red)!important;outline-offset:2px;border-color:var(--nh-ink)!important;box-shadow:none!important}
html body .cm-auth-btn{width:100%;background:var(--nh-ink)!important;color:var(--nh-white)!important;border:1px solid var(--nh-ink);border-radius:0;padding:14px;font:700 11px/1.2 var(--nh-mono);text-transform:uppercase;letter-spacing:1.2px;box-shadow:none!important;cursor:pointer}
html body .cm-auth-btn:hover{background:var(--nh-red)!important;border-color:var(--nh-red);filter:none}
html body .cm-auth-btn-secondary{width:100%;background:transparent;color:var(--nh-ink);border:1px solid var(--nh-ink);border-radius:0;padding:13px;font:700 11px/1.2 var(--nh-mono);text-transform:uppercase;letter-spacing:1.2px;cursor:pointer}
html body .cm-auth-btn-secondary:hover{color:var(--nh-red)!important;border-color:var(--nh-red)!important}
html body .cm-auth-link{display:block;background:none;border:0;padding:0;color:var(--nh-red)!important;font:700 11px/1.6 var(--nh-mono);text-transform:uppercase;letter-spacing:1.2px;text-decoration:none;cursor:pointer}
html body .cm-auth-link:hover{text-decoration:underline;text-underline-offset:4px}
html body .cm-auth-link-center{text-align:center;margin-top:.9rem}
html body .cm-auth-divider{color:var(--nh-muted);font:11px var(--nh-mono);text-transform:uppercase;letter-spacing:1.2px}
html body .cm-auth-divider::before,html body .cm-auth-divider::after{background:var(--nh-line)}
html body .cm-auth-btn:focus,html body .cm-auth-btn-secondary:focus{outline:none;box-shadow:none!important}
html body .cm-auth-btn:focus-visible,html body .cm-auth-btn-secondary:focus-visible,html body .cm-auth-link:focus-visible{outline:3px solid var(--nh-red);outline-offset:4px}
@media (max-width:480px){html body .cm-auth-card{padding:1.6rem 1.15rem}}

/* the immediate answer of the recovery form */
html body .ovi-rs-say{background:var(--nh-paper);color:var(--nh-ink);border:1px solid var(--nh-line);border-left:3px solid var(--nh-olive);border-radius:0;padding:.7rem .85rem;margin:0 0 1rem;font:.92rem/1.45 var(--nh-serif);text-align:left}
html body .ovi-rs-say.ok,html body .ovi-rs-say.no{background:var(--nh-paper);color:var(--nh-ink);border:1px solid var(--nh-line);border-left:3px solid var(--nh-olive)}
html body .ovi-rs-say.no{border-left-color:var(--nh-red)}
html body .ovi-rs-err{display:block;color:var(--nh-red);font:.9rem/1.4 var(--nh-serif);margin-bottom:.6rem}

/* the account pages once signed in: the same ink buttons and square cards */
.btn-save-profile,.dashboard-nav .nav-item .dashboard-nav-link.active{background:var(--nh-ink)!important;color:var(--nh-white)!important;border-radius:0!important;box-shadow:none!important}
.btn-save-profile:hover{background:var(--nh-red)!important}
.dashboard-card{border-radius:0!important}
.cm-auth-btn-secondary:hover .nav-icon,.dashboard-nav .nav-item .dashboard-nav-link:hover .nav-icon{color:var(--nh-red)!important}
