:root {
  --red: #d6ac65;
  --bg: #0b111c;
  --panel: #121c2b;
  --line: #293343;
  --muted: #a0acbc;
}
header {
  height: 124px;
  background: #0c1420;
}
header .brand {
  gap: 9px;
}
header .brand img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 15px #718bff33);
}
header .brand small {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #b5bdd0;
}
header .brand span {
  font-size: 29px;
}
header nav {
  gap: 23px;
}
.hero {
  min-height: 660px;
  height: 77vh;
  max-height: 900px;
}
.hero h1 {
  font-size: clamp(64px, 7.1vw, 112px);
}
.hero .intro {
  color: #d2d9e0;
}
.button {
  color: #121720;
  background: #dfb875;
}
.button:hover {
  background: #f0d09b;
}
.chapter {
  background: radial-gradient(ellipse at 90% 0, #1d35535c, transparent 70%);
}
.chapter-intro {
  max-width: 680px;
  margin: 16px 0 0;
  line-height: 1.8;
  color: var(--muted);
  font-size: 14px;
}
.announcement {
  border: 1px solid var(--line);
}
.announcement summary {
  padding: 20px 24px;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.announcement summary span {
  color: var(--red);
}
.announcement img {
  display: block;
  width: 100%;
  height: auto;
}
.legacy {
  background: #101927;
}
.next {
  background: radial-gradient(ellipse at 50% 110%, #344b6c55, transparent 65%);
}
.story {
  background: #131d2c;
}
.form-panel {
  background: #111b29;
}
.prototype-note {
  background: #192234;
  border-color: #34445e;
  color: #c0ccdf;
}
input,
select,
textarea {
  background: #0e1724;
  border-color: #39465a;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  background: #121e2d;
  border: 1px solid var(--line);
  padding: 0;
  color: var(--text);
  text-align: left;
  overflow: hidden;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #1a293e;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0b111cdd;
  border: 1px solid #ffffff70;
  padding: 13px 18px;
  border-radius: 50%;
  color: #f0d4a2;
}
.video-card:hover .video-thumb span {
  background: #c19b55;
  color: #0b111c;
}
.video-card h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 19px 20px 10px;
}
.video-card p {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 20px 23px;
}
.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.video-fallback {
  font-size: 12px;
  line-height: 1.8;
}
.channel-card {
  background: linear-gradient(110deg, #263851, #121c2b);
  border-color: #3e526c;
}
.play-mark {
  color: #101a26;
}
.video-section .section-head {
  align-items: center;
}
footer {
  background: #080e18;
}
@media (max-width: 950px) {
  header {
    height: auto;
    min-height: 110px;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 10px;
  }
  header .brand img {
    width: 80px;
    height: 80px;
  }
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  header .brand img {
    width: 70px;
    height: 70px;
  }
  header .brand span {
    font-size: 23px;
  }
  header .brand small {
    font-size: 6px;
  }
  header nav {
    gap: 19px;
    width: 100%;
    justify-content: center;
    padding: 4px 0 10px;
  }
  .hero {
    min-height: 600px;
  }
  .hero h1 {
    font-size: 65px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}
:root {
  --red: #ef4b44;
  --bg: #101112;
  --panel: #191a1b;
  --line: #303132;
  --muted: #9b9c9c;
}
header {
  background: #101112;
}
.button {
  background: #ef4b44;
  color: white;
}
.button:hover {
  background: #ff625b;
}
.chapter {
  background: radial-gradient(ellipse at 90% 0, #49272b33, transparent 70%);
}
.legacy {
  background: #151617;
}
.next {
  background: radial-gradient(ellipse at 50% 110%, #4d222044, transparent 65%);
}
.story,
.form-panel,
.video-card {
  background: #191a1b;
}
input,
select,
textarea {
  background: #141516;
  border-color: #444;
}
.channel-card {
  background: linear-gradient(110deg, #322124, #191a1b);
  border-color: #4d3437;
}
footer {
  background: #101112;
}
footer .brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.prototype-note {
  background: #232126;
  border-color: #4b3c44;
  color: #d1bec9;
}
header nav {
  gap: 18px;
}
@media (max-width: 600px) {
  header nav {
    gap: 14px;
  }
}
header {
  min-height: 154px;
  height: auto;
  padding-block: 8px;
}
header .brand {
  gap: 13px;
}
header .brand img {
  width: 138px;
  height: 138px;
}
header .brand span {
  font-size: 33px;
}
header .brand small {
  font-size: 9px;
  letter-spacing: 2.4px;
  color: #b7b7bd;
}
@media (max-width: 950px) {
  header .brand img {
    width: 112px;
    height: 112px;
  }
  header {
    min-height: 128px;
  }
}
@media (max-width: 600px) {
  header {
    min-height: 0;
    padding-block: 8px;
  }
  header .brand img {
    width: 96px;
    height: 96px;
  }
  header .brand span {
    font-size: 28px;
  }
  header .brand small {
    font-size: 8px;
    letter-spacing: 1.9px;
  }
}
header .brand {
  display: grid;
  grid-template-columns: 138px auto;
  align-items: center;
  gap: 16px;
}
header .brand > img {
  display: block;
  align-self: center;
}
header .brand > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  transform: translateY(-1px);
}
header .brand small {
  margin-top: 8px;
  line-height: 1.2;
}
header nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 17px;
}
.video-pagination {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 32px;
}
.video-pagination button {
  background: none;
  border: 1px solid #45454a;
  color: #ddd;
  padding: 11px 15px;
  cursor: pointer;
}
.video-pagination button[aria-current='page'] {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.video-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (max-width: 1100px) {
  header {
    gap: 15px;
  }
  header .brand {
    grid-template-columns: 112px auto;
  }
  header nav {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  header .brand {
    grid-template-columns: 96px auto;
    gap: 10px;
  }
  header .brand small {
    margin-top: 6px;
  }
  .video-pagination {
    gap: 6px;
  }
  .video-pagination button {
    padding: 10px 12px;
  }
}
html {
  scroll-padding-top: calc(var(--header-height, 154px) + 60px);
}
body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #101112f5;
  backdrop-filter: blur(16px);
  transition:
    min-height 0.2s,
    padding 0.2s;
}
header nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}
header nav a.nav-active {
  color: white;
}
header nav a.nav-active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}
@media (min-width: 951px) and (max-width: 1250px) {
  header .brand {
    grid-template-columns: 100px auto;
  }
  header .brand img {
    width: 100px;
    height: 100px;
  }
  header .brand > span {
    font-size: 27px;
  }
  header nav {
    gap: 12px;
    font-size: 11px;
  }
  header {
    min-height: 118px;
  }
}
@media (max-width: 800px) {
  header nav {
    width: auto;
    flex: 1;
  }
}
@media (max-width: 600px) {
  body > header {
    padding: 5px 5%;
  }
  header nav {
    width: 100%;
    flex: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 20px;
    margin: 0;
    padding: 0 0 5px;
  }
  header nav a {
    font-size: 11px;
    padding: 8px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body > header {
    transition: none;
  }
}
.home-chapter {
  position: relative;
  background: radial-gradient(ellipse at 85% 15%, #44232d33, transparent 65%);
  padding-top: 55px;
  padding-bottom: 40px;
}
.home-chapter .announcement summary {
  padding: 15px 20px;
}
.anchor-alias {
  position: absolute;
  top: 0;
}
.news-section {
  position: relative;
  border-top: 1px solid var(--line);
}
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.news-entry {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #191a1b;
  border: 1px solid #363638;
  overflow: hidden;
}
.news-entry-image {
  width: 100%;
  height: 100%;
  min-height: 230px;
  max-height: 310px;
  object-fit: cover;
}
.news-entry:first-child .news-entry-image[src$='logo.png'] {
  object-fit: contain;
  background: #262627;
  padding: 30px;
}
.news-entry-text {
  padding: 30px;
}
.news-entry .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.news-entry h3 {
  font:
    36px/1.1 'Barlow Condensed',
    sans-serif;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.news-excerpt {
  color: #b1b1b6;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 20px;
}
.news-read {
  background: none;
  color: var(--red);
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
}
.load-news {
  display: block;
  margin: 30px auto;
}
.news-footnote {
  margin-top: 25px;
  font-size: 11px;
}
.news-dialog h2 {
  font-size: clamp(32px, 4vw, 49px);
}
.news-dialog .eyebrow {
  line-height: 1.8;
}
.news-paragraph {
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.news-full-image {
  max-height: 300px;
  object-fit: contain;
  margin: 20px 0;
  background: #252528;
}
.community-timeline {
  background: #151617;
  border-block: 1px solid var(--line);
}
.timeline {
  max-width: 1000px;
  margin: 55px auto 0;
}
.timeline article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 45px;
  position: relative;
  padding: 0 0 55px 35px;
  border-left: 1px solid #49494b;
  margin-left: 10px;
}
.timeline article:before {
  content: '';
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #777;
  border: 3px solid #151617;
  box-shadow: 0 0 0 1px #666;
}
.timeline article:last-child {
  padding-bottom: 10px;
}
.timeline-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 25px;
  color: #ccc;
  line-height: 1.4;
}
.timeline-date span {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--red);
}
.timeline h3 {
  font:
    34px/1.15 'Barlow Condensed',
    sans-serif;
  margin: 0 0 15px;
}
.timeline .eyebrow {
  font-size: 9px;
  margin-bottom: 13px;
}
.timeline p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  color: #aaa;
  max-width: 620px;
}
.timeline-current:before {
  background: var(--red) !important;
  box-shadow: 0 0 0 1px var(--red) !important;
}
.timeline-current .timeline-date {
  color: var(--red);
}
@media (max-width: 800px) {
  .news-entry {
    grid-template-columns: 200px 1fr;
  }
  .news-entry-text {
    padding: 23px;
  }
  .news-entry h3 {
    font-size: 30px;
  }
  .timeline article {
    grid-template-columns: 110px 1fr;
    gap: 25px;
    padding-left: 25px;
  }
}
@media (max-width: 550px) {
  .home-chapter {
    padding-top: 40px;
  }
  .news-entry {
    grid-template-columns: 1fr;
  }
  .news-entry-image {
    height: 190px;
    min-height: 0;
  }
  .news-entry-text {
    padding: 23px;
  }
  .news-entry h3 {
    font-size: 32px;
  }
  .timeline article {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 40px;
  }
  .timeline-date {
    font-size: 23px;
  }
  .timeline-date br {
    display: none;
  }
  .timeline h3 {
    font-size: 29px;
  }
  .timeline article .eyebrow {
    font-size: 8px;
  }
}
.news-entry-image[src$='logo.png'] {
  object-fit: contain;
  background: #262627;
  padding: 30px;
}
.news-entry-image[src$='prism-forever.png'] {
  object-fit: contain;
  background: #161719;
  padding: 0;
}
.news-entry:has(.news-entry-image[src$='prism-forever.png']) {
  grid-template-columns: 1fr;
}
.news-entry-image[src$='prism-forever.png'] {
  max-height: none;
  min-height: 0;
  height: auto;
  aspect-ratio: 3884/1618;
}
.hub-news-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 15px 0 25px;
}
.discord-community-link {
  margin: 22px 0;
}
.discord-community-link .text-link {
  color: #c2bdff;
}
header {
  gap: 15px;
}
header nav {
  flex: 1;
}
@media (max-width: 1250px) {
  header {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  header nav {
    order: 3;
    flex-basis: 100%;
  }
  header .brand {
    grid-template-columns: 72px auto;
  }
  header .brand img {
    width: 72px;
    height: 72px;
  }
  header .brand > span {
    font-size: 23px;
  }
  header .brand small {
    font-size: 6px;
    letter-spacing: 1.5px;
  }
}
/* Journal: one current lead story, followed by a compact searchable archive. */
#current-news .filters {
  flex-wrap: wrap;
}
.news-year {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.news-year select {
  background: #191a1b;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 9px 12px;
  font: inherit;
}
.news-year select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.news-result-count {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 22px;
}
.news-group-label {
  font:
    600 13px 'DM Sans',
    sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}
.news-archive-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 0;
}
.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.news-entry {
  position: relative;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.news-entry:hover {
  border-color: #777;
  background: #202122;
}
.news-entry:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.news-read:after {
  content: '';
  position: absolute;
  inset: 0;
}
.news-read:focus-visible {
  outline: none;
}
.news-archive-grid .news-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.news-archive-grid .news-entry-image {
  width: 100%;
  height: 190px;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  background: #111213;
  padding: 0;
}
.news-archive-grid .news-entry-text {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-archive-grid .news-entry h3 {
  font-size: 30px;
}
.news-archive-grid .news-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-archive-grid .news-read {
  margin-top: auto;
  align-self: flex-start;
}
.news-featured {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.news-featured:has(.news-entry-image[src$='prism-forever.png']) {
  grid-template-columns: 1fr;
}
.news-featured .news-entry-image {
  height: auto;
  max-height: none;
  min-height: 0;
  object-fit: contain;
}
.news-featured .news-entry-text {
  padding: 30px;
}
.news-dialog figure {
  margin: 24px 0;
}
.news-dialog .news-full-image {
  max-height: 65vh;
  margin: 0;
}
.news-dialog figcaption,
.news-source {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.news-source {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 25px;
}
@media (max-width: 650px) {
  .news-archive-grid {
    grid-template-columns: 1fr;
  }
  .news-year {
    margin-left: 0;
  }
  .news-featured {
    grid-template-columns: 1fr;
  }
  .news-archive-grid .news-entry-image {
    height: auto;
    aspect-ratio: 16/9;
  }
  .news-archive-grid .news-entry-text {
    padding: 22px;
  }
  .news-archive-heading {
    gap: 12px;
  }
  .news-archive-heading span {
    font-size: 11px;
  }
}
.news-feed .news-featured:has(.news-entry-image) {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.news-feed .news-featured .news-entry-image {
  height: 100%;
  max-height: 390px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #111213;
}
.news-featured .news-entry-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-featured h3 {
  font-size: clamp(30px, 2.8vw, 44px);
}
@media (max-width: 750px) {
  .news-feed .news-featured:has(.news-entry-image) {
    grid-template-columns: 1fr;
  }
  .news-feed .news-featured .news-entry-image {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }
}
/* Original Discord announcements: preserve line breaks and message boundaries. */
.discord-message {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.discord-message-meta {
  font-size: var(--discord-meta-size, 11px) !important;
  color: var(--muted) !important;
  margin: 0 0 16px !important;
}
.discord-message-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.9;
  color: #d2d2d3;
}
.discord-message-content a,
.discord-embed a,
.discord-file-link {
  color: #a9bfff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.discord-message-content em {
  font-style: italic;
  color: inherit;
}
.discord-mention {
  color: #c9c3ff;
  background: #7770bb26;
  border-radius: 3px;
  padding: 1px 3px;
}
.discord-emoji {
  white-space: nowrap;
}
.discord-attachment {
  margin: 20px 0 !important;
}
.discord-attachment img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none !important;
  object-fit: contain;
  background: #111;
}
.discord-attachment audio,
.discord-attachment video {
  display: block;
  max-width: 100%;
  width: 100%;
}
.discord-attachment figcaption {
  font-size: 10px;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.discord-embed {
  border-left: 3px solid #7770bb;
  padding: 16px;
  background: #111315;
  margin: 20px 0;
  max-width: 100%;
  overflow: hidden;
}
.discord-embed img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 12px;
}
.discord-embed .discord-message-content {
  font-size: 12px;
  margin-top: 10px;
}
.discord-code {
  background: #101112;
  border: 1px solid var(--line);
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
}
.discord-spoiler {
  background: #38383e;
  color: transparent;
  border: 0;
  border-radius: 3px;
  padding: 0 4px;
  font: inherit;
  white-space: pre-wrap;
  text-align: left;
}
.discord-spoiler * {
  visibility: hidden;
}
.discord-spoiler.revealed {
  color: inherit;
  background: #44444a;
}
.discord-spoiler.revealed * {
  visibility: visible;
}
.news-dialog {
  max-width: 1050px;
}
.news-origin {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 12px;
}
.news-excerpt:empty {
  display: none;
}
.hub-card .discord-message-content {
  font-size: 13px;
}
/* News-first homepage: a single lead story and equal-sized announcement cards. */
#current-news {
  padding-top: 44px;
  border-top: 0;
}
#current-news h1 {
  font-size: clamp(46px, 5vw, 68px);
  line-height: 1.05;
}
#current-news .section-head {
  margin-bottom: 26px;
}
#chapter {
  border-top: 1px solid var(--line);
  padding-top: 70px;
  padding-bottom: 65px;
}
.news-feed {
  gap: 24px;
}
.news-feed .news-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #343638;
  background: #191a1b;
}
.news-feed .news-archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  grid-auto-rows: 1fr;
}
.news-card-media {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #171a21;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.news-image-backdrop {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(22px) brightness(0.38);
  z-index: -1;
  pointer-events: none;
}
.news-feed .news-card-media .news-entry-image {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 10px;
  background: transparent;
}
.news-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(ellipse at center, #30303d, #15171c 75%);
}
.news-placeholder img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  opacity: 0.7;
}
.news-placeholder span {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #8f93a0;
}
.news-feed .news-archive-grid .news-entry-text {
  height: 244px;
  flex: none;
  padding: 23px;
  display: flex;
  flex-direction: column;
}
.news-feed .news-archive-grid .news-entry h3 {
  font-size: 29px;
  line-height: 1.12;
  min-height: 65px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
}
.news-feed .news-archive-grid .news-excerpt {
  font-size: 12px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  margin: 0 0 14px;
}
.news-feed .news-entry .eyebrow {
  margin: 0 0 7px;
}
.news-feed .news-origin {
  margin: 0 0 14px;
  font-size: 10px;
}
.news-feed .news-read {
  margin-top: auto;
  align-self: flex-start;
}
.news-feed .news-featured,
.news-feed .news-featured:has(.news-entry-image) {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.news-feed .news-featured .news-card-media {
  aspect-ratio: auto;
  height: 350px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.news-feed .news-featured .news-entry-text {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-feed .news-featured h3 {
  font-size: clamp(32px, 3.3vw, 49px);
  line-height: 1.08;
  margin: 8px 0 20px;
}
.news-featured .news-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
}
.news-archive-heading {
  margin: 12px 0 0;
}
.news-feature-label {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 2px;
  margin: 0 0 22px;
}
@media (max-width: 1100px) {
  .news-feed .news-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-feed .news-featured .news-card-media {
    height: 320px;
  }
  .news-feed .news-featured .news-entry-text {
    padding: 26px;
  }
}
@media (max-width: 750px) {
  .news-feed .news-featured,
  .news-feed .news-featured:has(.news-entry-image) {
    grid-template-columns: 1fr;
  }
  .news-feed .news-featured .news-card-media {
    height: auto;
    aspect-ratio: 2/1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .news-feed .news-featured .news-entry-text {
    min-height: 220px;
  }
  .news-feature-label {
    margin-bottom: 12px;
  }
}
@media (max-width: 600px) {
  #current-news {
    padding-top: 30px;
  }
  .news-feed .news-archive-grid {
    grid-template-columns: 1fr;
  }
  .news-feed .news-archive-grid .news-entry-text {
    height: 244px;
  }
  .news-feed .news-featured h3 {
    font-size: 37px;
  }
  .news-card-media {
    aspect-ratio: 16/9;
  }
}
/* Keep navigation geometry stable while scrolling. */
body > header {
  min-height: 94px;
  padding: 6px 5%;
  transition: none;
}
header .brand {
  grid-template-columns: 80px auto;
  gap: 12px;
}
header .brand img {
  width: 80px;
  height: 80px;
}
header .brand > span {
  font-size: 25px;
}
header .brand small {
  font-size: 7px;
  letter-spacing: 1.8px;
  margin-top: 6px;
}
@media (max-width: 600px) {
  body > header {
    min-height: 0;
    padding: 8px 5%;
  }
  header .brand {
    grid-template-columns: 64px auto;
  }
  header .brand img {
    width: 64px;
    height: 64px;
  }
  header .brand > span {
    font-size: 23px;
  }
  header .brand small {
    font-size: 6px;
  }
}
/* Section headings always clear both rows of the sticky navigation. */
html {
  scroll-behavior: auto;
  scroll-padding-top: var(--navigation-offset, 150px);
}
main > section[id] {
  scroll-margin-top: 0;
}
#account {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
header nav a[aria-current='location'] {
  color: white;
}
@media (max-width: 1100px) {
  body > header {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  header nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    padding: 5px 0;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }
  #account {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  header nav {
    gap: 5px 18px;
    justify-content: flex-start;
    white-space: normal;
  }
  header nav a {
    padding: 7px 0;
  }
  #account {
    font-size: 10px;
    white-space: normal;
    flex-wrap: wrap;
    max-width: 150px;
  }
  #account button {
    padding: 7px;
  }
}
/* Latest news and the next public event form one opening view. */
.home-news-lead {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: stretch;
}
.news-feed .home-news-lead .news-featured,
.news-feed .home-news-lead .news-featured:has(.news-entry-image) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.news-feed .home-news-lead .news-featured .news-card-media {
  height: auto;
  aspect-ratio: 2.4/1;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.news-feed .home-news-lead .news-featured .news-entry-text {
  padding: 26px;
  min-height: 220px;
  flex: 1;
  justify-content: flex-start;
}
.news-feed .home-news-lead .news-featured h3 {
  font-size: clamp(30px, 3vw, 44px);
  margin: 4px 0 16px;
}
.home-news-lead .news-feature-label {
  margin-bottom: 14px;
}
.home-event-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #5a4540;
  background: radial-gradient(ellipse at 100% 0, #63322c33, transparent 65%), #191a1b;
  padding: 28px;
}
.home-event-panel > .eyebrow {
  margin-bottom: 24px;
}
.home-event-panel h2 {
  font:
    500 32px/1.12 'Barlow Condensed',
    sans-serif;
  letter-spacing: 0;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.home-event-panel time {
  font-size: 11px;
  line-height: 1.8;
  color: #ddd;
}
.home-event-intro {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 17px 0;
}
.home-event-panel .button {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 15px 12px;
  font-size: 11px;
}
.home-event-panel > .text-link {
  font-size: 11px;
  align-self: center;
  margin-top: 18px;
}
.home-event-panel > h2:first-of-type:not(:has(+ time)) {
  margin-top: 20px;
}
/* Seven eras, each with optional dated milestones and original sources. */
.timeline {
  max-width: 1050px;
  margin: 48px auto 0;
}
.timeline .timeline-era {
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 40px;
}
.timeline-era .timeline-date {
  font-size: 27px;
  line-height: 1.2;
}
.timeline-era .timeline-date > span {
  display: block;
  font:
    9px/1.8 'DM Sans',
    sans-serif;
  letter-spacing: 1.5px;
  margin-top: 12px;
}
.timeline-era h3 {
  font-size: 34px;
  margin-top: 0;
}
.timeline-era-content > p:not(.eyebrow) {
  max-width: 720px;
}
.timeline-details {
  margin-top: 22px;
  border: 1px solid #38393d;
  background: #191a1b;
}
.timeline-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-size: 12px;
  color: #c8c8cd;
}
.timeline-details summary::-webkit-details-marker {
  display: none;
}
.timeline-details summary > span {
  font-size: 20px;
  color: var(--red);
}
.timeline-details[open] summary > span {
  transform: rotate(45deg);
}
.timeline-details summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.timeline-details ol {
  list-style: none;
  padding: 0 22px 10px;
  margin: 0;
}
.timeline-details li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.timeline-details h4 {
  font:
    500 25px/1.2 'Barlow Condensed',
    sans-serif;
  margin: 0 0 10px;
}
.timeline .timeline-details p.timeline-milestone-date {
  font-size: 10px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 9px;
}
.timeline .timeline-details li > p:not(.timeline-milestone-date) {
  font-size: 12px;
  margin: 0 0 12px;
}
.timeline-details .text-link {
  font-size: 11px;
  color: #eee;
}
.timeline-details .timeline-member-link {
  color: #a7a7b0;
}
.timeline-note {
  max-width: 850px;
  margin: 40px auto 0;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
@media (max-width: 800px) {
  .home-news-lead {
    grid-template-columns: 1fr;
  }
  .home-event-panel {
    padding: 25px;
  }
  .home-event-panel h2 {
    font-size: 32px;
  }
  .home-event-panel .button {
    margin-top: 10px;
  }
  .timeline .timeline-era {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 24px;
  }
  .timeline-era .timeline-date {
    font-size: 22px;
  }
}
@media (max-width: 550px) {
  .timeline .timeline-era {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 32px;
  }
  .timeline-era .timeline-date {
    font-size: 23px;
  }
  .timeline-era .timeline-date > span {
    display: inline;
    margin-left: 12px;
  }
  .timeline-era h3 {
    font-size: 29px;
  }
  .timeline-details summary {
    padding: 15px;
    font-size: 11px;
  }
  .timeline-details ol {
    padding-inline: 15px;
  }
  .news-feed .home-news-lead .news-featured .news-entry-text {
    min-height: 210px;
    padding: 22px;
  }
  .news-feed .home-news-lead .news-featured h3 {
    font-size: 34px;
  }
}
#current-news .section-head {
  margin-bottom: 26px;
}
#current-news .news-feed > .filters {
  margin: 0;
  gap: 8px;
}
#current-news .news-feed > .filters > .search {
  margin-left: 15px;
  width: 220px;
  padding: 9px 0;
}
#current-news .news-feed > .news-result-count {
  margin: 0;
  color: var(--muted);
}
.news-feed > .news-archive-heading {
  padding-top: 12px;
}
.news-feed .news-archive-heading h2.news-group-label {
  font:
    600 13px 'DM Sans',
    sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}
