:root {
  color-scheme: dark;
  --bg: #050b10;
  --surface: #09131a;
  --surface-raised: #0d1a22;
  --surface-soft: #101f28;
  --ink: #f3f7f8;
  --muted: #8fa2aa;
  --muted-bright: #b5c4c9;
  --cyan: #bce9ee;
  --cyan-strong: #75c9d3;
  --gold: #c7a26a;
  --sigil-color: var(--cyan-strong);
  --line: rgba(190, 225, 231, 0.14);
  --line-strong: rgba(190, 225, 231, 0.25);
  --content: 1280px;
  --page-pad: clamp(1rem, 4vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-frame {
  min-height: 100svh;
  background:
    linear-gradient(rgba(117, 201, 211, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 201, 211, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  min-height: 5.25rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.auth-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.5rem;
  min-width: 10.5rem;
}

.auth-loading {
  width: 8rem;
  height: 2.25rem;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--surface-raised);
  animation: auth-pulse 1.4s ease-in-out infinite;
}

.auth-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  min-width: 5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-header-button:hover,
.auth-header-button:focus-visible {
  border-color: var(--cyan-strong);
  color: var(--cyan);
}

.auth-header-button--primary {
  border-color: rgba(199, 162, 106, 0.55);
  background: rgba(199, 162, 106, 0.12);
  color: #e7c999;
}

.auth-header-button--primary:hover,
.auth-header-button--primary:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: #0b0e10;
}

.auth-login-icon {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 12rem;
  height: 2.4rem;
  padding: 0 0.75rem 0 0.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  background: var(--surface-raised);
  cursor: pointer;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-avatar {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid rgba(117, 201, 211, 0.45);
  border-radius: 50%;
  background: rgba(117, 201, 211, 0.12);
  color: var(--cyan);
  font-size: 0.58rem;
  font-weight: 800;
  overflow: hidden;
}

.account-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.account-name {
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  display: grid;
  z-index: 100;
  width: 15rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  background: #10191f;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
}

.account-popover strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover small {
  overflow: hidden;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover button,
.account-popover > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  margin-top: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.account-popover > a {
  margin-bottom: -0.45rem;
}

.account-popover button:hover,
.account-popover > a:hover {
  border-color: var(--cyan-strong);
}

.auth-modal-open {
  overflow: hidden;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.auth-dialog {
  width: min(32rem, 100%);
  min-height: 22.5rem;
  overflow: hidden;
  border: 1px solid #3f464a;
  border-radius: 0.45rem;
  background: #171d21;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.62);
}

.auth-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid #343b3f;
  background: #12181c;
}

.auth-dialog__header h2 {
  margin: 0;
  color: #f4f7f8;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-dialog__header p {
  margin: 0.55rem 0 0;
  color: #a4afb4;
  font-size: 0.82rem;
  line-height: 1.55;
}

.auth-close {
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid #343b3f;
  border-radius: 0.4rem;
  background: #1b2226;
  color: #8f9ba0;
  font-size: 1.4rem;
  line-height: 1;
}

.auth-close:hover {
  border-color: var(--cyan-strong);
  color: white;
}

.auth-dialog__body {
  padding: 1.25rem;
}

.auth-error {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(239, 100, 100, 0.45);
  border-radius: 0.3rem;
  background: rgba(95, 24, 24, 0.28);
  color: #ffc4c4;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.5;
}

.discord-auth-button,
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  border: 1px solid #5865f2;
  border-radius: 0.4rem;
  background: #5865f2;
  color: white;
  font-weight: 800;
}

.discord-auth-button {
  gap: 0.55rem;
}

.discord-auth-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.discord-auth-button:hover:not(:disabled) {
  border-color: #4752c4;
  background: #4752c4;
}

.discord-auth-button:disabled,
.auth-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-alternative,
.auth-switch {
  margin: 1rem 0 0;
  color: #8f9a9f;
  font-size: 0.8rem;
  text-align: center;
}

.auth-alternative button,
.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8ad70;
  font-weight: 800;
}

.auth-alternative button:hover,
.auth-switch button:hover {
  text-decoration: underline;
}

.auth-disclosure {
  margin-top: 1.15rem;
  padding: 0.8rem;
  border: 1px solid #343b3f;
  border-radius: 0.4rem;
  background: #12181c;
  color: #a0aaaf;
  font-size: 0.72rem;
  line-height: 1.65;
}

.auth-email-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.auth-email-nav:not(:has(.auth-back)) {
  grid-template-columns: 1fr;
}

.auth-back {
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #9aa5aa;
  font-size: 1.2rem;
}

.auth-back:hover {
  background: #21282c;
  color: white;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid #343b3f;
  border-radius: 0.4rem;
  background: #12181c;
}

.auth-tabs button {
  min-height: 2.3rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #9aa5aa;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-tabs button.is-active {
  background: var(--gold);
  color: #0b0e10;
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-form label {
  display: grid;
  gap: 0.45rem;
  color: #d7dcde;
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 2.55rem;
  padding: 0 0.8rem;
  border: 1px solid #3a4246;
  border-radius: 0.4rem;
  background: #1a2024;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
}

.auth-form input::placeholder {
  color: #6f7a7f;
}

.auth-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(199, 162, 106, 0.16);
}

.auth-submit {
  margin-top: 0.2rem;
  border-color: var(--gold);
  background: var(--gold);
  color: #0b0e10;
}

.auth-submit:hover:not(:disabled) {
  border-color: #deb981;
  background: #deb981;
}

.auth-toast {
  position: fixed;
  z-index: 10000;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(25rem, calc(100% - 2.5rem));
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  background: #111a1f;
  color: white;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  font-size: 0.78rem;
  line-height: 1.5;
}

.auth-toast.is-success {
  border-color: rgba(139, 217, 186, 0.55);
}

.auth-toast.is-error {
  border-color: rgba(239, 100, 100, 0.55);
}

@keyframes auth-pulse {
  50% { opacity: 0.45; }
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.7rem;
  width: max-content;
  text-decoration: none;
}

.brand__mark {
  width: 2.45rem;
  height: 2.45rem;
}

.brand__text {
  display: grid;
  gap: 0.13rem;
  line-height: 1;
  text-transform: uppercase;
}

.brand__text strong {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.24em;
}

.site-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--cyan-strong);
  content: "";
  box-shadow: 0 0 1rem rgba(117, 201, 211, 0.65);
}

.header-count {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-count span {
  color: var(--cyan);
  font-size: 0.8rem;
}

.header-count::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #8bd9ba;
  content: "";
  box-shadow: 0 0 0.75rem rgba(139, 217, 186, 0.8);
}

.directory-hero {
  --hero-bleed: calc((100vw - 100%) / -2);
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.75fr);
  align-items: end;
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  min-height: 34rem;
  margin: 0 auto;
  border: 0;
  background: transparent;
}

.directory-hero::before,
.directory-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.directory-hero::before {
  inset: -1rem var(--hero-bleed) -5rem var(--hero-bleed);
  background:
    linear-gradient(90deg, #050b10 0%, rgba(5, 11, 16, 0.96) 24%, rgba(5, 11, 16, 0.65) 50%, rgba(5, 11, 16, 0.08) 84%),
    linear-gradient(180deg, rgba(5, 11, 16, 0.45) 0%, transparent 24%, transparent 60%, rgba(5, 11, 16, 0.8) 78%, #050b10 100%);
}

.directory-hero::after {
  right: var(--hero-bleed);
  bottom: -5rem;
  left: var(--hero-bleed);
  height: 11rem;
  background: linear-gradient(180deg, transparent, var(--bg) 72%);
}

.directory-hero__art {
  position: absolute;
  z-index: -2;
  inset: -1rem var(--hero-bleed) -5rem var(--hero-bleed);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 68%, transparent 100%);
}

.directory-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  filter: saturate(0.72) contrast(1.05);
}

