/* Warcraft Roleplay site styles. Rules in DESIGN.md. */
@font-face { font-family: Marcellus SC; src: url(../fonts/marcellus-sc.woff2); font-display: swap; }
@font-face { font-family: Marcellus; src: url(../fonts/marcellus.woff2); font-display: swap; }

:root {
  --font-display: 'Marcellus SC', Georgia, serif;
  --font-name: 'Marcellus', Georgia, serif;
  --font-body: Verdana, Tahoma, sans-serif;

  --page: #0D0B09;
  --panel-top: #1D1813;
  --panel-bottom: #120F0C;
  --well: #0B0907;
  --ring: #6E5A33;
  --ring-strong: #8C7340;
  --ring-faint: #4A3D27;
  --ring-dim: #3B3020;
  --line: #2A231A;

  --text: #E6DFCC;
  --muted: #A89E86;
  --faint: #8F866F;
  --white: #FFFFFF;
  --gold: #FFD100;
  --gold-soft: #E6C27A;
  --gold-dim: #C9A24A;
  --ember: #FFB060;
  --danger: #FF8A7A;


  --seal-established: #3D9BFF;
  --seal-forever: #B86CFF;
  --seal-interpretation: #1EFF00;
  --tag-horde: #FF6A55;
  --tag-alliance: #6FA8FF;
  --tag-neutral: #E6C27A;
  --tag-newbie: #6EE0C8;

  --fs-xs: 12px;        --fs-sm: 14px;        --fs-base: 15px;      --fs-md: 18px;        --fs-lg: 24px;        --fs-xl: 34px;        --fs-display: 48px; 
  --radius: 3px;
  --text-shadow: 1px 1px 0 #000;

  color-scheme: dark;
  accent-color: var(--gold-dim);
  scrollbar-color: var(--ring) var(--well);
}

