/* Import Cinzel */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&display=swap');

html { scroll-behavior: smooth; color-scheme: dark; }

/* Core colors */
:root {
  --md-primary-fg-color: #1c1c1c;
  --md-primary-bg-color: #dbd2ad;
  --md-accent-fg-color: #b59d47;
  --md-default-bg-color: #1c1c1c;
  --md-default-fg-color: #dbd2ad;
  --md-default-fg-color--light: #dbd2ad;
}

/* Headings use Cinzel */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif !important;
  color: #b59d47 !important;
}

/* H2: explicit size to distinguish from H3 */
h2 {
  font-size: 1.75rem !important;
}

/* H3 and below: Lato bold in off-white for readability */
h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  color: #c8b87a !important;
}

/* Body text color */
.md-content {
  color: #dbd2ad;
}

/* Navigation header */
.md-header {
  background-color: #1c1c1c;
}

/* Sidebar */
.md-sidebar {
  background-color: #1c1c1c;
}

/* No underlines on sidebar TOC links */
.md-sidebar--secondary a {
  text-decoration: none !important;
}


/* Links */
a {
  color: #b59d47 !important;
  text-decoration: underline !important;
}

/* Button styling */
.md-button {
  background-color: #b59d47 !important;
  color: #1c1c1c !important;
  border: none !important;
}

/* Force background color everywhere */
:root,
[data-md-color-scheme="slate"] {
  --md-hue: 40;
  --md-default-bg-color: #1c1c1c !important;
  --md-code-bg-color: #1c1c1c !important;
}

/* ── Home page hero banner ───────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  background-image: url('../images/entrati.png');
  background-size: cover;
  background-position: center center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid #b59d47;
}

/* cinematic dark gradient overlay */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(28, 28, 28, 0.92) 100%
  );
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: #dbd2ad;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 1), 0 0 40px rgba(0, 0, 0, 0.7);
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Home page body: centered prose with a comfortable max-width */
.home-body {
  max-width: 1160px;
  margin: 0.75rem auto 3rem;
  padding: 0 1.5rem;
  text-align: left;
}

/* Hide the H1 that MkDocs injects from the markdown or page title */
.home-body h1 {
  display: none;
}

.md-main,
.md-main__inner,
.md-content,
.md-sidebar,
.md-header,
.md-footer,
body {
  background-color: #1c1c1c !important;
}

/* ── Header layout: logo+name left, spacer, nav+search right ── */

/* Remove md-grid's max-width centering from the header nav */
.md-header__inner {
  max-width: 100% !important;
  padding: 0 0.8rem;
  display: flex;
  align-items: center;
}

/* Logo: visible between 631px–1220px — Material hides it there expecting a hamburger,
   but we suppress the hamburger in that range so we must override */
@media (min-width: 631px) {
  .md-header__button.md-logo {
    display: inline-flex !important;
  }
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 32px !important;
}

/* Prevent Material JS from fading out the site name on scroll */
.md-header__topic:first-child {
  opacity: 1 !important;
  transform: none !important;
}

/* Title: natural width, no shrinking, no ellipsis collapse */
.md-header__title {
  flex: 0 0 auto !important;
  white-space: nowrap;
  padding: 0 0.4rem;
}

/* Spacer grows to fill the gap, pushing nav+search to the right */
.md-header__spacer {
  flex: 1;
}

/* Inline nav links in header */
.md-header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.md-header-nav__link {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #dbd2ad !important;
  text-decoration: none !important;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  opacity: 0.75;
  transition: opacity 0.15s, color 0.15s;
  white-space: nowrap;
}

.md-header-nav__link:hover,
.md-header-nav__link--active {
  opacity: 1;
  color: #b59d47 !important;
}

/* Hide the now-redundant separate tabs bar */
.md-tabs {
  display: none !important;
}

/* ── Guide Index ──────────────────────────────────── */
.guide-index-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.guide-index-main {
  flex: 1;
  min-width: 380px;
}