.directory-hero__content {
  padding: clamp(4rem, 8vw, 7rem) clamp(0rem, 3vw, 2.5rem) clamp(5rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--cyan-strong);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.directory-hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 7rem);
  font-weight: 330;
  letter-spacing: -0.066em;
  line-height: 0.88;
}

.directory-hero h1 span {
  color: #aabcc1;
}

.directory-hero__content > p:not(.eyebrow) {
  max-width: 35rem;
  margin: 1.55rem 0 0;
  color: #c0cdd1;
  font-size: clamp(0.98rem, 1.5vw, 1.16rem);
  line-height: 1.68;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.65rem;
  border: 1px solid rgba(188, 233, 238, 0.45);
  padding: 0.78rem 1rem;
  background: rgba(9, 22, 29, 0.68);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-action:hover,
.primary-action:focus-visible {
  border-color: var(--cyan);
  background: rgba(117, 201, 211, 0.12);
}

.primary-action span {
  color: var(--cyan);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.65rem;
}

.hero-actions .primary-action {
  margin-top: 0;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  color: #aebfc4;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.secondary-action:hover {
  color: var(--cyan);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-self: end;
  margin: 0 2rem 2rem 0;
  border: 1px solid var(--line);
  background: rgba(5, 13, 18, 0.78);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 1rem 1.15rem;
}

.hero-stats div + div {
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0.25rem 0 0;
  color: var(--cyan);
  font-size: 1.3rem;
  font-weight: 420;
}

.directory {
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
  align-items: end;
  gap: 3rem;
}

.directory-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 390;
  letter-spacing: -0.05em;
  line-height: 1;
}

.directory-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.directory-intro {
  display: grid;
  gap: 0.9rem;
}

.directory-intro .unclaimed-key {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  color: #84979e;
  font-size: 0.75rem;
  line-height: 1.5;
}

.directory-intro .unclaimed-key::before {
  width: 1.15rem;
  height: 1px;
  margin-right: 0.65rem;
  flex: 0 0 auto;
  background: rgba(199, 162, 106, 0.72);
  content: "";
}

.unclaimed-key strong {
  color: #c6d4d7;
}

.directory-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(10rem, 1fr));
  gap: 0.7rem;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  padding: 0.75rem;
  background:
    linear-gradient(110deg, rgba(117, 201, 211, 0.035), transparent 42%),
    rgba(7, 16, 22, 0.9);
}

.directory-filters .search-field {
  grid-column: span 2;
}

.directory-filters .filter-reset {
  min-height: 4.25rem;
}

.filter-field {
  display: grid;
  min-height: 4.25rem;
  min-width: 0;
  border: 1px solid rgba(190, 225, 231, 0.12);
  padding: 0.58rem 0.78rem 0.38rem;
  background: rgba(4, 12, 17, 0.7);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.filter-field:focus-within {
  border-color: rgba(117, 201, 211, 0.52);
  background: rgba(8, 20, 27, 0.92);
  box-shadow: inset 0 0 0 1px rgba(117, 201, 211, 0.08);
}

.filter-field__label {
  color: #71868e;
  font-size: 0.52rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.filter-control {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.directory-filters input,
.directory-filters select {
  width: 100%;
  height: 2.35rem;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #e1eaec;
  font-size: 0.82rem;
}

.directory-filters input::placeholder {
  color: #72858c;
  opacity: 1;
}

.directory-filters input {
  min-width: 0;
  padding: 0 0 0 1.75rem;
}

.directory-filters select {
  appearance: none;
  padding: 0 2rem 0 0;
}

.directory-filters select option,
.directory-filters select optgroup {
  background: #0a161d;
  color: #e1eaec;
}

.search-icon {
  position: absolute;
  left: 0;
  width: 1rem;
  fill: none;
  stroke: #7da0a8;
  stroke-width: 1.6;
}

.select-chevron {
  position: absolute;
  right: 0;
  width: 0.9rem;
  fill: none;
  stroke: #83b5bd;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  pointer-events: none;
}

.filter-reset {
  width: 100%;
  min-height: 4.25rem;
  border: 1px solid rgba(190, 225, 231, 0.15);
  padding: 0 0.8rem;
  background: rgba(4, 12, 17, 0.54);
  color: #b7c6ca;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.filter-reset:not(:disabled):hover,
.filter-reset:not(:disabled):focus-visible {
  border-color: rgba(117, 201, 211, 0.52);
  background: rgba(117, 201, 211, 0.08);
  color: #eff7f8;
  outline: none;
}

.filter-reset:disabled {
  cursor: default;
  opacity: 0.38;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
  border-bottom: 1px solid var(--line);
}

.directory-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.directory-toolbar strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.directory-toolbar p span {
  margin: 0 0.4rem;
  color: rgba(143, 162, 170, 0.45);
}

.view-switcher {
  display: flex;
  gap: 0.25rem;
}

.view-switcher button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.view-switcher button[aria-pressed="true"] {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--cyan);
}

.view-switcher svg {
  width: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.clan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.clan-card {
  --sigil-color: hsl(var(--sigil-hue) 38% 62%);
  position: relative;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  min-height: 13.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sigil-color) 4%, transparent), transparent 36%),
    rgba(9, 19, 26, 0.94);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.clan-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--sigil-color);
  content: "";
  opacity: 0.7;
}

.clan-card:hover {
  border-color: rgba(188, 233, 238, 0.3);
  background-color: rgba(12, 25, 33, 0.98);
}

.clan-card__visual {
  display: flex;
  align-items: center;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 1.15rem 0.65rem;
  background: rgba(2, 9, 13, 0.35);
}

.clan-sigil {
  display: grid;
  width: 3.05rem;
  height: 3.05rem;
  place-items: center;
}

.clan-sigil img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 0.45rem rgba(117, 201, 211, 0.18));
}

.listing-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  color: #92a6ac;
  font-size: 0.54rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.listing-state--managed {
  color: #8ddae5;
}

.spotlight-state {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: #e6b86f;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spotlight-state::before {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0.7rem rgba(224, 168, 92, 0.45);
  content: "";
}

.clan-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0.95rem 1.1rem 0.9rem;
}

.clan-card__top,
.profile-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-index-state {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.card-index-state > span[aria-hidden="true"] {
  color: #42565e;
  font-size: 0.65rem;
}

.card-index-state .listing-state {
  color: #81949a;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.card-index-state .listing-state--managed {
  color: #8ddae5;
}

.indexed-label,
.freshness {
  color: var(--cyan-strong);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.freshness {
  overflow: hidden;
  color: #70838a;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.clan-card h3 {
  margin: 0.45rem 0 0;
  font-size: 1.22rem;
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.clan-card h3 a {
  text-decoration: none;
}

.clan-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.clan-card__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.52rem 0 0;
  color: #a7b7bc;
  font-size: 0.78rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.62rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(190, 225, 231, 0.13);
  padding: 0.2rem 0.4rem;
  background: rgba(188, 233, 238, 0.025);
  color: #9cafb5;
  font-size: 0.59rem;
  letter-spacing: 0.02em;
}

.clan-card__footer {
  display: flex;
  align-items: end;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.7rem;
}

.clan-card__facts {
  display: flex;
  min-width: 0;
  gap: 1.25rem;
  margin: 0;
}

.clan-card__facts div {
  min-width: 0;
}

.clan-card__facts dt {
  color: #61757d;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clan-card__facts dd {
  overflow: hidden;
  margin: 0.2rem 0 0;
  color: #b9c8cc;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clan-grid[data-view="list"] {
  grid-template-columns: 1fr;
}

.clan-grid[data-view="list"] .clan-card {
  grid-template-columns: 5rem minmax(0, 1fr);
  min-height: 11.5rem;
}

.clan-grid[data-view="list"] .clan-card__summary {
  max-width: 60rem;
  -webkit-line-clamp: 2;
}

.empty-state {
  margin-top: 1rem;
  border: 1px dashed var(--line-strong);
  padding: 4rem 1rem;
  color: var(--muted);
  text-align: center;
}

.empty-state p {
  margin: 0;
}

.empty-state button {
  margin-top: 1rem;
  border: 0;
  background: transparent;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  min-height: 7rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: #6f8289;
  font-size: 0.66rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  justify-self: end;
}

.brand--footer {
  opacity: 0.75;
}

/* Clan profile */
.profile-shell {
  min-height: calc(100svh - 7rem);
}

.profile-shell .site-header {
  margin-bottom: 1.5rem;
}

.profile-wrap {
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  margin: 0 auto;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  color: #71848b;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: #9bafb5;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--cyan);
}

.profile-hero {
  --sigil-color: hsl(var(--sigil-hue) 38% 62%);
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem);
  background: #08131a;
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
}

.profile-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 14, 19, 0.98), rgba(6, 14, 19, 0.87) 57%, rgba(6, 14, 19, 0.34)),
    url("/clanfinder-network-20260928.svg") 72% 48% / cover;
  content: "";
  filter: saturate(0.58);
}

