/* Interface-only theme. This stylesheet is never loaded by a practice paper. */
@font-face{font-family:Inter;src:url('/fonts/Inter-400.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('/fonts/Inter-500.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:Inter;src:url('/fonts/Inter-600.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Inter;src:url('/fonts/Inter-700.ttf') format('truetype');font-weight:700;font-display:swap}
html.ui-refresh{--ui:Inter,'PingFang SC','Microsoft YaHei',system-ui,sans-serif;--serif:'Droid Serif',Georgia,serif;--accent:#19645d;--accent-soft:#e6eee7;--accent-border:#b7cec4;--blue:#19645d;--ink:#232c2b;--ink-soft:#43514d;--muted:#68736e;--bg:#f7f6f0;--surface:#fffefa;--border:#dedfd5;--line:#dedfd5;--sw-card:#fffefa;--sw-paper:#f7f6f0;--sw-rail-bg:#edf0e8;--sw-text:#232c2b;--sw-muted:#68736e;--sw-line:#dedfd5;--sw-purple:#19645d;--sw-soft:#e7eee7}
html.ui-refresh body{background:var(--bg);color:var(--ink);font-family:var(--ui);font-size:16px}
html.ui-refresh :is(.i18n-en,[lang=en],.en-serif){font-family:inherit}
html.ui-refresh :is(h1,h2,h3,h4,.calc-hero h1,.auth-title,.top-brand strong){font-family:var(--serif);font-weight:400;letter-spacing:-.035em}
html.ui-refresh :is(button,input,select,textarea,.btn,.btn-primary,.btn-ghost,.account-bar){font-family:var(--ui)}
html.ui-refresh :is(.top-banner,.calc-top){background:var(--surface);border-color:var(--line)}
html.ui-refresh :is(.btn-primary,.acct-btn.primary,.top-practice){background:var(--accent);color:white;border-color:var(--accent)}
html.ui-refresh :is(.calc-card,.auth-card,.blog-card){background:var(--surface);border-color:var(--line)}
html.ui-refresh :is(.review-stem,.sw-question-preview){font-family:var(--serif)}
html.ui-refresh .supreme-status{color:#6d5526;background:#f0e8d4;border:1px solid #d9c99f;display:inline-flex;align-items:center;gap:5px;font-size:12px;font-family:var(--ui);padding:5px 8px;border-radius:5px}
html.ui-refresh[data-theme=dark]{--bg:#172320;--surface:#202e29;--ink:#f1f0e8;--ink-soft:#d5dfd8;--muted:#acbbb2;--border:#3a4b41;--line:#3a4b41;--accent:#8bc3af;--accent-soft:#2b4338;--accent-border:#4f7b68;--sw-paper:var(--bg);--sw-card:var(--surface);--sw-text:var(--ink);--sw-muted:var(--muted);--sw-line:var(--line);--sw-rail-bg:#1c2c25;--sw-purple:var(--accent);--sw-soft:var(--accent-soft)}

html.ui-refresh .content,html.ui-refresh .content .page-prose,html.ui-refresh .content .page-prose :is(p,li){font-family:var(--ui)}

/* Static resource portals share the welcome shell: paper tone, calm rail, card reading surface. */
body.is-portal .shell{min-height:100vh}
body.is-portal .portal-rail{
  position:fixed;inset:0 auto 0 0;z-index:30;display:flex;flex-direction:column;
  width:224px;box-sizing:border-box;padding:22px 14px 16px;
  background:var(--sw-rail-bg);border-right:1px solid var(--sw-line);overflow-y:auto;
  color:var(--ink);font-family:var(--ui);
}
body.is-portal .pr-brand{display:flex;align-items:center;gap:9px;margin:0 0 26px;padding-left:7px;color:var(--ink);text-decoration:none;white-space:nowrap}
body.is-portal .pr-brand img{width:32px;height:32px}
body.is-portal .pr-brand strong{font-family:var(--serif);font-size:22px;font-weight:700;letter-spacing:-1px}
body.is-portal .pr-brand strong span{color:var(--accent)}
body.is-portal .pr-search{display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 10px;border:1px solid var(--sw-line);border-radius:9px;background:var(--surface);color:var(--muted);font-size:12px;text-decoration:none}
body.is-portal .pr-nav{display:flex;flex-direction:column;gap:5px;margin-top:16px}
body.is-portal .pr-nav a{display:flex;align-items:center;gap:11px;min-height:44px;padding:10px 12px;border-radius:8px;color:var(--ink-soft);font-size:13px;font-weight:550;text-decoration:none;white-space:nowrap}
body.is-portal .pr-nav a .pr-nav-icon{display:grid;place-items:center;flex:0 0 20px;width:20px;color:var(--nav-icon,var(--accent))}
body.is-portal .pr-nav a .pr-nav-icon svg{width:20px;height:20px}
body.is-portal .pr-nav a:hover{background:var(--accent-soft);color:var(--ink)}
body.is-portal .pr-nav a[aria-current="page"]{background:var(--sw-soft);color:var(--ink);font-weight:700;box-shadow:inset 3px 0 var(--nav-icon,var(--accent))}
body.is-portal .pr-nav a[aria-current="page"] .pr-nav-icon{color:var(--nav-icon,var(--accent))}
body.is-portal .pr-foot{margin-top:auto;padding:24px 10px 4px;border-top:1px solid var(--sw-line)}
body.is-portal .pr-foot small{display:block;color:var(--muted);font-size:11px;line-height:1.5}
html.ui-refresh body.is-portal .content{margin-left:224px!important;width:calc(100% - 224px)!important;max-width:none!important;padding:0 40px 72px!important;box-sizing:border-box}
body.is-portal .top-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:72px;margin:0 0 24px;padding:10px 0;background:transparent;border:0;border-bottom:1px solid var(--line)}
body.is-portal .top-portals{display:flex;flex-wrap:wrap;gap:2px 6px}
body.is-portal .top-portals a{padding:7px 9px;font-size:13px;font-weight:500}
body.is-portal .top-actions{flex:0 0 auto}
body.is-portal .page-prose{max-width:1040px;margin:0 auto;padding:34px 38px 30px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 1px 2px rgba(35,44,43,.04)}
body.is-portal .page-prose h1{margin:0 0 8px;color:var(--ink);font-family:var(--serif);font-size:36px;letter-spacing:-.04em}
body.is-portal .page-prose h2{margin:28px 0 8px;padding-top:22px;border-top:1px solid var(--line);color:var(--ink);font-family:var(--serif);font-size:21px;letter-spacing:-.025em}
body.is-portal .page-prose h2:first-of-type{margin-top:24px}
body.is-portal .page-prose p,body.is-portal .page-prose li{max-width:82ch;color:var(--ink-soft);font-size:16px;line-height:1.7}
body.is-portal .page-prose .lede{max-width:70ch;color:var(--muted);font-size:17px;margin:0 0 12px}
body.is-portal .site-footer{max-width:1040px;margin:28px auto 0}
@media (max-width:800px){
  body.is-portal .portal-rail{display:none}
  html.ui-refresh body.is-portal .content{margin-left:0!important;width:100%!important;padding:0 18px 48px!important}
  body.is-portal .top-banner{flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px;min-height:64px;padding:12px 0}
  body.is-portal .top-actions{order:1;margin-left:auto}
  body.is-portal .top-portals{order:2;flex-basis:100%;flex-wrap:nowrap;gap:4px;overflow-x:auto;scrollbar-width:none}
  body.is-portal .top-portals::-webkit-scrollbar{display:none}
  body.is-portal .top-portals a{flex:0 0 auto;padding:7px 9px;font-size:13px}
  body.is-portal .page-prose{margin-top:14px;padding:24px 20px 18px;border-radius:14px}
  body.is-portal .page-prose h1{font-size:28px}
  body.is-portal .page-prose h2{font-size:18px}
  body.is-portal .site-footer{margin-top:20px}
}