@media (max-width: 800px) {
  #current-news .news-feed > .filters > .search {
    margin-left: 0;
    width: 100%;
    flex-basis: 100%;
  }
  #current-news .news-year {
    margin-left: auto;
  }
}
/* One main navigation; personal tools live under the signed-in account. */
.hub-shell {
  display: block;
  max-width: 1280px;
  margin-inline: auto;
  padding: 42px 8% 90px;
}
.hub-content {
  width: 100%;
}
.account-menu {
  position: relative;
  font-size: 12px;
}
.account-menu > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding: 12px 15px;
  border: 1px solid #525259;
  background: #1b1c20;
  color: #eee;
  min-width: 110px;
}
.account-menu > summary::-webkit-details-marker {
  display: none;
}
.account-menu > summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.account-menu > summary > span:last-child {
  color: var(--red);
  font-size: 16px;
}
@media (max-width: 600px) {
  .hub-shell {
    padding: 28px 6% 65px;
  }
  .account-menu > summary {
    padding: 10px 12px;
    font-size: 11px;
  }
  .account-menu {
    max-width: 150px;
  }
  .account-menu > summary > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* One shared community page, with focused personal and admin workspaces. */
.community-events,
.community-members {
  border-top: 1px solid var(--line);
}
.community-events {
  background: #151617;
}
.community-member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.community-member-card {
  position: relative;
  min-width: 0;
  border: 1px solid #38393e;
  background: #1a1b1e;
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.community-member-card:hover {
  border-color: #777;
}
.community-member-card:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.community-member-card h3 {
  font:
    500 31px/1.12 'Barlow Condensed',
    sans-serif;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.community-event-time {
  font-size: 12px;
  line-height: 1.8;
  color: #ddd;
  margin: 0 0 16px;
}
.community-card-copy {
  color: #aaa;
  font-size: 13px;
  line-height: 1.9;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.community-card-action {
  background: none;
  border: 0;
  color: var(--red);
  padding: 12px 0 0;
  margin-top: auto;
  align-self: flex-start;
  font:
    12px 'DM Sans',
    sans-serif;
}
.community-card-action:after {
  content: '';
  position: absolute;
  inset: 0;
}
.community-card-action:focus-visible {
  outline: none;
}
.community-member-tools {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
}
.community-member-tools input {
  max-width: 400px;
}
.community-member-tools select {
  min-width: 140px;
}
.community-empty {
  grid-column: 1/-1;
  border: 1px dashed #444;
  padding: 35px;
  font-size: 13px;
  line-height: 1.9;
  color: #aaa;
}
.community-dialog {
  max-width: 900px;
  width: 92%;
  padding: 40px;
  max-height: 90vh;
}
.community-dialog h2 {
  font-size: 44px;
  line-height: 1.08;
  margin: 12px 0 24px;
}
.community-event-description {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.9;
  color: #bbb;
}
.community-event-message {
  color: #d4c0a6;
  font-size: 12px;
}
.community-signup-form {
  border: 1px solid var(--line);
  background: #121315;
  padding: 22px;
  margin: 24px 0;
}
.community-signup-form h3,
.community-event-team h3,
.community-member-character h3 {
  font:
    500 28px/1.2 'Barlow Condensed',
    sans-serif;
  margin: 0 0 17px;
}
.community-signup-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: #bbb;
  margin-bottom: 20px;
}
.community-signup-form select {
  width: 100%;
}
.community-signup-form > .button {
  border: 0;
  margin-right: 12px;
}
.community-event-team,
.community-member-character {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.community-event-team p,
.community-member-character p {
  font-size: 13px;
  line-height: 1.8;
}
.timeline-media {
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.timeline-media-section {
  padding: 55px 0 0;
  margin: 0;
}
.timeline-media-section .section-head h2 {
  font-size: 42px;
}
.hub-content h1 {
  font-size: 45px;
}
.hub-shell {
  min-height: 65vh;
}
.hub-content .section-head {
  margin-top: 0;
}
@media (max-width: 1000px) {
  .community-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .community-member-grid {
    grid-template-columns: 1fr;
  }
  .community-member-tools {
    flex-direction: column;
    gap: 12px;
  }
  .community-member-tools input,
  .community-member-tools select {
    width: 100%;
    max-width: none;
  }
  .community-dialog {
    padding: 35px 20px;
  }
  .community-dialog h2 {
    font-size: 35px;
  }
  .community-signup-form {
    padding: 18px;
  }
  .community-signup-form .button {
    margin-bottom: 12px;
  }
  .timeline-media-section .section-head h2 {
    font-size: 35px;
  }
  .hub-content h1 {
    font-size: 38px;
  }
}

#archive-photos figure {
  margin: 0;
  min-width: 0;
}
#archive-photos button {
  width: 100%;
}
#archive-photos figcaption {
  padding: 16px 0 24px;
}
#archive-photos figcaption small {
  color: var(--muted, #999);
  font-size: 12px;
}
#archive-photos figcaption p {
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
}
#archive-photos img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #101318;
}

