/* Forms & Standing R51 — unified light/dark palette.
   Palette-only restyle. Preserves existing structure, copy, assets and behavior. */
:root{
  --fs51-canvas:#f1eee7;
  --fs51-canvas-deep:#e5e8e5;
  --fs51-ink:#25302d;
  --fs51-muted:#5f6964;
  --fs51-slate:#344a52;
  --fs51-slate-soft:#dfe7e9;
  --fs51-sand:#b98b56;
  --fs51-sand-soft:#ead8bf;
  --fs51-glass:rgba(250,248,243,.62);
  --fs51-glass-strong:rgba(250,248,243,.78);
  --fs51-edge:rgba(255,255,255,.82);
  --fs51-shadow:0 26px 72px rgba(42,51,47,.16),0 5px 18px rgba(42,51,47,.08);
  --fs11-bg:var(--fs51-canvas);
  --fs11-ink:var(--fs51-ink);
  --fs11-muted:var(--fs51-muted);
  --fs11-line:rgba(52,74,82,.16);
  --fs11-glass:var(--fs51-glass);
  --fs11-glass-heavy:var(--fs51-glass-strong);
  --fs11-glass-rim:var(--fs51-edge);
  --fs11-glass-shadow:var(--fs51-shadow);
  --fs11-button:var(--fs51-slate);
  --fs11-button-text:#fbf8f2;
  --fs17-canvas:var(--fs51-canvas-deep);
  --fs17-edge:rgba(255,255,255,.74);
  --fs17-frost-a:rgba(249,247,242,.44);
  --fs17-frost-b:rgba(232,237,234,.24);
  --fs17-frost-c:rgba(222,229,227,.28);
  --fs17-reflection:rgba(255,255,255,.86);
  --fs17-shadow:0 28px 66px -30px rgba(42,56,50,.32),0 10px 25px -17px rgba(42,56,50,.18),inset 0 1px 0 rgba(255,255,255,.78);
}
html[data-theme="dark"]{
  --fs51-canvas:#0c1512;
  --fs51-canvas-deep:#101b17;
  --fs51-ink:#f2ede4;
  --fs51-muted:#c8cdc8;
  --fs51-slate:#d9e1df;
  --fs51-slate-soft:#23312c;
  --fs51-sand:#e1c29a;
  --fs51-sand-soft:#5e4f3d;
  --fs51-glass:rgba(22,31,27,.58);
  --fs51-glass-strong:rgba(18,27,23,.76);
  --fs51-edge:rgba(218,226,220,.18);
  --fs51-shadow:0 30px 82px rgba(0,0,0,.38),0 6px 20px rgba(0,0,0,.22);
  --fs11-bg:var(--fs51-canvas);
  --fs11-ink:var(--fs51-ink);
  --fs11-muted:var(--fs51-muted);
  --fs11-line:rgba(226,197,158,.14);
  --fs11-glass:var(--fs51-glass);
  --fs11-glass-heavy:var(--fs51-glass-strong);
  --fs11-glass-rim:var(--fs51-edge);
  --fs11-glass-shadow:var(--fs51-shadow);
  --fs11-button:var(--fs51-sand);
  --fs11-button-text:#202724;
  --fs17-canvas:var(--fs51-canvas-deep);
  --fs17-edge:rgba(218,226,220,.18);
  --fs17-frost-a:rgba(31,43,37,.48);
  --fs17-frost-b:rgba(18,29,24,.28);
  --fs17-frost-c:rgba(24,35,30,.34);
  --fs17-reflection:rgba(255,255,255,.11);
  --fs17-shadow:0 30px 76px -28px rgba(0,0,0,.64),0 10px 28px -16px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.09);
}
body{background:var(--fs51-canvas)!important;color:var(--fs51-ink)!important}
.fs11-main{
  background:
    radial-gradient(circle at 18% 8%,rgba(255,255,255,.34),transparent 28%),
    linear-gradient(180deg,#eef0ec 0%,#e2e7e4 44%,#eef0ec 100%)!important;
}
html[data-theme="dark"] .fs11-main{
  background:
    radial-gradient(circle at 18% 8%,rgba(225,194,154,.035),transparent 26%),
    linear-gradient(180deg,#0d1713 0%,#111d18 48%,#0b1411 100%)!important;
}
.fs11-main::before{filter:grayscale(1) contrast(.84) blur(7px)!important;opacity:.22!important}
html[data-theme="dark"] .fs11-main::before{filter:grayscale(1) contrast(.9) brightness(.62) blur(7px)!important;opacity:.28!important}
.fs11-header{
  background:rgba(247,245,240,.68)!important;
  border-color:rgba(255,255,255,.82)!important;
  box-shadow:0 16px 42px rgba(44,52,48,.12),inset 0 1px 0 rgba(255,255,255,.86)!important;
}
html[data-theme="dark"] .fs11-header{
  background:rgba(18,29,24,.72)!important;
  border-color:rgba(222,229,223,.16)!important;
  box-shadow:0 18px 46px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.fs11-nav a,.fs11-header-link,.fs25-desktop-logout{color:var(--fs51-ink)!important}
.fs11-theme,.fs27-theme{color:var(--fs51-ink)!important}
.fs11-button,.fs38-service-button,.fs13-name-lookup button[type="submit"]{
  background:var(--fs51-slate)!important;
  border-color:var(--fs51-slate)!important;
  color:#fbf8f2!important;
  box-shadow:0 10px 26px rgba(52,74,82,.16),inset 0 1px 0 rgba(255,255,255,.16)!important;
}
html[data-theme="dark"] .fs11-button,
html[data-theme="dark"] .fs38-service-button,
html[data-theme="dark"] .fs13-name-lookup button[type="submit"]{
  background:var(--fs51-sand)!important;
  border-color:var(--fs51-sand)!important;
  color:#202724!important;
  box-shadow:0 12px 30px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.2)!important;
}
.fs11-button--outline{background:rgba(255,255,255,.38)!important;border-color:rgba(52,74,82,.18)!important;color:var(--fs51-slate)!important}
html[data-theme="dark"] .fs11-button--outline{background:rgba(225,194,154,.08)!important;border-color:rgba(225,194,154,.2)!important;color:var(--fs51-sand)!important}
.fs11-hero-copy,.fs13-name-lookup,.fs13-search-response{
  background:rgba(247,245,240,.7)!important;
  border-color:rgba(255,255,255,.84)!important;
  box-shadow:0 24px 68px rgba(39,49,44,.18),inset 0 1px 0 rgba(255,255,255,.88)!important;
}
html[data-theme="dark"] .fs11-hero-copy,
html[data-theme="dark"] .fs13-name-lookup,
html[data-theme="dark"] .fs13-search-response{
  background:rgba(15,25,21,.68)!important;
  border-color:rgba(222,229,223,.17)!important;
  box-shadow:0 26px 74px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.fs13-name-lookup input,.fs13-name-lookup select,.fs14-select-trigger{
  background:rgba(255,255,255,.5)!important;
  border-color:rgba(52,74,82,.15)!important;
  color:var(--fs51-ink)!important;
}
html[data-theme="dark"] .fs13-name-lookup input,
html[data-theme="dark"] .fs13-name-lookup select,
html[data-theme="dark"] .fs14-select-trigger{
  background:rgba(255,255,255,.035)!important;
  border-color:rgba(225,194,154,.12)!important;
}
.fs11-card,.fs11-intro,.fs11-faq details,.fs11-workspace-frame{
  background:linear-gradient(135deg,rgba(249,247,242,.52),rgba(223,231,230,.23))!important;
  border-color:rgba(255,255,255,.72)!important;
  box-shadow:0 26px 66px rgba(42,54,48,.13),inset 0 1px 0 rgba(255,255,255,.78)!important;
}
html[data-theme="dark"] .fs11-card,
html[data-theme="dark"] .fs11-intro,
html[data-theme="dark"] .fs11-faq details,
html[data-theme="dark"] .fs11-workspace-frame{
  background:linear-gradient(135deg,rgba(29,41,35,.55),rgba(14,24,20,.36))!important;
  border-color:rgba(222,229,223,.15)!important;
  box-shadow:0 28px 72px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.fs11-card:hover,.fs11-faq details:hover{border-color:rgba(52,74,82,.28)!important}
html[data-theme="dark"] .fs11-card:hover,
html[data-theme="dark"] .fs11-faq details:hover{border-color:rgba(225,194,154,.28)!important}
.fs11-workspace-sidebar button[aria-current="page"]{
  background:rgba(211,222,224,.74)!important;
  border-color:rgba(52,74,82,.14)!important;
  color:var(--fs51-ink)!important;
}
html[data-theme="dark"] .fs11-workspace-sidebar button[aria-current="page"]{
  background:rgba(225,194,154,.13)!important;
  border-color:rgba(225,194,154,.2)!important;
}
.fs14-select-panel,.fs11-nav-mobile{
  background:rgba(246,244,239,.94)!important;
  border-color:rgba(255,255,255,.8)!important;
}
html[data-theme="dark"] .fs14-select-panel,
html[data-theme="dark"] .fs11-nav-mobile{
  background:rgba(17,27,23,.96)!important;
  border-color:rgba(222,229,223,.15)!important;
}
.fs14-select-option:hover,.fs14-select-option[aria-selected="true"]{background:var(--fs51-slate-soft)!important;color:var(--fs51-ink)!important}
html[data-theme="dark"] .fs14-select-option:hover,
html[data-theme="dark"] .fs14-select-option[aria-selected="true"]{background:rgba(225,194,154,.12)!important;color:var(--fs51-ink)!important}
.fs11-footer{color:var(--fs51-ink)!important}
:where(a,button,summary,input,select):focus-visible{outline-color:var(--fs51-slate)!important}
html[data-theme="dark"] :where(a,button,summary,input,select):focus-visible{outline-color:var(--fs51-sand)!important}

/* R51 legacy homepage + guided intake mapping */
:root{
  --bg:#f1eee7;--fg:#25302d;--muted:#5f6964;--accent:#b88952;--border:rgba(52,74,82,.16);
  --surface:#f8f6f0;--featured:#dfe7e9;--button:#344a52;--button-text:#fbf8f2;--subtle:#e6eceb;
  --ring:#344a52;--card-line:rgba(52,74,82,.14);--card-shadow:rgba(42,56,50,.10)
}
html[data-theme=dark]{
  --bg:#0c1512;--fg:#f2ede4;--muted:#c8cdc8;--accent:#e1c29a;--border:rgba(226,197,158,.14);
  --surface:#121d18;--featured:#2a332f;--button:#e1c29a;--button-text:#202724;--subtle:#202d27;
  --ring:#e1c29a;--card-line:rgba(226,197,158,.14);--card-shadow:rgba(0,0,0,.30)
}
.site{background:transparent}
.site::before{background:radial-gradient(ellipse at 75% 40%,rgba(52,74,82,.09),transparent 68%)!important}
html[data-theme=dark] .site::before{background:radial-gradient(ellipse at 72% 40%,rgba(225,194,154,.07),transparent 68%)!important}
.header{
  background:rgba(247,245,240,.56);border:1px solid rgba(255,255,255,.7);border-radius:18px;
  padding-inline:18px;box-shadow:0 14px 36px rgba(42,52,47,.10);backdrop-filter:blur(18px)
}
html[data-theme=dark] .header{background:rgba(18,29,24,.66);border-color:rgba(222,229,223,.14);box-shadow:0 16px 40px rgba(0,0,0,.26)}
.lookup{background:rgba(248,246,241,.66)!important;border-color:rgba(255,255,255,.75)!important;box-shadow:0 18px 46px rgba(42,54,48,.12)!important}
html[data-theme=dark] .lookup{background:rgba(18,29,24,.66)!important;border-color:rgba(222,229,223,.15)!important;box-shadow:0 18px 46px rgba(0,0,0,.30)!important}
.plan{border-color:rgba(52,74,82,.11)}
.plan.featured{background:#344a52!important;color:#fbf8f2!important;border-color:rgba(255,255,255,.12)!important;box-shadow:0 24px 54px rgba(52,74,82,.22)!important}
.plan.featured:hover{background:#2d4148!important}
html[data-theme=dark] .plan.featured{background:#1a2722!important;border-color:rgba(225,194,154,.26)!important;box-shadow:0 26px 60px rgba(0,0,0,.38)!important}
html[data-theme=dark] .plan.featured:hover{background:#223129!important}
.featured .plan-description,.featured .plan-fee,.featured .plan-includes>span{color:#dce4e2!important}
html[data-theme=dark] .featured .plan-description,
html[data-theme=dark] .featured .plan-fee,
html[data-theme=dark] .featured .plan-includes>span{color:#d8d3ca!important}
.featured .plan-action{color:#ead8bf!important}
.dashboard-shell::before{background:rgba(247,245,240,.72)!important;border-color:rgba(255,255,255,.68)!important}
html[data-theme=dark] .dashboard-shell::before{background:rgba(18,29,24,.72)!important;border-color:rgba(222,229,223,.14)!important}
.dashboard{
  background:rgba(248,246,241,.72)!important;border-color:rgba(255,255,255,.74)!important;
  box-shadow:0 20px 52px rgba(42,54,48,.13)!important;backdrop-filter:blur(18px)
}
html[data-theme=dark] .dashboard{background:rgba(16,27,22,.72)!important;border-color:rgba(222,229,223,.14)!important;box-shadow:0 22px 58px rgba(0,0,0,.32)!important}
.dash-sidebar{background:rgba(223,231,230,.42)!important;border-color:rgba(52,74,82,.10)!important}
html[data-theme=dark] .dash-sidebar{background:rgba(32,45,39,.5)!important;border-color:rgba(225,194,154,.10)!important}
.dash-nav-item.selected{background:#dfe7e9!important;color:#25302d!important;box-shadow:inset 2px 0 #344a52!important}
html[data-theme=dark] .dash-nav-item.selected{background:rgba(225,194,154,.13)!important;color:#f2ede4!important;box-shadow:inset 2px 0 #e1c29a!important}
.theme-switch{border-color:rgba(52,74,82,.15)!important}
html[data-theme=dark] .theme-switch{border-color:rgba(225,194,154,.15)!important}
html[data-theme=dark] .theme-thumb{background:#5d4e3d!important}
.mobile-nav:not([hidden]){background:rgba(247,245,240,.96)!important;border-color:rgba(255,255,255,.78)!important}
html[data-theme=dark] .mobile-nav:not([hidden]){background:rgba(17,27,23,.97)!important;border-color:rgba(222,229,223,.15)!important}

/* guided preparation flow */
body:not(:has(.site)){
  background:#f1eee7!important;color:#25302d!important;
}
html[data-theme=dark] body:not(:has(.site)){
  background:#0c1512!important;color:#f2ede4!important;
}
.site-header{
  background:rgba(247,245,240,.9)!important;border-bottom-color:rgba(52,74,82,.12)!important;backdrop-filter:blur(18px)
}
html[data-theme=dark] .site-header{background:rgba(16,27,22,.92)!important;border-bottom-color:rgba(225,194,154,.12)!important}
.site-header .brand{color:inherit!important}
.site-header nav a{color:#5f6964!important}
html[data-theme=dark] .site-header nav a{color:#c8cdc8!important}
.site-header nav a:hover,.site-header nav a:focus{color:#b88952!important}
html[data-theme=dark] .site-header nav a:hover,
html[data-theme=dark] .site-header nav a:focus{color:#e1c29a!important}
.lede,.section-heading p,.nationwide-grid p,.service-grid p,.package li,.dashboard-grid p,
.disclaimer,.learning-heading p,.learning-card li span,.entity-explainer p,.next-steps-grid li,.faq-grid p{color:#66706b!important}
html[data-theme=dark] .lede,
html[data-theme=dark] .section-heading p,
html[data-theme=dark] .nationwide-grid p,
html[data-theme=dark] .service-grid p,
html[data-theme=dark] .package li,
html[data-theme=dark] .dashboard-grid p,
html[data-theme=dark] .disclaimer,
html[data-theme=dark] .learning-heading p,
html[data-theme=dark] .learning-card li span,
html[data-theme=dark] .entity-explainer p,
html[data-theme=dark] .next-steps-grid li,
html[data-theme=dark] .faq-grid p{color:#c8cdc8!important}
.trust-strip{background:rgba(52,74,82,.12)!important;border-color:rgba(52,74,82,.12)!important}
.trust-strip span{background:#e7ece9!important;color:#4e5a55!important}
html[data-theme=dark] .trust-strip{background:rgba(225,194,154,.10)!important;border-color:rgba(225,194,154,.10)!important}
html[data-theme=dark] .trust-strip span{background:#15231d!important;color:#d7dcd7!important}
.service-grid article,.package,.dashboard-grid article,.status-card,.intake-card,.summary-card,
.availability-card,.learning-guide,.learning-card,.next-steps-guide,.faq-grid details,.nevada-formation,.entity-explainer{
  background:rgba(249,247,242,.62)!important;border-color:rgba(52,74,82,.14)!important;
  box-shadow:0 16px 40px rgba(42,54,48,.08)!important
}
html[data-theme=dark] .service-grid article,
html[data-theme=dark] .package,
html[data-theme=dark] .dashboard-grid article,
html[data-theme=dark] .status-card,
html[data-theme=dark] .intake-card,
html[data-theme=dark] .summary-card,
html[data-theme=dark] .availability-card,
html[data-theme=dark] .learning-guide,
html[data-theme=dark] .learning-card,
html[data-theme=dark] .next-steps-guide,
html[data-theme=dark] .faq-grid details,
html[data-theme=dark] .nevada-formation,
html[data-theme=dark] .entity-explainer{
  background:rgba(20,32,27,.72)!important;border-color:rgba(225,194,154,.14)!important;box-shadow:0 18px 44px rgba(0,0,0,.22)!important
}
.button,button{border-radius:12px}
.primary{background:#344a52!important;border-color:#344a52!important;color:#fbf8f2!important}
html[data-theme=dark] .primary{background:#e1c29a!important;border-color:#e1c29a!important;color:#202724!important}
.secondary{border-color:rgba(52,74,82,.22)!important;color:#344a52!important}
html[data-theme=dark] .secondary{border-color:rgba(225,194,154,.22)!important;color:#e1c29a!important}
.field-grid select,input[type="text"]{
  background:rgba(255,255,255,.56)!important;color:#25302d!important;border-color:rgba(52,74,82,.16)!important;border-radius:10px
}
html[data-theme=dark] .field-grid select,
html[data-theme=dark] input[type="text"]{
  background:rgba(255,255,255,.035)!important;color:#f2ede4!important;border-color:rgba(225,194,154,.14)!important
}
.dashboard{border-color:rgba(52,74,82,.14)!important}
html[data-theme=dark] .dashboard{border-color:rgba(225,194,154,.14)!important}
.dashboard-nav{border-color:inherit!important}
.dashboard-nav .active{color:#b88952!important}
html[data-theme=dark] .dashboard-nav .active{color:#e1c29a!important}
.status-dot{background:#b88952!important}
html[data-theme=dark] .status-dot{background:#e1c29a!important}
footer{border-color:rgba(52,74,82,.12)!important;color:#66706b!important}
html[data-theme=dark] footer{border-color:rgba(225,194,154,.12)!important;color:#bfc6c1!important}
footer a{color:#b88952!important}
html[data-theme=dark] footer a{color:#e1c29a!important}

/* R52 — convert the hero lookup card from glass to carved stone.
   Scope is lookup card only; dimensions, controls and behavior stay unchanged. */
:root{
  --fs52-stone-top:#eeeae0;
  --fs52-stone-mid:#d8d7cf;
  --fs52-stone-bottom:#c8cbc5;
  --fs52-stone-edge:#f8f4eb;
  --fs52-stone-shadow:0 22px 44px rgba(40,48,44,.18),0 8px 18px rgba(40,48,44,.10);
}
html[data-theme=dark]{
  --fs52-stone-top:#343a36;
  --fs52-stone-mid:#262c29;
  --fs52-stone-bottom:#171d1a;
  --fs52-stone-edge:#555d58;
  --fs52-stone-shadow:0 24px 50px rgba(0,0,0,.42),0 8px 22px rgba(0,0,0,.28);
}
.lookup{
  background:
    radial-gradient(circle at 18% 24%,rgba(255,255,255,.30) 0 1px,transparent 1.4px) 0 0/27px 25px,
    radial-gradient(circle at 72% 68%,rgba(74,82,77,.10) 0 1px,transparent 1.6px) 0 0/31px 29px,
    linear-gradient(145deg,var(--fs52-stone-top) 0%,var(--fs52-stone-mid) 52%,var(--fs52-stone-bottom) 100%)!important;
  border:1px solid color-mix(in srgb,var(--fs52-stone-edge) 78%,#66706b 22%)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    inset 0 -2px 3px rgba(76,82,78,.18),
    0 0 0 5px rgba(255,255,255,.16),
    var(--fs52-stone-shadow)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html[data-theme=dark] .lookup{
  background:
    radial-gradient(circle at 18% 24%,rgba(255,255,255,.075) 0 1px,transparent 1.5px) 0 0/27px 25px,
    radial-gradient(circle at 72% 68%,rgba(0,0,0,.26) 0 1px,transparent 1.6px) 0 0/31px 29px,
    linear-gradient(145deg,var(--fs52-stone-top) 0%,var(--fs52-stone-mid) 52%,var(--fs52-stone-bottom) 100%)!important;
  border-color:rgba(111,122,115,.56)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -2px 4px rgba(0,0,0,.38),
    0 0 0 5px rgba(0,0,0,.16),
    var(--fs52-stone-shadow)!important;
}
.lookup .name-field,
.lookup .state-field{
  background:rgba(247,244,236,.44)!important;
  box-shadow:inset 0 2px 5px rgba(83,89,84,.15),inset 0 0 0 1px rgba(255,255,255,.40)!important;
}
html[data-theme=dark] .lookup .name-field,
html[data-theme=dark] .lookup .state-field{
  background:rgba(7,11,9,.18)!important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.42),inset 0 0 0 1px rgba(255,255,255,.05)!important;
}
