/* Community portal extensions to the shared Opulencia theme. */
[hidden] { display: none !important; }
.header-inner { gap: 10px; }
.header-inner nav { gap: 5px; }
.header-inner nav a { padding-inline: 0.56rem; }
.header-download { white-space: nowrap; }
.header-inner nav .nav-section { border-color: #dfbc7b; }
.portal-tagline {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid #d6a95d;
  color: #f4cf87;
  font: bold clamp(0.75rem, 2vw, 0.95rem)/1.3 var(--serif);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.hero-copy .portal-tagline { margin: 0 0 12px; }
.banner-home { --banner: url("/assets/art/header-home.webp"); --position: center 46%; }
.status-ribbon, .portal-section-heading, .event-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}
.status-ribbon {
  padding: 13px clamp(14px, 3vw, 30px);
  border-bottom: 4px ridge #a7834d;
  background: linear-gradient(#343345, #252235);
}
.state-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #fff0cb;
  white-space: nowrap;
  font: bold 1rem/1.2 var(--serif);
}
.state-token::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: var(--signal, #c6b9a4);
  border: 1px solid #fff0d1a0;
  box-shadow: 0 0 8px var(--signal, #c6b9a4);
}
[data-state="online"] { --signal: #8fdb90; }
[data-state="offline"] { --signal: #ff867e; }
[data-state="maintenance"], [data-state="degraded"] { --signal: #ffc980; }
[data-state="starting"] { --signal: #81cafa; }
.portal-footer { align-items: flex-start; }
.portal-footer .footer-brand { max-width: 31ch; }
.portal-footer nav { display: grid; gap: 6px; min-width: 0; }
.footer-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; margin-top: 13px; font-size: 0.88rem; }
.portal-section-heading { margin-bottom: 16px; }
.portal-subheading { margin-top: clamp(24px, 4vw, 42px); }
.news-grid { margin-top: 18px; }
.article-meta {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.news-card .article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; }
.news-card h3 a { text-underline-offset: 0.13em; }
.parchment h2 { color: #56311c; }
.installation-steps { margin: 0; padding-left: 1.6rem; }
.installation-steps li { padding-left: 0.5rem; margin-bottom: 1.55rem; }
.installation-steps li::marker { color: #f3c477; font: bold 1.2rem var(--serif); }
.portal-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.pillar-section { border-block: 3px ridge #a67c43; background: #211b2d66; margin-bottom: clamp(20px, 4vw, 40px); }
.section-link { text-align: center; margin-top: 17px; }
.empty-state {
  border: 2px solid #a98250;
  background: #242033;
  color: var(--ink);
  padding: 1rem;
  border-radius: 6px;
}
.empty-state a { color: var(--gold); }
.event-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.event-filters { justify-content: flex-start; margin-block: 17px; }
select, input, textarea {
  max-width: 100%;
  padding: 0.52rem 0.65rem;
  border: 2px solid #a9814c;
  border-radius: 5px;
  background: #231c2d;
  color: #ffedc7;
  font: inherit;
}
.event-filters select { margin-left: 5px; }
.event-date { font-weight: 650; }
.event-lore { font-family: var(--serif); font-style: italic; }
.event-list { list-style: none; padding-left: 0; margin: 0; }
.event-list-item { padding: 0.5rem 0; border-bottom: 1px solid #b58a505c; }
.event-list-item:first-child { padding-top: 0; }
.event-list-item span { display: block; font-size: 0.88rem; color: #e1cdaa; }
.portal-facts { display: grid; grid-template-columns: minmax(100px, 0.75fr) minmax(0, 2fr); gap: 8px 16px; }
.portal-facts dt { font-weight: 700; color: var(--gold); }
.portal-facts dd { margin: 0; overflow-wrap: anywhere; }
details .portal-facts { padding-inline: 14px; }
[data-rankings] { margin-top: 1rem; }
.rank-table { border-collapse: collapse; width: 100%; background: #292035; }
.rank-table th, .rank-table td { padding: 0.6rem 0.7rem; border: 1px solid #a48250; text-align: left; overflow-wrap: anywhere; }
.rank-table th { color: #ffebc5; background: var(--blue); }
.rank-table td:last-child, .rank-table th:last-child { text-align: right; }

.gallery-grid { margin-block: 1.1rem; }
figure { margin: 0; overflow: hidden; border: 3px ridge #b28c55; border-radius: 6px; background: #272035; }
figure a { display: block; }
figure a:focus-visible { outline-offset: -4px; }
figure img { width: 100%; }
.gallery-grid img { aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { padding: 7px 12px; border-top: 2px solid #997546; color: var(--ink); }
.promo-art { width: min(100%, 640px); margin-top: 12px; }
.faq-library h2:not(:first-child) { margin-block: 28px 14px; }
.faq-library h2:first-child { margin-bottom: 14px; }
.hero-index { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.hero-dossier {
  margin-bottom: 16px;
  padding: clamp(14px, 3vw, 27px);
  border: 3px ridge #ae8c53;
  border-radius: 7px;
  background: linear-gradient(135deg, #3a4767, #272035 55%);
}
.hero-profile { display: flex; align-items: center; gap: 13px; }
.hero-profile img { border: 4px ridge #d7af63; border-radius: 14%; flex-shrink: 0; object-fit: cover; }
.hero-dossier details { margin-top: 14px; }
.ability-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 12px; list-style: none; padding: 0 15px; }
.ability-list li { padding-block: 6px; border-bottom: 1px solid #a4825066; overflow-wrap: anywhere; }
.ability-list span { display: block; font-size: 0.86rem; color: #ead4a5; }

.portal-form { display: grid; gap: 15px; margin-top: 14px; }
.portal-form label { display: grid; gap: 4px; color: var(--gold); font-weight: 650; }
.portal-form textarea { width: 100%; resize: vertical; }
.portal-form button { justify-self: start; cursor: pointer; }
.report-review { border-top: 2px ridge #a98250; padding-top: 14px; }
.report-review .actions { margin-bottom: 0; }

@media (max-width: 1160px) {
  .header-inner { flex-wrap: wrap; }
  .header-inner nav { order: 1; width: 100%; padding-top: 4px; }
}
@media (max-width: 820px) {
  .portal-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-footer .footer-brand { grid-column: 1 / -1; max-width: none; }
  .portal-pillars, .gallery-grid, .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .header-inner nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header-inner nav a { padding-inline: 2px; font-size: 0.88rem; }
  .portal-footer, .ability-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid, .event-grid { grid-template-columns: 1fr; }
  .rank-table { font-size: 0.83rem; }
  .rank-table th, .rank-table td { padding: 0.4rem 0.25rem; }
  .portal-facts { gap: 6px 10px; }
}
@media (max-width: 365px) {
  .portal-pillars { grid-template-columns: 1fr; }
}