/* Roster composition */
.roster-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid #38393e;
  margin-bottom: 18px;
  background: #18191b;
}
.roster-summary > div {
  padding: 24px;
  border-right: 1px solid #38393e;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roster-summary > div:last-child {
  border: 0;
}
.roster-summary strong {
  font:
    500 42px/1 'Barlow Condensed',
    sans-serif;
  color: #fff;
}
.roster-summary span {
  font-size: 12px;
  color: #aaa;
}
.roster-demo-note {
  padding: 12px 16px;
  border-left: 3px solid #caa16a;
  background: #caa16a12;
  color: #dbc3a1;
  font-size: 12px;
  margin-bottom: 25px;
}
.community-member-tools {
  flex-wrap: wrap;
}
.community-member-tools input {
  flex: 1;
  min-width: 200px;
}
.community-member-tools select {
  flex: 1;
  min-width: 140px;
}
.roster-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 25px;
}
.roster-stat-panel {
  padding: 24px;
  background: #18191b;
  border: 1px solid #38393e;
}
.roster-stat-panel h3 {
  font:
    500 28px 'Barlow Condensed',
    sans-serif;
  margin: 0 0 8px;
}
.roster-stat-panel > .muted-copy {
  min-height: 36px;
  font-size: 12px;
  line-height: 1.6;
}
.roster-role-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
}
.roster-role-row strong {
  font-size: 11px;
  font-weight: 400;
  color: #aaa;
}
.roster-track {
  grid-column: 1/-1;
  height: 6px;
  background: #303135;
  overflow: hidden;
  border-radius: 4px;
}
.roster-track span {
  display: block;
  height: 100%;
  background: var(--red);
}
.roster-class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 18px;
}
.roster-class-total {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--class-color);
}
.roster-class-total strong {
  margin-left: auto;
  color: #eee;
}
.roster-class-total .wow-class-icon {
  width: 28px;
  height: 28px;
}
.wow-class-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #555;
  border-radius: 8px;
  flex-shrink: 0;
}
.roster-character-card {
  border-top: 3px solid var(--class-color);
  padding: 23px;
}
.roster-character-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.roster-character-head .eyebrow {
  font-size: 9px;
  margin: 0 0 7px;
  color: #aaa;
}
.roster-character-head h3 {
  font-size: 26px;
  margin: 0;
}
.roster-class-name {
  color: var(--class-color);
  font-size: 12px;
  margin: 0 0 18px;
}
.roster-primary {
  font-size: 14px;
  color: #eee;
  margin: 0 0 8px;
}
.roster-character-card .muted-copy {
  font-size: 12px;
}
.roster-character-card .community-card-copy {
  font-size: 11px;
  margin-top: 14px;
}
.community-member-character > .wow-class-icon {
  float: right;
}
.roster-assets-credit {
  font-size: 10px;
  color: #888;
  margin-top: 25px;
}
@media (max-width: 900px) {
  .roster-summary {
    grid-template-columns: repeat(3, 1fr);
  }
  .roster-breakdown {
    grid-template-columns: 1fr;
  }
  .community-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .roster-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .roster-summary > div {
    padding: 18px;
  }
  .community-member-grid {
    grid-template-columns: 1fr;
  }
  .roster-class-grid {
    grid-template-columns: 1fr 1fr;
  }
  .community-member-tools {
    gap: 10px;
  }
  .community-member-tools input {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
}

/* Consistent navigation, cropped media and compact character cards. */
body > header {
  padding-inline: 8%;
  gap: 24px;
  align-items: center;
}
body > header > .brand {
  flex-shrink: 0;
}
body > header > nav {
  justify-content: center;
  align-items: center;
  gap: 22px;
}
body > header > #account {
  margin-left: 0;
  align-self: center;
  font-size: 12px;
}
#account > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #45464b;
  line-height: 1.3;
}
.account-menu > summary {
  min-height: 40px;
  line-height: 1.3;
  padding: 10px 14px;
}
.news-feed .news-card-media .news-entry-image {
  object-fit: cover;
  padding: 0;
  aspect-ratio: 16/9;
}
.news-feed .news-featured .news-card-media {
  aspect-ratio: 16/9;
  height: auto;
  align-self: start;
}
.news-image-backdrop {
  display: none;
}
.gallery > button,
.gallery figure > button {
  display: block;
  overflow: hidden;
}
.gallery > button img,
#archive-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.video-card > img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.community-member-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.community-member-card.roster-character-card {
  padding: 14px;
  border-top-width: 2px;
}
.roster-character-head {
  gap: 10px;
  margin-bottom: 9px;
}
.roster-character-head .wow-class-icon {
  width: 36px;
  height: 36px;
  border-radius: 5px;
}
.roster-character-head h3 {
  font-size: 21px;
  line-height: 1.1;
}
.roster-character-head .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.roster-character-card .roster-class-name {
  margin: 0 0 8px;
  font-size: 11px;
}
.roster-character-card .roster-primary {
  font-size: 12px;
  margin: 0 0 4px;
}
.roster-character-card .muted-copy {
  font-size: 10px;
  margin: 0 0 4px;
}
.roster-character-card .community-card-copy {
  margin: 7px 0;
  font-size: 10px;
}
.roster-character-card .community-card-action {
  padding: 7px 0 0;
  font-size: 10px;
}
.community-events > .section-head .muted-copy {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 0;
}
@media (max-width: 1200px) {
  body > header {
    flex-wrap: wrap;
    height: auto;
    min-height: 98px;
    padding-block: 10px;
  }
  body > header > #account {
    margin-left: auto;
  }
  body > header > nav {
    order: 3;
    flex: 1 0 100%;
    gap: 22px;
  }
  .community-member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .community-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body > header {
    padding-inline: 6%;
    gap: 8px 12px;
  }
}
@media (max-width: 480px) {
  body > header > nav {
    gap: 8px 18px;
    justify-content: flex-start;
    font-size: 11px;
  }
  .community-member-grid {
    grid-template-columns: 1fr;
  }
  .news-feed .news-featured .news-card-media {
    aspect-ratio: 16/9;
    height: auto;
  }
  #account > a {
    font-size: 10px;
    padding: 8px 10px;
  }
}
.video-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Equal photo frames, with the complete image visible. */
#gallery .gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
#gallery .gallery > button,
#gallery .gallery figure > button {
  width: 100%;
  min-width: 0;
  align-self: start;
}
#gallery .gallery img,
#gallery #archive-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #000;
  filter: none;
  transform: none;
}
#gallery .gallery button:hover img {
  transform: none;
  filter: none;
}
@media (max-width: 900px) {
  #gallery .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  #gallery .gallery {
    grid-template-columns: 1fr;
  }
}

