/* Amterica.com — American flag palette with high-contrast text */

:root {
  --red: #B31942;
  --red-dark: #8b1a28;
  --blue: #0A3161;
  --blue-dark: #001a45;
  --white: #ffffff;
  --off-white: #f4f6fb;
  --text-on-light: #0a1628;
  --text-muted-on-light: #2c3e5a;
  --shadow: 0 12px 40px rgba(0, 24, 72, 0.14);
  --radius: 10px;
  --header-height: 72px;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.45rem;
}

.logo-mark {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
}

.logo-t {
  color: var(--red);
  font-size: 1.2em;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.main-nav:not(.auth-ready) .nav-auth {
  visibility: hidden;
}

.main-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--white);
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav-cta {
  background: var(--red) !important;
  margin-left: 0.35rem;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  transition: background 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--red-dark) !important;
  outline: none;
}

.nav-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-auth-signed-in {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-auth-signed-in[hidden] {
  display: none !important;
}

.nav-auth-action[hidden] {
  display: none !important;
}

.nav-user-label {
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  max-width: 11rem;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-link-btn:hover,
.nav-link-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  outline: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(340px, 58vh, 520px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0, 40, 104, 0.92) 0%, rgba(178, 34, 52, 0.88) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.04) 28px,
      rgba(255, 255, 255, 0.04) 56px
    );
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.06), transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding-block: 2.25rem 3.5rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 14ch;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 62ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.btn-full {
  width: 100%;
}

/* Intro */
.intro {
  padding: 4.5rem 0;
  background: var(--off-white);
  border-bottom: 1px solid rgba(0, 40, 104, 0.08);
}

.intro-grid {
  display: grid;
  gap: 2.5rem;
}

.intro-text h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--blue);
}

.intro-text p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted-on-light);
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover,
.pillar-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 24, 72, 0.18);
  outline: none;
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.18);
}

.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.pillar-card p {
  margin: 0;
  font-size: 0.98rem;
}

.pillar-red {
  background: var(--red);
  color: var(--white);
}

.pillar-blue {
  background: var(--blue);
  color: var(--white);
}

.pillar-white {
  background: var(--white);
  color: var(--text-on-light);
  border: 2px solid var(--blue);
}

.pillar-white .pillar-icon {
  background: rgba(0, 40, 104, 0.08);
}

/* Focus sections */
.focus-section {
  padding: 2rem 0 5rem;
}

.focus-red {
  background: var(--red);
  color: var(--white);
}

.focus-blue {
  background: var(--blue);
  color: var(--white);
}

.focus-white {
  background: var(--white);
  color: var(--text-on-light);
  border-top: 6px solid var(--red);
  border-bottom: 6px solid var(--blue);
}

.focus-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.focus-red .focus-badge,
.focus-blue .focus-badge {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.focus-white .focus-badge {
  background: var(--blue);
  color: var(--white);
}

.focus-layout h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.focus-lead {
  margin: 0 0 2.5rem;
  max-width: 68ch;
  font-size: 1.12rem;
}

.focus-red .focus-lead,
.focus-blue .focus-lead {
  color: rgba(255, 255, 255, 0.95);
}

.focus-white .focus-lead {
  color: var(--text-muted-on-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 24, 72, 0.18);
}

.focus-red .feature-card,
.focus-blue .feature-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.focus-white .feature-card {
  background: var(--off-white);
  border: 1px solid rgba(0, 40, 104, 0.12);
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.98rem;
}

.focus-red .feature-card p,
.focus-blue .feature-card p {
  color: rgba(255, 255, 255, 0.92);
}

.focus-white .feature-card p {
  color: var(--text-muted-on-light);
}

.section-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.section-link:hover,
.section-link:focus-visible {
  opacity: 0.82;
  outline: none;
}

/* Contact */
.contact-section {
  padding: 2rem 0 5rem;
  background:
    linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  border-top: 4px solid var(--blue);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--blue);
}

.contact-intro p {
  margin: 0 0 1.5rem;
  color: var(--text-muted-on-light);
  max-width: 42ch;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  margin-bottom: 0.5rem;
  color: var(--text-on-light);
}

