/* Shared theme for public forms, guides and legal pages served by the web edge.
 * Loaded after portal-setup.css. No backend/admin or private-profile selectors.
 */
:root { --danger: #ffb5b5; --danger-soft: #3a2023; --success-soft: #173126; }
body { line-height: 1.65; }
.shell { width: min(1060px, 100%); }
.site-header, .card { background: var(--card); border-color: var(--line); }
.brand-link img { content: url('/subs/assets/vr54-net-shield.svg'); width: 56px; height: 56px; object-fit: contain; filter: none; }
.brand-subtitle { max-width: 38ch; }
.nav, .site-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav a, .site-nav a { background: #202b33; color: var(--text); border: 1px solid var(--line); border-radius: 12px; min-height: 44px; }
.nav a.primary, .site-nav a.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.site-nav [aria-current="page"] { border-color: #ff9c59; }
.card { overflow-wrap: anywhere; min-width: 0; }
.card h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }
.card h2 { font-size: 23px; line-height: 1.35; }
p, .muted, .card p, .card li { color: var(--muted); }
.card a:not(.button) { color: #ffac74; text-decoration: underline; text-underline-offset: 3px; }
.card .button { color: var(--text); }
.card .button.primary { color: var(--accent-text); }
.toolbar { align-items: flex-start; gap: 18px; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.field { min-width: 0; }
.field label { color: #d2dae0; }
.field .hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.field input, .field textarea, .field select { background: #10181e; color: var(--text); border: 1px solid #61717e; border-radius: 12px; font-size: 16px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #ffac74; }
.field .readonly { background: #202b33; color: #c0ccd5; }
.field.checkbox input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; accent-color: #ff6900; }
.field.checkbox label { line-height: 1.6; }
.field.checkbox span { min-width: 0; }
.notice { background: #202b33; color: #d2dae0; border-color: var(--line); }
.notice.success { background: var(--success-soft); color: #a7e6bd; border-color: #467257; }
.notice.error { background: var(--danger-soft); color: var(--danger); border-color: #905057; }
.notice a { color: inherit; }
.stat, .pill { background: #202b33; color: var(--text); border-color: var(--line); }
.stat strong { overflow-wrap: anywhere; }
.faq-list { padding-left: 22px; }
.faq-item p { line-height: 1.65; }
pre, code { color: #dce4eb; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
figure { margin: 16px 0; max-width: 100%; }
figure img, .card img { max-width: 100%; height: auto; border-radius: 14px; }
.portal-footer { margin-top: 8px; }
@media (max-width: 720px) {
  body { padding: 12px; }
  .card { padding: 18px; }
  .site-header { border-radius: 24px; }
  .brand-link { align-items: center; }
  .nav, .site-nav { width: 100%; }
  .nav a, .site-nav a { width: auto; flex: 1 1 auto; }
  .grid, .stats { grid-template-columns: minmax(0, 1fr); }
  .actions { display: flex; flex-wrap: wrap; }
  .actions > .button { width: auto; max-width: 100%; flex: 1 1 auto; white-space: normal; padding: 10px 14px; }
}