.guide-index-sidebar {
  position: sticky;
  top: 4.5rem;
  width: 300px;
  flex-shrink: 0;
  background-color: #26221a;
  border: 1.5px solid #b59d47;
  border-radius: 3px;
  padding: 1rem 1.1rem;
}

.guide-index-sidebar .sidebar-heading {
  font-family: 'Cinzel', serif !important;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #b59d47;
  margin-bottom: 0.6rem;
}

.guide-index-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-index-sidebar li {
  padding: 0.2rem 0;
}

.guide-index-sidebar a {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: #b59d47 !important;
  text-decoration: none !important;
}

.guide-index-sidebar a:hover {
  color: #dbd2ad !important;
}

.guide-category {
  margin-bottom: 2rem;
}

.guide-category h2 {
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: #dbd2ad !important;
  letter-spacing: normal !important;
  margin-bottom: 0.5rem;
}

.guide-index-main .guide-category:first-child h2 {
  margin-top: 0;
}

.guide-category ul {
  list-style: none;
  margin: 0;
  padding-left: 0.2rem;
}

.guide-category li {
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  color: #dbd2ad;
}

.guide-category li::before {
  content: '⬦';
  color: #b59d47;
  margin-right: 0.5rem;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  top: -0.05em;
}

.guide-category li a {
  color: #dbd2ad !important;
}

.guide-category li a:hover {
  color: #b59d47 !important;
}

.guide-category li .tbd {
  color: #7c7464;
}

.guide-category li .tbd .wip-tag {
  color: #b59d47;
  font-style: bold;
}

/* ── Guide Index: sub-group (e.g. Companions) ────── */
.guide-category li.guide-subgroup {
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 0;
}

.guide-category li.guide-subgroup::before {
  display: none;
}

.guide-subgroup__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #dbd2ad;
}

.guide-subgroup__label::before {
  content: '⬦';
  color: #b59d47;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  top: -0.05em;
}

.guide-subgroup__items {
  padding-left: 1.5rem !important;
  width: 100%;
  margin: 0 !important;
}

.guide-subgroup__items li {
  padding: 0.02rem 0;
}


/* ── Guide Index: collapse sidebar at 820px ──────── */
@media (max-width: 820px) {
  .guide-index-main {
    min-width: unset;
  }
}

/* ── Hamburger: hide above 630px ──────────────────── */
@media (min-width: 631px) {
  label[for="__drawer"] {
    display: none !important;
  }
}

/* ── Mobile: 630px viewport ───────────────────────── */
@media (max-width: 630px) {
  /* Hide inline nav links — they move into the drawer */
  .md-header-nav {
    display: none !important;
  }

  .hero-banner {
    min-height: auto;
    height: auto;
    padding: 3rem 1.5rem;
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(1.4rem, 6vw, 2rem);
    padding: 0 0.5rem;
  }

  .home-body {
    margin: 0.5rem auto 1.5rem;
    padding: 0 1rem;
  }
}

/* ── Home page CTA button ─────────────────────────── */
.home-cta {
  text-align: center;
  margin-top: 2rem;
}