.profile-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, color-mix(in srgb, var(--sigil-color) 9%, transparent), transparent 47%);
  content: "";
}

.profile-hero .clan-sigil {
  width: clamp(6rem, 10vw, 8.5rem);
  height: clamp(6rem, 10vw, 8.5rem);
  font-size: 1.2rem;
}

.profile-hero__content {
  min-width: 0;
}

.profile-kicker {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.profile-kicker .listing-state {
  color: #bdc9cc;
  text-align: left;
}

.profile-kicker .listing-state--managed {
  color: #8ddae5;
}

.profile-kicker .spotlight-state {
  margin-top: 0;
}

.profile-kicker .listing-state::after {
  margin-left: 0.65rem;
  color: #51646b;
  content: "·";
}

.profile-hero h1 {
  max-width: 15ch;
  margin: 0.8rem 0 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 340;
  letter-spacing: -0.062em;
  line-height: 0.92;
  text-wrap: balance;
}

.profile-hero__summary {
  max-width: 48rem;
  margin: 1.2rem 0 0;
  color: #b9c8cc;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.65;
}

.profile-actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0.65rem;
  width: 12rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2.8rem;
  border: 1px solid var(--line-strong);
  padding: 0 0.9rem;
  background: rgba(5, 13, 18, 0.65);
  color: #cddadd;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.button--primary {
  border-color: color-mix(in srgb, var(--sigil-color) 48%, transparent);
  background: color-mix(in srgb, var(--sigil-color) 11%, rgba(5, 13, 18, 0.75));
  color: #eef6f7;
}

.button:hover,
.button:focus-visible {
  border-color: var(--cyan);
  color: #fff;
}

.submission-shell,
.dashboard-shell {
  width: min(calc(100% - 2 * var(--page-pad)), 70rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.submission-intro {
  max-width: 58rem;
  margin-bottom: 2.25rem;
}

.submission-intro h1,
.dashboard-heading h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  font-weight: 330;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.submission-intro > p:last-of-type,
.dashboard-heading > div > p:last-child {
  max-width: 48rem;
  margin: 1.2rem 0 0;
  color: #a8bbc0;
  line-height: 1.7;
}

.submission-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
  border: 1px solid var(--line);
}

.submission-steps span {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  color: #9cafb4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.submission-steps span + span {
  border-left: 1px solid var(--line);
}

.submission-steps strong {
  color: var(--cyan);
  font-size: 0.62rem;
}

.submission-gate,
.submission-success {
  border: 1px solid var(--line-strong);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(120deg, rgba(117, 201, 211, 0.07), transparent 50%), rgba(8, 18, 24, 0.92);
}

.submission-gate h2,
.submission-success h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.submission-gate > p:not(.eyebrow),
.submission-success > p:not(.eyebrow) {
  max-width: 45rem;
  margin: 0.9rem 0 1.4rem;
  color: var(--muted);
  line-height: 1.65;
}

.submission-success .button + .button {
  margin-left: 0.55rem;
}

.listing-form {
  display: grid;
  gap: 1rem;
}

.form-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
  align-items: end;
  gap: 2rem;
  margin-top: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.form-section-heading h2,
.dashboard-section__heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.form-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(7, 16, 22, 0.72);
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field > span,
.choice-group legend {
  color: #bdd0d4;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field em {
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(190, 225, 231, 0.18);
  border-radius: 0;
  padding: 0.75rem;
  background: rgba(2, 9, 13, 0.7);
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan-strong);
  outline: none;
  box-shadow: 0 0 0 2px rgba(117, 201, 211, 0.08);
}

.form-field small,
.switch-field small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.choice-group {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(7, 16, 22, 0.58);
}

.choice-group legend {
  padding: 0 0.45rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.choice-grid--tags {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid label {
  position: relative;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
}

.choice-grid span {
  display: grid;
  min-height: 3rem;
  place-items: center;
  border: 1px solid rgba(190, 225, 231, 0.16);
  padding: 0.5rem;
  color: #9fb2b7;
  font-size: 0.67rem;
  text-align: center;
}

.choice-grid input:checked + span {
  border-color: var(--cyan-strong);
  background: rgba(117, 201, 211, 0.1);
  color: #eef8f9;
}

.choice-grid input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.switch-field,
.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0.9rem;
  color: #b8c8cb;
  font-size: 0.76rem;
  line-height: 1.5;
}

.switch-field span {
  display: grid;
  gap: 0.2rem;
}

.switch-field--prominent,
.consent-field {
  margin-top: 0;
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(7, 16, 22, 0.7);
}

.switch-field input,
.consent-field input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--cyan-strong);
}

.form-error {
  border: 1px solid rgba(224, 100, 106, 0.45);
  padding: 0.8rem 1rem;
  background: rgba(112, 26, 32, 0.2);
  color: #f0b7ba;
  font-size: 0.78rem;
}

.form-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.form-actions .button {
  min-width: 12rem;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-heading h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.dashboard-section {
  margin-top: 2.5rem;
}

.dashboard-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.dashboard-section__heading span {
  color: var(--cyan);
  font-size: 1.15rem;
}

.dashboard-grid,
.submission-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card,
.submission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(8, 18, 24, 0.85);
}

.dashboard-card h3,
.submission-row h3 {
  margin: 0.45rem 0 0;
  font-size: 1.15rem;
  font-weight: 520;
}

.dashboard-card p,
.submission-row p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.dashboard-card__actions {
  display: flex;
  gap: 0.5rem;
}

.dashboard-status {
  color: #9aaeb3;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dashboard-status.is-approved,
.dashboard-status.is-managed {
  color: #8ddae5;
}

.dashboard-status.is-pending,
.dashboard-status.is-needs_info {
  color: #e6b86f;
}

.dashboard-status.is-rejected {
  color: #dc8589;
}

.submission-row__note {
  max-width: 50rem;
  color: #c1d0d3 !important;
}

.dashboard-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line-strong);
  padding: 1.25rem;
  color: var(--muted);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.72fr);
  gap: 1rem;
  margin-top: 1rem;
}

.profile-column {
  display: grid;
  gap: 1rem;
}

.profile-panel {
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: rgba(9, 19, 26, 0.9);
}

.profile-panel__label {
  margin: 0 0 0.75rem;
  color: var(--cyan-strong);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 440;
  letter-spacing: -0.035em;
}

.profile-panel__copy {
  margin: 1rem 0 0;
  color: #aebdc1;
  font-size: 0.92rem;
  line-height: 1.75;
}

.claim-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.claim-link:hover,
.claim-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.claim-panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(199, 162, 106, 0.07), transparent 46%),
    rgba(9, 19, 26, 0.9);
}

.claim-panel::before {
  position: absolute;
  top: -1px;
  left: clamp(1.4rem, 3vw, 2.25rem);
  width: 3rem;
  height: 1px;
  background: rgba(199, 162, 106, 0.78);
  content: "";
}

.profile-facts {
  margin: 0;
}

.profile-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.45rem;
  border-bottom: 1px solid var(--line);
}

.profile-facts div:first-child {
  border-top: 1px solid var(--line);
}