/* Community overview and consistent, compact browsing. */
.community-intro {
  max-width: 770px;
  color: #bfc0c3;
  font-size: 14px;
  line-height: 1.85;
  margin: 20px 0 0;
}
.community-intro a {
  color: #f08b85;
  white-space: nowrap;
}
.home-event-panel .button {
  margin-top: 10px;
}
.home-event-list {
  margin-top: 22px;
  border-top: 1px solid #494044;
}
.home-event-list h3 {
  font-size: 12px;
  margin: 18px 0 8px;
  color: #d5c6c4;
}
.home-event-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid #494044;
}
.home-event-mini time {
  font-size: 11px;
  color: #d1b4b0;
}
.home-event-mini span {
  font-size: 13px;
  line-height: 1.5;
}
.home-event-mini:hover span {
  color: var(--red);
}
.home-event-intro {
  line-height: 1.65;
}
.event-agenda {
  margin-top: 25px;
}
.agenda-week {
  font:
    500 25px 'Barlow Condensed',
    sans-serif;
  margin: 28px 0 12px;
}
.agenda-row {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  align-items: center;
  gap: 25px;
  padding: 20px;
  background: #191a1b;
  border: 1px solid #36373b;
  margin-bottom: 10px;
}
.agenda-row > time {
  font:
    500 23px/1.3 'Barlow Condensed',
    sans-serif;
  color: #ef8d86;
}
.agenda-row h3 {
  font:
    500 26px/1.2 'Barlow Condensed',
    sans-serif;
  margin: 0 0 8px;
}
.agenda-row .muted-copy {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.agenda-row > .outline-button {
  font-size: 12px;
  padding: 12px;
}
.signup-status {
  display: inline-block;
  font-size: 11px;
  color: #b5b5bc;
  margin-top: 9px;
}
.signup-status.joined {
  color: #9bddb4;
}
.signup-unverified {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ddb777;
  border: 1px solid currentColor;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.roster-statistics {
  margin: 18px 0 24px;
  border: 1px solid #38393e;
  background: #17181a;
}
.roster-statistics > summary {
  padding: 16px;
  cursor: pointer;
  font-size: 13px;
  color: #d3d3d8;
}
.roster-statistics .roster-breakdown {
  margin: 0;
  padding: 12px;
  gap: 12px;
}
.roster-summary > div {
  padding: 15px 20px;
}
.roster-summary strong {
  font-size: 32px;
}
.roster-demo-note {
  font-size: 11px;
  padding: 8px 12px;
}
.community-member-card .muted-copy {
  color: #b1b2b8;
}
.event-role-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.event-role-counts > span {
  padding: 9px;
  background: #292a30;
  font-size: 12px;
}
.event-team-player {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
.event-team-player .wow-class-icon {
  width: 32px;
  height: 32px;
}
.photo-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.photo-navigation span {
  font-size: 12px;
}
.photo-filters {
  margin: 20px 0;
}
.photo-filters select,
.video-section .filters select {
  padding: 10px;
  min-width: 140px;
}
.video-section .filters input {
  padding: 10px;
  min-width: 180px;
}
#archive-photos figcaption {
  font-size: 11px;
  color: #b2b3b9;
  padding: 12px 0 18px;
}
.muted-copy {
  color: #aaaeb5;
}
.privacy-copy {
  max-width: 850px;
  line-height: 1.9;
}
.privacy-copy h2 {
  font-size: 30px;
  margin-top: 35px;
}
.privacy-copy p,
.privacy-copy li {
  font-size: 14px;
  color: #c0c1c5;
}
@media (max-width: 650px) {
  .agenda-row {
    grid-template-columns: 78px 1fr;
    gap: 14px;
    padding: 16px;
  }
  .agenda-row > .outline-button {
    grid-column: 2;
    justify-self: start;
  }
  .agenda-row h3 {
    font-size: 23px;
  }
  .community-intro {
    font-size: 13px;
  }
  .home-event-list {
    margin-top: 15px;
  }
  .photo-navigation .outline-button {
    font-size: 11px;
    padding: 10px;
  }
}
.video-section .filters,
.photo-filters {
  flex-wrap: wrap;
}
.video-section .filters input {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 200px;
}
.video-section .filters select {
  max-width: 100%;
}
.agenda-row > div {
  min-width: 0;
}
.agenda-row h3 {
  overflow-wrap: anywhere;
}

.news-placeholder img {
  width: 140px;
  height: 140px;
  opacity: 0.9;
}
.news-placeholder span {
  font-size: 12px;
  letter-spacing: 3px;
}
.roster-breakdown {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.coverage-line {
  font-size: 13px;
  color: #e0e0e3;
  border-bottom: 1px solid #333;
  padding: 10px 0;
  margin: 0;
}
.community-member-grid.roster-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roster-list .roster-character-card {
  display: grid;
  grid-template-columns:
    minmax(210px, 1.5fr) 90px minmax(110px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr)
    auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid #38393e;
  border-left: 3px solid var(--class-color);
}
.roster-list .roster-character-head {
  margin: 0;
}
.roster-list .roster-character-card p {
  margin: 0;
}
.roster-list .community-card-action {
  position: static;
  padding: 8px;
  font-size: 12px;
}
.roster-list .community-card-action:after {
  display: none;
}
.roster-list .roster-character-card:not(:has(.muted-copy)) .community-card-copy {
  grid-column: 5;
}
.roster-list .roster-character-card:not(:has(.muted-copy)) .community-card-action {
  grid-column: 6;
}
.media-heading {
  padding-top: 45px;
}
.timeline-media-section {
  padding-top: 30px;
}
.timeline-media-section .section-head h2 {
  font-size: 32px;
}
.photo-date {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e4e4e7;
  line-height: 1.6;
  margin-bottom: 5px;
}
#archive-photos figcaption small {
  font-size: 11px;
  color: #aaa;
}
#archive-photos figure {
  background: #191a1b;
  border: 1px solid #343638;
}
#archive-photos figure button > span {
  font:
    500 24px/1.2 'Barlow Condensed',
    sans-serif;
  padding: 16px 18px 8px;
}
#archive-photos figcaption {
  padding: 0 18px 16px;
}
.video-card {
  border: 1px solid #343638;
  background: #191a1b;
}
.video-card h3 {
  font:
    500 24px/1.2 'Barlow Condensed',
    sans-serif;
}
@media (max-width: 1100px) {
  .roster-list .roster-character-card {
    grid-template-columns: minmax(190px, 1.5fr) 80px 1fr 1fr;
  }
  .roster-list .community-card-copy {
    grid-column: 1/3 !important;
  }
  .roster-list .community-card-action {
    grid-column: 4 !important;
    justify-self: end;
  }
  .roster-breakdown {
    grid-template-columns: 1fr 1fr;
  }
  .roster-coverage {
    grid-column: 1/-1;
  }
}
@media (max-width: 650px) {
  .roster-breakdown {
    grid-template-columns: 1fr;
  }
  .roster-list .roster-character-card {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .roster-list .roster-character-head {
    grid-column: 1/-1;
  }
  .roster-list .community-card-copy {
    grid-column: 1 !important;
  }
  .roster-list .community-card-action {
    grid-column: 2 !important;
  }
  .news-placeholder img {
    width: 110px;
    height: 110px;
  }
}
.news-audience {
  align-self: flex-start;
  font-size: 10px;
  border: 1px solid #46464e;
  border-radius: 3px;
  padding: 4px 7px;
  color: #c7c7d0;
  margin-bottom: 12px;
}
.unified-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}
.unified-media-card {
  padding: 0;
  border: 1px solid #36373c;
  background: #191a1b;
  color: #eee;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}
.unified-media-card:hover {
  border-color: #888;
}
.unified-media-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: black;
}
.unified-media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-kind {
  position: absolute;
  right: 9px;
  bottom: 9px;
  background: #101112df;
  border: 1px solid #555;
  padding: 5px 8px;
  font-size: 10px;
}
.media-card-copy {
  padding: 17px;
}
.media-card-copy h3 {
  font:
    500 25px/1.2 'Barlow Condensed',
    sans-serif;
  margin: 0 0 12px;
}
.media-card-copy p {
  font-size: 11px;
  color: #aaa;
  margin: 7px 0 0;
}
.media-toolbar {
  flex-wrap: wrap;
}
.media-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.media-invitation p {
  max-width: 740px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #aaa);
}
.media-invitation > a {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .media-invitation {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
.media-toolbar input {
  margin-left: auto;
  min-width: 180px;
  padding: 10px;
}
.timeline-media .section-head.media-heading {
  padding-top: 0;
}
.discord-rank {
  display: inline-block;
  font-size: 10px;
  color: #d5b88b;
  margin-top: 5px;
}
.roster-class-grid {
  grid-template-columns: 1fr;
  gap: 9px;
}
.roster-class-total {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 7px;
  font-size: 11px;
}
.roster-class-total .wow-class-icon {
  width: 24px;
  height: 24px;
}
.class-bar {
  grid-column: 2/-1;
  height: 4px;
  background: #303136;
}
.class-bar span {
  display: block;
  height: 100%;
  background: var(--class-color);
}
@media (max-width: 900px) {
  .unified-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .unified-media-grid {
    grid-template-columns: 1fr;
  }
  .media-toolbar input {
    width: 100%;
    margin-left: 0;
  }
  .media-card-copy h3 {
    font-size: 23px;
  }
}
.roster-class-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.roster-class-total {
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  font-size: 10px;
}
.roster-class-total strong {
  font-size: 10px;
  white-space: nowrap;
}
.roster-class-total .wow-class-icon {
  width: 22px;
  height: 22px;
}
.roster-class-total > span {
  overflow-wrap: anywhere;
}
@media (max-width: 550px) {
  .roster-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared header, media and admin preview refinements */
header .brand {
  align-items: center;
  gap: 14px;
  line-height: 1.05;
}
header .brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}
header .brand > span {
  display: block;
}
header .brand small {
  line-height: 1.4;
  margin-top: 7px;
}
header {
  min-height: 112px;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  align-items: center;
}
.view-as-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 5%;
  background: #25202b;
  border-bottom: 1px solid #65526e;
  font-size: 12px;
}
.view-as-bar label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.view-as-bar select {
  background: #17151a;
  color: #fff;
  padding: 7px;
  border: 1px solid #75627e;
}
.view-as-bar span {
  color: #cfbfd7;
}
.unified-media-thumb.media-video-thumb img {
  object-fit: cover;
  transform: none;
}
.unified-media-thumb {
  overflow: hidden;
}
#viewer.image-viewer {
  width: 96vw;
  max-width: 1800px;
  max-height: 96vh;
  padding: 40px 24px 24px;
}
#viewer.image-viewer #dialog-content > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  margin: 18px auto;
}
.zoomable-image {
  cursor: zoom-in;
}
#viewer.image-viewer #dialog-content > img.is-zoomed {
  width: auto;
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.news-dialog {
  width: min(1200px, 96vw);
  max-width: 96vw;
}
.discord-attachment img {
  max-height: 75vh;
  width: 100%;
  object-fit: contain;
}
.video-dialog {
  width: min(1200px, 96vw);
  max-width: 96vw;
  padding: 40px 20px 20px;
}
.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
}
.timeline-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.timeline-images button {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-align: left;
}
.timeline-images img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #08090a;
}
.timeline-images span {
  display: block;
  padding: 12px;
}
@media (max-width: 650px) {
  header .brand img {
    width: 64px;
    height: 64px;
  }
  header {
    min-height: 94px;
  }
  .view-as-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  #viewer.image-viewer {
    padding: 40px 12px 16px;
  }
}

