/* Original NOF Library artwork and wordmark; forms and release gates remain real HTML. */
:root {
  color-scheme: dark;
  font-family: Inter, "Noto Sans Thai", Tahoma, system-ui, sans-serif;
  --canvas: #031b14;
  --surface: #082b20;
  --surface-deep: #052218;
  --gold: #e2c478;
  --gold-bright: #f4dfa4;
  --text: #f2f5ec;
  --muted: #a4b9ad;
  --line: rgba(185, 211, 190, .15);
  --gold-line: rgba(226, 196, 120, .3);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; position: relative; isolation: isolate; color: var(--text); font-size: 16px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--canvas) url('/member-assets/nof-library-portal-v1.png') center / cover no-repeat; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(3, 24, 17, .94), rgba(3, 24, 17, .7) 48%, rgba(3, 24, 17, .3)), linear-gradient(0deg, #031b14, transparent 44%, rgba(3, 24, 17, .28)); }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--gold); text-underline-offset: 5px; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.hidden, [hidden] { display: none !important; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1320px, calc(100% - 80px)); min-height: 100px; margin: 0 auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; width: 116px; height: 66px; object-fit: cover; mix-blend-mode: screen; }
.brand > span { padding-left: 16px; border-left: 1px solid var(--gold-line); color: var(--gold-bright); font-size: 11px; font-weight: 650; letter-spacing: .12em; line-height: 1.8; }
.brand small { display: block; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .16em; }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px; color: #c1cfc5; font-size: 15px; text-decoration: none; transition: background .18s, color .18s; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--gold-bright); background: rgba(226, 196, 120, .07); }
.site-header nav a[data-view="login"] { margin-left: 8px; border-color: var(--gold-line); color: var(--gold-bright); }
.public-main { flex: 1; width: min(1320px, 100%); margin: 0 auto; padding: 0 40px 56px; }
.view { scroll-margin-top: 116px; } /* Initial /#login and /#register must retain the original wordmark. */
.environment-notice { margin: 20px 0 0; padding: 12px 18px; border: 1px solid var(--gold-line); border-radius: 12px; background: var(--surface); color: var(--gold-bright); text-align: center; }
.portal-brand { display: none; } /* Legacy mount compatibility: the original wordmark lives in the header. */
.eyebrow { display: block; color: var(--gold); font-size: 11px; font-weight: 650; letter-spacing: .2em; line-height: 1.8; }
.muted { color: var(--muted); }
.panel { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 43, 32, .85); }
.panel h2 { color: var(--text); font-size: 26px; font-weight: 600; line-height: 1.4; margin: 0 0 12px; }
.panel p { color: var(--muted); font-size: 16px; line-height: 1.75; }