.profile-facts dt {
  color: #71848b;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  color: #c3d0d3;
  font-size: 0.75rem;
  text-align: right;
}

.profile-facts .profile-status {
  overflow: visible;
}

.profile-status .listing-state {
  color: #b9c7ca;
}

.profile-status .listing-state--managed {
  color: #8ddae5;
}

.activity-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.activity-indicator::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #8bd9ba;
  content: "";
  box-shadow: 0 0 0.6rem rgba(139, 217, 186, 0.7);
}

.profile-note {
  margin: 1rem 0 0;
  color: #70838a;
  font-size: 0.71rem;
  line-height: 1.6;
}

.related-section {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.related-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.related-section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 410;
  letter-spacing: -0.04em;
}

.related-section__heading a {
  color: var(--muted-bright);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.related-card {
  --sigil-color: hsl(var(--sigil-hue) 38% 62%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--line);
  padding: 1rem;
  background: var(--surface);
  text-decoration: none;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--line-strong);
}

.related-card .clan-sigil {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 0.56rem;
}

.related-card strong {
  display: block;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.6rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(12rem, 1fr) auto auto;
  }

  .header-count {
    display: none;
  }
}

@media (max-width: 980px) {
  .directory-hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    width: min(32rem, calc(100% - 4rem));
    margin: 0 2rem 2rem;
  }

  .directory-filters {
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
  }

  .clan-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-actions {
    grid-column: 1 / -1;
    width: auto;
    flex-direction: row;
  }

  .profile-actions .button {
    flex: 1;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .submission-steps,
  .choice-grid,
  .choice-grid--tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submission-steps span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .submission-steps span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .form-section-heading,
  .form-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-heading,
  .dashboard-card,
  .submission-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 4.5rem;
  }

  .site-nav {
    display: none;
  }

  .header-count {
    display: none;
  }

  .auth-controls {
    grid-column: 2;
    min-width: 0;
  }

  .auth-header-button {
    min-width: 4.6rem;
    padding-inline: 0.65rem;
  }

  .auth-controls .auth-header-button--primary {
    display: none;
  }

  .auth-header-button[data-auth-open="login"] {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0;
  }

  .auth-header-button[data-auth-open="login"] span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .auth-login-icon {
    display: block;
  }

  .directory-hero {
    min-height: 39rem;
    margin-top: 0;
  }

  .directory-hero__art {
    inset: -1rem var(--hero-bleed) -7rem var(--hero-bleed);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, #000 56%, transparent 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, #000 56%, transparent 100%);
  }

  .directory-hero::before {
    inset: -1rem var(--hero-bleed) -7rem var(--hero-bleed);
    background:
      linear-gradient(90deg, rgba(5, 11, 16, 0.88), rgba(5, 11, 16, 0.25)),
      linear-gradient(180deg, rgba(5, 11, 16, 0.18) 0%, rgba(5, 11, 16, 0.12) 42%, rgba(5, 11, 16, 0.86) 73%, #050b10 96%);
  }

  .directory-hero::after {
    right: var(--hero-bleed);
    bottom: -7rem;
    left: var(--hero-bleed);
    height: 15rem;
  }

  .directory-hero__content {
    align-self: end;
    padding: 5rem 0 9rem;
  }

  .directory-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .hero-stats {
    position: absolute;
    right: 0;
    bottom: 1rem;
    left: 0;
    width: auto;
    margin: 0;
  }

  .hero-stats div {
    padding: 0.8rem 0.65rem;
  }

  .hero-stats dt {
    font-size: 0.48rem;
  }

  .hero-stats dd {
    font-size: 1rem;
  }

  .directory-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .directory-filters {
    grid-template-columns: 1fr;
  }

  .filter-reset {
    grid-column: auto;
    min-height: 3.15rem;
  }

  .directory-toolbar .directory-meta {
    display: none;
  }

  .clan-card,
  .clan-grid[data-view="list"] .clan-card {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    min-height: 12.75rem;
  }

  .clan-card__visual {
    padding-inline: 0.55rem;
  }

  .clan-card .clan-sigil {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.55rem;
  }

  .clan-card__body {
    padding: 1rem;
  }

  .clan-card__footer {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    padding-block: 1.25rem;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 1.5rem;
  }

  .profile-hero > .clan-sigil {
    width: 5rem;
    height: 5rem;
  }

  .profile-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .profile-actions {
    grid-column: auto;
    flex-direction: column;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 470px) {
  .account-name {
    display: none;
  }

  .account-menu summary {
    padding-right: 0.3rem;
  }

  .auth-dialog__header,
  .auth-dialog__body {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .clan-card {
    transition: none;
  }
}


/* Product-depth and navigation parity layer. */
.site-header {
  grid-template-columns: minmax(11rem, 1fr) auto minmax(0, 1fr) auto;
  column-gap: clamp(0.75rem, 1.5vw, 1.4rem);
}

.site-nav {
  gap: clamp(0.8rem, 1.5vw, 1.55rem);
}

.site-nav a {
  white-space: nowrap;
}

.nav-count {
  display: inline-grid;
  min-width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.22rem;
  padding-inline: 0.24rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--cyan);
  color: var(--bg);
  font-size: 0.55rem;
}

.nav-count[hidden] {
  display: none;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  place-content: center;
  gap: 0.27rem;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--ink);
}

.mobile-nav > nav {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  width: min(17rem, calc(100vw - 2rem));
  padding: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  background: rgba(7, 16, 23, 0.98);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.5);
}

.mobile-nav > nav a {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-nav > nav a:last-child {
  border-bottom: 0;
  color: var(--cyan);
}

.directory-status-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0 1.25rem;
  border: 1px solid var(--line);
}

.directory-status-tabs button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  min-height: 6.25rem;
  padding: 1rem 1.2rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(7, 16, 23, 0.48);
  color: var(--ink);
  text-align: left;
}

.directory-status-tabs button:last-child {
  border-right: 0;
}

.directory-status-tabs button:hover,
.directory-status-tabs button:focus-visible,
.directory-status-tabs button.is-active {
  background: rgba(117, 201, 211, 0.075);
  box-shadow: inset 0 -2px var(--cyan);
}

.directory-status-tabs span {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.directory-status-tabs strong {
  color: var(--cyan);
  font-size: 1.35rem;
  font-weight: 400;
}

.directory-status-tabs small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.68rem;
}

.directory-display-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sort-control select {
  min-height: 2.35rem;
  padding: 0 2rem 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.2rem;
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
}

.directory-page .directory-hero {
  display: none;
}

