/* Self-hosted fonts (update 14, Core Web Vitals): latin subset, variable weight, swap. */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap; src: url("/fonts/nunito-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-stretch: 100%; font-display: swap; src: url("/fonts/fredoka-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --canvas: #fff7e8;
  --canvas-deep: #ffe9bd;
  --surface: #ffffff;
  --surface-warm: #fff2d4;
  --surface-mint: #dff8eb;
  --surface-blue: #dff0ff;
  --surface-lavender: #eee8ff;
  --ink: #13213a;
  --ink-soft: #32415f;
  --muted: #5d6b84;
  --border: #d9c9aa;
  --border-strong: #a78955;
  --blue: #1262d6;
  --blue-dark: #0b3d91;
  --coral: #e94f37;
  --coral-dark: #9d2e20;
  --sun: #ffc943;
  --sun-dark: #6f4d00;
  --mint: #16a66a;
  --mint-dark: #08633d;
  --lavender: #7057d7;
  --danger: #c9302c;
  --danger-bg: #ffe4df;
  --focus: #13213a;
  --shadow-soft: 0 14px 34px rgba(30, 37, 59, 0.12);
  --shadow-lift: 0 26px 56px rgba(30, 37, 59, 0.18);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --font-display: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 201, 67, 0.34), transparent 18rem),
    radial-gradient(circle at 92% 12%, rgba(112, 87, 215, 0.18), transparent 20rem),
    radial-gradient(circle at 52% 0%, rgba(18, 98, 214, 0.12), transparent 22rem),
    linear-gradient(180deg, #fffaf0 0%, var(--canvas) 42rem, #fffdf7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    radial-gradient(circle, rgba(19, 33, 58, 0.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(18, 98, 214, 0.14) 1px, transparent 1px);
  background-position: 0 0, 12px 12px;
  background-size: 28px 28px;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-shell,
.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
  border-bottom: 2px solid rgba(167, 137, 85, 0.28);
  background: rgba(255, 247, 232, 0.86);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.72rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand span {
  white-space: nowrap;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
}

.company-avatar:hover,
.sponsored-logo:hover,
.profile-avatar:hover {
  transform: translateY(-2px) scale(1.03);
}

.brand-mark {
  display: block;
  height: 29px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  transition: transform 0.2s ease;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 1px;
}

.topnav-auth {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  flex-shrink: 0;
  padding-left: 0.65rem;
  margin-left: 0.35rem;
  border-left: 1px solid rgba(19, 33, 58, 0.1);
}

.topnav-auth .topnav-link-admin {
  margin-left: 0.15rem;
  flex-shrink: 0;
}

.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.44rem 0.68rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(19, 33, 58, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.topnav-link::after {
  display: none;
}

.topnav-link:hover {
  color: var(--blue-dark);
  border-color: rgba(18, 98, 214, 0.18);
  box-shadow: 0 8px 18px rgba(19, 33, 58, 0.08);
}

.topnav-link.is-active {
  color: var(--blue-dark);
  background: var(--surface-blue);
  border-color: rgba(18, 98, 214, 0.24);
}

.topnav-link-external {
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.92), rgba(255, 255, 255, 0.92));
  border-color: rgba(245, 197, 24, 0.28);
}

.topnav-link-external:hover {
  color: #9a6500;
  border-color: rgba(154, 101, 0, 0.24);
}

.topnav-link-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.topnav-link-label {
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.topnav a,
.auth-user {
  color: var(--ink-soft);
  font-weight: 800;
  text-decoration: none;
}

.auth-user {
  max-width: 10.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.2;
}

.topnav-auth .btn {
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.topnav-auth .btn:hover {
  transform: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.topnav-auth .btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.topnav a {
  position: relative;
}

.topnav a::after,
.company-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.2rem;
  height: 3px;
  border-radius: 999px;
  background: var(--coral);
  transition: right 180ms ease;
}

.topnav a:hover::after,
.company-link:hover::after {
  right: 0;
}

.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 var(--space-4);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: var(--space-3);
  align-items: center;
}

.hero h1,
.page-title,
.profile-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero h1,
.page-title {
  max-width: 820px;
  font-size: clamp(2.25rem, 5.6vw, 4.2rem);
}

.lead,
.hero p {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero p {
  line-height: 1.75;
}

.hero-kicker-row,
.profile-actions,
.queue-actions,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chip,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  border: 2px solid rgba(19, 33, 58, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  margin: 0 0 0.7rem;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.hero-card,
.card,
.table-card,
.sponsored-card,
.profile-card,
.admin-panel,
.search-panel,
.feature-card,
.dialog-card,
.queue-item {
  border: 2px solid rgba(19, 33, 58, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-3);
  transform: rotate(1deg);
}

.hero-card::before,
.profile-hero-card::before,
.sponsored-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 201, 67, 0.4), transparent 8rem),
    radial-gradient(circle at 70% 20%, rgba(22, 166, 106, 0.22), transparent 9rem);
  transform: rotate(12deg);
}

.hero-card > *,
.profile-hero-card > *,
.sponsored-card > * {
  position: relative;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric,
.detail {
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: 18px;
  padding: 1rem;
  background: var(--surface-warm);
}

.metric:nth-child(2),
.detail:nth-child(2) {
  background: var(--surface-mint);
}

.metric:nth-child(3),
.detail:nth-child(3) {
  background: var(--surface-lavender);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.1;
}

.metric span,
.detail span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-2);
}

.section-header h2,
.profile-card h2,
.feature-card h2,
.admin-panel h2,
.dialog-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.sponsored-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.sponsored-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-2);
  background: var(--surface);
}