.theme-neutral, [data-header-theme="neutral"] .site-header {
  --banner: linear-gradient(180deg, #4E412B 0%, #30281A 55%, #1F1910 100%);
  --btn: linear-gradient(180deg, #6E5B39 0%, #4A3D26 60%, #33291A 100%);
  --btn-ring: #7A6640;
  --glow: #2E2216;
  --pill: linear-gradient(180deg, #5A4A30, #2E2618);
}
.theme-horde, [data-header-theme="horde"] .site-header {
  --banner: linear-gradient(180deg, #8A1A12 0%, #5A0D08 55%, #3E0805 100%);
  --btn: linear-gradient(180deg, #B8261C 0%, #7C120C 60%, #5C0B07 100%);
  --btn-ring: #8E1C14;
  --glow: #33190F;
  --pill: linear-gradient(180deg, #8A1A12, #4A0A06);
}
.theme-alliance, [data-header-theme="alliance"] .site-header {
  --banner: linear-gradient(180deg, #1F4290 0%, #132C62 55%, #0B1B40 100%);
  --btn: linear-gradient(180deg, #2E5BC0 0%, #1A3C88 60%, #102A66 100%);
  --btn-ring: #2A50A8;
  --glow: #14213F;
  --pill: linear-gradient(180deg, #1F4290, #0E2250);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--page);
  background-image: radial-gradient(ellipse 120% 60% at 50% 0%, var(--glow) 0%, var(--page) 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--text); text-decoration-color: var(--gold-dim); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); text-decoration-color: currentColor; }
:is(h1, h2, h3, h4, .banner) a { color: inherit; text-decoration: none; }
:is(h1, h2, h3, h4, .banner) a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--gold); text-shadow: var(--text-shadow); margin: 0 0 .4em; line-height: 1.15; }
h1, .h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
p, .prose li, blockquote, figcaption { max-width: 68ch; }
h1, h2, h3, .banner { text-wrap: balance; }
p, .prose li { text-wrap: pretty; }
time, .agenda-time, .cal-ev-time, .table td { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.skip:hover { color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(201, 162, 74, .45); color: var(--white); }
input, textarea { caret-color: var(--gold); }
::placeholder { color: var(--faint); opacity: 1; }

.panel {
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bottom) 100%);
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px var(--ring), inset 0 0 0 2px #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-strong {
  box-shadow: inset 0 0 0 1px var(--ring-strong), inset 0 0 0 2px #000, inset 0 0 0 4px var(--ring-dim);
  border-radius: 4px;
}
.banner {
  background: var(--banner);
  border-bottom: 1px solid var(--gold-dim);
  padding: 9px 18px;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--gold);
  text-shadow: var(--text-shadow);
}
h1.banner { margin: 0; font-size: 18px; line-height: 1.3; }
.crumbs { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.well { background: var(--well); border-radius: var(--radius); padding: 14px 16px; }

.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-size: var(--fs-base); color: var(--gold); text-shadow: var(--text-shadow);
  text-decoration: none; border: 1px solid #000; border-radius: var(--radius); padding: 0 22px; min-height: 44px;
  cursor: pointer; line-height: 1;
}
.btn-primary { background: var(--btn); box-shadow: inset 0 1px 0 rgba(255, 210, 120, 0.45), inset 0 0 0 1px var(--btn-ring); }
.btn-primary:hover { filter: brightness(1.12); color: var(--gold); }
.btn-secondary { background: linear-gradient(180deg, #3A332A 0%, #221D17 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px var(--ring-faint); }
.btn-secondary:hover { filter: brightness(1.15); color: var(--gold); }
.btn-sm { font-size: 14px; padding: 0 14px; min-height: 44px; }

.site-header { position: relative; z-index: 30; background: linear-gradient(180deg, #24201B 0%, #14110E 100%); border-bottom: 2px solid #000; box-shadow: 0 1px 0 var(--ring); }
.nav { display: flex; align-items: center; gap: 12px 14px; max-width: 1440px; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--gold); text-shadow: var(--text-shadow); text-decoration: none; white-space: nowrap; line-height: 1.1; display: flex; flex-direction: column; flex-shrink: 0; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.menu li { position: relative; }
.menu-link {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 14px; color: var(--text);
  text-decoration: none; padding: 0 10px; min-height: 44px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  background: transparent;
}
.menu-link:hover { color: var(--gold); }
.menu-link.is-active { color: var(--gold); border-color: #000; background: linear-gradient(180deg, #4A3A22, #2A2014); box-shadow: inset 0 0 0 1px var(--gold-dim); }
.sub {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px; z-index: 40;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom)); border: 1px solid #000;
  box-shadow: inset 0 0 0 1px var(--ring-strong), 0 10px 24px rgba(0, 0, 0, 0.8); border-radius: var(--radius);
}
.has-sub.is-open .sub { display: block; }
.sub a { display: flex; align-items: center; font-size: 14px; color: var(--text); text-decoration: none; padding: 0 12px; min-height: 44px; border-bottom: 1px solid var(--line); }
.sub li:last-child a { border-bottom: 0; }
.sub a:hover { color: var(--gold); background: rgba(255, 209, 0, 0.06); }
.sub a.seal-forever { color: var(--seal-forever); }

.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nav-tight .account-name { display: none; }
.region-switch { display: flex; border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring-faint); border-radius: var(--radius); }
.region-btn { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--muted); background: transparent; border: 0; padding: 0 9px; min-height: 44px; cursor: pointer; text-shadow: var(--text-shadow); }
.region-btn.is-on { color: var(--gold); background: linear-gradient(180deg, #4A3A22, #2A2014); box-shadow: inset 0 0 0 1px var(--gold-dim); }
.shields { display: flex; gap: 2px; }
.shield { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: var(--radius); cursor: pointer; padding: 0; opacity: .6; }
.shield img { filter: drop-shadow(0 0 2px rgba(0, 0, 0, .9)); }
.shield-neutral img { filter: drop-shadow(0 1px 1px #000); }
.shield.is-on { opacity: 1; background: linear-gradient(180deg, #3A2E1A, #1A140C); box-shadow: inset 0 0 0 1px var(--gold); }
.shield:hover { opacity: 1; }
.account { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); min-height: 44px; font-size: var(--fs-sm); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4A6FA8, #1A2A48); border: 1px solid #000; box-shadow: 0 0 0 1px var(--gold-dim); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: var(--fs-xs); color: var(--gold); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--gold); background: linear-gradient(180deg, #2C261F, #1A1612); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring-faint); border-radius: var(--radius); cursor: pointer; }

@media (max-width: 1199px) {
  .nav { flex-wrap: wrap; }
  .burger { display: inline-flex; }
  .menu { display: none; flex-direction: column; align-items: stretch; width: 100%; order: 10; gap: 0; border-top: 1px solid var(--ring-dim); margin-top: 8px; padding-top: 6px; }
  .menu.is-open { display: flex; }
  .menu-link { width: 100%; justify-content: space-between; font-size: var(--fs-md); min-height: 44px; background: transparent; border: 0; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-link.is-active { background: transparent; box-shadow: none; }
  .sub { position: static; display: none; min-width: 0; padding: 0 0 6px; background: transparent; border: 0; box-shadow: none; }
  .has-sub.is-open .sub { display: block; }
  .sub a { padding-left: 20px; border-bottom: 0; color: #CFC4A8; }
}
.nav.nav-compact { flex-wrap: wrap; }
.nav-compact .burger { display: inline-flex; }
.nav-compact .menu { display: none; flex-direction: column; align-items: stretch; width: 100%; order: 10; gap: 0; border-top: 1px solid var(--ring-dim); margin-top: 8px; padding-top: 6px; }
.nav-compact .menu.is-open { display: flex; }
.nav-compact .menu-link { width: 100%; justify-content: space-between; font-size: var(--fs-md); min-height: 44px; background: transparent; border: 0; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.nav-compact .menu-link.is-active { background: transparent; box-shadow: none; }
.nav-compact .sub { position: static; display: none; min-width: 0; padding: 0 0 6px; background: transparent; border: 0; box-shadow: none; }
.nav-compact .has-sub.is-open .sub { display: block; }
.nav-compact .sub a { padding-left: 20px; border-bottom: 0; color: #CFC4A8; }
@media (max-width: 640px) {
  .account-name { display: none; }
  .brand { flex: 1; min-width: 0; }
  .burger { order: 2; }
  .nav-tools { order: 3; width: 100%; margin-left: 0; justify-content: space-between; flex-wrap: wrap; row-gap: 6px; padding-top: 6px; }
  .region-btn { padding: 0 7px; }
  .shield { width: 34px; }
  .wrap { padding: 0 16px; }
  h1, .h1, .h2 { font-size: 28px; }
}

main > section, main > article { margin: 24px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.hero-actions .btn-discord { width: auto; }

.seal { font-weight: bold; }
.seal-established { color: var(--seal-established); }
.seal-forever { color: var(--seal-forever); }
.seal-interpretation { color: var(--seal-interpretation); }

.page .page-body { padding: 32px clamp(18px, 4vw, 44px) 40px; }
.reading { max-width: calc(68ch + 92px); margin-inline: auto; }
.prose h2 { font-size: var(--fs-lg); margin-top: 1.2em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1em; }
.prose blockquote.quote { margin: 1em 0; padding: 12px 18px; border-left: 1px solid var(--ring); background: var(--well); font-style: italic; }
.prose blockquote.quote p { margin: 0; }
.prose blockquote footer { font-style: normal; color: var(--muted); font-size: var(--fs-xs); margin-top: 6px; }
.prose hr.rule { border: 0; height: 2px; background: linear-gradient(90deg, var(--gold-dim) 0%, var(--ring) 50%, transparent 100%); margin: 1.6em 0; }
.prose img { border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring); }

.flash { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid #000; background: var(--well); box-shadow: inset 0 0 0 1px var(--ring-dim); }
.flash-success { color: var(--tag-newbie); }
.flash-error { color: var(--tag-horde); }

.site-footer { margin-top: 40px; border-top: 2px solid #000; box-shadow: inset 0 1px 0 var(--ring-dim); background: #0A0806; }
.footer-inner { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; align-items: center; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-menu a { font-size: 14px; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-menu a:hover { color: var(--gold); }
.disclaimer { margin: 0; font-size: var(--fs-xs); color: var(--faint); max-width: 60ch; }

.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); flex: 1; min-width: 220px; }
.field input:not([type=checkbox], [type=radio], [type=file]) { min-height: 44px; padding: 0 12px; font: 15px Verdana, Tahoma, sans-serif; color: var(--text); background: var(--well); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring-strong); border-radius: var(--radius); }
.field input:not([type=checkbox], [type=radio], [type=file]):focus { outline: 2px solid var(--gold-dim); outline-offset: 1px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.field select { min-height: 44px; padding: 0 10px; font: 15px Verdana, Tahoma, sans-serif; color: var(--text); background: var(--well); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring-strong); border-radius: var(--radius); }


.section-title { font-size: var(--fs-lg); margin: 28px 0 10px; }

.standing { font-weight: bold; }
.standing-hostile { color: #F04A3A; } .standing-unfriendly { color: #EE6622; } .standing-neutral { color: #FFFF00; }
.standing-friendly, .standing-honored, .standing-revered, .standing-exalted { color: #00FF00; }
.faint { color: var(--faint); }
.field small { font-size: 12px; color: var(--faint); }
.field-error { font-size: var(--fs-sm); color: var(--tag-horde); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 44px; }
input[type=checkbox], input[type=radio] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; vertical-align: middle;
  background: var(--well); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring); border-radius: 3px;
}
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:checked { background: var(--gold-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.4l2.4 2.4 4.8-5.2' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
input[type=radio]:checked { background: radial-gradient(circle, var(--gold) 0 4px, var(--well) 4.5px); box-shadow: inset 0 0 0 1px var(--gold-dim); }
input[type=checkbox]:disabled, input[type=radio]:disabled { opacity: .5; cursor: default; }
input[type=file] { max-width: 100%; font: 14px var(--font-body); color: var(--muted); }
input[type=file]::file-selector-button {
  min-height: 44px; margin-right: 12px; padding: 0 16px; cursor: pointer; font: 15px var(--font-display); color: var(--gold); text-shadow: var(--text-shadow);
  background: linear-gradient(180deg, #3A332A 0%, #221D17 100%); border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px var(--ring-faint); border-radius: var(--radius);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-page { max-width: 520px; margin-left: auto; margin-right: auto; }
.auth-page .form-stack { max-width: none; }
.auth-switch { margin-top: 24px; font-size: 14px; color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--faint); font-size: var(--fs-xs); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-discord { background: linear-gradient(180deg, #5865F2 0%, #3C45C4 100%); color: #FFF; text-shadow: 0 1px 0 rgba(0,0,0,.5); width: 100%; }
.btn-discord.btn-sm { width: auto; }
.btn-discord:hover { color: #FFF; filter: brightness(1.1); }

.announcement { background: linear-gradient(180deg, #3A2C10, #261C0A); border-bottom: 1px solid #000; box-shadow: inset 0 -1px 0 var(--ring-dim); color: var(--gold); font-size: 14px; padding: 10px 0; text-align: center; }


.plain-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.plain-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.small { font-size: 12px; }
.notice { display: block; padding: 12px 16px; margin-bottom: 18px; border: 1px solid #000; border-radius: var(--radius); background: #2A2008; box-shadow: inset 0 0 0 1px var(--gold-dim); font-size: 14px; }
.inline { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 8px; }
.filters .field { flex: 0 1 220px; min-width: 160px; }
.filters .field:first-child { flex: 1 1 260px; }
.field textarea { padding: 10px 12px; font: 15px/1.5 Verdana, Tahoma, sans-serif; color: var(--text); background: var(--well); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring-strong); border-radius: var(--radius); resize: vertical; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: var(--fs-xs); font-weight: bold; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--ring-dim); white-space: nowrap; }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr.is-suspended td { opacity: .65; }
.rep-public { max-width: 980px; }
.rep-public td { white-space: normal; vertical-align: top; }
.rep-public td:first-child { white-space: nowrap; }
.pill { display: inline-block; padding: 1px 7px; font-size: var(--fs-xs); border-radius: 9px; border: 1px solid var(--ring-dim); color: var(--muted); vertical-align: middle; }
.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 16px; font-size: 14px; }
.btn-danger { background: linear-gradient(180deg, #241512, #140B09); color: var(--danger); box-shadow: inset 0 0 0 1px #7A2A20; }
.btn-danger:hover { color: #FFB3A8; box-shadow: inset 0 0 0 1px #A8382B; }

.cdx-marker, .prose mark { background: rgba(255, 209, 0, .25); color: inherit; padding: 0 2px; }

.pill-good { color: #9BE7A8; border-color: #1F5A2A; }
.draft-banner { margin-top: 16px; }

code { font-size: .92em; background: #0B0907; padding: 1px 5px; border-radius: 3px; border: 1px solid var(--line); }

.portrait { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 1px solid #000; box-shadow: 0 0 0 1px var(--gold-dim); background: #1A1612; vertical-align: middle; }
.portrait-ph { font-family: var(--font-display); color: var(--white); text-shadow: 1px 1px 0 #000; line-height: 1; user-select: none; }
.portrait-ph.faction-horde { background: radial-gradient(circle at 40% 35%, #B8261C, #4A0B07); }
.portrait-ph.faction-alliance { background: radial-gradient(circle at 40% 35%, #2E5BC0, #0B1B40); }
.portrait-ph.faction-neutral { background: radial-gradient(circle at 40% 35%, #7A6640, #2A2216); }
.portrait.square { border-radius: var(--radius); }


.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin: 28px 0 14px; }
.section-head h1 { margin: 0 0 4px; }
.section-head p { margin: 0; }
.h2 { font-size: var(--fs-xl); }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; font-size: 12px; line-height: 18px; border-radius: 9px; border: 1px solid var(--ring-dim); color: var(--muted); background: rgba(0, 0, 0, .25); white-space: nowrap; }
.tag-horde { color: var(--tag-horde); border-color: #5A1A12; }
.tag-alliance { color: var(--tag-alliance); border-color: #1B3466; }
.tag-neutral { color: var(--tag-neutral); border-color: #5A4A2A; }
.tag-newbie { color: var(--tag-newbie); border-color: #1F5A50; }
.tag-quiet { color: var(--faint); }
.char-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.empty-state { padding: 28px; text-align: center; }
.empty-state p { margin-inline: auto; }
.empty-state .btn { margin-top: 8px; }
.filter-panel { padding: 14px 16px; margin-bottom: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: 14px var(--font-body); }
.link-btn:hover { color: var(--gold); }


.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.char-card { display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none; color: var(--text); }
.char-card:hover { filter: brightness(1.1); color: var(--text); }
.char-card-body { display: flex; flex-direction: column; min-width: 0; }
.char-name { font-family: var(--font-name); font-size: var(--fs-md); color: var(--white); text-shadow: var(--text-shadow); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-title { font-size: var(--fs-sm); color: var(--gold-soft); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-meta { font-size: var(--fs-xs); color: var(--muted); }

fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; font-size: 14px; color: var(--muted); }

.check-row { display: flex; flex-wrap: wrap; gap: 4px 18px; }

.profile { margin-top: 20px; }
.profile-banner { border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; max-height: 320px; background: #000; }
.profile-banner img { display: block; width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-side { padding: 18px; text-align: center; }
.profile-portrait { display: flex; justify-content: center; margin-bottom: 12px; }
.profile-portrait .portrait { width: 200px; height: 200px; box-shadow: 0 0 0 2px var(--accent); }
.profile-name { font-family: var(--font-name); font-size: 28px; color: var(--white); margin: 0; }
.profile-title { margin: 2px 0 0; color: var(--accent); font-style: italic; }
.profile-rc { margin: 4px 0 0; color: var(--muted); }
.profile-side .char-tags { justify-content: center; }
.profile-now { text-align: left; margin: 16px 0 0; padding: 10px 12px; background: var(--well); border-radius: var(--radius); font-size: 14px; }
.profile-now p { margin: 2px 0; }
.now-label { color: var(--accent, var(--gold-soft)); font-weight: bold; margin-right: 4px; }
.side-title { font-size: var(--fs-md); margin: 18px 0 6px; text-align: left; color: var(--accent); }
.side-glance { text-align: left; }
.ooc-box { text-align: left; margin-top: 14px; padding: 4px 0 0; border-top: 1px solid var(--line); }
.ooc-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; margin: 0; font-size: var(--fs-sm); }
.ooc-box dt { color: var(--faint); }
.ooc-box dd { margin: 0; overflow-wrap: anywhere; }
.profile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; align-items: stretch; }
.rel-request > summary { list-style: none; width: 100%; }
.rel-request > summary::-webkit-details-marker { display: none; }
.rel-request[open] > summary { margin-bottom: 10px; }
.rel-request form { text-align: left; }
.profile-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.profile-main .notice { margin: 0; }
.profile .prose h2, .profile .prose h3 { color: var(--accent); }
.profile-section { padding: 18px 22px; }
.profile-extra .profile-section + .profile-section { border-top: 1px solid var(--line); }
.profile-body .page-body { padding: 26px clamp(18px, 3vw, 34px) 22px; }
.profile-h { font-size: var(--fs-lg); margin: 0 0 12px; color: var(--accent); }
.ic-note { margin-top: 28px; font-size: 12px; color: var(--faint); font-style: italic; border-top: 1px solid var(--line); padding-top: 10px; }
.top8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .top8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.top8-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; text-align: center; text-decoration: none; background: var(--well); border-radius: var(--radius); }
.top8-item:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.top8-name { font-family: var(--font-name); font-size: 15px; color: var(--white); line-height: 1.2; }
.top8-bond { font-size: 12px; }
.rel-group + .rel-group { margin-top: 10px; }
.rel-bond { font-size: 15px; margin: 0 0 4px; }
.rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rel-list a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: 14px; }
.rel-list a:hover { color: var(--gold); }

.frame-parchment .profile-side, .frame-parchment .profile-body { box-shadow: inset 0 0 0 1px #8C7148, inset 0 0 0 3px #000, inset 0 0 0 4px #5C4A2E; background: linear-gradient(180deg, #2A2318, #18130D); }
.frame-iron .profile-side, .frame-iron .profile-body { box-shadow: inset 0 0 0 1px #5A5F66, inset 0 0 0 3px #000, inset 0 0 0 4px #3A3E44; background: linear-gradient(180deg, #1C1E21, #111214); }
.frame-gilded .profile-side, .frame-gilded .profile-body { box-shadow: inset 0 0 0 1px #E8C25A, inset 0 0 0 3px #000, inset 0 0 0 4px #A8862F, 0 0 18px rgba(232, 194, 90, .18); }
.frame-runic .profile-side, .frame-runic .profile-body { box-shadow: inset 0 0 0 1px #8F6BFF, inset 0 0 0 3px #000, inset 0 0 0 4px #4B3699, 0 0 22px rgba(143, 107, 255, .22); }
.frame-legendary .profile-side, .frame-legendary .profile-body { box-shadow: inset 0 0 0 1px #FF9B3D, inset 0 0 0 3px #000, inset 0 0 0 4px #B3561A, 0 0 26px rgba(255, 128, 0, .3); }

.blk-image { margin: 1.2em 0; }
.blk-image img { display: block; max-width: 100%; height: auto; border: 1px solid #000; box-shadow: 0 0 0 1px var(--ring-dim); border-radius: var(--radius); }
.blk-image figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; text-align: center; }
.blk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 1.2em 0; }
.gal-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid #000; border-radius: var(--radius); background: #000; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 12px; color: #FFF; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.blk-song { margin: 1.2em 0; }
.song-play { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 480px; padding: 12px 16px; background: var(--well); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring-dim); border-radius: var(--radius); color: var(--text); cursor: pointer; text-align: left; }
.song-play:hover { box-shadow: inset 0 0 0 1px var(--gold-dim); }
.song-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #8A1A12; color: #FFF; font-size: 16px; flex-shrink: 0; }
.song-text { display: flex; flex-direction: column; }
.song-text small { font-size: var(--fs-xs); color: var(--faint); }
.song-text b { font-family: var(--font-name); font-weight: 400; font-size: var(--fs-md); color: var(--white); }
.song-note { font-size: var(--fs-xs); color: var(--faint); margin: 4px 0 0; }
.song-frame { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border: 1px solid #000; border-radius: var(--radius); overflow: hidden; }
.song-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blk-glance { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 1em 0; font-size: 14px; }
.blk-glance dt { color: var(--accent, var(--gold)); font-weight: bold; }
.blk-glance dd { margin: 0; }
.blk-hooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 1em 0; }
.hook-card { padding: 12px 14px; border-radius: var(--radius); background: var(--well); }
.hook-card p { margin: 4px 0 0; font-size: 14px; font-style: italic; }
.hook-kind { font-size: 12px; font-weight: bold; color: var(--gold-soft); }
.hook-hook .hook-kind { color: var(--tag-newbie); }
.blk-timeline { list-style: none; margin: 1em 0; padding: 0 0 0 18px; border-left: 1px solid var(--ring); }
.blk-timeline li { position: relative; padding: 0 0 12px 12px; }
.blk-timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--gold)); border: 2px solid #000; }
.tl-when { display: block; font-weight: bold; color: var(--accent, var(--gold)); font-size: 14px; }
.tl-what { font-size: 14px; }

.journal-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.journal-card { padding: 16px 18px; }
.journal-by { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.journal-by span { display: flex; flex-direction: column; }
.journal-by b { font-family: var(--font-name); font-weight: 400; font-size: var(--fs-md); color: var(--white); }
.journal-by small { font-size: 12px; color: var(--muted); }
.journal-title { font-family: var(--font-name); font-size: var(--fs-lg); margin: 10px 0 4px; }
.journal-title a { color: var(--gold); text-decoration: none; }
.journal-title a:hover { text-decoration: underline; }
.journal-excerpt { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.content-note { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--gold-soft); }
.journal-head { display: flex; gap: 14px; align-items: center; }
.journal-list { padding: 8px 20px; }
.journal-link { font-family: var(--font-name); font-size: 18px; }
.entry-head { margin-bottom: 18px; }
.entry-title { font-family: var(--font-name); font-size: var(--fs-xl); color: var(--white); margin: 14px 0 4px; }
.entry-tools { margin: 4px 0 0; font-size: var(--fs-sm); }
.content-gate > summary { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border: 1px dashed var(--ring-strong); border-radius: var(--radius); cursor: pointer; }
.content-gate > summary::-webkit-details-marker { display: none; }
.content-gate[open] > summary { margin-bottom: 18px; }
.content-gate[open] > summary .btn { display: none; }
.comments { padding: 18px 22px; margin-top: 16px; }
.comment-list, .comment-replies { list-style: none; margin: 0; padding: 0; }
.comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment.is-held { opacity: .8; }
.comment-replies { margin: 8px 0 0 22px; padding-left: 14px; border-left: 1px solid var(--ring-dim); }
.comment-replies .comment:last-child { border-bottom: 0; }
.comment-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.comment-by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.comment-by b { font-family: var(--font-name); font-weight: 400; color: var(--white); font-size: var(--fs-base); }
.comment-body { margin: 6px 0 4px 40px; font-size: 14px; overflow-wrap: anywhere; }
.comment-tools { margin-left: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.reply-box > summary { list-style: none; display: inline; }
.reply-box > summary::-webkit-details-marker { display: none; }
.reply-box[open] { flex-basis: 100%; }
.comment-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.comment-form textarea { width: 100%; padding: 10px 12px; font: 14px/1.5 Verdana, Tahoma, sans-serif; color: var(--text); background: var(--well); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring-strong); border-radius: var(--radius); resize: vertical; }
.comment-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.comment-form-row select { min-height: 44px; color: var(--text); background: var(--well); border: 1px solid #000; border-radius: var(--radius); }
.cal-panel { padding: 16px; }
.cal-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-month { margin: 0 6px; font-size: var(--fs-lg); min-width: 210px; text-align: center; }
.num { font-family: var(--font-body); font-size: max(12px, .8em); font-variant-numeric: tabular-nums; }
:is(h1, h2, h3, h4, .banner, .side-label, .btn) :is(.small, .faint) { font-family: var(--font-body); font-size: var(--fs-xs); }
.cal-today { font-size: var(--fs-sm); color: var(--muted); }
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-filters select { min-height: 44px; padding: 0 8px; font: 14px var(--font-body); color: var(--text); background: var(--well); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring-dim); border-radius: var(--radius); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #000; border: 1px solid #000; border-radius: var(--radius); overflow: hidden; }
.cal-dow { padding: 6px; text-align: center; font-weight: bold; font-size: var(--fs-xs); color: var(--muted); background: linear-gradient(180deg, #2C261F, #1A1612); }
.cal-day { min-height: 112px; padding: 4px; background: linear-gradient(180deg, #1D1813, #15110D); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-day.is-out { background: #0E0C0A; }
.cal-day.is-out .cal-date { color: var(--faint); }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--gold); }
.cal-date { font: bold 12px/1.6 var(--font-body); font-variant-numeric: tabular-nums; color: var(--muted); padding: 0 3px; }
.cal-day.is-today .cal-date { color: var(--gold); }
.cal-ev { display: block; min-height: 24px; padding: 3px 5px; font-size: 12px; line-height: 1.35; color: var(--text); text-decoration: none; background: rgba(255, 255, 255, .04); border-radius: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-ev:hover { background: rgba(255, 255, 255, .09); color: var(--white); }
.cal-ev-time { color: var(--ev); font-weight: bold; }
.cal-ev::before, .agenda-item::before { content: ""; display: inline-block; flex-shrink: 0; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--ev); vertical-align: 1px; }
.agenda-item::before { align-self: center; margin-right: 0; }
.cal-more { font-size: var(--fs-xs); color: var(--muted); padding: 0 5px; }
.ev-flag { font-size: var(--fs-xs); margin-left: 2px; }
.ev-m { display: inline-block; padding: 0 3px; font: bold 12px/14px var(--font-body); color: var(--gold-soft); border: 1px solid var(--ring-strong); border-radius: 2px; vertical-align: 1px; }
.cal-agenda { margin-top: 20px; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda-day { margin-top: 12px; padding-bottom: 4px; font-weight: bold; font-size: 14px; color: var(--gold); border-bottom: 1px solid var(--line); }
.agenda-item { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; margin: 4px 0; border-bottom: 1px solid var(--line); }
.agenda-time { font-weight: bold; color: var(--ev); min-width: 64px; font-size: 14px; }
.agenda-item a { font-family: var(--font-name); font-size: var(--fs-md); }
.cal-key { margin: 14px 0 0; }
@media (max-width: 760px) { .cal-grid, .cal-nav { display: none; } .cal-agenda { margin-top: 4px; } .cal-month { min-width: 0; font-size: var(--fs-lg); } }
@media (min-width: 761px) { .cal-agenda .agenda-day:first-child { margin-top: 0; } }

.event-grid { display: grid; grid-template-columns: minmax(0, calc(68ch + 92px)) 300px; justify-content: center; gap: 16px; align-items: start; margin-top: 24px; }
@media (max-width: 900px) { .event-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .jump-join { display: none; } }
.event-main { margin-top: 0; }
.event-when { font-size: var(--fs-base); margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.event-where { margin: 10px 0 0; }
.event-hook { font-size: 18px; margin: 14px 0; color: var(--white); }
.event-body { margin-top: 18px; }
.host-update { margin: 14px 0; padding: 12px 14px; background: var(--well); border-radius: var(--radius); }
.host-update p { margin: 6px 0 0; }
.event-side { display: flex; flex-direction: column; gap: 12px; }
.side-box { padding: 14px 16px; }
.side-label { font-family: var(--font-display); color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.attendees { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rsvp { display: flex; flex-direction: column; gap: 8px; }
.rsvp-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rsvp select { min-height: 44px; color: var(--text); background: var(--well); border: 1px solid #000; border-radius: var(--radius); }
.is-here { color: var(--gold); font-weight: bold; }

.fires-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .fires-layout { grid-template-columns: 1fr; } .fires-side { order: -1; } }
.fire-list { display: flex; flex-direction: column; gap: 10px; }
.fire { padding: 14px 16px; background: linear-gradient(180deg, #221A12, #15100B); box-shadow: inset 0 0 0 1px #3B2A18; }
.fire.is-ember { opacity: .6; filter: saturate(.5); }
.fire-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.fire-time { font-size: var(--fs-sm); color: var(--ember); }
.is-ember .fire-time { color: var(--faint); }
.fire-where { margin: 10px 0 2px; font-size: 15px; }
.fire-kind { font-weight: bold; color: var(--ev); }
.fire-msg { margin: 4px 0 0; font-style: italic; }
.fire-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-top: 10px; }
.fire-count { font-size: var(--fs-sm); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fire-actions { display: flex; gap: 8px; align-items: center; }

.home-banner { position: relative; margin: 24px 0 16px; min-height: 320px; aspect-ratio: 1200 / 420; overflow: hidden; border-radius: var(--radius); background: #1A1410; display: flex; align-items: flex-end; }
.home-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.home-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 11, 9, 0) 30%, rgba(13, 11, 9, .55) 62%, rgba(13, 11, 9, .92) 100%); }
.home-banner::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border: 1px solid #000; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--ring); }
.home-banner-text { position: relative; z-index: 2; padding: 0 clamp(18px, 4vw, 40px) clamp(20px, 3.5vw, 34px); max-width: 640px; }
.home-banner h1 { font-size: 48px; line-height: 1.05; margin: 0 0 8px; text-shadow: 0 2px 0 #000; }
.home-banner p { margin: 0; color: var(--white); text-shadow: 0 1px 2px #000; }
.home-playing a { color: var(--white); font-family: var(--font-name); font-size: 18px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.home-playing a:hover { color: var(--gold); }
.home-credit { position: absolute; z-index: 2; right: 12px; bottom: 10px; margin: 0; padding: 2px 8px; font-size: 12px; color: rgba(255, 255, 255, .85); background: rgba(13, 11, 9, .55); border-radius: var(--radius); }
.home-credit a { color: inherit; }
.home-live { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin: 0 0 24px; }
.home-main, .home-side { padding: 22px clamp(18px, 3vw, 30px); }
.home-side { border-left: 1px solid var(--line); }
.home-live section + section { margin-top: 26px; }
.home-live h2 { font-size: 24px; margin: 0 0 6px; }
.home-list { list-style: none; margin: 0 0 8px; padding: 0; }
.home-list li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.home-list li:last-child { border-bottom: 0; }
.home-item { font-family: var(--font-name); font-size: 18px; color: var(--white); text-decoration: none; }
.home-item:hover { color: var(--gold); text-decoration: underline; }
.newbie { color: var(--tag-newbie); }
.home-quiet { padding: 22px 26px; margin: 0 0 24px; }
@media (max-width: 860px) {
  .home-live { grid-template-columns: 1fr; }
  .home-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .home-banner { display: block; aspect-ratio: auto; min-height: 0; background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom)); }
  .home-banner > img { position: static; display: block; height: auto; aspect-ratio: 16 / 9; }
  .home-banner::after { content: none; }
  .home-banner-text { padding: 16px 18px 20px; }
  .home-banner h1 { font-size: 32px; }
  .home-credit { left: 10px; right: auto; bottom: auto; top: 10px; }
}
[hidden] { display: none !important; }

.guild-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.guild-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; text-decoration: none; color: var(--text); }
.guild-card:hover { filter: brightness(1.1); color: var(--text); }
.guild-card.is-quiet { opacity: .7; }
.guild-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guild-name { font-family: var(--font-name); font-size: var(--fs-md); color: var(--white); text-shadow: var(--text-shadow); }
.guild-pitch { font-size: 14px; }
.guild-crest { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius); border: 1px solid #000; box-shadow: 0 0 0 1px var(--gold-dim); object-fit: cover; background: #1A1612; }
.guild-crest-ph { display: inline-flex; align-items: center; justify-content: center; font: 26px var(--font-display); color: var(--white); text-shadow: 1px 1px 0 #000; }
.guild-crest-ph.faction-horde { background: linear-gradient(#8A1A12, #3E0805); }
.guild-crest-ph.faction-alliance { background: linear-gradient(#1F4290, #0B1B40); }
.guild-crest-ph.faction-neutral { background: linear-gradient(#4E412B, #1F1910); }
.guild-head { display: flex; gap: 16px; align-items: center; }
.guild-head .guild-crest { width: 96px; height: 96px; font-size: 44px; }
.guild-head .entry-title { margin: 0 0 6px; }
.guild-banner { max-width: calc(68ch + 408px); margin: 24px auto 0; border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--ring); border-radius: var(--radius); overflow: hidden; max-height: 280px; }
.guild-banner img { display: block; width: 100%; max-height: 280px; object-fit: cover; }
.guild-banner + .event-grid { margin-top: 12px; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 16px; }
.roster-item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.roster-item span { display: flex; flex-direction: column; min-width: 0; }
.roster-item b { font-family: var(--font-name); font-weight: 400; color: var(--white); }
.roster-item small { font-size: 12px; color: var(--muted); }
.profile-guild { margin: 4px 0; font-family: var(--font-name); }
.profile-guild img { vertical-align: middle; border-radius: 2px; }
.ev-crest { vertical-align: -3px; margin-right: 3px; border-radius: 2px; }
.guild-host { margin-top: 10px; }
.guild-host img { border-radius: var(--radius); }
.notice-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }

.lore-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.lore-box { padding: 16px 18px; }
.lore-box h2 { font-size: var(--fs-lg); margin: 0 0 8px; }
.lore-box h2 a { text-decoration: none; }
.lore-list { list-style: none; margin: 0 0 8px; padding: 0; }
.lore-list li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.seal-dot { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.ico { width: 1em; height: 1em; vertical-align: -.15em; }
.lore-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.lore-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.lore-card:hover { filter: brightness(1.1); color: var(--text); }
.lore-card-title { font-family: var(--font-name); font-size: var(--fs-md); color: var(--white); }
.lore-sources { margin: 18px 0 8px; padding: 10px 14px; background: var(--well); border-radius: var(--radius); font-size: 14px; }
.lore-sources ul { margin: 6px 0 0; padding-left: 18px; }
.report-link { display: inline-flex; align-items: center; min-height: 24px; font-size: 12px; color: var(--faint); }

.shots { columns: 3 300px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 18px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid #000; border-radius: var(--radius); }
.shot figcaption { display: flex; flex-direction: column; gap: 2px; padding: 8px 2px 0; }
.profile-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-shots img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border: 1px solid #000; border-radius: var(--radius); }
.leave { max-width: min(460px, calc(100vw - 32px)); padding: 18px 22px; color: var(--text); text-align: center; overflow: visible; }
.leave::backdrop { background: rgba(0, 0, 0, .6); }
.leave p { margin: 0 0 10px; }
.leave-url { word-break: break-all; color: var(--white); }
.leave-btns { display: flex; gap: 10px; justify-content: center; margin: 16px 0 0 !important; }
.list-window { gap: 0; padding: 0 20px 12px; margin-bottom: 12px; }
.list-window.guild-list { grid-template-columns: 1fr; }
.list-window > * { border-bottom: 1px solid var(--line); border-radius: 0; }
.list-window > a:hover { filter: none; background: rgba(255, 209, 0, .04); }
@media (max-width: 640px) {
  .rep-public thead { display: none; }
  .rep-public tr, .rep-public td { display: block; }
  .rep-public tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rep-public td { border: 0; padding: 2px 0; }
  .rep-public td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}