.guide-index-btn {
  display: inline-block;
  font-size: 0.85rem;
  color: #b59d47 !important;
  background: transparent;
  border: 1.5px solid #b59d47;
  padding: 10px 24px;
  text-decoration: none !important;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.guide-index-btn:hover {
  background: #b59d47;
  color: #1c1c1c !important;
}

/* ── Inline TOC (shown only when sidebar TOC is hidden) ──────── */
.inline-toc {
  display: none;
}

.md-typeset .inline-toc__title {
  font-family: 'Cinzel', serif !important;
  font-size: 1.75rem;
  color: #b59d47 !important;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}

.md-typeset .inline-toc ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.md-typeset .inline-toc li {
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
}

.md-typeset .inline-toc li::before {
  content: '⬦';
  color: #b59d47;
  margin-right: 0.5rem;
  font-size: 1rem;
  flex-shrink: 0;
}

.md-typeset .inline-toc a {
  font-size: inherit;
  color: #dbd2ad !important;
}

.md-typeset .inline-toc a:hover {
  color: #b59d47 !important;
}

@media (max-width: 1200px) {
  .inline-toc {
    display: block;
    border-bottom: .05rem solid var(--md-default-fg-color--lightest);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
}

/* Centered standalone images */
img.center {
  display: block;
  margin: 0 auto;
}

/* Gold border for standalone images */
img.bordered {
  border-radius: 3px;
  border: 2.5px solid #b59d47;
}

/* Enforce a minimum width floor without locking the width itself */
img.floored {
  min-width: min(300px, 100%);
}

/* ── Amp Parts Chart ─────────────────────────────── */
.amp-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.amp-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #b59d47;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.amp-subtitle {
  text-align: center;
  font-size: 11px;
  color: #dbd2ad;
  opacity: 0.5;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.amp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 2.5px solid #b59d47;
  border-radius: 3px;
}

.faction-header {
  padding: 8px 4px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid #2a2a1a;
  background: #161610;
}

.faction-quills {
  color: #b59d47;
  border-bottom: 1.5px solid #b59d47;
}

.faction-vox {
  color: #7ecae0;
  border-bottom: 1.5px solid #b59d47;
}

.col-header {
  background: #161610;
  border: 1px solid #2a2a1a;
  border-bottom: 1.5px solid #b59d47;
  padding: 6px 4px;
  text-align: center;
}

.col-header .rank {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  color: #dbd2ad;
  letter-spacing: 2px;
}

.row-label {
  background: #161610;
  border: 1px solid #2a2a1a;
  border-right: 1.5px solid #b59d47;
  padding: 8px 2px;
  text-align: center;
  vertical-align: middle;
  width: 72px;
}

.row-label .slot-x {
  font-size: 12px;
  color: #b59d47;
  font-family: monospace;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 4px;
}

.row-label .slot-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(7.5px, 1.2vw, 11px);
  color: #dbd2ad;
  opacity: 0.6;
  letter-spacing: clamp(0px, 0.18vw, 2px);
  text-transform: uppercase;
}

.part-cell {
  background: #1c1c1c;
  border: 1px solid #2a2a1a;
  padding: clamp(5px, 1.2vw, 10px) clamp(4px, 1vw, 8px);
  text-align: center;
  vertical-align: top;
  transition: background 0.2s;
}

.part-cell:hover {
  background: #26221a;
}

.part-img-wrap {
  width: min(72px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  overflow: hidden;
}

.part-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.9;
}

.part-name {
  font-size: 12px;
  font-weight: 500;
  color: #b59d47;
  margin-bottom: 5px;
  line-height: 1.3;
}

.part-name.vox {
  color: #7ecae0;
}

.part-desc {
  font-size: 10px;
  color: #dbd2ad;
  opacity: 0.65;
  line-height: 1.5;
}

.corner-cell {
  background: #161610;
  border: 1px solid #2a2a1a;
  border-right: 1.5px solid #b59d47;
}

.corner-cell,
.row-label {
  position: sticky;
  left: 0;
  z-index: 2;
}


/* ── Prime Grid ──────────────────────────────────── */
.prime-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (max-width: 900px) {
  .prime-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .prime-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .prime-grid { grid-template-columns: 1fr; }
}

/* Flip container — perspective lives here */
.prime-card-wrap {
  perspective: 900px;
}

/* The flipper */
.prime-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.prime-card.is-flipped {
  transform: rotateY(180deg);
}

/* Shared face rules */
.prime-card__front,
.prime-card__back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 3px;
  overflow: hidden;
}

/* Front face — defines the card height */
.prime-card__front {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #26221a;
  border: 1.5px solid #5c4d22;
  transition: border-color 0.15s ease;
}

.prime-card-wrap:hover .prime-card__front,
.prime-card-wrap:hover .prime-card__back {
  border-color: #b59d47;
}