.contact-form {
  background: var(--white);
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 2px solid rgba(0, 40, 104, 0.12);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-group {
  margin-bottom: 0.92rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.32rem;
  font-weight: 700;
  color: var(--blue);
}

.form-group label span {
  color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.72rem;
  border: 2px solid rgba(0, 40, 104, 0.2);
  border-radius: 8px;
  font: inherit;
  color: var(--text-on-light);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7a94;
}

.form-status {
  margin: 0.8rem 0 0;
  min-height: 1.4em;
  font-weight: 600;
}

.form-status.success {
  color: var(--blue);
}

.form-status.error {
  color: var(--red);
}

.form-note {
  margin: 0 0 0.68rem;
  font-size: 0.95rem;
  color: var(--text-muted-on-light);
  text-align: center;
}

.contact-form .btn {
  padding: 0.68rem 1.2rem;
}

/* Auth modal */
body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-modal[hidden] {
  display: none;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.62);
}

.auth-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid rgba(10, 49, 97, 0.14);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 1.5rem;
}

.auth-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted-on-light);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover,
.auth-close:focus-visible {
  background: var(--off-white);
  outline: none;
}

.auth-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  color: var(--blue);
  font-size: 1.65rem;
}

.auth-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted-on-light);
  font-size: 0.98rem;
}

.auth-form .form-group:last-of-type {
  margin-bottom: 0.85rem;
}

.auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted-on-light);
}

.auth-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link:hover,
.auth-link:focus-visible {
  color: var(--red);
  outline: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0;
  color: var(--text-muted-on-light);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(10, 49, 97, 0.16);
}

.btn-google {
  background: var(--white);
  color: var(--text-on-light);
  border: 2px solid rgba(10, 49, 97, 0.22);
}

.btn-google:hover,
.btn-google:focus-visible {
  background: var(--off-white);
  border-color: var(--blue);
}

.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border: 2px solid rgba(10, 49, 97, 0.28);
  margin-top: 0.65rem;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--off-white);
  border-color: var(--blue);
}

.auth-view .btn-full + .btn-full {
  margin-top: 0.65rem;
}

.auth-message {
  margin: 1rem 0 0;
  min-height: 1.25em;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-message.success {
  color: var(--blue);
}

.auth-message.error {
  color: var(--red);
}

.auth-view[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 2.5rem 0;
  border-top: 4px solid var(--red);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand .logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-nav a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  outline: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (min-width: 900px) {
  .intro-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .intro-cards,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    border-bottom: 4px solid var(--red);
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    width: 100%;
  }

  .nav-auth-signed-in {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-user-label {
    max-width: none;
    text-align: center;
    padding: 0.5rem 0;
  }

  .nav-link-btn {
    width: 100%;
    text-align: center;
  }

  .nav-auth-action {
    width: 100%;
  }

  .header-inner {
    position: relative;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* App pages (dashboard, cms, admin) */
.app-page:not(.app-authorized) .site-header,
.app-page:not(.app-authorized) .app-main,
.app-page:not(.app-authorized) .site-footer {
  display: none;
}

.app-loading,
.app-denied {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--off-white);
}

.app-loading[hidden],
.app-denied[hidden] {
  display: none;
}

.access-panel {
  width: min(520px, 100%);
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid rgba(10, 49, 97, 0.12);
  box-shadow: var(--shadow);
  text-align: center;
}

.access-panel h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  color: var(--blue);
  font-size: 1.75rem;
}

.access-panel p {
  margin: 0 0 1.25rem;
  color: var(--text-muted-on-light);
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.access-panel .btn-outline {
  color: var(--blue);
  border-color: rgba(10, 49, 97, 0.28);
}

.access-panel .btn-outline:hover,
.access-panel .btn-outline:focus-visible {
  background: var(--off-white);
  border-color: var(--blue);
}

.app-main {
  padding: 3rem 0 4rem;
  background: var(--off-white);
  min-height: calc(100vh - 160px);
}

.app-shell {
  max-width: 960px;
}

.app-header {
  margin-bottom: 2rem;
}

.app-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.app-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.app-lead {
  margin: 0;
  color: var(--text-muted-on-light);
  font-size: 1.05rem;
  max-width: 42rem;
}

.app-lead-note {
  margin: 0.75rem 0 0;
  color: var(--text-muted-on-light);
  font-size: 1rem;
  max-width: 42rem;
}

.app-lead-note a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-lead-note a:hover,
.app-lead-note a:focus-visible {
  color: var(--red);
  outline: none;
}

.app-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid rgba(10, 49, 97, 0.1);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.app-card h2 {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 1.25rem;
}

.app-card p {
  margin: 0 0 1rem;
  color: var(--text-muted-on-light);
}

.app-card p:last-child {
  margin-bottom: 0;
}

.app-placeholder {
  font-style: italic;
  font-size: 0.95rem;
}

.app-meta {
  margin: 0;
}

.app-meta div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(10, 49, 97, 0.08);
}

.app-meta div:last-child {
  border-bottom: none;
}

.app-meta dt {
  margin: 0;
  font-weight: 700;
  color: var(--blue);
}

.app-meta dd {
  margin: 0;
  color: var(--text-on-light);
}

.main-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#nav-dashboard[hidden],
#nav-cms[hidden],
#nav-admin[hidden] {
  display: none;
}

/* Dashboard left sidebar */
.dashboard-layout {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 72px);
  position: relative;
}