.sponsored-card:nth-child(4n + 1) {
  background: linear-gradient(145deg, #fff, var(--surface-blue));
}

.sponsored-card:nth-child(4n + 2) {
  background: linear-gradient(145deg, #fff, var(--surface-mint));
}

.sponsored-card:nth-child(4n + 3) {
  background: linear-gradient(145deg, #fff, var(--surface-warm));
}

.sponsored-card:nth-child(4n) {
  background: linear-gradient(145deg, #fff, var(--surface-lavender));
}

.sponsored-card:hover,
.profile-card:hover,
.feature-card:hover,
.queue-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.sponsored-card:hover {
  rotate: -1deg;
}

.sponsored-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sponsored-card h3 {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}

.sponsored-copy {
  display: grid;
  gap: 0.35rem;
}

.sponsored-copy p {
  margin: 0;
}

.sponsored-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
}

.sponsored-pill {
  min-width: 0;
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: 16px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sponsored-pill strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sponsored-card-open .sponsored-logo {
  background: #fff;
}

.sponsored-logo,
.company-avatar {
  position: relative;
  overflow: hidden;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background:
    radial-gradient(circle at 35% 30%, #fff 0 45%, #f8fafc 100%);
  box-shadow:
    0 14px 30px rgba(19, 33, 58, 0.16),
    0 3px 8px rgba(19, 33, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-weight: 700;
}

.company-avatar img,
.profile-avatar img,
.sponsored-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.company-avatar.has-logo,
.profile-avatar.has-logo,
.sponsored-logo.has-logo {
  padding: 4px;
}

.company-avatar.has-logo > span,
.profile-avatar.has-logo > span,
.sponsored-logo.has-logo > span {
  display: none;
}

.company-avatar.logo-failed > span,
.profile-avatar.logo-failed > span,
.sponsored-logo.logo-failed > span {
  display: inline;
}

.badge,
.status-badge,
.count-pill,
.pay-value,
.score-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.badge,
.status-badge {
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge {
  border: 2px solid rgba(19, 33, 58, 0.14);
  color: var(--blue-dark);
  background: #fff;
}

.status-positive {
  color: var(--mint-dark);
  background: #d3f8e4;
  border: 2px solid #76d8a5;
}

.status-negative {
  color: var(--coral-dark);
  background: #ffe2dd;
  border: 2px solid #f39788;
}

.status-neutral {
  color: #423178;
  background: var(--surface-lavender);
  border: 2px solid #b7a8f4;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: end;
  margin: var(--space-3) 0 var(--space-2);
  padding: var(--space-2);
  background: #fffdf7;
}

.filter-panel {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 var(--space-3);
  padding: var(--space-2);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 22px;
}

.filter-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.filter-pill {
  min-height: 38px;
  padding: 0.45rem 1rem;
  border: 1.5px solid #d8d2cb;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.filter-pill:hover {
  border-color: #9a938b;
  transform: translateY(-1px);
}

.filter-pill.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.filter-pill:focus-visible {
  outline: 3px solid rgba(18, 98, 214, 0.28);
  outline-offset: 2px;
}

.hiring-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.hiring-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(202, 155, 82, 0.14);
  color: #6b4d1f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.search-panel label {
  display: grid;
  gap: 0.45rem;
  font-weight: 900;
}

.search-panel input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input,
.inline-form textarea,
.auth-dialog input,
.admin-field {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--border-strong);
  border-radius: 16px;
  padding: 0.82rem 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-panel input::placeholder,
.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #76706a;
}

.search-panel input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.inline-form input:focus,
.inline-form textarea:focus,
.auth-dialog input:focus,
.admin-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 98, 214, 0.18);
}

.btn {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-secondary {
  color: var(--ink);
  background: var(--sun);
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-small {
  min-height: 38px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

.table-card {
  overflow: hidden;
  margin-bottom: var(--space-5);
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

th {
  position: static;
  padding: 0.85rem 0.7rem;
  color: #fff;
  background: var(--ink);
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

th:nth-child(1),
td:nth-child(1) {
  width: 26%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 9%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 14%;
}

th:nth-child(4),
td:nth-child(4) {
  width: 13%;
}

th:nth-child(5),
td:nth-child(5) {
  width: 11%;
}

th:nth-child(6),
td:nth-child(6) {
  width: 9%;
}

th:nth-child(7),
td:nth-child(7) {
  width: 11%;
}

th:nth-child(8),
td:nth-child(8) {
  width: 6.5%;
}

.table-sort {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: inherit;
}

td {
  padding: 0.85rem 0.7rem;
  border-top: 2px solid #f0e1c8;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

tbody tr {
  background: #fff;
}

tbody tr:hover {
  background: #fff9eb;
  box-shadow: inset 6px 0 0 var(--sun);
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.company-avatar-stack {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.watchlist-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(19, 33, 58, 0.12);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.watchlist-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 98, 214, 0.28);
  box-shadow: 0 8px 18px rgba(19, 33, 58, 0.08);
}

.watchlist-toggle.is-active {
  color: #fff;
  background: linear-gradient(180deg, #1362d6, #0f4ea8);
  border-color: rgba(15, 78, 168, 0.4);
  box-shadow: 0 8px 20px rgba(18, 98, 214, 0.24);
}

.watchlist-eye {
  width: 18px;
  height: 18px;
  display: block;
}

.watchlist-card {
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.72), rgba(255, 255, 255, 0.96));
}

.watchlist-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.watchlist-profile-btn.is-active {
  color: var(--blue-dark);
  background: rgba(232, 241, 255, 0.95);
  border-color: rgba(18, 98, 214, 0.24);
}

.watchlist-manage-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.watchlist-page {
  padding-bottom: var(--space-5);
}

.watchlist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.watchlist-hero-panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(19, 33, 58, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 247, 214, 0.55), rgba(255, 255, 255, 0.94));
  box-shadow: 0 16px 40px rgba(19, 33, 58, 0.06);
}

.watchlist-hero-panel-label {
  margin: 0 0 0.45rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watchlist-hero-panel p:last-child {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.watchlist-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 180px)) minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: var(--space-3);
}

.watchlist-summary-card {
  padding: 1rem 1.05rem;
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: 20px;
  background: var(--surface-warm);
}

.watchlist-summary-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}

.watchlist-summary-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.watchlist-summary-copy {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.watchlist-summary-copy p:last-child {
  margin: 0.35rem 0 0;
  color: var(--ink);
  line-height: 1.55;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--space-2);
}

.watchlist-item-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid rgba(19, 33, 58, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 247, 0.96));
  box-shadow: 0 18px 44px rgba(19, 33, 58, 0.07);
}

.watchlist-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.watchlist-item-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.watchlist-item-heading {
  min-width: 0;
}

.watchlist-item-heading .company-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.watchlist-item-saved {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}

.watchlist-item-summary {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.watchlist-item-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.watchlist-metric {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(19, 33, 58, 0.08);
  font-size: 0.84rem;
}

.watchlist-metric strong {
  margin-right: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.watchlist-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.watchlist-status-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 280px;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(19, 33, 58, 0.06);
}

.watchlist-status-banner {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.watchlist-status-picker {
  display: grid;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.watchlist-status-picker-label {
  color: rgba(19, 33, 58, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watchlist-status-picker select {
  min-width: 168px;
  min-height: 40px;
  border: 1px solid rgba(19, 33, 58, 0.14);
  border-radius: 12px;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2313213A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  appearance: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.watchlist-status-notice--watching {
  color: #17663a;
  background: linear-gradient(180deg, rgba(223, 248, 235, 0.98), rgba(198, 241, 214, 0.92));
  border-color: rgba(23, 102, 58, 0.22);
}

.watchlist-status-notice--sent {
  color: #0f4ea8;
  background: linear-gradient(180deg, rgba(232, 241, 255, 0.98), rgba(210, 228, 255, 0.92));
  border-color: rgba(18, 98, 214, 0.22);
}

.watchlist-status-notice--interview {
  color: #9a6500;
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.98), rgba(255, 236, 170, 0.92));
  border-color: rgba(154, 101, 0, 0.22);
}

.watchlist-status-notice--decision {
  color: #5b3ea8;
  background: linear-gradient(180deg, rgba(243, 236, 255, 0.98), rgba(228, 214, 255, 0.92));
  border-color: rgba(91, 62, 168, 0.22);
}

.watchlist-status-notice--failed {
  color: #a32626;
  background: linear-gradient(180deg, rgba(255, 236, 236, 0.98), rgba(255, 214, 214, 0.92));
  border-color: rgba(163, 38, 38, 0.22);
}

.watchlist-status-notice--joined {
  color: #0d5f49;
  background: linear-gradient(180deg, rgba(214, 255, 244, 0.98), rgba(178, 245, 223, 0.92));
  border-color: rgba(13, 95, 73, 0.24);
}

.watchlist-remove-btn {
  margin-left: auto;
}

.watchlist-empty {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.watchlist-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: var(--surface-blue);
}

.watchlist-empty-icon .watchlist-eye {
  width: 34px;
  height: 34px;
}

.watchlist-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.watchlist-loading {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--space-2);
}

.watchlist-skeleton-card {
  min-height: 240px;
  border-radius: 24px;
}

.celebration-confetti {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 12001;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(19, 33, 58, 0.42);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.celebration-overlay.is-visible {
  opacity: 1;
}

.celebration-card {
  width: min(100%, 520px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 3px solid var(--ink);
  border-radius: 28px;
  text-align: center;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 247, 214, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top, rgba(255, 201, 67, 0.28), transparent 55%);
  box-shadow: 10px 10px 0 var(--ink);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.celebration-overlay.is-visible .celebration-card {
  transform: scale(1) translateY(0);
}

.celebration-sparkles {
  margin-bottom: 0.35rem;
  color: #f5c518;
  font-size: 1.35rem;
  letter-spacing: 0.35em;
}

.celebration-card h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.celebration-message {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

.company-rating-label,
.profile-rating-badge,
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  line-height: 1;
  white-space: nowrap;
}

.company-rating-label {
  color: #9a6500;
  font-size: 0.82rem;
  font-weight: 900;
}

.profile-rating-badge {
  padding: 0.38rem 0.72rem;
  border: 2px solid rgba(154, 101, 0, 0.18);
  border-radius: 999px;
  color: #9a6500;
  background: rgba(255, 247, 214, 0.92);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(154, 101, 0, 0.12);
}

.rating-badge-value {
  font-variant-numeric: tabular-nums;
}

.rating-star-icon {
  color: #f5c518;
  font-size: 1.05em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(154, 101, 0, 0.18);
}

.company-link {
  position: relative;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.company-link:hover {
  color: var(--blue-dark);
}

.pay-value,
.score-value {
  min-width: 0;
  padding: 0.32rem 0.55rem;
  color: var(--mint-dark);
  background: #dff8eb;
  border: 2px solid #8cddb4;
  white-space: nowrap;
}

.score-value {
  color: var(--blue-dark);
  background: var(--surface-blue);
  border-color: #9ccfff;
}

.vote-buttons {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
}

.vote-button {
  min-width: 43px;
  height: 38px;
  padding: 0 0.45rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}

.vote-button:hover {
  transform: translateY(-2px) rotate(-4deg);
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
}

.vote-button[data-vote="-1"]:hover,
[data-vote-profile="-1"]:hover {
  background: #ffe2dd;
}

.vote-pop {
  animation: votePop 420ms ease;
}

.skeleton {
  min-height: 64px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f6e6c5, #fffaf0, #f6e6c5);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.profile-hero {
  padding: var(--space-4) 0 var(--space-3);
}

.profile-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(0.55cm, 2.5vw, 1.15rem);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 201, 67, 0.82), rgba(223, 248, 235, 0.92)),
    #fff;
  box-shadow: 7px 7px 0 var(--ink);
}

.profile-hero-card .muted {
  color: var(--ink-soft);
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: start;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.profile-avatar {
  position: relative;
  overflow: hidden;
  width: clamp(96px, 12vw, 132px);
  height: clamp(96px, 12vw, 132px);
  flex: 0 0 auto;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background:
    radial-gradient(circle at 35% 30%, #fff 0 45%, #f8fafc 100%);
  box-shadow:
    0 20px 46px rgba(19, 33, 58, 0.2),
    0 4px 12px rgba(19, 33, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
}

.profile-hero-card .profile-title-row {
  margin-bottom: 0.1rem;
}

.profile-title-row h1 {
  max-width: 100%;
  font-size: clamp(2rem, 5vw, 3.75rem);
  overflow-wrap: anywhere;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: var(--space-3);
  align-items: start;
  margin-bottom: var(--space-5);
}

.profile-main,
.profile-side {
  display: grid;
  gap: var(--space-2);
}

.profile-cta-card {
  padding: var(--space-2);
}

.profile-go-btn {
  min-height: 54px;
  font-size: 1.05rem;
}

.application-email-value {
  margin: 0.35rem 0 0.75rem;
  padding: 0.9rem 1rem;
  border: 2px solid rgba(19, 33, 58, 0.12);
  border-radius: 16px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-word;
}

.profile-card {
  padding: var(--space-3);
}

.profile-card > h2,
.profile-card > .eyebrow + h2 {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: var(--space-3);
  background: #fff;
}

.feature-card:nth-child(1) {
  background: linear-gradient(145deg, #fff, var(--surface-warm));
}

.feature-card:nth-child(2) {
  background: linear-gradient(145deg, #fff, var(--surface-mint));
}

.feature-card strong {
  display: block;
  margin: 0.6rem 0 0.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-detail-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.detail {
  overflow-wrap: anywhere;
}

.source-link {
  color: var(--blue-dark);
  font-weight: 900;
}

.review-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.rating-score {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--surface-warm);
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
}

.rating-score strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
}

.rating-bars {
  display: grid;
  gap: 0.55rem;
}

.rating-bar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 40px;
  gap: 0.6rem;
  align-items: center;
  color: var(--ink-soft);
  font-weight: 900;
}

.rating-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(19, 33, 58, 0.18);
  border-radius: 999px;
  background: #f3e4c7;
}

.rating-fill {
  height: 100%;
  width: var(--rating-width, 0%);
  border-radius: inherit;
  background: var(--sun);
}

.review {
  padding: var(--space-2);
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: 18px;
  background: #fffdf7;
}

.review + .review {
  margin-top: 0.75rem;
}

.stars {
  color: #9a6500;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rating-picker {
  display: grid;
  gap: 0.65rem;
}

.rating-picker-label {
  margin: 0;
  font-weight: 900;
  color: var(--ink);
}

.rating-picker-hint {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.rating-picker-hint.is-active {
  color: var(--ink);
  font-weight: 700;
}

.star-rating-input {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  touch-action: none;
  user-select: none;
  padding: 0.35rem 0;
  outline: none;
}

.star-rating-input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 12px;
}

.star-rating-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.35rem, 8vw, 2.85rem);
  height: clamp(2.35rem, 8vw, 2.85rem);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}

.star-rating-star svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 0 rgba(154, 101, 0, 0.12));
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.star-rating-star path {
  fill: transparent;
  stroke: #b88900;
  stroke-width: 1.65;
  stroke-linejoin: round;
  transition: fill 0.22s ease, stroke 0.22s ease, filter 0.22s ease;
}

.star-rating-star.is-preview path,
.star-rating-star.is-active path {
  fill: #f5c518;
  stroke: #d4a017;
  filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.45));
}

.star-rating-input.is-previewing .star-rating-star.is-preview svg {
  animation: starGlow 0.35s ease;
}

.star-rating-input.is-dragging .star-rating-star.is-preview svg {
  transform: scale(1.08);
}

.star-rating-star:is(:hover, :focus-visible) svg {
  transform: scale(1.12);
}

.star-rating-star.is-readonly {
  cursor: default;
  pointer-events: none;
}

.star-rating-input--dialog {
  justify-content: center;
  gap: 0.25rem;
}

.star-rating-input--dialog .star-rating-star {
  width: 2rem;
  height: 2rem;
}

.review-dialog-rating {
  margin-bottom: 0;
}

.profile-modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.profile-modal::backdrop {
  background: rgba(19, 33, 58, 0.62);
  backdrop-filter: blur(4px);
}

.profile-modal-card,
.site-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  width: 100%;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border: 1px solid rgba(19, 33, 58, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  box-shadow:
    0 28px 70px rgba(19, 33, 58, 0.22),
    0 8px 24px rgba(19, 33, 58, 0.12);
  animation: profileModalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.site-modal-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 33, 58, 0.24) rgba(19, 33, 58, 0.06);
}

.profile-modal-body {
  display: grid;
  gap: 1rem;
  min-height: 0;
  padding: 1.15rem 1.35rem 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 33, 58, 0.24) rgba(19, 33, 58, 0.06);
}