/* Dog-ear: gold triangle folded at top-right */
.prime-card__dog-ear {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: #c8b87a;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 3;
  pointer-events: none;
  transition: background 0.15s ease;
}

.prime-card-wrap:hover .prime-card__dog-ear {
  background: #b59d47;
}

.prime-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #161410;
  overflow: hidden;
}

.prime-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.prime-card-wrap:hover .prime-card__img {
  opacity: 1;
}

.prime-card__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(181, 157, 71, 0.92);
  color: #1c1c1c;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 6px;
}

.prime-card__badge--cycle {
  background: rgba(181, 157, 71, 0.7);
}

.prime-card__name {
  padding: 0.45rem 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.6rem, 1.1vw, 0.75rem);
  color: #b59d47;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

/* Back face — absolutely fills the same box as the front */
.prime-card__back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: #26221a;
  border: 1.5px solid #5c4d22;
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 1rem 0.6rem;
  box-sizing: border-box;
}

.prime-card__back-name-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.prime-card__back-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  color: #b59d47 !important;
  text-decoration: none !important;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.prime-card__back-name:hover {
  text-decoration: underline !important;
}

.prime-card__back-sep {
  width: 60%;
  height: 1px;
  background: #3a3020;
  flex-shrink: 0;
}

.prime-card__weapon-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  flex: 2;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-evenly !important;
  gap: 0;
}

.prime-card__weapon-list li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
}

.prime-card__weapon-list li::before,
.prime-card__weapon-list li::after {
  display: none !important;
}

.prime-card__weapon-link {
  font-size: clamp(0.78rem, 1.3vw, 0.92rem);
  color: #dbd2ad !important;
  text-decoration: none !important;
  line-height: 1.3;
}

.prime-card__weapon-link:hover {
  color: #b59d47 !important;
  text-decoration: underline !important;
}

/* ── Resurgence tracker ──────────────────────────── */

/* Outer wrapper — just provides the expiry line + grid stacking */
.resurgence-wrap {
  margin: 1rem 0;
}

/* Expiry info line */
.resurgence-expiry {
  font-size: 0.8rem;
  color: #dbd2ad;
  opacity: 0.7;
  margin: 0 0 0.85rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.resurgence-expiry__date {
  color: #b59d47;
  opacity: 1;
  font-weight: 700;
}

.resurgence-expiry__days {
  font-style: italic;
}

/* Invisible spacer cards — used to center 2 tiles in a 4-column prime-grid */
.resurgence-spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .resurgence-spacer { display: none; }
}

/* "Updating" notice — shown when data is more than 7 days stale */
.resurgence-updating {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #b59d47;
  background: #26221a;
  border: 1.5px solid #b59d47;
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  max-width: 480px;
  margin: 1rem auto;
}

/* Refresh button inside the rotation-ended notice */
.resurgence-refresh-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1.5px solid #b59d47;
  border-radius: 3px;
  color: #b59d47;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.resurgence-refresh-btn:hover:not(:disabled) {
  background: #b59d47;
  color: #1c1c1c;
}

.resurgence-refresh-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Resurgence badge variant — amber-orange to distinguish from "Newest" */
.prime-card__badge--resurgence {
  background: rgba(190, 100, 30, 0.88);
}

/* ─────────────────────────────────────────────────── */