.dashboard-sidebar-toggle {
  display: none;
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.55rem 0.85rem;
  border: 2px solid rgba(10, 49, 97, 0.2);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.dashboard-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--blue-dark);
  border-right: 4px solid var(--red);
  padding: 1.25rem 0;
}

.dashboard-sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-sidebar-nav a {
  display: block;
  padding: 0.7rem 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  text-decoration: none;
}

.dashboard-sidebar-nav a:hover,
.dashboard-sidebar-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: none;
}

.dashboard-sidebar-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-left: 3px solid var(--red);
  padding-left: calc(1.25rem - 3px);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
}

.dashboard-main.app-main {
  min-height: auto;
}

.dashboard-quick-links {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted-on-light);
}

.dashboard-quick-links li + li {
  margin-top: 0.35rem;
}

.dashboard-quick-links a {
  color: var(--blue);
  font-weight: 700;
}

.dashboard-quick-links a:hover,
.dashboard-quick-links a:focus-visible {
  color: var(--red);
  outline: none;
}

@media (max-width: 900px) {
  .dashboard-sidebar-toggle {
    display: inline-flex;
  }

  .dashboard-layout {
    flex-direction: column;
    padding-top: 3rem;
  }

  .dashboard-sidebar {
    display: none;
    width: 100%;
    border-right: none;
    border-bottom: 4px solid var(--red);
    padding: 0.5rem 0 0.75rem;
  }

  .dashboard-layout.sidebar-open .dashboard-sidebar {
    display: block;
  }

  .dashboard-sidebar-nav a[aria-current="page"] {
    border-left: none;
    padding-left: 1.25rem;
    border-left: 3px solid var(--red);
    padding-left: calc(1.25rem - 3px);
  }
}

/* Submissions list */
.submissions-section {
  display: grid;
  gap: 1rem;
}

.submissions-status {
  margin: 0;
  min-height: 1.25em;
  font-weight: 600;
  color: var(--text-muted-on-light);
}

.submissions-status.error {
  color: var(--red);
}

.submissions-empty {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid rgba(10, 49, 97, 0.1);
  box-shadow: var(--shadow);
  text-align: center;
}

.submissions-empty p {
  margin: 0 0 1rem;
  color: var(--text-muted-on-light);
}

.submissions-list {
  display: grid;
  gap: 1rem;
}

.submission-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid rgba(10, 49, 97, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.submission-item-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 49, 97, 0.04);
  border-bottom: 1px solid rgba(10, 49, 97, 0.08);
}

.submission-item-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--blue);
}

.submission-item-date {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted-on-light);
}

.submission-item-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.submission-item-body p {
  margin: 0;
  color: var(--text-on-light);
  white-space: pre-wrap;
  word-break: break-word;
}

.submissions-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted-on-light);
  font-style: italic;
}

/* Personal info form */
.profile-form {
  max-width: 640px;
}

.profile-address-fieldset {
  margin: 0 0 0.92rem;
  padding: 0;
  border: none;
}

.profile-address-fieldset legend {
  margin-bottom: 0.65rem;
  padding: 0;
  font-weight: 700;
  color: var(--blue);
  font-size: 1rem;
}

.field-note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted-on-light);
}

.profile-form input[readonly] {
  background: var(--off-white);
  color: var(--text-muted-on-light);
  cursor: not-allowed;
}

.profile-form-secondary {
  margin-top: 2rem;
}

.profile-form-heading {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  color: var(--blue);
  font-size: 1.35rem;
}