.auth-dialog-body {
  display: block;
  padding: 0.35rem 1.35rem 1rem;
}

.profile-modal-body::-webkit-scrollbar,
.site-modal-scroll::-webkit-scrollbar {
  width: 10px;
}

.profile-modal-body::-webkit-scrollbar-track,
.site-modal-scroll::-webkit-scrollbar-track {
  margin: 0.35rem 0;
  border-radius: 999px;
  background: rgba(19, 33, 58, 0.06);
}

.profile-modal-body::-webkit-scrollbar-thumb,
.site-modal-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(19, 33, 58, 0.24);
  background-clip: padding-box;
}

.profile-modal-body::-webkit-scrollbar-thumb:hover,
.site-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(19, 33, 58, 0.36);
  background-clip: padding-box;
}

.site-modal-footer,
.profile-modal-footer,
.auth-dialog-footer {
  flex-shrink: 0;
  padding: 0.85rem 1.35rem 1.25rem;
  border-top: 1px solid rgba(19, 33, 58, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 247, 0.98));
}

.auth-dialog-header {
  position: relative;
  padding: 1.15rem 1.35rem 0.55rem;
}

.auth-dialog-header .dialog-close {
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  float: none;
  margin: 0;
}

.auth-dialog-footer {
  min-height: 2.2rem;
}

.auth-dialog-footer .form-message {
  margin: 0;
}

.profile-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(19, 33, 58, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 201, 67, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 247, 0.92));
}

.profile-modal-heading {
  min-width: 0;
}

.profile-modal-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.profile-modal-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.08;
}

.profile-modal-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(19, 33, 58, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(19, 33, 58, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.profile-modal-close:hover {
  transform: scale(1.04);
  background: var(--surface-warm);
  border-color: rgba(19, 33, 58, 0.18);
}

.profile-modal-close:focus-visible {
  outline: 3px solid rgba(18, 98, 214, 0.28);
  outline-offset: 2px;
}

.profile-modal-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.profile-modal-panel {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.45), rgba(255, 255, 255, 0.92));
}