body > header {
  min-height: 120px;
  padding: 8px 5%;
  align-items: center;
}
header .brand {
  grid-template-columns: 100px auto;
  align-items: center;
}
header .brand img {
  width: 100px;
  height: 100px;
}
header .brand > span {
  align-self: center;
}
@media (max-width: 650px) {
  body > header {
    min-height: 100px;
  }
  header .brand {
    grid-template-columns: 76px auto;
  }
  header .brand img {
    width: 76px;
    height: 76px;
  }
}

/* Account and teams */
body > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  padding-inline: 8%;
}
body > header nav {
  justify-content: center;
  flex-wrap: wrap;
}
body > header #account {
  justify-self: end;
  margin: 0;
}
.account-settings-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  max-width: 190px;
}
.account-settings-button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-gear {
  font-size: 23px;
  line-height: 1;
  color: var(--red);
}
.account-tabs {
  display: flex;
  gap: 24px;
  padding-block: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.account-tabs [aria-current='page'] {
  color: var(--red);
}
.view-as-control {
  padding: 18px;
  border: 1px solid #63556b;
  margin-bottom: 24px;
}
.view-as-control select {
  margin-left: 12px;
}
.role-composition-bar {
  display: flex;
  overflow: hidden;
  border-radius: 6px;
  height: 20px;
  margin-bottom: 16px;
  background: #25282b;
}
.role-composition-bar span {
  height: 100%;
  min-width: 0;
  background: var(--role-color);
}
.roster-role-row .roster-track > span {
  background: var(--role-color);
}
.role-color-label {
  border-left: 4px solid var(--role-color);
  padding-left: 10px;
}
.team-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.team-selector select {
  max-width: 100%;
}
@media (max-width: 900px) {
  body > header {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-inline: 5%;
  }
  body > header nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
  }
  body > header #account {
    grid-column: 2;
    grid-row: 1;
  }
  .account-settings-button {
    max-width: 155px;
  }
  .account-tabs {
    gap: 16px;
  }
}