@media (max-width: 630px) {
  .amp-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #1c1c1c;
    border: 2.5px solid #b59d47;
    border-radius: 3px;
  }

  .amp-table {
    min-width: 620px;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
  }

  .faction-header,
  .col-header,
  .corner-cell,
  .row-label,
  .part-cell {
    border-top: none;
    border-left: none;
    border-right: 1px solid #2a2a1a;
    border-bottom: 1px solid #2a2a1a;
  }

  .corner-cell,
  .row-label {
    border-right: 1.5px solid #b59d47;
  }

  .faction-quills,
  .faction-vox {
    border-bottom: 1.5px solid #b59d47;
  }

  .col-header {
    border-bottom: 1.5px solid #b59d47;
  }

  .faction-label {
    display: inline-block;
    white-space: nowrap;
  }

  .part-cell {
    padding: 6px 5px;
  }

  .part-img-wrap {
    width: min(48px, 100%);
  }

  .part-img {
    width: 100%;
    height: 100%;
  }

  .row-label {
    width: 52px;
    padding: 3px 1px;
  }

  .row-label .slot-x {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .row-label .slot-name {
    font-size: 7.5px;
    letter-spacing: 0;
  }

  .part-desc {
    font-size: 9px;
  }
}

/* ── Feedback page ───────────────────────────────── */
.feedback-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .feedback-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.feedback-layout h1 {
  text-align: center;
  margin-bottom: 0.4rem;
}

.feedback-page__intro {
  text-align: center;
  color: #dbd2ad;
  opacity: 0.75;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

/* ── Tickets panel ───────────────────────────────── */
.tickets-meta {
  font-size: 0.75rem;
  color: #dbd2ad;
  opacity: 0.5;
  margin-bottom: 1rem;
  text-align: center;
}

.tickets-meta a {
  color: #b59d47 !important;
  text-decoration: none !important;
}

.tickets-meta a:hover {
  text-decoration: underline !important;
}

.tickets-loading,
.tickets-error,
.tickets-empty {
  text-align: center;
  font-size: 0.85rem;
  color: #dbd2ad;
  opacity: 0.5;
  padding: 2rem 0;
}

.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticket-card {
  display: block;
  background: #26221a;
  border: 1.5px solid #3a3020;
  border-radius: 3px;
  padding: 0.85rem 1rem;
  text-decoration: none !important;
  transition: border-color 0.15s;
}

.ticket-card:hover {
  border-color: #b59d47;
}

.ticket-card__title {
  font-size: 0.85rem;
  color: #dbd2ad !important;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.ticket-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ticket-label {
  font-size: 0.65rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  border: 1px solid;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Side-by-side name + email on wider screens */
.feedback-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 630px) {
  .feedback-form__row {
    grid-template-columns: 1fr;
  }
}

.feedback-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feedback-form__label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #b59d47;
  text-transform: uppercase;
}

.feedback-form__required {
  color: #d73a4a;
}

.feedback-form__optional {
  color: #dbd2ad;
  opacity: 0.5;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: normal;
}

.feedback-form__input {
  background: #26221a;
  border: 1.5px solid #3a3020;
  border-radius: 2px;
  color: #dbd2ad;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.feedback-form__input::placeholder {
  color: #dbd2ad;
  opacity: 0.3;
}

.feedback-form__input:focus {
  outline: none;
  border-color: #b59d47;
}

.feedback-form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b59d47' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}

.feedback-form__select option {
  background: #26221a;
  color: #dbd2ad;
}

.feedback-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.feedback-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.feedback-form__hint {
  font-size: 0.75rem;
  color: #dbd2ad;
  opacity: 0.4;
}

.feedback-form__submit {
  background: transparent;
  border: 1.5px solid #b59d47;
  border-radius: 2px;
  color: #b59d47;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.6rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.feedback-form__submit:hover:not(:disabled) {
  background: #b59d47;
  color: #1c1c1c;
}

.feedback-form__submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.feedback-status {
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 2px;
  font-size: 1rem;
  text-align: center;
  line-height: 1.7;
}

.feedback-status--success {
  background: #0d2b1a;
  border: 1.5px solid #2ea44f;
  color: #2ea44f;
}

.feedback-status--error {
  background: #2b0d0d;
  border: 1.5px solid #d73a4a;
  color: #d73a4a;
}

/* ── More dropdown ──────────────────────────────── */
.md-header-nav__item--dropdown {
  position: relative;
}