.auth-dialog-note {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-dialog-note p {
  margin: 0;
}

.auth-dialog-member-notice {
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 201, 67, 0.38), rgba(255, 247, 214, 0.95));
  box-shadow: 4px 4px 0 var(--ink);
}

.auth-dialog-member-notice__title {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.auth-dialog-member-notice p:not(.auth-dialog-member-notice__title):not(.auth-dialog-member-notice__alert) {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-dialog-member-notice__alert {
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(233, 79, 55, 0.28);
  color: var(--coral-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.auth-dialog-member-notice__alert strong {
  color: var(--coral);
}

.auth-dialog-member-notice__fineprint {
  margin: 0.75rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(19, 33, 58, 0.1);
  color: rgba(19, 33, 58, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-dialog-member-notice__fineprint a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.auth-dialog-card.site-modal-panel {
  gap: 0;
}

.auth-dialog-brand {
  display: flex;
  justify-content: center;
  margin: 0.1rem 0 0.15rem;
}

.auth-dialog-logo {
  display: block;
  height: 12px;
  width: auto;
  max-width: 53px;
  object-fit: contain;
  background: transparent;
}

.auth-dialog-lead {
  margin: 0 0 1rem;
  color: rgba(19, 33, 58, 0.82);
  line-height: 1.55;
}

.auth-dialog-info-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.auth-dialog-info-card {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(19, 33, 58, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.auth-dialog-info-card--otc {
  border-color: rgba(19, 33, 58, 0.18);
  background: linear-gradient(180deg, rgba(255, 201, 67, 0.24), rgba(255, 255, 255, 0.94));
}

.auth-dialog-info-card__title {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.auth-dialog-info-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-dialog-choose-label {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.auth-dialog-choices {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.auth-dialog-choice {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.auth-dialog-choice:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
  background: rgba(255, 247, 214, 0.55);
}

.auth-dialog-choice:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.auth-dialog-choice__title {
  font-size: 0.98rem;
  font-weight: 900;
}

.auth-dialog-choice__text {
  color: rgba(19, 33, 58, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-dialog-support {
  margin: 0;
  color: rgba(19, 33, 58, 0.78);
  font-size: 0.86rem;
}

.auth-dialog-support a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.auth-dialog-join-link {
  margin: 1rem 0 0.5rem;
  text-align: center;
}

.auth-dialog-join-link a {
  color: var(--coral-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.auth-dialog-join-link a:hover {
  color: var(--coral);
}

.auth-dialog-step[hidden] {
  display: none !important;
}

.auth-dialog-back {
  justify-self: start;
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-dialog-back:hover {
  text-decoration: underline;
}

.auth-dialog-step-note {
  margin: 0 0 1rem;
  color: rgba(19, 33, 58, 0.84);
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-actions-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.auth-dialog .form-message {
  margin-top: 0.35rem;
}

.password-field .password-input-wrap {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(19, 33, 58, 0.72);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--ink);
  background: rgba(255, 201, 67, 0.28);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.password-toggle-icon {
  width: 18px;
  height: 18px;
}

.password-toggle-icon--hide {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon--show {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon--hide {
  display: block;
}

.profile-modal-card .field-block {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.profile-modal-card .field-label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.profile-modal-card .field-label-optional {
  color: var(--muted);
  font-weight: 700;
}

.profile-modal-card .field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.profile-modal-card select,
.profile-modal-card textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(19, 33, 58, 0.14);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-modal-card textarea {
  min-height: 168px;
  resize: vertical;
  line-height: 1.55;
}

.profile-modal-card select {
  cursor: pointer;
  appearance: none;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.profile-modal-card select:focus,
.profile-modal-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 98, 214, 0.14);
}

.profile-modal-card .btn-full {
  min-height: 52px;
  box-shadow: 0 10px 24px rgba(18, 98, 214, 0.18);
}

.edit-modal-card .edit-field-guide {
  display: grid;
  gap: 0.45rem;
}

.edit-modal-card .edit-field-guide--note {
  background: linear-gradient(180deg, rgba(232, 241, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.edit-field-guide-kicker {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edit-field-guide-copy {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.edit-field-guide-copy strong {
  color: var(--blue-dark);
}

.edit-modal-card #edit-suggested-value {
  min-height: 160px;
}

.edit-modal-card textarea[name="note"] {
  min-height: 110px;
}

.review-modal-card .review-dialog-rating .field-label {
  margin-bottom: 0.45rem;
}

.review-modal-card .star-rating-input--dialog {
  justify-content: flex-start;
}

.profile-comments-section {
  margin-bottom: var(--space-5);
}

.profile-comments-card {
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border: 1px solid rgba(19, 33, 58, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 247, 0.96)),
    radial-gradient(circle at top right, rgba(255, 201, 67, 0.12), transparent 42%);
  box-shadow:
    0 24px 60px rgba(19, 33, 58, 0.08),
    0 8px 24px rgba(19, 33, 58, 0.05);
}

.profile-comments-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.profile-comments-header h2 {
  margin: 0;
}

.profile-comments-count {
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-comments-intro {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

.profile-comments-link {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.profile-comments-link:hover {
  color: var(--blue-dark);
}

.comment-review-prompt {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.55), rgba(255, 255, 255, 0.92));
}

.star-rating-input--comment-cta {
  margin-top: 0.35rem;
}

.review-picker-card.is-highlighted {
  animation: reviewPickerPulse 1.2s ease;
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.28);
}

@keyframes reviewPickerPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }
}

.comment-composer,
.comment-composer-guest {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.comment-composer-guest {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.comment-composer-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-blue);
  font-size: 1.4rem;
}

.comment-composer-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.comment-composer-copy {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.comment-composer-field {
  display: grid;
  gap: 0.5rem;
}

.comment-composer textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid rgba(19, 33, 58, 0.14);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  font: inherit;
  line-height: 1.55;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.comment-composer textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 98, 214, 0.14);
  outline: none;
}

.comment-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.comment-thread {
  display: grid;
  gap: 0.85rem;
}

.comment-thread-empty {
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(19, 33, 58, 0.14);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.comment-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.comment-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(19, 33, 58, 0.06);
}

.comment-item-review {
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.28), rgba(255, 255, 255, 0.96));
}

.comment-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: var(--surface-lavender);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.comment-body {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.comment-meta strong {
  display: block;
  font-size: 0.98rem;
}

.comment-meta .muted {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}

.comment-badge {
  flex: 0 0 auto;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comment-badge-review {
  color: #9a6500;
  background: rgba(255, 247, 214, 0.95);
  text-transform: none;
  letter-spacing: 0.08em;
}

.comment-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@keyframes profileModalIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes starGlow {
  0% {
    transform: scale(0.88);
  }

  55% {
    transform: scale(1.14);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes starPop {
  0% {
    transform: scale(0.5);
    opacity: 0.4;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active svg {
  animation: starPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(1) svg {
  animation-delay: 0.02s;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(2) svg {
  animation-delay: 0.06s;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(3) svg {
  animation-delay: 0.1s;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(4) svg {
  animation-delay: 0.14s;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(5) svg {
  animation-delay: 0.18s;
}

.form-grid,
.inline-form {
  display: grid;
  gap: var(--space-2);
}

.form-grid label,
.inline-form label,
.auth-dialog label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 900;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

textarea {
  min-height: 132px;
  resize: vertical;
}

select {
  cursor: pointer;
}

.dialog-card {
  width: min(540px, calc(100vw - 32px));
  padding: var(--space-3);
  border: 3px solid var(--ink);
  background: #fffdf7;
  box-shadow: 8px 8px 0 var(--ink);
}

.dialog-card.site-modal-panel,
.auth-dialog-card.site-modal-panel {
  width: min(560px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(19, 33, 58, 0.56);
}

.dialog-close {
  float: right;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--sun);
  cursor: pointer;
  font-weight: 900;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  height: 2px;
  background: #ead7b8;
}

.form-message {
  min-height: 1.4rem;
  color: var(--danger);
  font-weight: 900;
}

.toast-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 360px;
  padding: 0.95rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.toast-success {
  color: var(--ink);
  background: var(--surface-mint);
}

.toast-error {
  background: var(--danger);
}

.company-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--canvas);
  animation: overlayIn 180ms ease;
}

.company-overlay-bar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border);
  background: rgba(255, 247, 232, 0.94);
  backdrop-filter: blur(16px);
}

.company-overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fffdf7;
}

.admin-shell {
  width: min(1280px, calc(100% - 32px));
  margin: var(--space-4) auto var(--space-5);
}

.admin-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--space-2);
}

.admin-tabs {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.admin-tab {
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}

.admin-tab.is-active {
  color: #fff;
  background: var(--blue);
}

.admin-panel {
  min-height: 520px;
  padding: var(--space-2);
  background: #fffdf7;
}

.queue-item {
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  background: #fff;
}

.queue-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.queue-item p {
  margin: 0.35rem 0;
}

footer {
  padding: var(--space-5) 0;
  color: var(--muted);
  text-align: center;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

@keyframes votePop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.18) rotate(-2deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes overlayIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile navigation primitives (activated under 900px) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 48px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.topbar.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(19, 33, 58, 0.42);
  cursor: pointer;
}

body.nav-drawer-open {
  overflow: hidden;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .brand {
    font-size: 0.96rem;
    gap: 0.55rem;
  }

  .brand-mark {
    height: 25px;
    max-width: 114px;
  }

  .topnav-link {
    padding: 0.4rem 0.58rem;
    gap: 0.3rem;
  }

  .topnav-link-label {
    font-size: 0.78rem;
  }

  .topnav-link-icon svg {
    width: 15px;
    height: 15px;
  }

  .auth-user {
    max-width: 7.5rem;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  th,
  td {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }

  th:nth-child(1),
  td:nth-child(1) {
    width: 33%;
  }

  th:nth-child(2),
  td:nth-child(2) {
    width: 12%;
  }

  th:nth-child(3),
  td:nth-child(3) {
    width: 17%;
  }

  th:nth-child(6),
  td:nth-child(6) {
    width: 12%;
  }

  th:nth-child(7),
  td:nth-child(7) {
    width: 16%;
  }

  th:nth-child(8),
  td:nth-child(8) {
    width: 10%;
  }

  .vote-button {
    min-width: 50px;
    font-size: 0.92rem;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .profile-layout,
  .profile-header,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .sponsored-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .comment-composer-guest {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .comment-composer-icon {
    margin: 0 auto;
  }

  .profile-comments-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .watchlist-hero,
  .watchlist-summary {
    grid-template-columns: 1fr;
  }

  .watchlist-remove-btn {
    margin-left: 0;
  }

  .watchlist-status-notice {
    flex-basis: 100%;
  }

  .admin-tabs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .admin-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    padding: 0.7rem 1rem;
  }

  .admin-panel {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 41;
  }

  .nav-backdrop:not([hidden]) {
    display: block;
  }

  .brand span {
    display: none;
  }

  .topbar-inner {
    position: relative;
    gap: 0.75rem;
    padding: 0.8rem 0;
  }

  .topnav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    width: min(22rem, calc(100vw - 1.25rem));
    height: 100dvh;
    max-height: 100vh;
    margin: 0;
    padding: 5.25rem 1.15rem 1.5rem;
    border-left: 2px solid rgba(167, 137, 85, 0.35);
    background:
      linear-gradient(180deg, #fffaf0 0%, #fff7e8 48%, #fffdf7 100%);
    box-shadow: -18px 0 40px rgba(19, 33, 58, 0.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(104%);
    transition: transform 220ms ease;
    pointer-events: none;
  }

  .topbar.nav-open .topnav {
    transform: translateX(0);
    pointer-events: auto;
  }

  .topnav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .topnav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    font-size: 1rem;
  }

  .topnav-link-label {
    font-size: 1rem;
  }

  .topnav-link-icon svg {
    width: 18px;
    height: 18px;
  }

  .topnav-auth {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem 0 0;
    margin: 0;
    border-left: 0;
    border-top: 2px solid rgba(19, 33, 58, 0.08);
  }

  .topnav-auth .btn,
  .topnav-auth .topnav-link-admin {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .auth-user {
    max-width: none;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

@media (max-width: 760px) {
  .site-shell,
  .topbar-inner,
  .admin-shell {
    width: min(100% - 24px, 1180px);
  }

  .section-header,
  .auth-actions,
  .company-overlay-bar,
  .profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section-header {
    gap: 0.85rem;
  }

  .section-header .btn,
  .profile-actions .btn,
  .auth-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: var(--space-3);
  }

  .hero h1,
  .page-title {
    font-size: clamp(1.9rem, 9vw, 2.85rem);
    line-height: 1.12;
  }

  .hero p,
  .muted {
    font-size: 1rem;
  }

  .search-panel,
  .filter-panel,
  .feature-grid,
  .detail-grid,
  .profile-detail-strip,
  .review-summary,
  .two-column,
  .form-grid.two-column,
  .metric-row,
  .sponsored-grid,
  .watchlist-grid,
  .watchlist-item-metrics,
  .watchlist-item-actions {
    grid-template-columns: 1fr;
  }

  .search-panel {
    gap: 0.85rem;
    padding: 1rem;
  }

  .search-panel .btn {
    width: 100%;
  }

  .filter-panel {
    padding: 1rem;
    gap: 0.85rem;
  }

  .filter-pills {
    gap: 0.5rem;
  }

  .filter-pill {
    min-height: 42px;
    padding: 0.55rem 0.95rem;
  }

  .table-card {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .table-wrap {
    overflow: visible;
  }

  /* Desktop column % widths use :nth-child and beat plain `td { width:100% }`.
     Override them explicitly so mobile cards can use the full row width. */
  table {
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
  }

  table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  table tbody {
    display: grid;
    gap: 0.9rem;
  }

  table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.85rem;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 1.05rem 1.1rem 1.15rem;
    border: 2px solid rgba(19, 33, 58, 0.12);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  table tbody tr:hover {
    box-shadow: var(--shadow-lift);
    background: #fff;
  }

  table th:nth-child(n),
  table td:nth-child(n) {
    width: auto;
    max-width: none;
  }

  table tbody td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  table tbody td::before {
    content: attr(data-label);
    flex: none;
    width: auto;
    max-width: none;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  table tbody td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 0.85rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid rgba(19, 33, 58, 0.08);
  }

  table tbody td:first-child::before {
    content: none;
  }

  table tbody td.hide-mobile {
    display: none !important;
  }

  table tbody td[data-label="Vote"] {
    grid-column: 1 / 2;
  }

  table tbody td[data-label="Score"] {
    grid-column: 2 / 3;
    align-items: flex-end;
    text-align: right;
  }

  .company-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
    width: 100%;
    min-width: 0;
  }

  .company-cell-copy {
    min-width: 0;
    width: 100%;
  }

  .company-cell .company-link {
    display: block;
    font-size: 1.12rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .company-cell-blurb {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .company-avatar-stack {
    padding-top: 0.1rem;
  }

  .pay-value,
  .score-value,
  .status-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: normal;
  }

  .vote-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .vote-button {
    min-width: 52px;
    height: 40px;
  }

  .hide-mobile {
    display: none !important;
  }

  .queue-item,
  .profile-card,
  .watchlist-item-card,
  .watchlist-hero-panel,
  .watchlist-summary-card {
    padding: 1rem;
  }

  .queue-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .queue-actions .btn {
    width: 100%;
  }

  .inline-form .btn {
    width: 100%;
  }

  .form-grid {
    gap: 0.85rem;
  }

  label {
    gap: 0.4rem;
  }

  .site-modal-panel,
  .auth-dialog-card.site-modal-panel,
  .dialog-card {
    width: min(100vw - 1.25rem, 34rem);
    max-height: min(92dvh, 92vh);
  }

  .site-modal-scroll,
  .auth-dialog-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .profile-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .profile-title-row h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.55rem);
  }

  .watchlist-item-top,
  .watchlist-item-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .watchlist-status-picker {
    width: 100%;
  }

  .watchlist-status-picker select {
    width: 100%;
  }

  .companies-directory,
  .companies-directory.compact {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .companies-directory li {
    padding: 0.75rem 0.85rem;
    border: 1.5px solid rgba(19, 33, 58, 0.1);
    border-radius: 16px;
    background: #fff;
  }

  .faq-item {
    padding: 0.15rem 0.85rem;
  }

  .metric-row {
    gap: 0.75rem;
  }

  .metric {
    padding: 0.85rem;
  }
}

@media (max-width: 480px) {
  .site-shell,
  .topbar-inner,
  .admin-shell {
    width: min(100% - 18px, 1180px);
  }

  .nav-toggle-label {
    display: none;
  }

  .nav-toggle {
    min-width: 46px;
    padding: 0.55rem 0.7rem;
  }

  .topnav {
    width: min(100vw - 0.75rem, 22rem);
    padding: 5rem 1rem 1.35rem;
  }

  .sponsored-grid {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    height: 24px;
    max-width: 108px;
  }

  .hero-card,
  .search-panel,
  .filter-panel,
  .admin-panel,
  .queue-item {
    border-radius: 20px;
  }

  table tbody tr {
    grid-template-columns: 1fr;
    padding: 0.95rem 1rem 1.05rem;
    gap: 0.75rem;
  }

  table tbody td[data-label="Pay"],
  table tbody td[data-label="Status"],
  table tbody td[data-label="Vote"],
  table tbody td[data-label="Score"] {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  table tbody td[data-label="Score"] {
    align-items: center;
    text-align: left;
  }

  .company-cell .company-link {
    font-size: 1.08rem;
  }
}

.breadcrumbs {
  padding-top: var(--space-2);
  padding-bottom: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.55rem;
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.site-footer { text-align: left;
  margin-top: var(--space-4);
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(19, 33, 58, 0.1);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  align-items: start;
}

.site-footer-col, .site-footer-brand { text-align: left; }
.site-footer-name {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #13213a);
}

.site-footer-brand .muted { margin: 0 0 1rem; max-width: 34ch; line-height: 1.55; }

.site-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #ffc943;
  color: #13213a;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer-cta:hover { filter: brightness(0.96); }

.site-footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.site-footer-links a {
  color: var(--ink, #13213a);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.site-footer-note {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(19, 33, 58, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.companies-directory {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem 1.2rem;
}

.companies-directory li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: baseline;
}

.companies-directory a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.companies-directory a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.companies-directory.compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.companies-index-page,
.not-found-page {
  padding-bottom: var(--space-4);
}

.faq-section {
  padding-bottom: var(--space-4);
}

.faq-list {
  display: grid;
  gap: var(--space-2);
}

.faq-item {
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.2rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
  padding: 0.85rem 0;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.faq-item a {
  color: var(--blue);
  font-weight: 800;
}

.review-intro {
  margin: 0 0 1rem;
  max-width: 46rem;
  color: var(--ink-soft);
}

.profile-updated {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 700;
}

.pay-conflict-note,
.review-count-line {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.published-review {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(19, 33, 58, 0.08);
}

.published-review-meta {
  margin-bottom: 0.35rem;
}

.otc-tools-cta {
  margin: 0 auto var(--space-4);
}

.otc-tools-card p {
  max-width: 46rem;
}

.about-summary {
  margin-bottom: var(--space-4);
}

.about-page {
  padding-bottom: var(--space-4);
}

.about-page .hero {
  margin-bottom: var(--space-3);
}

.about-page .profile-card + .profile-card {
  margin-top: var(--space-2);
}

.about-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.related-companies .companies-directory {
  margin-top: 0.75rem;
}

.community-banner {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(19, 33, 58, 0.88);
  background:
    radial-gradient(circle at 12% 120%, rgba(255, 201, 67, 0.28), transparent 38%),
    radial-gradient(circle at 92% -20%, rgba(233, 79, 55, 0.22), transparent 32%),
    linear-gradient(105deg, #13213a 0%, #16325c 52%, #0b3d91 100%);
  color: #fff7e8;
}

.community-banner-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 0.95rem;
  padding: 1.35rem 0 1.45rem;
}

.community-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.community-banner-copy {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.community-banner-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border: 2px solid #ffc943;
  border-radius: 18px;
  background: rgba(255, 201, 67, 0.14);
  color: #ffc943;
}

.community-banner-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
}

.community-banner-cta {
  flex-shrink: 0;
  background: var(--sun);
  color: var(--ink);
}

.community-banner-features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-banner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 0.65rem;
  border: 2px solid rgba(255, 247, 232, 0.22);
  border-radius: 14px;
  background: rgba(255, 247, 232, 0.1);
  color: #fff7e8;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .community-banner-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .community-banner-top {
    flex-direction: column;
    align-items: stretch;
  }

  .community-banner-cta,
  .otc-tools-card .profile-actions .btn {
    width: 100%;
  }

  .community-banner-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }
}

/* ===== Content pages redesign (best / guides / compare), 2026-11-01 ===== */
.content-page { max-width: 1120px; margin: 0 auto; padding-bottom: 32px; display: grid; gap: 28px; }
.content-page > * { margin: 0 !important; }
.content-page .section-header { display: block; padding: 40px 4px 8px; text-align: left; }
.content-page .section-header h1,
.content-page .guide-article h1 { font-family: var(--font-display, "Fredoka", sans-serif); font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -0.01em; margin: 10px 0 14px; color: var(--ink); max-width: 22ch; }
.content-page .section-header .muted { font-size: 1.08rem; line-height: 1.65; color: var(--ink-soft); max-width: 68ch; margin: 0; }
.content-page .eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--surface-blue); color: var(--blue-dark); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 0; }
.content-page .profile-card { background: var(--surface); border: 1px solid rgba(19,33,58,.08); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(19,33,58,.04), 0 12px 32px rgba(19,33,58,.07); padding: clamp(20px, 3.5vw, 36px); }
.content-page h2 { font-family: var(--font-display, "Fredoka", sans-serif); font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.25; margin: 0 0 14px; color: var(--ink); }
.content-page .guide-article { max-width: none; }
.content-page .guide-article > section { max-width: 72ch; margin: 0 0 30px; }
.content-page .guide-article > section:last-child { margin-bottom: 0; }
.content-page .guide-article p, .content-page .guide-article li { font-size: 1.06rem; line-height: 1.75; color: var(--ink-soft); }
.content-page .guide-article a, .content-page .faq-item p a { color: var(--blue); text-underline-offset: 3px; }
.content-page .guide-article .muted { color: var(--muted); font-size: .98rem; max-width: 72ch; }
.content-page .guide-tools { background: var(--surface-mint); border-radius: var(--radius-sm); padding: 20px 24px; }
/* tables */
.content-page .compare-table { border-collapse: separate !important; border-spacing: 0; font-size: .96rem; min-width: 560px; }
.content-page .compare-table thead th { background: var(--surface-warm); color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 14px 16px; border-bottom: 2px solid var(--border); position: sticky; top: 0; }
.content-page .compare-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.content-page .compare-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.content-page .compare-table thead th a { color: var(--blue-dark); text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.content-page .compare-table tbody th, .content-page .compare-table tbody td { padding: 14px 16px; border-bottom: 1px solid rgba(19,33,58,.08); vertical-align: top; color: var(--ink-soft); background: transparent; line-height: 1.5; }
.content-page .compare-table tbody th { color: var(--ink); font-weight: 800; font-size: .9rem; width: 26%; background: #fbfaf7; }
.content-page .compare-table tbody tr:nth-child(even) td { background: #fcfbf8; }
.content-page .compare-table tbody tr:hover td { background: var(--surface-blue); }
.content-page .compare-table tbody td:first-child a { font-weight: 800; color: var(--blue-dark); text-decoration: none; }
.content-page .compare-table tbody td:first-child a:hover { text-decoration: underline; }
.content-page .compare-table tbody tr:last-child > * { border-bottom: 0; }
/* FAQ */
.content-page .faq-list { display: grid; gap: 10px; }
.content-page .faq-item { border: 1px solid rgba(19,33,58,.1); border-radius: var(--radius-sm); background: #fcfbf8; padding: 0; overflow: hidden; }
.content-page .faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 800; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.content-page .faq-item summary::-webkit-details-marker { display: none; }
.content-page .faq-item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
.content-page .faq-item[open] summary::after { content: "–"; }
.content-page .faq-item p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); line-height: 1.7; }
/* link lists */
.content-page .companies-directory.compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 14px; columns: auto; }
.content-page .companies-directory.compact li { background: #fcfbf8; border: 1px solid rgba(19,33,58,.08); border-radius: 14px; padding: 12px 16px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; break-inside: avoid; }
.content-page .companies-directory.compact li:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--blue); }
.content-page .companies-directory.compact a { font-weight: 800; color: var(--ink); text-decoration: none; }
.content-page .companies-directory.compact .muted { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; }
/* Join OTC free block */
.join-free { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #2b7bf0 0%, #1262d6 38%, #0b3d91 100%); color: #fff; box-shadow: 0 24px 60px rgba(11,61,145,.28); }
.join-free::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,67,.55), rgba(255,201,67,0) 70%); pointer-events: none; }
.join-free::after { content: ""; position: absolute; width: 300px; height: 300px; left: -100px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(22,166,106,.45), rgba(22,166,106,0) 70%); pointer-events: none; }
.join-free-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); }
.join-free-eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.join-free h2 { font-family: var(--font-display, "Fredoka", sans-serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem) !important; line-height: 1.15; margin: 0 0 12px !important; color: #fff !important; }
.join-free-lede { font-size: 1.08rem; line-height: 1.65; margin: 0 0 22px; color: rgba(255,255,255,.9); max-width: 58ch; }
.join-free-benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.join-free-benefits li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(4px); }
.join-free-benefits strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.join-free-benefits strong::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: .8rem; }
.join-free-benefits span { font-size: .9rem; color: rgba(255,255,255,.85); }
.join-free-action { text-align: center; }
.join-free-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 340px; padding: 20px 28px; border-radius: 999px; background: var(--sun); color: var(--ink) !important; font-family: var(--font-display, "Fredoka", sans-serif); font-size: 1.35rem; font-weight: 700; text-decoration: none !important; box-shadow: 0 10px 0 #d99f12, 0 18px 36px rgba(0,0,0,.25); transition: transform .15s ease, box-shadow .15s ease; }
.join-free-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 0 #d99f12, 0 22px 40px rgba(0,0,0,.3); }
.join-free-btn:active { transform: translateY(6px); box-shadow: 0 4px 0 #d99f12, 0 10px 20px rgba(0,0,0,.25); }
.join-free-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.join-free-note { margin: 18px 0 0; font-size: .92rem; color: rgba(255,255,255,.85); }
.join-free-note a { color: #fff; font-weight: 800; }
@media (max-width: 860px) {
  .join-free-inner { grid-template-columns: 1fr; }
  .join-free-benefits { grid-template-columns: 1fr; }
  .content-page .section-header { padding-top: 24px; }
}
.content-page .compare-table { display: table !important; }
.content-page .compare-table thead { display: table-header-group !important; }
.content-page .compare-table tbody { display: table-row-group !important; }
.content-page .compare-table tr { display: table-row !important; }
.content-page .compare-table th, .content-page .compare-table td { display: table-cell !important; }
.content-page .guide-article .compare-table { min-width: 0; border: 1px solid rgba(19,33,58,.08); border-radius: var(--radius-sm); }
body:has(.content-page) { overflow-x: hidden; }
@media (max-width: 600px) {
  .content-page .compare-table { font-size: .88rem; }
  .content-page .compare-table tbody th, .content-page .compare-table tbody td, .content-page .compare-table thead th { padding: 10px 12px; }
  .content-page .profile-card { border-radius: 18px; }
  .join-free { border-radius: 22px; }
  .join-free-btn { font-size: 1.2rem; padding: 18px 22px; }
}
.content-page .guide-article > section:has(table) { max-width: none; }
.content-page .guide-article .compare-table { min-width: 640px; }
.content-page .guide-article .compare-table td:first-child { font-weight: 800; color: var(--ink); }
.content-page .guide-article .compare-table td:first-child { width: 22%; } .content-page .guide-article .compare-table td:nth-child(2) { width: 38%; }

/* Blog hub + Hiring now (2026-11-01) */
.blog-hero { padding: 28px 0 8px; }
.blog-hero h1 { font-family: "Fredoka", sans-serif; font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.12; margin: 6px 0 10px; color: var(--ink); max-width: 22ch; }
.blog-lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 62ch; margin: 0 0 18px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.blog-filter { font: inherit; font-weight: 700; font-size: .92rem; border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.blog-filter span { display: inline-block; margin-left: 4px; font-size: .78rem; color: var(--muted); }
.blog-filter:hover { border-color: var(--blue); color: var(--blue); }
.blog-filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.blog-filter.is-active span { color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 22px 0 36px; }
.blog-card { background: var(--surface); border: 1px solid rgba(167,137,85,.28); border-radius: 18px; box-shadow: 0 6px 18px rgba(30,37,59,.06); transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.blog-card[hidden] { display: none; }
.blog-card-link { display: flex; flex-direction: column; height: 100%; padding: 20px 20px 16px; color: inherit; text-decoration: none; }
.blog-card h2 { font-size: 1.12rem; line-height: 1.3; margin: 12px 0 8px; color: var(--ink); }
.blog-card p { color: var(--muted); font-size: .95rem; line-height: 1.5; margin: 0 0 14px; flex: 1; }
.blog-card-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); border-top: 1px solid rgba(167,137,85,.2); padding-top: 12px; }
.blog-card-meta span { color: var(--blue); font-weight: 700; }
.blog-chip { align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-blue); color: var(--blue-dark); }
.blog-chip-best-lists { background: var(--surface-warm); color: var(--sun-dark); }
.blog-chip-alternatives { background: var(--surface-lavender); color: #4b37a8; }
.blog-chip-comparisons { background: var(--surface-mint); color: var(--mint-dark); }
.blog-chip-hiring-now { background: var(--danger-bg); color: var(--coral-dark); }
.hire-updated { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-mint); color: var(--mint-dark); font-weight: 700; padding: 7px 14px; border-radius: 999px; font-size: .92rem; }
.hire-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(22,166,106,.18); }
.hire-section { margin: 28px 0; }
.hire-section h2 { font-size: 1.3rem; margin: 0 0 14px; }
.hire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hire-card { background: var(--surface); border: 1px solid rgba(167,137,85,.28); border-radius: 18px; padding: 18px 20px; box-shadow: 0 6px 18px rgba(30,37,59,.06); display: flex; flex-direction: column; }
.hire-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hire-card h3 { margin: 0; font-size: 1.12rem; }
.hire-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.hire-card .hire-meta { color: var(--muted); font-size: .85rem; flex: 1; }
.hire-status { white-space: nowrap; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; background: var(--surface-mint); color: var(--mint-dark); }
.hire-status-limited { background: var(--surface-warm); color: var(--sun-dark); }
.hire-status-board { background: var(--surface-blue); color: var(--blue-dark); }
.hire-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; font-size: .92rem; }
.hire-btn { display: inline-block; background: var(--blue); color: #fff !important; font-weight: 800; text-decoration: none; padding: 9px 14px; border-radius: 12px; }
.hire-btn:hover { background: var(--blue-dark); }
.hire-btn-ghost { background: transparent; color: var(--blue) !important; border: 1.5px solid var(--blue); }
.hire-btn-ghost:hover { background: var(--surface-blue); }
.hire-note { color: var(--muted); font-size: .9rem; margin: 16px 0 10px; max-width: 70ch; }
@media (max-width: 600px) { .blog-grid, .hire-grid { grid-template-columns: 1fr; gap: 14px; } .blog-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .blog-filter { flex: 0 0 auto; } }
/* 8 nav items since Blog was added: keep the desktop bar on one line */
@media (min-width: 901px) { .topnav-link-icon { display: none; } .topnav-link { padding: 0.4rem 0.6rem; } }
@media (min-width: 901px) and (max-width: 1700px) { .brand > span { display: none; } }
.hire-updated { flex-wrap: wrap; border-radius: 16px; }

/* FAQ questions are h3 inside summary (question-matching headings) */
.faq-item summary h3.faq-q { display: inline; font: inherit; color: inherit; margin: 0; letter-spacing: inherit; }
/* Guide video facade */
.guide-video .video-facade { position: relative; display: block; max-width: 640px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; margin: 12px 0; background: #0f1b2d; box-shadow: 0 10px 30px rgba(19,33,58,.12); }
.guide-video .video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.guide-video .video-facade:hover img { transform: scale(1.03); }
.guide-video .video-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1262d6; display: grid; place-items: center; font-size: 28px; padding-left: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* Top-rated monthly list, vote badges, pay report (update 12) */
.tr-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.tr-row { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: transform .15s ease, box-shadow .15s ease; }
.tr-row:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(19,33,58,.08); }
.tr-top10 { background: linear-gradient(90deg, var(--surface-blue), var(--surface)); border-color: #b7d3fb; }
.tr-rank { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; background: var(--surface-warm); color: var(--ink); }
.tr-rank.gold { background: #ffc943; } .tr-rank.silver { background: #dfe5ee; } .tr-rank.bronze { background: #f2c39b; }
.tr-name a { font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.tr-name a:hover { color: var(--blue); text-decoration: underline; }
.tr-name small, .tr-score small { display: block; color: var(--muted); font-size: .82rem; }
.tr-score { text-align: right; } .tr-score strong { font-size: 1.25rem; color: var(--mint-dark); }
.method-note ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.vote-badge-card { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.vote-badge-img { flex: 0 0 auto; max-width: 100%; height: auto; }
.vote-badge-copy { flex: 1 1 320px; } .vote-badge-copy h2 { margin: .2rem 0 .4rem; }
.vote-badge-embed summary { cursor: pointer; font-weight: 800; color: var(--blue); margin-top: .5rem; }
.vote-badge-embed textarea { width: 100%; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; padding: .6rem; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; resize: vertical; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.pr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.pr-card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pr-card-top h3 { margin: 0; font-size: 1.1rem; } .pr-card-top h3 a { color: var(--ink); }
.pr-kind { font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-mint); color: var(--mint-dark); }
.pr-card blockquote { margin: 0; padding: .7rem .9rem; border-left: 4px solid var(--blue); background: #f1f5ff; border-radius: 8px; font-size: .95rem; flex: 1; }
.pr-meta { margin: 0; font-size: .85rem; color: var(--muted); }
.pr-none { display: inline-block; font-size: .78rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; background: #fde8e4; color: var(--coral-dark); }
@media (max-width: 560px) { .tr-row { grid-template-columns: 2.6rem 1fr auto; gap: .6rem; padding: .7rem; } }
.blog-chip-reports { background: #fde8e4; color: var(--coral-dark); }

/* Review summary (update 13) */
.rv-section .rv-card { display: grid; gap: 1rem; }
.rv-intro { font-size: 1.05rem; line-height: 1.6; margin: 0; }
.rv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; margin: 0; }
.rv-facts div { background: var(--surface-blue); border-radius: 12px; padding: .7rem .85rem; }
.rv-facts dt { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rv-facts dd { margin: .2rem 0 0; font-weight: 700; color: var(--ink); }
.rv-proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; }
.rv-pros, .rv-cons { border-radius: 14px; padding: .9rem 1rem; }
.rv-pros { background: var(--surface-mint); } .rv-cons { background: #ffe8e4; }
.rv-pros h3, .rv-cons h3 { margin: 0 0 .4rem; }
.rv-pros ul, .rv-cons ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.rv-pros li::marker { content: "✓  "; color: #138a52; } .rv-cons li::marker { content: "–  "; color: #b4321f; }
.rv-method { margin: 0; font-size: .88rem; }
.rv-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.rv-next-card { display: grid; gap: .2rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); transition: transform .15s, box-shadow .15s; }
.rv-next-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(19,33,58,.1); }
.rv-next-card span { color: var(--muted); font-size: .88rem; }

/* Update 15: paginated homepage list */
.list-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 8px; }
.list-more[hidden] { display: none; }

/* Update 15: Member/Pro upsell next to the free Join button on company pages */
.community-banner-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.6rem 1rem; flex-shrink: 0; }
.community-banner-upsell { display: inline-flex; align-items: center; gap: 6px; padding: 0.7rem 1.1rem; border: 2px solid rgba(255, 247, 232, 0.45); border-radius: 999px; color: #fff7e8 !important; font-weight: 800; text-decoration: none !important; transition: background .15s, border-color .15s; }
.community-banner-upsell:hover { background: rgba(255, 247, 232, 0.12); border-color: #ffc943; }
.community-banner-upsell:focus-visible { outline: 3px solid #ffc943; outline-offset: 3px; }
@media (max-width: 720px) { .community-banner-actions { flex-direction: column; align-items: stretch; } .community-banner-upsell { justify-content: center; } }

/* Update 16: official pay quote in the company's own unit, next to the directory figure */
.pay-unit-note {
  margin: .75rem 0 0;
  padding: .6rem .8rem;
  border-left: 4px solid #d97706;
  background: #fff7ed;
  border-radius: 8px;
  color: #3b2a12;
  font-size: .95rem;
  line-height: 1.45;
}
.pay-unit-note a { color: #9a3412; }
.pay-unit-label {
  display: inline-block;
  margin-right: .4rem;
  padding: .05rem .5rem;
  border-radius: 999px;
  background: #9a3412;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Seed-vote small print (2026-11-01) */
.seed-note{display:flex;gap:.45em;align-items:flex-start;margin:.6rem 0 0;padding:.5rem .75rem;max-width:60rem;font-size:.78rem;line-height:1.45;color:#64748b;background:rgba(100,116,139,.07);border-radius:8px}
.seed-note span{opacity:.7;flex:none}

/* Homepage company table: roomier Pay/Status columns, badges wrap inside their cell (2026-11-01) */
@media (min-width: 761px) {
  table:has(#company-table) th:nth-child(1) { width: 22%; }
  table:has(#company-table) th:nth-child(2) { width: 13%; }
  table:has(#company-table) th:nth-child(3) { width: 14%; }
  table:has(#company-table) th:nth-child(4) { width: 13%; }
  table:has(#company-table) th:nth-child(5) { width: 11%; }
  table:has(#company-table) th:nth-child(6) { width: 11.5%; }
  table:has(#company-table) th:nth-child(7) { width: 8.5%; }
  table:has(#company-table) th:nth-child(8) { width: 7%; }
  table:has(#company-table) th:nth-child(n+2),
  #company-table td:nth-child(n+2) { padding-left: 0.9rem; padding-right: 0.9rem; }
  table:has(#company-table) th:nth-child(2),
  table:has(#company-table) th:nth-child(6),
  #company-table td[data-label="Pay"],
  #company-table td[data-label="Status"] { text-align: center; }
}
#company-table .pay-value,
#company-table .status-badge {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
#company-table .status-badge { letter-spacing: 0.02em; padding: 0.35rem 0.6rem; }

/* Update 47 answer-first */
.answer-first{margin:.6rem 0 .4rem;padding:.7rem .9rem;border-left:4px solid var(--accent,#2563eb);background:rgba(37,99,235,.06);border-radius:8px;line-height:1.5;max-width:72ch}

/* P30 mobile overflow (Update 51, 3 Nov 2026): no sideways scroll on phones.
   1) The single content column may shrink below its content's min-content width
      (wide tables already sit in their own overflow-x:auto wrappers).
   2) The closed mobile drawer is display:none instead of only translated off-screen,
      so it no longer widens the page; the slide in/out animation is kept. */
.content-page { grid-template-columns: minmax(0, 1fr); }
/* Company pages: a long unbroken URL in imported text must not widen the column. */
.profile-layout > *, .profile-main > * { min-width: 0; }
.profile-main { overflow-wrap: break-word; }
@media (max-width: 900px) {
  .topbar:not(.nav-open) .topnav { display: none; }
  .topnav { transition: transform 220ms ease, display 220ms allow-discrete; }
  @starting-style { .topbar.nav-open .topnav { transform: translateX(104%); } }
  .content-page .otc-chart { margin: 16px 0; }
}
/* P32a: chart image stays inside its figure at all widths */
.content-page .otc-chart img { display: block; max-width: 100%; height: auto; }

/* P12 branded stat lines */
.otc-stats{margin:14px 0 4px;padding:12px 16px;border-left:4px solid #2f7d5b;background:#f3f8f5;border-radius:10px;font-size:.95rem;line-height:1.5;max-width:860px}
.otc-stats ul{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.otc-stats-src{margin:6px 0 0;font-size:.8rem;color:#5b6b63}