/* Character creation: choose a class, pick your role, meet your character */
.character-creator {
  max-width: 780px;
  margin: auto;
}
.character-creator > h3 {
  font-size: 36px;
  margin-bottom: 8px;
}
.creator-context {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 22px;
}
.character-live-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(115deg, #26232c, #181b21);
  border: 1px solid #46404d;
  margin-bottom: 24px;
  min-height: 88px;
}
.character-live-preview img {
  width: 48px;
  height: 48px;
  border-radius: 7px;
}
.character-live-preview strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
}
.character-live-preview span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #bdc1c9;
}
.creator-section {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
.creator-section legend {
  font-size: 15px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 13px;
}
.creator-section .muted-copy {
  font-size: 11px;
  margin: 8px 0 0;
}
.class-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.role-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.character-creator .creator-choice {
  display: block;
  position: relative;
  margin: 0;
  cursor: pointer;
}
.creator-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.creator-choice-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 10px;
  background: #1d1e22;
  border: 1px solid #414247;
  border-radius: 6px;
  font-size: 12px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.creator-choice-face img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
}
.creator-choice input:checked + .creator-choice-face {
  border-color: var(--role-color, #d6ac65);
  background: #35302a;
  box-shadow: inset 0 0 0 1px var(--role-color, #d6ac65);
}
.creator-choice input:focus-visible + .creator-choice-face {
  outline: 2px solid white;
  outline-offset: 3px;
}
.creator-choice:hover .creator-choice-face {
  background: #292b31;
  border-color: #a2a5ad;
}
.role-choice-grid .creator-choice-face {
  border-top: 3px solid var(--role-color);
  min-height: 58px;
}
.creator-review-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.character-creator > .button {
  margin-right: 12px;
}
.character-creator .checkbox {
  margin-bottom: 18px;
}
.character-creator [hidden] {
  display: none !important;
}
@media (max-width: 560px) {
  .class-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .class-choice-grid .creator-choice-face {
    flex-direction: column;
    padding: 9px 4px;
    font-size: 11px;
  }
  .role-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-error {
  color: #ffb2aa;
  background: #462521;
  border: 1px solid #874b42;
  padding: 12px;
  border-radius: 5px;
  line-height: 1.6;
}

/* Account cards and role previews */
.account-tabs {
  gap: 8px;
  flex-wrap: wrap;
}
.account-tabs a {
  border-radius: 7px;
}
.account-tabs a[aria-current='page'] {
  background: #38302a;
  color: #efd5ae;
  border-color: #a88b62;
}
.account-character-card {
  border-left: 3px solid var(--class-color);
  border-radius: 8px;
  background: linear-gradient(110deg, #23242b, #18191b);
}
.account-character-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-character-heading img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--class-color);
  border-radius: 8px;
}
.account-character-heading h3 {
  color: var(--class-color);
  margin: 0;
}
.management-character-search {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  background: #1b1c20;
  color: white;
  border: 1px solid #494a50;
  border-radius: 7px;
}
.header-view-control {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.header-view-control label {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.header-view-control select {
  max-width: 115px;
  padding: 7px;
  background: #24252a;
  color: #eed4ad;
  border: 1px solid #756144;
  border-radius: 6px;
}
.header-view-control p {
  display: none;
}
#account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.view-as-bar {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 10px 8%;
  background: #4a3723;
  color: #ffe0ac;
  border-bottom: 1px solid #b58b4b;
  font-size: 12px;
}
.view-as-bar button {
  background: #231e18;
  color: #ffe0ac;
  border: 1px solid #b58b4b;
  padding: 6px 10px;
  border-radius: 5px;
}
@media (max-width: 650px) {
  #account {
    gap: 6px;
  }
  .header-view-control label {
    font-size: 0;
  }
  .header-view-control select {
    font-size: 11px;
    max-width: 95px;
  }
  .view-as-bar {
    padding: 10px 5%;
    flex-wrap: wrap;
  }
}
.hub-content .account-tabs {
  display: flex;
  gap: 8px;
  padding: 0 0 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #37383d;
}
.hub-content .account-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #3d3e44;
  background: #1a1b20;
  font-size: 12px;
  border-radius: 7px;
}
.hub-content .account-tabs a[aria-current='page'] {
  background: #393029;
  border-color: #98784e;
  color: #f3d3a1;
}
.hub-content .account-tabs a:hover {
  border-color: #b59b78;
  color: white;
}

.account-character-card > .hub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.account-character-card > .hub-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}
.account-character-card > .hub-actions button:last-child:not(:first-child) {
  margin-left: auto;
}
@media (max-width: 560px) {
  .account-character-card > .hub-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .account-character-card > .hub-actions button:last-child:not(:first-child) {
    margin-left: 0;
  }
}
.account-character-card > .hub-actions button:last-child:not(:first-child) {
  margin-left: 0;
}