.md-header-nav__dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #dbd2ad !important;
  text-decoration: none !important;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  opacity: 0.75;
  transition: opacity 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.md-header-nav__dropdown-trigger::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.8;
}

.md-header-nav__dropdown-trigger:hover,
.md-header-nav__item--dropdown.is-open .md-header-nav__dropdown-trigger {
  opacity: 1;
  color: #b59d47 !important;
}

.md-header-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #1c1c1c;
  border: 1.5px solid #b59d47;
  border-radius: 2px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  min-width: 140px;
  z-index: 100;
}

.md-header-nav__dropdown-menu.is-open {
  display: block;
}

.md-header-nav__dropdown-link {
  display: block;
  padding: 0.45rem 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #dbd2ad !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.md-header-nav__dropdown-link:hover {
  color: #b59d47 !important;
  background: #26221a;
}

/* ── Responsive video embed (16:9) ─────────────────────────────────────────── */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 70%;
  margin: 0 auto;
  padding-bottom: 39.375%; /* 56.25% × 0.70 */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

@media (max-width: 630px) {
  .video-embed {
    max-width: 100%;
    padding-bottom: 56.25%;
  }
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Riven Stat Recommendations tool ────────────────────────────────────────── */

/* Search bar */
.riven-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 1.5rem 0 2rem;
}

.riven-search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  background: #26221a;
  border: 1px solid #b59d47;
  border-radius: 4px;
  color: #dbd2ad;
  font-family: Lato, sans-serif;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.riven-search-input:focus {
  border-color: #c8b87a;
  box-shadow: 0 0 0 2px rgba(181, 157, 71, 0.2);
}

.riven-search-input::placeholder {
  color: #6b6048;
}

.riven-search-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Autocomplete dropdown */
.riven-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #26221a;
  border: 1px solid #b59d47;
  border-radius: 4px;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.riven-dropdown__item {
  padding: 0.5rem 1rem;
  color: #dbd2ad;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.riven-dropdown__item:hover,
.riven-dropdown__item:focus {
  background: #332d1f;
  color: #c8b87a;
  outline: none;
}

/* Results heading */
#riven-results:empty {
  min-height: 60vh;
}

.riven-results__heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #3a3020;
  padding-bottom: 0.6rem;
}

.riven-results__weapon-name {
  font-family: Cinzel, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #dbd2ad;
}

.riven-results__weapon-type {
  font-size: 0.8rem;
  color: #6b6048;
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

.riven-results__option-count {
  font-size: 0.8rem;
  color: #6b6048;
  letter-spacing: 0.04em;
}

/* Combo card grid */
.riven-combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 630px) {
  .riven-combo-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual combo card */
.riven-combo-card {
  background: #26221a;
  border: 1px solid #3a3020;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.riven-combo-card__header {
  background: #1e1a12;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #3a3020;
}

.riven-combo-card__title {
  font-family: Cinzel, serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b59d47;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.riven-combo-card__section {
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid #2e2918;
}

.riven-combo-card__section:last-of-type {
  border-bottom: none;
  padding-bottom: 0.85rem;
}

.riven-combo-card__label {
  font-size: 0.7rem;
  color: #564e38;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.riven-combo-card__stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

/* Stat pills */
.riven-stat-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.riven-stat-pill--choice {
  background: rgba(181, 157, 71, 0.10);
  border: 1px solid #4a4030;
  color: #c8b87a;
}

.riven-stat-pill--negative {
  background: rgba(80, 90, 60, 0.12);
  border: 1px solid #4a5038;
  color: #7a8060;
  font-weight: 400;
}

.riven-stat-choice {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.riven-stat-sep {
  color: #7a6a48;
  font-size: 0.85rem;
  line-height: 1;
}

/* Notes */
.riven-combo-card__note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: #1e1a12;
  font-size: 0.82rem;
  color: #7a7060;
  line-height: 1.5;
}

.riven-combo-card__note-icon {
  flex-shrink: 0;
  color: #8a7a50;
  margin-top: 0.05rem;
}
