/* Restlord product chrome for the app pages that are still built on the old
   site stylesheet (styles.css): the Classic console (admin.html), the REP log
   (repreports.html) and the tenant portal (tenant.html, with portal.css on top).
   Original work for Restlord, built on rl-tokens.css. styles.css stays exactly
   as it is for Penn S&E's own marketing pages, which never load this file.
   Nothing here applies inside the new console (html.rl-shell): console.css and
   legacy-skin.css style that. */

/* styles.css's variables, re-pointed at the product tokens. They also colour
   the pages' own inline styles (tabs, link buttons, progress bars…). */
html:not(.rl-shell) {
  --primary-color: var(--rl-ink); --secondary-color: var(--rl-brand); --accent-color: var(--rl-brand-hover);
  --text-color: var(--rl-ink); --light-bg: var(--rl-sunken); --white: var(--rl-surface);
  --border-color: var(--rl-border); --shadow: var(--rl-e1);
}
html:not(.rl-shell) body {
  background: var(--rl-bg); color: var(--rl-ink);
  font-family: var(--rl-font-ui); -webkit-font-smoothing: antialiased;
}
html:not(.rl-shell) :is(h1, h2) { font-family: var(--rl-font-display); letter-spacing: -0.01em; }
html:not(.rl-shell) :is(button, input, select, textarea) { font-family: inherit; }

/* ---- header ------------------------------------------------------------------ */
html:not(.rl-shell) .header { background: var(--rl-surface); box-shadow: none; border-bottom: 1px solid var(--rl-border); }
html:not(.rl-shell) .navbar { padding: 12px 0; }
html:not(.rl-shell) .logo { gap: 10px; color: var(--rl-ink); font: 700 21px/1.1 var(--rl-font-display); letter-spacing: -0.01em; }
html:not(.rl-shell) .logo img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
html:not(.rl-shell) .logo span small {
  margin-top: 3px; font: 500 12px/1.2 var(--rl-font-ui); letter-spacing: 0.02em; color: var(--rl-ink-3);
}
html:not(.rl-shell) .nav-menu a { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 15px; color: var(--rl-ink-2); }
html:not(.rl-shell) .nav-menu a:hover, html:not(.rl-shell) .nav-menu a.active { color: var(--rl-ink); text-decoration: underline; text-underline-offset: 4px; }
html:not(.rl-shell) .btn-contact {
  background: var(--rl-brand) !important; color: var(--rl-brand-ink); border-radius: var(--rl-r-btn);
  padding: 10px 18px; font: 600 14px/1.2 var(--rl-font-ui); letter-spacing: 0;
}
html:not(.rl-shell) .btn-contact:hover { background: var(--rl-brand-hover) !important; }
html:not(.rl-shell) .mobile-menu-toggle span { background-color: var(--rl-ink); border-radius: 2px; }

/* ---- page banner (REP log, Penn's "Property Console") --------------------------- */
html:not(.rl-shell) .page-header { background: var(--rl-navy-800); color: #f7efe3; padding: 40px 0 36px; }
html:not(.rl-shell) .page-header h1 { color: #f7efe3; font: 700 clamp(30px, 4vw, 42px)/1.1 var(--rl-font-display); letter-spacing: -0.015em; margin-bottom: 8px; }
html:not(.rl-shell) .page-header p { color: #d9d2c6; font-size: 17px; font-weight: 400; }

/* ---- cards, forms, buttons ------------------------------------------------------- */
html:not(.rl-shell) .contact-form-wrapper {
  background: var(--rl-surface); border: 1px solid var(--rl-border); border-radius: var(--rl-r-lg);
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 32px -18px rgba(20,33,58,.25);
}
html:not(.rl-shell) .contact-form-wrapper h2 { color: var(--rl-ink); }
html:not(.rl-shell) .form-group label { font-weight: 600; font-size: 14px; color: var(--rl-ink-2); }
html:not(.rl-shell) .form-group :is(input, textarea) {
  border: 1px solid var(--rl-field-border); border-radius: 12px; padding: 12px 14px;
  background: var(--rl-surface); color: var(--rl-ink); font-size: 16px;
}
html:not(.rl-shell) .form-group :is(input, textarea):focus,
html:not(.rl-shell) .select-input:focus { outline: none; border-color: var(--rl-ink); box-shadow: 0 0 0 3px rgba(224,154,58,.45); }
html:not(.rl-shell) .select-input { border-color: var(--rl-field-border); border-radius: 10px; }
html:not(.rl-shell) .btn-primary {
  background-color: var(--rl-brand); color: var(--rl-brand-ink); border-radius: var(--rl-r-btn);
  padding: 13px 26px; font: 600 16px/1.2 var(--rl-font-ui); letter-spacing: 0;
}
html:not(.rl-shell) .btn-primary:hover { background-color: var(--rl-brand-hover); }
html:not(.rl-shell) :is(.btn-primary, .btn-contact, .link-btn, .tab):focus-visible { outline: 3px solid var(--rl-focus); outline-offset: 2px; }
html:not(.rl-shell) .link-btn {
  display: inline; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  font: 600 0.9rem/1.4 var(--rl-font-ui); color: var(--rl-link); text-decoration: underline; text-underline-offset: 3px;
}

/* Sign-in / register cards (tenant portal, REP log): the sign-in page's look.
   Full-width pills; the other ways in (link, Google) are outlined. */
html:not(.rl-shell) .auth-card.contact-form-wrapper { max-width: 480px; padding: 28px; }
html:not(.rl-shell) .auth-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
html:not(.rl-shell) .auth-card .btn-primary { width: 100%; min-height: 48px; }
html:not(.rl-shell) .auth-card :is(#magicBtn, #googleBtn) {
  background: var(--rl-surface) !important; color: var(--rl-ink) !important; border: 1.5px solid var(--rl-border-strong) !important;
}
html:not(.rl-shell) .auth-card :is(#magicBtn, #googleBtn):hover { border-color: var(--rl-ink-3) !important; background: var(--rl-surface-2) !important; }
@media (max-width: 480px) { html:not(.rl-shell) .auth-card.contact-form-wrapper { padding: 22px 18px; } }
html:not(.rl-shell) .tab { border-radius: var(--rl-r-pill); }
html:not(.rl-shell) .user-bar { border: 1px solid var(--rl-border); border-radius: var(--rl-r-md); }
html:not(.rl-shell) .user-bar button { border-radius: var(--rl-r-pill); color: var(--rl-ink); }
html:not(.rl-shell) .btn-sm { border-radius: var(--rl-r-pill); }

/* ---- footer ------------------------------------------------------------------- */
html:not(.rl-shell) .footer { background: transparent; color: var(--rl-ink-3); margin-top: 32px; padding: 0 0 32px; }
html:not(.rl-shell) .footer-bottom { border-top: 1px solid var(--rl-border); padding-top: 20px; }
html:not(.rl-shell) .footer-bottom p { font-size: 14px; }