.directory-page .directory {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.directory-heading h1 {
  max-width: 14ch;
  margin: 0.35rem 0 0;
  font-size: clamp(2.7rem, 5.7vw, 5.3rem);
  font-weight: 250;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.clan-card__footer {
  gap: 1rem;
}

.compare-toggle,
.compare-remove {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-height: 2.2rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.2rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-discord-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem .7rem;
  border: 1px solid color-mix(in srgb, var(--gold) 58%, var(--line-strong));
  border-radius: .2rem;
  background: rgba(217, 170, 99, .07);
  color: var(--gold);
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.card-discord-link:hover,
.card-discord-link:focus-visible {
  border-color: var(--gold);
  background: rgba(217, 170, 99, .13);
  color: #f0c888;
}

.compare-toggle:hover,
.compare-toggle:focus-visible,
.compare-toggle.is-selected,
.compare-remove:hover,
.compare-remove:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.profile-actions .compare-toggle {
  width: 100%;
  min-height: 3rem;
  color: var(--ink);
}

.text-action {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-transform: uppercase;
}

.profile-action-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.load-more-wrap .button {
  min-width: 13rem;
}

.load-more-wrap .button[hidden] {
  display: none;
}

.compare-toast {
  position: fixed;
  z-index: 1000;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(24rem, calc(100vw - 2.5rem));
  padding: 0.9rem 1rem;
  border: 1px solid var(--cyan);
  border-radius: 0.25rem;
  background: #0b1820;
  color: var(--ink);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.48);
  font-size: 0.76rem;
}

.site-footer--expanded {
  grid-template-columns: minmax(14rem, 1.5fr) repeat(3, minmax(8rem, 1fr));
  align-items: start;
  min-height: 0;
  padding-block: 2.5rem 1.3rem;
}

.site-footer--expanded .footer-brand {
  display: grid;
  gap: 1rem;
}

.site-footer--expanded .footer-brand p {
  max-width: 30rem;
  line-height: 1.7;
}

.site-footer--expanded nav {
  display: grid;
  gap: 0.65rem;
}

.site-footer--expanded nav strong {
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.61rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-footer--expanded nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer--expanded nav a:hover,
.site-footer--expanded nav a:focus-visible {
  color: var(--cyan);
}

.site-footer--expanded .footer-copy {
  grid-column: 1 / -1;
  justify-self: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Comparison, recruitment, and trust pages. */
.content-shell,
.compare-shell {
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  min-height: calc(100svh - 12rem);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.content-hero,
.compare-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.content-hero h1,
.compare-heading h1 {
  max-width: 12ch;
  margin: 0.4rem 0 0;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  font-weight: 250;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.content-hero > p,
.compare-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.7;
}

.content-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.content-panel,
.faq-item {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--bg);
}

.content-panel h2,
.faq-item h2 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 500;
}

.content-panel p,
.content-panel li,
.faq-item p {
  color: var(--muted);
  line-height: 1.75;
}

.content-panel ul,
.content-panel ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.content-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.comparison-root {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.comparison-table {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.65fr) repeat(var(--compare-columns), minmax(14rem, 1fr));
  min-width: calc(9rem + var(--compare-columns) * 14rem);
  gap: 1px;
  background: var(--line);
}

.comparison-table--1 { --compare-columns: 1; }
.comparison-table--2 { --compare-columns: 2; }
.comparison-table--3 { --compare-columns: 3; }
.comparison-table--4 { --compare-columns: 4; }

.sigil-tone-0 { --sigil-hue: 175; }
.sigil-tone-1 { --sigil-hue: 183; }
.sigil-tone-2 { --sigil-hue: 191; }
.sigil-tone-3 { --sigil-hue: 199; }
.sigil-tone-4 { --sigil-hue: 207; }
.sigil-tone-5 { --sigil-hue: 215; }
.sigil-tone-6 { --sigil-hue: 223; }
.sigil-tone-7 { --sigil-hue: 231; }

.comparison-corner,
.comparison-label,
.comparison-clan,
.comparison-value {
  background: var(--bg);
}

.comparison-corner,
.comparison-label {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.comparison-clan {
  display: flex;
  min-height: 16rem;
  padding: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
}

.comparison-clan h2 {
  margin: 1rem 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 450;
}

.comparison-clan p {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.comparison-actions {
  display: flex;
  width: 100%;
  margin-top: auto;
  gap: 0.5rem;
}

.comparison-actions .button {
  flex: 1;
}

.comparison-value {
  padding: 1rem;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.5;
}

.comparison-empty {
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  text-align: center;
}

.comparison-empty h2 {
  margin-top: 0;
  font-weight: 400;
}

.comparison-empty p,
.comparison-error {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(11rem, 1fr) auto auto;
  }
}

@media (max-width: 860px) {
  .site-footer--expanded {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer--expanded .footer-brand,
  .site-footer--expanded .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 0.55rem;
  }

  .mobile-nav {
    display: block;
    grid-column: 2;
  }

  .auth-controls {
    grid-column: 3;
  }

  .directory-status-tabs,
  .content-grid,
  .faq-grid,
  .content-hero,
  .compare-heading {
    grid-template-columns: 1fr;
  }

  .directory-status-tabs button {
    min-height: 4.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .directory-status-tabs button:last-child {
    border-bottom: 0;
  }

  .directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-display-controls {
    width: 100%;
    justify-content: space-between;
  }

  .clan-card__footer {
    display: flex;
  }

  .clan-card__facts {
    display: none;
  }

  .site-footer--expanded {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }

  .site-footer--expanded .footer-brand,
  .site-footer--expanded .footer-copy {
    grid-column: 1 / -1;
  }

  .site-footer--expanded > nav:last-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 470px) {
  .brand__text {
    display: none;
  }

  .directory-display-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    justify-content: space-between;
  }

  .sort-control select {
    flex: 1;
  }
}

.discovery-links {
  width: min(100% - 2rem, 88rem);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.discovery-links__heading,
.discovery-results-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.discovery-links__heading h2,
.discovery-results-heading h2 {
  margin: .3rem 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}

.discovery-links__heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.discovery-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.discovery-link-grid a {
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.discovery-link-grid a:hover,
.discovery-link-grid a[aria-current="page"] {
  background: color-mix(in srgb, var(--cyan) 9%, transparent);
  color: var(--cyan);
}

.discovery-link-grid strong {
  color: var(--muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  align-items: center;
  margin-top: 1.4rem;
  color: var(--muted);
}

.guide-links strong {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
}

.guide-links a,
.discovery-results-heading a,
.discovery-note a,
.profile-discovery-links a {
  color: var(--cyan);
  text-underline-offset: .24em;
}

.discovery-shell,
.guide-shell {
  width: min(100% - 2rem, 88rem);
  margin: 0 auto;
  padding: 1.5rem 0 clamp(4rem, 8vw, 7rem);
}

.discovery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14rem;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin: clamp(2rem, 5vw, 5rem) 0 1.5rem;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.discovery-hero h1,
.guide-article > header h1 {
  max-width: 18ch;
  margin: .4rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.055em;
}

.discovery-hero p,
.guide-article > header > p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.discovery-hero aside {
  display: grid;
  padding: 1.3rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.discovery-hero aside strong {
  color: var(--gold);
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
}

.discovery-hero aside span {
  margin-top: .45rem;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}

.discovery-note {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 5%, transparent);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.discovery-note p { margin: 0; }
.discovery-note a { flex: 0 0 auto; }
.discovery-results-heading { margin-top: 0; }
.discovery-results-heading > a { justify-self: end; }
.discovery-shell > .clan-grid { margin-bottom: clamp(4rem, 8vw, 7rem); }
.discovery-shell > .discovery-links { width: 100%; margin-bottom: 0; }

.profile-discovery-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}

.profile-discovery-links strong {
  width: 100%;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .68rem;
}

.guide-article {
  width: min(100%, 56rem);
  margin: clamp(2rem, 6vw, 5rem) auto 0;
}

.guide-article > header {
  margin-bottom: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.guide-byline {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.guide-article > section {
  margin: 0 0 3.2rem;
}

.guide-article h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.guide-article h3 {
  margin: 2rem 0 .55rem;
  color: var(--gold);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.guide-article section p,
.guide-article section li {
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  line-height: 1.8;
}

.guide-article section a { color: var(--cyan); text-underline-offset: .22em; }
.guide-article section li + li { margin-top: .65rem; }
.guide-table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.guide-table-wrap table { width: 100%; border-collapse: collapse; }
.guide-table-wrap th,
.guide-table-wrap td { padding: .85rem 1rem; border: 1px solid var(--line); text-align: left; }
.guide-table-wrap thead th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.guide-table-wrap tbody th { color: var(--gold); }

.guide-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.guide-cta strong { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.guide-cta p { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; }

@media (max-width: 800px) {
  .discovery-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-links__heading,
  .discovery-results-heading,
  .discovery-hero { grid-template-columns: 1fr; }
  .discovery-hero aside { width: min(100%, 16rem); }
  .discovery-note,
  .guide-cta { align-items: flex-start; flex-direction: column; }
  .discovery-results-heading > a { justify-self: start; }
}

@media (max-width: 470px) {
  .discovery-link-grid { grid-template-columns: 1fr; }
  .discovery-hero h1,
  .guide-article > header h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
}

/* Community actions and hourly Spotlight. */
.community-actions {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: .2rem;
  background: rgba(3, 10, 14, .38);
}

.community-action {
  display: inline-flex;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .45rem .55rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .55rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
  cursor: pointer;
}

.community-action:last-child { border-right: 0; }
.community-action svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.community-action strong { min-width: .75rem; color: #82959b; font-size: .58rem; font-variant-numeric: tabular-nums; }
.community-action:hover,
.community-action:focus-visible { color: var(--cyan); }
.community-action.is-selected { background: rgba(117, 201, 211, .09); color: var(--cyan); }
.community-action--recommend.is-selected { color: var(--gold); }
.community-action:disabled { cursor: wait; opacity: .55; }

.clan-card__footer {
  flex-wrap: wrap;
}

.clan-card__facts { margin-right: auto; }

.community-actions--profile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.community-actions--profile .community-action {
  min-width: 0;
  min-height: 3.1rem;
  flex-direction: column;
  gap: .18rem;
  padding: .4rem .2rem;
  letter-spacing: .04em;
}

.community-actions--profile .community-action svg { width: 1rem; height: 1rem; }
.community-actions--profile .community-action strong { position: absolute; margin: -1.35rem 0 0 1.7rem; }

.spotlight-hub {
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  margin: clamp(1rem, 3vw, 2.5rem) auto clamp(4rem, 8vw, 7rem);
}

.spotlight-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 34rem);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.spotlight-heading h2 {
  margin: .3rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 350;
  letter-spacing: -.05em;
  line-height: .95;
}

.spotlight-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.7;
}

.spotlight-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(19rem, .7fr);
  min-height: 23rem;
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.spotlight-feature {
  --sigil-color: hsl(var(--sigil-hue, 190) 38% 62%);
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(105deg, rgba(5, 13, 18, .98) 10%, rgba(5, 13, 18, .8) 58%, rgba(5, 13, 18, .34)),
    url("/clanfinder-network-20260928.svg") 70% 48% / cover;
}

.spotlight-feature::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 22% 50%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 30%),
    linear-gradient(120deg, color-mix(in srgb, var(--sigil-color) 8%, transparent), transparent 48%);
  content: "";
}

.spotlight-feature__beam {
  position: absolute;
  z-index: -1;
  top: -7rem;
  left: 4%;
  width: 18rem;
  height: 38rem;
  transform: rotate(13deg);
  background: linear-gradient(90deg, transparent, rgba(224, 177, 106, .075), transparent);
  pointer-events: none;
}

.spotlight-feature > .clan-sigil {
  width: clamp(6rem, 11vw, 9rem);
  height: clamp(6rem, 11vw, 9rem);
  filter: drop-shadow(0 0 1.5rem rgba(217, 170, 99, .22));
}

.spotlight-live-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--gold);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.spotlight-live-label::before {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 1rem currentColor;
  content: "";
}

.spotlight-feature h3 {
  max-width: 14ch;
  margin: .7rem 0 .8rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 380;
  letter-spacing: -.05em;
  line-height: .96;
}

.spotlight-feature h3 a { color: var(--ink); text-decoration: none; }
.spotlight-feature__content > p,
.spotlight-feature__empty > p { max-width: 42rem; margin: 0; color: #b5c4c8; font-size: .86rem; line-height: 1.65; }
.spotlight-feature .community-actions { margin-top: 1.2rem; }
.spotlight-feature__empty { grid-column: 1 / -1; max-width: 42rem; }
.spotlight-feature__empty .button { width: fit-content; margin-top: 1.4rem; }

.spotlight-race {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.5rem;
  background: #071017;
}

.spotlight-race__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.spotlight-race__header > div > span {
  color: var(--cyan-strong);
  font-size: .56rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.spotlight-race__header h3 { margin: .25rem 0 0; font-size: 1rem; font-weight: 550; }
.spotlight-countdown {
  display: grid;
  min-width: 6.7rem;
  gap: .2rem;
  justify-items: end;
  margin-left: auto;
  text-align: right;
}

.spotlight-countdown span {
  color: var(--muted);
  font-size: .49rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.spotlight-countdown strong {
  color: var(--cyan);
  font-family: var(--display);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 520;
  letter-spacing: .08em;
  line-height: 1;
}
.spotlight-race ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.spotlight-race li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .8rem; align-items: center; min-height: 3.4rem; border-bottom: 1px solid var(--line); }
.spotlight-race li > span { color: #53676e; font-size: .6rem; font-variant-numeric: tabular-nums; }
.spotlight-race li > a { overflow: hidden; color: var(--ink); font-size: .74rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-race li > a:hover { color: var(--cyan); }
.spotlight-race li > strong { color: var(--gold); font-size: .78rem; font-variant-numeric: tabular-nums; }
.spotlight-race li.spotlight-race__empty { grid-template-columns: 2rem 1fr; min-height: 7rem; }
.spotlight-race__empty p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.spotlight-race__rules { display: grid; gap: .45rem; margin-top: auto; padding-top: 1.2rem; color: #63777e; font-size: .58rem; letter-spacing: .055em; text-transform: uppercase; }
.spotlight-race__rules span::before { margin-right: .45rem; color: var(--cyan); content: "◆"; font-size: .4rem; }

.community-toast {
  position: fixed;
  z-index: 10000;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(27rem, calc(100% - 2.5rem));
  padding: .95rem 1rem;
  border: 1px solid var(--cyan);
  border-radius: .25rem;
  background: #0b1820;
  color: var(--ink);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .5);
  font-size: .76rem;
  line-height: 1.5;
}

.community-toast.is-error { border-color: #df7777; }
.community-toast.is-notice { border-color: var(--gold); }

@media (max-width: 1050px) {
  .spotlight-stage { grid-template-columns: 1fr; }
  .spotlight-race { min-height: 20rem; }
}

@media (max-width: 780px) {
  .spotlight-heading { grid-template-columns: 1fr; }
  .spotlight-feature { grid-template-columns: 1fr; }
  .spotlight-feature > .clan-sigil { width: 5.5rem; height: 5.5rem; }
  .spotlight-feature__empty { grid-column: auto; }
  .community-action span { display: none; }
  .community-action { min-width: 2.3rem; }
}

@media (max-width: 470px) {
  .spotlight-hub { width: calc(100% - 2rem); }
  .spotlight-feature { padding: 1.5rem; }
  .spotlight-feature h3 { font-size: 2.45rem; }
  .spotlight-race { padding: 1.1rem; }
  .clan-card__footer { gap: .55rem; }
  .community-actions { order: 2; }
  .card-discord-link { order: 3; }
  .compare-toggle { order: 4; }
}


/* Clan community boards and richer owner-managed recruitment profiles. */
.community-action { text-decoration: none; }

.community-actions--profile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-actions--profile .community-action:nth-child(2n) { border-right: 0; }
.community-actions--profile .community-action:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

.community-action--board:hover,
.community-action--board:focus-visible { color: var(--gold); }

.discord-mark { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; fill: currentColor; }

.community-action--discord {
  min-width: 2.45rem;
  padding-inline: .62rem;
  border-color: rgba(88, 101, 242, .52);
  background: rgba(88, 101, 242, .12);
  color: #aeb5ff;
}

.community-action--discord .discord-mark { width: 1.05rem; height: 1.05rem; }
.community-action--discord:hover,
.community-action--discord:focus-visible { background: rgba(88, 101, 242, .2); color: #d9dcff; }

.discord-button {
  border-color: rgba(88, 101, 242, .68);
  background: linear-gradient(135deg, rgba(88, 101, 242, .22), rgba(88, 101, 242, .1));
}
.discord-button:hover,
.discord-button:focus-visible { border-color: #8c96ff; color: #fff; }

.clan-card__action-rail {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: .55rem;
  margin-left: auto;
}

.clan-card__action-rail .compare-toggle { min-height: 2.2rem; }

.community-actions--profile .community-action strong {
  position: static;
  margin: 0;
}

.recruitment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.recruitment-detail-grid > div {
  min-width: 0;
  padding: 1.15rem;
  background: rgba(5, 14, 20, .96);
}

.recruitment-detail-grid h3 {
  margin: 0 0 .5rem;
  color: var(--gold);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.recruitment-detail-grid p {
  margin: 0;
  color: var(--muted-bright);
  font-size: .86rem;
  line-height: 1.65;
  white-space: pre-line;
}

.clan-board {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  scroll-margin-top: 1.5rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(117, 201, 211, .045), transparent 32%),
    rgba(5, 13, 18, .93);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.clan-board__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.clan-board__heading h2 {
  margin: .15rem 0 .45rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 420;
  letter-spacing: -.03em;
}

.clan-board__heading p:last-child {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

.clan-board__icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(117, 201, 211, .3);
  background: rgba(117, 201, 211, .08);
  color: var(--cyan);
}

.clan-board__icon svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.clan-board__count {
  display: flex;
  min-width: 5rem;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.clan-board__count strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 450;
  letter-spacing: 0;
}

.clan-board__composer { padding: clamp(1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--line); }
.clan-board__composer > p { margin: 0; color: var(--muted); }

.clan-board__signin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(1, 7, 10, .35);
}

.clan-board__signin p { margin: 0; color: var(--muted-bright); font-size: .85rem; }

.board-compose-form label {
  display: block;
  margin-bottom: .55rem;
  color: var(--text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.board-compose-form textarea,
.board-reply-form textarea,
.board-report-dialog textarea,
.board-report-dialog select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(1, 7, 10, .65);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
}

.board-compose-form textarea,
.board-reply-form textarea,
.board-report-dialog textarea { min-height: 6.5rem; padding: .9rem; resize: vertical; line-height: 1.55; }
.board-report-dialog select { min-height: 2.8rem; padding: .65rem .75rem; }
.board-compose-form textarea:focus,
.board-reply-form textarea:focus,
.board-report-dialog textarea:focus,
.board-report-dialog select:focus { border-color: var(--cyan); outline: 2px solid rgba(117, 201, 211, .12); }

.board-compose-form__footer,
.board-reply-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .8rem;
  margin-top: .65rem;
}

.board-compose-form__footer span { margin-right: auto; color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.clan-board__threads { padding: 0 clamp(1rem, 2.5vw, 1.5rem); }

.board-thread { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.board-thread:last-child { border-bottom: 0; }

.board-post { min-width: 0; }
.board-post__header { display: flex; gap: .75rem; align-items: center; }
.board-avatar {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(117, 201, 211, .1);
  color: var(--cyan);
  font-weight: 800;
}
.board-avatar img { width: 100%; height: 100%; object-fit: cover; }
.board-post__identity { display: flex; min-width: 0; flex-direction: column; gap: .16rem; }
.board-post__identity strong { overflow: hidden; color: var(--text); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.board-post__identity span { color: var(--muted); font-size: .65rem; }
.board-post__body { margin: .8rem 0 .7rem 3.15rem; color: var(--muted-bright); font-size: .9rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.board-post__actions { display: flex; gap: .9rem; margin-left: 3.15rem; }

.board-text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
.board-text-action:hover,
.board-text-action:focus-visible,
.board-text-action.is-selected { color: var(--cyan); }
.board-text-action--danger:hover,
.board-text-action--danger:focus-visible { color: #ef8888; }
.board-text-action:disabled { cursor: wait; opacity: .5; }

.board-thread__replies {
  display: grid;
  gap: 1rem;
  margin: 1.1rem 0 0 3.15rem;
  padding: 1rem 0 0 1.1rem;
  border-top: 1px solid rgba(96, 133, 142, .14);
  border-left: 2px solid rgba(117, 201, 211, .18);
}
.board-post--reply .board-post__body { margin-left: 3.15rem; }
.board-post--reply .board-post__actions { margin-left: 3.15rem; }

.board-reply-form { margin: .9rem 0 0 3.15rem; }
.board-reply-form textarea { min-height: 5.2rem; }
.clan-board__empty { padding: 2rem 0; text-align: center; }
.clan-board__empty strong { color: var(--text); }
.clan-board__empty p { margin: .35rem 0 0; color: var(--muted); font-size: .84rem; }
.clan-board__load-error { margin: 0; padding: 1.5rem 0; color: #efaaaa; }

.clan-board__notice {
  margin: 1rem clamp(1rem, 2.5vw, 1.5rem) 0;
  padding: .75rem .9rem;
  border: 1px solid #d36d6d;
  background: rgba(130, 31, 31, .12);
  color: var(--muted-bright);
  font-size: .8rem;
}
.clan-board__notice.is-success { border-color: rgba(117, 201, 211, .45); background: rgba(117, 201, 211, .08); }

.board-report-dialog {
  width: min(calc(100% - 2rem), 32rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #071219;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .65);
}
.board-report-dialog::backdrop { background: rgba(0, 5, 8, .78); backdrop-filter: blur(4px); }
.board-report-dialog form { display: grid; gap: 1rem; padding: 1.4rem; }
.board-report-dialog__heading { display: flex; justify-content: space-between; gap: 1rem; }
.board-report-dialog h2 { margin: .2rem 0 0; font-family: var(--display); font-size: 2rem; font-weight: 450; }
.board-report-dialog label { display: grid; gap: .45rem; color: var(--muted-bright); font-size: .75rem; font-weight: 700; }
.board-report-dialog label span,
.board-report-dialog > form > p { color: var(--muted); font-size: .72rem; font-weight: 400; }
.board-dialog-close { border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.board-report-dialog__actions { display: flex; justify-content: flex-end; gap: .65rem; }

@media (max-width: 720px) {
  .clan-card__action-rail { width: 100%; margin-left: 0; }
  .recruitment-detail-grid { grid-template-columns: 1fr; }
  .clan-board__heading { grid-template-columns: auto minmax(0, 1fr); }
  .clan-board__count { grid-column: 2; align-items: flex-start; flex-direction: row; gap: .35rem; }
  .clan-board__count strong { font-size: .8rem; }
  .clan-board__signin { align-items: flex-start; flex-direction: column; }
  .board-thread__replies { margin-left: .65rem; padding-left: .75rem; }
  .board-post__body,
  .board-post__actions,
  .board-reply-form,
  .board-post--reply .board-post__body,
  .board-post--reply .board-post__actions { margin-left: 0; }
}


/* Self-contained action controls: prevents narrow profiles inheriting native SVG/button sizing. */
.community-actions {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: .2rem;
  background: rgba(3, 10, 14, .38);
}

.community-action {
  display: inline-flex;
  min-width: 0;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .45rem .55rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .55rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.community-action:last-child { border-right: 0; }
.community-action svg {
  display: block;
  width: .9rem;
  height: .9rem;
  flex: 0 0 .9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.community-action strong { min-width: .75rem; color: #82959b; font-size: .58rem; font-variant-numeric: tabular-nums; }

.community-actions--profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
.community-actions--profile .community-action {
  min-height: 3.1rem;
  flex-direction: column;
  gap: .18rem;
  padding: .4rem .2rem;
  letter-spacing: .04em;
}
.community-actions--profile .community-action:nth-child(2n) { border-right: 0; }
.community-actions--profile .community-action:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.community-actions--profile .community-action svg { width: 1rem; height: 1rem; flex-basis: 1rem; }
.community-actions--profile .community-action strong { position: static; margin: 0; }

.community-action--discord .discord-mark {
  width: 1.05rem;
  height: 1.05rem;
  flex-basis: 1.05rem;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 780px) {
  .community-action span:not(.sr-only) { display: inline; }
  .community-actions--profile { order: initial; }
}


.account-avatar { overflow: hidden; }
.account-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Prominent publishing and claim actions. */
.site-nav a[href="/list-your-clan/"] {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  padding: 0 1rem;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, var(--line-strong));
  background: rgba(217, 170, 99, .11);
  color: #edc783;
}
.site-nav a[href="/list-your-clan/"]:hover,
.site-nav a[href="/list-your-clan/"]:focus-visible { border-color: var(--gold); background: rgba(217, 170, 99, .18); color: #ffe2aa; }

.claim-flag {
  display: inline-flex;
  align-items: center;
  margin-left: .45rem;
  padding-left: .45rem;
  border-left: 1px solid var(--line);
  color: #aeb5ff;
  font-size: .55rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}
.claim-flag:hover,
.claim-flag:focus-visible { color: #d9dcff; }

.indexed-claim-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(88, 101, 242, .5);
  background: linear-gradient(135deg, rgba(88, 101, 242, .13), rgba(5, 13, 18, .72));
}
.indexed-claim-alert[hidden] { display: none; }
.indexed-claim-alert strong { color: #e4e6ff; font-size: .82rem; }
.indexed-claim-alert p { margin: .35rem 0 0; color: var(--muted-bright); font-size: .76rem; line-height: 1.5; }
.indexed-claim-alert > div:last-child { display: flex; flex: 0 0 auto; gap: .5rem; }

.form-actions .button--primary { min-height: 3.35rem; padding-inline: 1.4rem; }

/* Owner media upload and focal-position editor. */
.media-editor-grid { display: grid; grid-template-columns: minmax(16rem, .75fr) minmax(24rem, 1.25fr); gap: 1rem; }
.media-editor { min-width: 0; padding: 1rem; border: 1px solid var(--line); background: rgba(5, 13, 18, .56); }
.media-editor__heading { display: flex; min-height: 3.8rem; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.media-editor__heading strong { color: var(--ink); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.media-editor__heading p { margin: .35rem 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.media-drop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; padding: .75rem; border: 1px dashed var(--line-strong); color: var(--cyan); font-size: .68rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.media-drop input { max-width: 13rem; color: var(--muted); font-size: .65rem; }
.media-preview { position: relative; display: grid; margin-top: .8rem; overflow: hidden; place-items: center; border: 1px solid var(--line-strong); background: #050c11; }
.media-preview--avatar { width: min(100%, 15rem); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; }
.media-preview--banner { aspect-ratio: 16 / 5; }
.media-preview canvas { display: block; width: 100%; height: 100%; }
.media-preview > span { color: var(--muted); font-size: .7rem; font-weight: 700; }
.media-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: .9rem; }
.media-controls label { display: grid; grid-template-columns: 1fr auto; gap: .35rem; color: var(--muted-bright); font-size: .62rem; }
.media-controls input { grid-column: 1 / -1; width: 100%; accent-color: var(--cyan); }
.media-controls output { color: var(--cyan); font-variant-numeric: tabular-nums; }

/* Published owner artwork. */
.clan-sigil { overflow: hidden; }
.clan-sigil img { object-fit: cover; }
.profile-hero__banner { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-hero.has-custom-banner::before {
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 14, 19, .97), rgba(6, 14, 19, .78) 57%, rgba(6, 14, 19, .32));
  filter: none;
}
.profile-hero.has-custom-banner::after { z-index: 0; pointer-events: none; }
.profile-hero.has-custom-banner > :not(.profile-hero__banner) { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .media-editor-grid { grid-template-columns: 1fr; }
  .indexed-claim-alert { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .media-controls { grid-template-columns: 1fr; }
  .indexed-claim-alert > div:last-child { width: 100%; flex-direction: column; }
  .media-drop { align-items: flex-start; flex-direction: column; }
}


/* Keep the spotlight identity aligned as one row at every screen size. */
.spotlight-feature {
  grid-template-columns: clamp(4rem, 8vw, 6rem) minmax(0, 1fr);
  column-gap: clamp(1rem, 2vw, 1.5rem);
  row-gap: .5rem;
  align-content: start;
}
.spotlight-feature > .clan-sigil {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.spotlight-feature__content { display: contents; }
.spotlight-live-label {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  letter-spacing: .12em;
}
.spotlight-live-label::before { display: none; content: none; }
.spotlight-feature h3 {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  max-width: none;
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.spotlight-feature__content > p {
  grid-column: 1 / -1;
  margin-top: 1rem;
}
.spotlight-feature__content > .tag-list,
.spotlight-feature__content > .community-actions { grid-column: 1 / -1; }
.spotlight-feature .community-actions { margin-top: .75rem; }
.spotlight-feature__empty { grid-column: 1 / -1; }


/* Quiet, readable recruitment cards: identity, summary, facts, then actions. */
.clan-grid { gap: 1rem; align-items: stretch; }
.clan-card,
.clan-grid[data-view="list"] .clan-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: .4rem;
  background: #0b171e;
}
.clan-card::before { content: none; }
.clan-card__banner { height: 7rem; overflow: hidden; border-bottom: 1px solid var(--line); background: #101f28; }
.clan-card__banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.clan-card__body { flex: 1; gap: 1rem; padding: 1.25rem; }
.clan-card__top { justify-content: flex-start; align-items: center; gap: .9rem; }
.clan-card .clan-sigil { flex: 0 0 3.5rem; width: 3.5rem; height: 3.5rem; border: 1px solid var(--line); border-radius: .35rem; background: #071218; }
.clan-card__identity { min-width: 0; }
.clan-card h3 { margin: 0; font-size: 1.3rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.clan-card h3 a::after { content: none; }
.clan-card h3 a:hover { color: var(--cyan); text-decoration: underline; }
.clan-card .card-index-state { display: flex; flex-wrap: wrap; gap: .45rem .7rem; margin-top: .45rem; }
.clan-card .card-index-state .listing-state { font-size: .62rem; letter-spacing: .035em; }
.clan-card .claim-flag { padding: 0; border: 0; background: none; font-size: .65rem; text-transform: none; letter-spacing: 0; }
.clan-card__summary { margin: 0; font-size: .875rem; line-height: 1.65; -webkit-line-clamp: 2; }
.clan-card .tag-list { margin: 0; gap: .4rem; }
.clan-card .tag-list li { padding: .25rem .5rem; border-radius: .2rem; font-size: .67rem; }
.clan-card__footer { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-top: auto; padding-top: 0; }
.clan-card__facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; width: 100%; margin: 0; padding: .9rem 0; border-block: 1px solid var(--line); }
.clan-card__facts dt { color: #8499a2; font-size: .58rem; }
.clan-card__facts dd { margin-top: .35rem; font-size: .75rem; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.clan-card__action-rail { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: stretch; gap: .5rem; width: 100%; margin: 0; }
.clan-card .community-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; min-width: 0; }
.clan-card .community-action { min-height: 2.65rem; padding: .4rem; gap: .35rem; }
.clan-card .community-action span:not(.sr-only) { display: none; }
.clan-card .community-action svg { width: 1rem; height: 1rem; }
.clan-card .community-action strong { font-size: .7rem; }
.clan-card__action-rail .compare-toggle,
.clan-card__view { position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.65rem; padding: .5rem .75rem; border: 1px solid var(--line-strong); border-radius: .2rem; font-size: .72rem; font-weight: 650; text-decoration: none; }
.clan-card__view { background: rgba(117,201,211,.12); border-color: rgba(117,201,211,.4); color: var(--cyan); white-space: nowrap; }
.clan-card__view:hover { background: rgba(117,201,211,.22); }
.clan-card a:focus-visible,
.clan-card button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (min-width: 701px) and (max-width: 900px) {
  .site-header { grid-template-columns: minmax(0,1fr) auto auto; gap: .75rem; }
  .site-nav, .header-count { display: none; }
  .mobile-nav { display: block; grid-column: 2; }
  .auth-controls { grid-column: 3; }
}
@media (max-width: 600px) {
  .clan-card__body { padding: 1rem; }
  .clan-card__action-rail { grid-template-columns: 1fr 1fr; }
  .clan-card .community-actions { grid-column: 1 / -1; order: 0; }
  .clan-card__action-rail .compare-toggle { order: 1; }
  .clan-card__view { order: 2; }
  .clan-card__banner { height: 6rem; }
  .clan-card__facts { gap: .6rem; }
}
