/* =================================================================
   PAGE: about.html (tweaks requested)
   - Make section headers use the same sizing/visual tokens as global headers
   - Ensure both headers (About Us + Rules) are uniform and vertically aligned
   - Remove the "pill" surface from individual rules so they sit directly on the page background
   - Keep the About card surface intact and rules section still sits outside the card
   - Keep 65/35 layout and responsive stacking
================================================================= */

body.page-about .about-container {
  width: 100%;
  padding: 2rem 0;
  background: transparent;
  color: var(--text);
}

/* Keep the site .container to limit content width and center it */
body.page-about .about-container .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Two-column layout on desktop (65% / 35%) */
body.page-about .about-container .container > .section {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 2rem;
  align-items: start;
}

/* About card remains in the left column */
body.page-about .about-card { grid-column: 1 / 2; }

/* Rules (now outside the card) sits in the right column and aligns with the card */
body.page-about .rules-section {
  grid-column: 2 / 3;
  align-self: start;
  padding: 1rem; /* align visual padding with card content */
  background: transparent;
  border: none;
}

/* Hide divider on desktop */
body.page-about .about-container .container > .section > .divider { display: none; }

/* Pill-card visuals (About card keeps the card surface) */
body.page-about .pill-card {
  background: linear-gradient(180deg, var(--panel), var(--card));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: none;
  color: var(--text);
}

/* Card header styling (About card)
   Keep a fixed header height so both headers align.
   Use border style similar to site but emphasise with accent for the underline to match other pages.
*/
body.page-about .pill-card > header {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0;
  background: transparent;
  border-bottom: 2px solid var(--accent); /* visible underline */
  text-align: left;
}

/* Rules header: match the card header height & underline so they line up perfectly */
body.page-about .rules-section > header {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0;
  background: transparent;
  border-bottom: 2px solid var(--accent);
  text-align: left;
}

/* SECTION TITLE
   Make the section-title use the same visual token as global .section-title:
   - same font-size as global (1.5rem)
   - same weight / uppercase / letter-spacing
*/
body.page-about .section-title {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 1.5rem; /* MATCH global .section-title font-size */
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0;
}

/* About copy body text */
body.page-about .about-copy p {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* RULES LIST
   - Remove pill/background/border so each rule sits on the page background
   - Keep emblem + title + description layout, with spacing preserved
*/
.rules-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Each rule item: no card background or border now */
.rule-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0;            /* remove internal pill padding */
  border-radius: 0;      /* no pill corners */
  background: transparent; /* remove pill background */
  border: none;          /* remove pill border */
}

/* Emblem sizing (use em so it scales with text) */
.rule-emblem {
  width: 1.05em;
  height: 1.05em;
  object-fit: contain;
  margin-top: 0.08rem; /* small nudge so emblem visually lines with title baseline */
  flex-shrink: 0;
  opacity: 0.95;
}

/* Rule body: title on first line, description below */
.rule-body { display: flex; flex-direction: column; gap: 0.2rem; }
.rule-title {
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.1;
}
.rule-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 0.1rem;
}

/* Small visual separator between rules (optional subtle line) */
.rules-list .rule-item + .rule-item {
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.02);
}

/* Responsive - stacked layout on small screens */
@media (max-width: 900px) {
  body.page-about .about-container .container > .section {
    display: block;
  }
  body.page-about .about-container {
    padding: 1rem 0;
  }
  body.page-about .about-container .container > .section > .divider {
    display: block;
    margin: 1rem 0;
  }
  .rule-emblem { width: 1.15em; height: 1.15em; }
}

/* Accessibility / focus */
body.page-about .pill-card a:focus,
body.page-about .rule-item:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-glow);
}

/* End of about.css */