.home-event-list {
  margin-top: 30px !important;
  padding-top: 24px !important;
  border-top: 2px solid #69605a !important;
}
.home-event-list h3 {
  font-size: 27px !important;
  margin: 6px 0 8px !important;
}
.home-event-list .home-event-mini {
  display: grid !important;
  gap: 7px !important;
  padding: 15px !important;
  margin: 10px 0 !important;
  border: 1px solid #494449 !important;
  border-left: 3px solid #c49b62 !important;
  border-radius: 7px;
  background: #242126 !important;
}
.home-event-mini strong {
  font-size: 15px;
  font-weight: 500;
  color: #eee;
}
.home-event-mini time {
  font-size: 11px;
  color: #c6c0b7;
}
.home-event-mini-kind {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e0b97e;
}
.character-professions {
  font-size: 12px;
  color: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #55515a;
  border-radius: 50%;
  background: transparent;
  color: #e8d5b7;
  font-size: 23px;
  cursor: pointer;
}
.theme-toggle:hover {
  background: #40362c;
}
.admin-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 8%;
  background: #3e304b;
  color: #ecddfa;
  border-bottom: 1px solid #a586bc;
  font-size: 12px;
}
.admin-demo-bar button {
  padding: 7px 12px;
  background: transparent;
  color: inherit;
  border: 1px solid #b59bc6;
}
.news-youtube-preview {
  position: relative;
}
.news-youtube-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: #a3211bef;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 12px;
}
.news-youtube-preview .news-entry-image {
  object-fit: cover;
}
.view-as-control {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 20px;
}
.view-as-control label {
  display: flex;
  align-items: center;
  gap: 14px;
}
.view-as-control p {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .admin-demo-bar {
    padding: 10px 5%;
    flex-wrap: wrap;
  }
}