.home-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); align-items: center; gap: clamp(48px, 6vw, 112px); min-height: min(660px, calc(100svh - 220px)); padding: 64px 0 48px; }
.welcome-card { padding: 0; }
.welcome-card h1 { margin: 20px 0 22px; color: var(--text); font-size: clamp(38px, 4.4vw, 62px); font-weight: 600; line-height: 1.3; letter-spacing: -.045em; text-wrap: balance; }
.welcome-card .muted { max-width: 620px; margin: 0; font-size: 18px; line-height: 1.85; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1.55; text-align: center; text-decoration: none; transition: background .18s, border-color .18s, transform .18s; }
.primary { background: linear-gradient(115deg, #dfbf72, #f0d99a); color: #173326; box-shadow: 0 6px 24px #0002; }
.secondary { border-color: rgba(185, 211, 190, .27); background: rgba(8, 43, 32, .58); color: var(--text); }
.primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.secondary:hover { border-color: var(--gold-line); background: rgba(19, 64, 45, .82); }
.welcome-card .primary { min-width: 236px; }
.welcome-card .secondary { min-width: 152px; }
.welcome-foot { margin-top: 22px; color: var(--muted); font-size: 15px; }
.welcome-foot a { margin-left: 6px; text-decoration: none; }
.home-journey { align-self: end; margin-bottom: 8px; padding: 28px 0 0 28px; border-left: 1px solid var(--gold-line); background: linear-gradient(90deg, rgba(3, 27, 20, .48), transparent); }
.home-journey h2 { margin: 14px 0 24px; color: #f0e9d1; font-size: 30px; font-weight: 500; line-height: 1.5; letter-spacing: -.025em; }
.home-journey ol, .auth-steps { list-style: none; margin: 0; padding: 0; }
.home-journey li, .auth-steps li { display: flex; align-items: flex-start; gap: 18px; margin: 20px 0; }
.home-journey li > span, .auth-steps li > span { padding-top: 2px; color: var(--gold); font-size: 11px; letter-spacing: .05em; }
.home-journey strong, .auth-steps strong { font-size: 16px; font-weight: 550; }
.home-journey li p, .auth-steps li p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.home-journey > a { display: inline-block; margin-top: 12px; font-size: 14px; text-decoration: none; }
.feature-row { display: flex; align-items: center; flex-wrap: wrap; gap: 22px 48px; margin: 0; padding: 24px 0 8px; border-top: 1px solid var(--line); color: #c2cfc2; font-size: 14px; }
.feature-row span { display: inline-flex; align-items: center; gap: 10px; }
.feature-row svg { color: var(--gold); width: 20px; height: 20px; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: clamp(48px, 8vw, 112px); max-width: 1120px; margin: 0 auto; padding: 48px 0 8px; }
.auth-intro { position: sticky; top: 40px; padding: 48px 0 32px; }
.auth-intro h2 { margin: 18px 0 24px; font-size: clamp(38px, 4.2vw, 56px); font-weight: 550; line-height: 1.35; letter-spacing: -.035em; }
.auth-intro > p { margin: 0; color: #bfcec1; font-size: 18px; line-height: 1.9; }
.auth-context { display: flex; align-items: flex-start; gap: 16px; margin: 34px 0 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.context-mark { color: var(--gold); font-size: 24px; line-height: 1.3; }
.auth-context p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.auth-context strong { color: var(--text); font-weight: 550; }
.auth-intro > a { display: inline-block; margin-top: 8px; font-size: 15px; text-decoration: none; }
.auth-steps { margin: 30px 0; }
.auth-steps li { margin: 24px 0; }
.form { min-width: 0; width: 100%; margin: 0; }
.auth-card { padding: 30px 32px; background: linear-gradient(145deg, rgba(8, 43, 32, .96), rgba(5, 34, 24, .96)); box-shadow: 0 16px 56px #0002; }
.auth-tabs { display: flex; gap: 24px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.auth-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 0 12px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.5; }
.auth-tabs a[aria-current="page"] { color: var(--gold-bright); border-bottom-color: var(--gold); }
.auth-tabs small, .auth-tabs svg { display: none; }
.auth-heading { margin: 0 0 24px; }
.auth-heading .eyebrow { font-size: 10px; }
.auth-heading h1 { margin: 7px 0 8px; font-size: 30px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.auth-heading p { margin: 0; font-size: 15px; }
label { display: block; min-width: 0; margin: 17px 0 0; color: #d6e2d7; font-size: 15px; line-height: 1.6; }
input { display: block; width: 100%; min-width: 0; min-height: 50px; margin-top: 7px; padding: 12px 14px; border: 1px solid rgba(164, 185, 173, .3); border-radius: 10px; background: rgba(1, 24, 15, .54); color: var(--text); outline: none; transition: border-color .18s, box-shadow .18s; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 196, 120, .08); }
input::placeholder { color: #8ca697; font-size: 15px; }
.input-shell { display: flex; align-items: center; gap: 12px; min-height: 50px; margin-top: 7px; padding: 0 14px; border: 1px solid rgba(164, 185, 173, .3); border-radius: 10px; background: rgba(1, 24, 15, .54); }
.input-shell:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 196, 120, .08); }
.input-shell > svg { color: #9cb6a6; width: 19px; height: 19px; }
.input-shell input { min-height: 50px; margin: 0; padding: 11px 0; border: 0; background: transparent; box-shadow: none; }
.password-toggle { display: grid; place-items: center; flex: none; width: 40px; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle:hover { background: rgba(226, 196, 120, .07); color: var(--gold); }
.auth-submit { width: 100%; margin-top: 24px; }
.recovery { margin: 16px 0 0; }
.recovery > summary { color: var(--gold); font-size: 14px; text-align: right; list-style: none; }
.recovery > summary::-webkit-details-marker { display: none; }
.recovery > summary span { display: none; }
.recovery[open] { padding-bottom: 16px; }
.recovery .primary, .recovery .secondary { width: 100%; margin-top: 16px; }
.auth-note { margin: 24px 0 0; color: var(--muted); font-size: 14px !important; text-align: center; }
.auth-note a { margin-left: 5px; text-decoration: none; }
.auth-footnote { margin: 8px 0 0; color: #93ac9c !important; font-size: 12px !important; text-align: center; }
.register-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; max-width: 1200px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.email-verification { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.email-verification strong { font-size: 15px; font-weight: 550; }
.email-verification p { margin: 4px 0 0; font-size: 13px; }
.email-verification button { flex: none; padding: 10px 16px; font-size: 14px; }

body[data-website-page="home"] #downloads { display: none !important; }
body[data-website-page="downloads"] #home { display: none !important; }
.downloads-intro { max-width: 800px; margin: 0 0 34px; padding-top: 42px; }
.downloads-intro > a { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 14px; text-decoration: none; }
.downloads-intro h1 { margin: 12px 0 16px; font-size: clamp(36px, 4vw, 48px); font-weight: 550; line-height: 1.4; letter-spacing: -.035em; }
.downloads-intro p { max-width: 740px; margin: 0; color: #becfc1; font-size: 17px; line-height: 1.85; }
.platform-picker-title { margin: 0 0 14px; font-size: 19px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.platform-card { padding: 0; }
.platform-heading { display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 14px 22px; border-radius: inherit; list-style: none; color: var(--text); font-weight: 600; font-size: 22px; }
.platform-heading::-webkit-details-marker { display: none; }
.platform-heading::after { content: ""; width: 8px; height: 8px; margin-inline-start: auto; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.platform-card[open] > .platform-heading::after { transform: rotate(225deg); }
.platform-heading:hover, .platform-card[open] > .platform-heading { color: var(--gold-bright); background: rgba(226, 196, 120, .07); }
.platform-glyph { display: grid; place-items: center; flex: none; width: 42px; height: 42px; color: var(--gold); }
.platform-glyph svg { width: 30px; height: 30px; }
.platform-content { padding: 16px 22px 22px; border-top: 1px solid var(--line); }
.download-badge { color: #c8d9c8; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.platform-card .actions { margin-top: 0; }
.platform-card .actions a { width: 100%; margin-top: 16px; }
.platform-content > .small { margin: 10px 0 0; color: #d0c6ab; }
.platform-content details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.platform-content summary { color: var(--muted); font-size: 14px; }
#start-guide { margin-top: 38px; padding: 32px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
#start-guide h2 { margin: 9px 0 0; font-size: 30px; }
.guide-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 28px 0; }
.guide-flow > div { min-width: 0; }
.guide-num { color: var(--gold); font-size: 11px; letter-spacing: .14em; }
.guide-flow h3 { margin: 12px 0 10px; font-size: 19px; font-weight: 550; line-height: 1.6; }
.guide-flow p { margin: 0; font-size: 15px; line-height: 1.9; }
.small { color: var(--muted); font-size: 14px; line-height: 1.8; }
#start-guide > .small { padding-top: 22px; border-top: 1px solid var(--line); }

#account { max-width: 1120px; margin: 40px auto 0; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-heading h2 { margin-top: 8px; }
.stat { margin: 26px 0; padding: 18px 0; border-block: 1px solid var(--line); color: #dce6da; }
.stat p { margin: 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; white-space: nowrap; }
th { color: var(--gold); font-size: 13px; font-weight: 550; }
#notice { max-width: 820px; margin: 24px auto 0; padding: 16px 20px; border: 1px solid var(--gold-line); border-left: 3px solid var(--gold); border-radius: 12px; background: #082b20; color: var(--text); font-size: 16px; white-space: pre-line; scroll-margin-block: 24px; overflow-wrap: anywhere; }
#notice:empty { display: none; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: min(1320px, calc(100% - 80px)); margin: 0 auto; padding: 22px 0; border-top: 1px solid var(--line); color: #9eb2a3; font-size: 12px; }
.site-footer a { color: #c8d4c7; text-decoration: none; }
.footer-motto { color: #bca66e; font-size: 10px; letter-spacing: .15em; }
.footer-motto i { padding: 0 10px; font-style: normal; }

@media (min-width: 1440px) { .public-main { padding-inline: 0; } }
@media (max-width: 1100px) {
  .brand > span { display: none; }
  .site-header, .site-footer { width: calc(100% - 64px); }
  .public-main { padding-inline: 32px; }
  .home-layout { grid-template-columns: 1.25fr .8fr; gap: 40px; padding-block: 56px 40px; }
  .welcome-card h1 { font-size: 44px; }
  .welcome-card .muted { font-size: 17px; }
  .home-journey { padding-left: 24px; }
  .home-journey h2 { font-size: 27px; }
  .auth-layout, .register-layout { gap: 40px; }
  .auth-intro h2 { font-size: 42px; }
  .auth-card { padding: 28px; }
}
@media (max-width: 860px) {
  .site-header { min-height: 88px; }
  .brand img { width: 100px; height: 57px; }
  .site-header nav { gap: 2px; }
  .site-header nav a { padding-inline: 11px; font-size: 14px; }
  .home-layout { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding-block: 52px 36px; }
  .welcome-card h1 { max-width: 700px; font-size: clamp(38px, 6vw, 48px); }
  .home-journey { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); background: none; }
  .home-journey h2 { margin: 10px 0 20px; font-size: 24px; }
  .home-journey h2 br { display: none; }
  .home-journey ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .home-journey li { gap: 10px; margin: 0; }
  .home-journey strong { font-size: 15px; }
  .home-journey li p { font-size: 13px; }
  .feature-row { gap: 16px 28px; font-size: 13px; }
  .auth-layout, .register-layout { grid-template-columns: 1fr; gap: 28px; max-width: 620px; padding-top: 36px; }
  .auth-intro { position: static; padding: 0; }
  .auth-intro h2 { margin-block: 12px; font-size: 34px; }
  .auth-intro h2 br { display: none; }
  .auth-intro > p { font-size: 16px; }
  .auth-intro > p br { display: none; }
  .auth-context, .auth-steps { display: none; }
  .auth-intro > a { margin-top: 12px; font-size: 14px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .panel { padding: 26px; }
  .guide-flow { gap: 24px; }
}
@media (max-width: 620px) {
  body::after { background: linear-gradient(180deg, rgba(3, 27, 20, .8), rgba(3, 27, 20, .95)); }
  .site-header { flex-wrap: wrap; gap: 2px; width: calc(100% - 40px); padding-top: 8px; }
  .brand { width: 100%; justify-content: center; }
  .brand img { width: 100px; height: 54px; }
  .site-header nav { justify-content: space-between; width: 100%; padding-bottom: 8px; }
  .site-header nav a { min-height: 44px; padding: 9px; font-size: 13px; }
  .site-header nav a[data-view="login"] { margin-left: 0; }
  .public-main { padding: 0 20px 36px; }
  .view { scroll-margin-top: 148px; }
  .home-layout { gap: 32px; padding-block: 40px 28px; }
  .eyebrow { font-size: 10px; }
  .welcome-card h1 { margin: 16px 0 20px; font-size: clamp(32px, 8.5vw, 43px); line-height: 1.4; }
  .welcome-card .muted { font-size: 16px; }
  .desktop-break { display: none; }
  .welcome-card .actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .welcome-card .primary, .welcome-card .secondary { width: 100%; min-width: 0; }
  .welcome-foot { margin-top: 18px; font-size: 14px; }
  .home-journey h2 { font-size: 24px; }
  .home-journey ol { grid-template-columns: 1fr; gap: 20px; }
  .home-journey li { gap: 16px; }
  .home-journey strong { font-size: 16px; }
  .home-journey li p { font-size: 14px; }
  .home-journey > a { margin-top: 20px; }
  .feature-row { gap: 14px; padding-top: 20px; }
  .feature-row span { width: 100%; }
  .feature-row svg { width: 18px; height: 18px; }
  .auth-layout { padding-top: 30px; gap: 24px; }
  .auth-intro h2 { font-size: 30px; }
  .auth-intro > p { font-size: 15px; }
  .auth-card { padding: 24px 20px; border-radius: 14px; }
  .auth-tabs { gap: 22px; margin-bottom: 22px; }
  .auth-tabs a { font-size: 14px; }
  .auth-heading h1 { font-size: 27px; }
  .auth-heading p { font-size: 14px; }
  .fields { grid-template-columns: 1fr; }
  input, input::placeholder { font-size: 16px; }
  .email-verification { align-items: flex-start; flex-direction: column; gap: 12px; }
  .email-verification button { width: 100%; font-size: 15px; }
  .downloads-intro { padding-top: 30px; margin-bottom: 28px; }
  .downloads-intro > a { margin-bottom: 22px; }
  .downloads-intro h1 { font-size: 34px; }
  .downloads-intro p { font-size: 16px; }
  .grid, .guide-flow { grid-template-columns: 1fr; }
  .grid { gap: 18px; }
  .platform-heading { min-height: 68px; padding: 12px 16px; font-size: 20px; }
  .platform-content { padding: 14px 16px 16px; }
  .panel p { font-size: 15px; }
  .guide-flow { gap: 26px; margin-top: 24px; }
  .guide-flow h3 { margin-block: 8px; }
  .guide-flow p { font-size: 15px; }
  #start-guide h2 { font-size: 27px; }
  #account { margin-top: 28px; }
  #account > .panel { padding: 24px 20px; }
  .account-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .account-heading h2 { font-size: 25px; }
  .site-footer { justify-content: center; width: calc(100% - 40px); gap: 12px 24px; font-size: 11px; text-align: center; }
  .footer-motto { order: 3; width: 100%; font-size: 9px; }
}
@media (max-width: 360px) { .site-header nav a { padding-inline: 6px; font-size: 12px; } .auth-card { padding-inline: 16px; } .auth-tabs { gap: 16px; } }
@supports (padding: max(0px)) { .site-header { padding-top: max(8px, env(safe-area-inset-top)); } .site-footer { padding-bottom: max(22px, env(safe-area-inset-bottom)); } }
@media (pointer: coarse) { button, .primary, .secondary, .site-header nav a, .auth-tabs a { min-height: 44px; } input, select { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* R166 depth: the original Library scene, with static layered emerald surfaces. */
:root{--nof-depth-panel:radial-gradient(ellipse at 8% 0,#54ac7b14,transparent 60%),linear-gradient(145deg,#0c3528f5,#05241bf5 72%,#041e17fa);--nof-depth-shadow:inset 0 1px 0 #c7e2c51c,inset 0 -1px 0 #00140b80,0 12px 28px #00110c42;--nof-depth-gold:linear-gradient(180deg,#f7e5b4 0%,#e2c478 48%,#d3af61 100%);--nof-depth-gold-shadow:inset 0 1px 0 #fff7daab,inset 0 -2px 0 #795b2370,0 3px 0 #74571d40,0 8px 18px #00160c45;--nof-depth-field:inset 0 2px 6px #00110c75,inset 0 -1px 0 #b7d2b910}
body::after{background:radial-gradient(ellipse at 8% 18%,#31956a16,transparent 47%),radial-gradient(ellipse at 92% 3%,#e2c4780e,transparent 39%),linear-gradient(90deg,rgba(3,24,17,.94),rgba(3,24,17,.7) 48%,rgba(3,24,17,.3)),linear-gradient(0deg,#031b14,transparent 44%,rgba(3,24,17,.28))}
body .site-header{background:linear-gradient(180deg,#05261a38,#031b1420);box-shadow:0 9px 22px #00120b21}
body .public-main :is(.panel,.auth-card,.platform-card){background:var(--nof-depth-panel);border-color:#b9d0b636;box-shadow:var(--nof-depth-shadow);backdrop-filter:none;-webkit-backdrop-filter:none}
body .public-main .home-journey{background:radial-gradient(ellipse at 5% 5%,#3e956a0c,transparent 75%);border-color:#bdd1b92b}
body .public-main .primary{background:var(--nof-depth-gold);border-color:#f2dfaa;box-shadow:var(--nof-depth-gold-shadow);text-shadow:0 1px 0 #fff2c64d;transform:none;transition:none}
body .public-main .primary:hover{background:linear-gradient(180deg,#fff0c8,#ecd18e 52%,#d9b86c);transform:none}
body .public-main .secondary{background:linear-gradient(145deg,#10432fa6,#082b2080);border-color:#a6c4ad45;box-shadow:inset 0 1px 0 #c7e2c51c,0 4px 11px #00140b29;transform:none;transition:none}
body .public-main :is(input,select){background:linear-gradient(180deg,#021a13,#05251b);box-shadow:var(--nof-depth-field)}
body .site-header nav a[aria-current="page"]{background:linear-gradient(145deg,#164d35b3,#082b207a);box-shadow:inset 0 1px 0 #c7e2c51c,0 4px 10px #00140b29}
body :is(.welcome-card h1,.downloads-intro h1,.auth-intro h2,.auth-heading h1){text-shadow:0 3px 16px #00140ba6}
body .auth-tabs a.active{box-shadow:0 2px 0 #e2c47838}

/* Account recovery stays next to the form that needs attention. */
.auth-recovery-card { margin: 18px 0; padding: 16px; border: 1px solid #e67c76; border-radius: 12px; background: #17352a; color: var(--text); }
.auth-recovery-card[hidden] { display: none; }
.auth-recovery-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.8; }
.auth-recovery-card .actions { flex-wrap: wrap; gap: 10px; }
.auth-recovery-card button { flex: 1 1 160px; }
.auth-card input[aria-invalid="true"] { border-color: #e67c76; }

/* First signup hands off to the single in-app setup path. */
.account-start-steps{display:grid;gap:10px;margin:16px 0;padding-left:22px;color:#d2e3d5;line-height:1.8}.account-start-steps strong{color:#f0d993}

/* Customer trust copy belongs in the shared site stylesheet. */
#home .nof-site-trust{max-width:1100px;margin:17px auto 0;padding:12px 18px;border:1px solid #bfa36655;border-radius:12px;background:linear-gradient(110deg,#0b30238c,#041c15ba);color:#d0ddce;font-size:13px;line-height:1.75;text-align:center}


/* NOF worldwide brand: restrained emerald/gold, consistent with the desktop shell. */
.site-header { gap: clamp(12px, 2vw, 24px); }
.site-header nav { margin-left: auto; }
.nof-site-locale { display: flex; align-items: stretch; flex-direction: column; flex: 0 0 auto; gap: 3px; }
.nof-site-locale-label { color: #c9b77c; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nof-site-locale select { width: 150px; min-height: 40px; padding: 8px 29px 8px 12px; border: 1px solid rgba(228,192,108,.46); border-radius: 10px; background: #06291f; color: #f4dfa4; font-size: 12px; cursor: pointer; outline-offset: 3px; }
.nof-site-locale select:focus-visible { outline: 2px solid #f5d996; }
.welcome-card h1 { max-width: 710px; font-size: clamp(36px, 4vw, 56px); font-weight: 650; line-height: 1.24; letter-spacing: -.025em; text-wrap: balance; }
.welcome-card .muted { max-width: 670px; line-height: 1.75; text-wrap: pretty; }
.home-journey h2 { max-width: 360px; font-weight: 550; }
.home-journey li > span { min-width: 24px; font-variant-numeric: tabular-nums; }
.feature-row svg { flex: 0 0 18px; width: 18px; height: 18px; stroke-width: 1.7; filter: none; }
.footer-motto { max-width: 420px; letter-spacing: .065em; font-weight: 550; }
[data-nof-brand][dir="rtl"] { text-align: right; unicode-bidi: plaintext; }
#passwordRecovery summary > span { display: none; }
@media (max-width: 1120px) {
 .site-header { flex-wrap: wrap; justify-content: space-between; }
 .site-header nav { order: 3; flex: 1 1 100%; justify-content: center; margin-left: 0; }
 .nof-site-locale { order: 2; }
}
@media (max-width: 620px) {
 .site-header { gap: 8px 12px; padding-block: 12px; }
 .site-header nav { justify-content: space-between; gap: 0; }
 .site-header nav a { min-height: 40px; padding: 6px 9px; font-size: 12px; }
 .nof-site-locale select { width: 134px; font-size: 11px; }
 .nof-site-locale-label { display: none; }
 .welcome-card h1 { font-size: clamp(32px, 8vw, 43px); line-height: 1.31; }
 .welcome-card .muted { font-size: 15px; }
 .footer-motto { order: 3; flex: 1 1 100%; text-align: center; }
}


@media (max-width: 480px) {
 .site-header nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; width: 100%; }
 .site-header nav a { width: 100%; min-width: 0; min-height: 38px; padding: 7px 6px; overflow-wrap: anywhere; text-align: center; }
 .site-header nav a[data-view="login"] { margin-left: 0; }
 .nof-site-locale { margin-left: auto; }
 .welcome-card h1 { font-size: clamp(29px, 8vw, 36px); }
}