.theme-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
}
.home-news-lead {
  align-items: start;
}
.news-feed .home-news-lead .news-featured {
  align-self: start;
}
.news-feed .home-news-lead .news-featured .news-entry-text {
  flex: none;
  min-height: 0;
  padding: 26px;
}
.news-feed .home-news-lead .news-featured .news-read {
  align-self: flex-start;
  margin-top: 8px;
}
.home-news-lead .home-event-panel {
  align-self: start;
}

/* A compact agenda alongside the latest story. */
.home-event-panel.compact-event-panel {
  padding: 22px;
}
.compact-event-panel > .eyebrow {
  margin-bottom: 8px;
}
.compact-event-panel .home-event-mini {
  display: grid;
  gap: 7px;
  padding: 14px !important;
  margin: 8px 0 !important;
}
.compact-event-panel .home-event-mini strong {
  font:
    500 22px/1.18 'Barlow Condensed',
    sans-serif;
}
.compact-event-panel .home-event-first {
  border-left-color: #ef4b44 !important;
  background: #302323 !important;
}
.compact-event-panel .home-event-first strong {
  font-size: 25px;
}
.compact-event-panel .home-event-mini time {
  font-size: 11px;
  line-height: 1.4;
}
.compact-event-panel .home-event-mini-kind {
  font-size: 9px;
  letter-spacing: 0.4px;
}
.compact-event-panel .home-event-list {
  padding-top: 10px !important;
  margin-top: 10px !important;
  border-top: 1px solid #4f4543 !important;
}
.compact-event-panel .home-event-list h3 {
  font:
    500 20px/1.2 'Barlow Condensed',
    sans-serif !important;
  margin: 4px 0 10px !important;
}
.compact-event-panel > .text-link {
  margin-top: 12px;
  align-self: flex-end;
}
.compact-event-panel .home-event-first {
  border: 1px solid #654943 !important;
  border-left: 3px solid #ef4b44 !important;
  border-radius: 7px;
}
.home-news-lead {
  align-items: stretch;
}
.news-feed .home-news-lead .news-featured,
.home-news-lead .home-event-panel {
  align-self: stretch;
}
.news-feed .home-news-lead .news-featured .news-entry-text {
  flex: 1;
}
.home-event-panel.compact-event-panel > .text-link {
  margin-top: auto;
  padding-top: 12px;
}

/* Account navigation, preferences and compact management directory. */
.account-icon {
  width: 21px;
  height: 21px;
  display: block;
  flex-shrink: 0;
}
.hub-content .account-tabs {
  padding: 7px;
  margin: 0 0 28px;
  border: 1px solid #37383e;
  background: #191a1e;
  border-radius: 12px;
  display: flex;
  gap: 5px;
}
.hub-content .account-tabs a {
  flex: 1;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  color: #b6b8c0;
  transition:
    background 0.15s,
    color 0.15s;
}
.hub-content .account-tabs a[aria-current='page'] {
  background: linear-gradient(125deg, #49392d, #302926);
  border-color: #785c40;
  color: #f2d2a6;
  box-shadow: 0 3px 10px #0002;
}
.hub-content .account-tabs a:hover {
  background: #2a2b31;
  color: #eee;
}
.account-settings-button {
  border-radius: 9px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.account-settings-button:hover {
  background: #272329;
  border-color: #9c7a52 !important;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hub-content .settings-card {
  border-radius: 12px;
  padding: 24px;
  margin: 0;
  min-width: 0;
  background: linear-gradient(135deg, #25232a, #191b1f);
  border-color: #3f3d46;
}
.settings-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}
.settings-card-heading > .account-icon {
  box-sizing: content-box;
  padding: 11px;
  background: #b9976217;
  border: 1px solid #8b6e4744;
  border-radius: 10px;
  color: #dabb8c;
}
.hub-content .settings-card-heading h3 {
  font-size: 27px;
  margin: 0;
}
.settings-card > p {
  font-size: 12px;
  line-height: 1.8;
  margin: 17px 0 22px;
  max-width: 390px;
}
.theme-choice-buttons {
  display: flex;
  gap: 10px;
}
.theme-choice-buttons button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px;
  border-radius: 8px;
  background: #1b1c21;
  border: 1px solid #46454e;
  color: #bfc0c9;
}
.theme-choice-buttons button[aria-pressed='true'] {
  background: #47392c;
  border-color: #aa8757;
  color: #f1d0a0;
}
.connected-name {
  display: block;
  font-size: 19px;
  font-weight: 500;
}
.connected-rank {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #5c8e6a20;
  color: #a2d5b3;
  border: 1px solid #547b5e66;
  font-size: 11px;
}
.settings-card .view-as-control {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
}
.settings-card .view-as-control p {
  display: none;
}
.settings-card .view-as-control select {
  width: 100%;
  border-radius: 8px;
  background: #1b1c21;
  border-color: #4c4850;
}
.settings-card .view-as-control label {
  display: grid;
  gap: 10px;
  color: #a9a9b2;
}
.settings-card .checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  color: #d9d6df;
}
.settings-card input[role='switch'] {
  appearance: none;
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 25px;
  padding: 0;
  border-radius: 20px;
  border: 1px solid #62616c;
  background: #36363f;
  cursor: pointer;
  order: 2;
}
.settings-card input[role='switch']:after {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  position: absolute;
  top: 3px;
  left: 3px;
  background: #e2e0e7;
  border-radius: 50%;
  transition: transform 0.15s;
}
.settings-card input[role='switch']:checked {
  background: #8c663c;
  border-color: #c39a66;
}
.settings-card input[role='switch']:checked:after {
  transform: translateX(19px);
  background: white;
}
.settings-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.settings-session button {
  border-radius: 7px;
  flex-shrink: 0;
}
.management-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
}
.management-list-heading .eyebrow {
  font-size: 9px;
  margin: 0;
}
.list-result-count {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.management-character-search {
  border-radius: 9px;
  padding: 13px 16px;
  margin: 8px 0 15px;
}
.management-table-wrap {
  border: 1px solid #3e3f47;
  border-radius: 11px;
  overflow: auto;
  margin-bottom: 34px;
  background: #191a1e;
}
.management-character-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 810px;
  text-align: left;
}
.management-character-table th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 15px;
  color: #aaa9b3;
  background: #232329;
  border-bottom: 1px solid #41414a;
}
.management-character-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #34353d;
  font-size: 12px;
  color: #c1c1cb;
  vertical-align: middle;
}
.management-character-table tr:last-child td {
  border-bottom: 0;
}
.management-character-table tbody tr:hover {
  background: #27252b;
}
.management-character-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}
.management-character-identity img {
  width: 33px;
  height: 33px;
  border-radius: 6px;
  border: 1px solid #6c6155;
}
.management-character-identity strong {
  display: block;
  color: var(--class-color);
  font-size: 13px;
  font-weight: 500;
}
.management-character-table small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.management-character-table .badge {
  font-size: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  margin: 0;
}
.management-row-actions {
  display: flex;
  gap: 6px;
}
.management-row-actions button {
  padding: 7px 11px;
  font-size: 10px;
  border-radius: 6px;
  white-space: nowrap;
  background: transparent;
  border-color: #4e4c57;
  color: #d5d1de;
}
.management-row-actions button:hover {
  background: #4a3828;
  border-color: #a58255;
}
.management-row-actions .has-note {
  color: #deb97f;
  border-color: #876947;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .hub-content .account-tabs {
    overflow: auto;
    flex-wrap: nowrap;
  }
  .hub-content .account-tabs a {
    padding: 11px 12px;
    font-size: 11px;
    white-space: nowrap;
    flex: 1 0 auto;
  }
  .hub-content .account-tabs .account-icon {
    width: 17px;
    height: 17px;
  }
  .settings-session {
    align-items: flex-start;
  }
  .management-character-table th,
  .management-character-table td {
    padding: 10px 12px;
  }
  .hub-content .settings-card {
    padding: 20px;
  }
}

.news-concept-banner {
  padding: 14px 18px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  margin: 0 0 20px;
}
