/* ============================================================
 * About-page styles (shared across about.html + sub-pages).
 *
 * Loaded after design.css, so design tokens (--canvas, --bone,
 * --rule, --text, --vermilion, --brass, etc.) are available.
 * ============================================================ */

/* === Long-form prose card (used by sub-pages) === */
.about-card {
  background: rgba(232, 220, 196, 0.04);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.8rem 1.6rem 1.5rem;
  margin-top: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.about-card h1 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 0.4rem;
  text-align: center;
  line-height: 1.2;
}
.about-card .subtitle {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-align: center;
  margin: 0 0 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.about-card h2 {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin: 1.6rem 0 0.6rem;
  letter-spacing: 0.02em;
}
.about-card h2:first-of-type { margin-top: 0; }
.about-card h3 {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  margin: 1.1rem 0 0.4rem;
  letter-spacing: 0.01em;
}
.about-card p {
  font-family: var(--font-en);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 0.8rem;
}
.about-card strong {
  color: var(--text);
  font-weight: 600;
}

/* Body links inside about cards. The browser default (dark blue) is
 * unreadable on our dark canvas. Use brass — the established Mahjong
 * Hall accent for inline links across the app. Component-style links
 * (.about-nav-card, .back-link, .bottom-tab) live OUTSIDE .about-card
 * and keep their own styling. */
.about-card a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 164, 100, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.about-card a:hover {
  color: #d8b87a;
  border-bottom-color: var(--brass);
}
.about-card a:active {
  color: var(--vermilion);
}
.about-card ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
  color: var(--text-soft);
  font-family: var(--font-en);
  font-size: 0.92rem;
  line-height: 1.6;
}
.about-card ul li { margin-bottom: 0.35rem; }
.about-card ul li strong { color: var(--text); }

.about-card .highlight {
  background: rgba(201, 164, 100, 0.08);
  border-left: 3px solid var(--brass);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  margin: 1rem 0 0.4rem;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}
.about-card .section {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.about-card .credit {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* === Building-block panel — used in features sub-page for parallel
       Goi / Kanji / Bunpou format. Compact, equal visual weight. === */
.about-block {
  background: rgba(232, 220, 196, 0.03);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.1rem 0.9rem;
  margin: 0.9rem 0;
}
.about-block .block-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 0.2rem;
  letter-spacing: 0.02em;
}
.about-block .block-title-en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-left: 0.4rem;
  letter-spacing: 0.01em;
}
.about-block .block-stat {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin: 0 0 0.6rem;
  font-weight: 500;
}
.about-block p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
}
.about-block p:last-child { margin-bottom: 0; }
.about-block .block-key {
  margin-top: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-left: 2px solid var(--vermilion);
  background: rgba(212, 74, 58, 0.05);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* === About home — three navigation cards (one per sub-page). === */
.about-nav-card {
  display: block;
  text-decoration: none;
  background: rgba(232, 220, 196, 0.04);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  margin: 0.8rem 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  position: relative;
  color: inherit;
}
.about-nav-card:hover {
  background: rgba(232, 220, 196, 0.08);
  border-color: rgba(232, 220, 196, 0.25);
  transform: translateY(-2px);
}
.about-nav-card:active {
  transform: translateY(0);
}
.about-nav-card .nav-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
  padding-right: 1.6rem;       /* room for the arrow */
}
.about-nav-card .nav-teaser {
  font-family: var(--font-en);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}
.about-nav-card .nav-arrow {
  position: absolute;
  top: 1.3rem;
  right: 1.2rem;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--brass);
  opacity: 0.85;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.about-nav-card:hover .nav-arrow {
  opacity: 1;
  transform: translateX(3px);
}
.about-home-intro {
  font-family: var(--font-en);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  text-align: center;
  margin: 0.5rem auto 1.2rem;
  max-width: 28rem;
}

/* === Source-attribution block (technical sub-page). === */
.about-source {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-faint);
  background: rgba(232, 220, 196, 0.03);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
  letter-spacing: 0.02em;
}
.about-source strong { color: var(--text-soft); }
.about-source a { color: var(--brass); text-decoration: none; }
.about-source a:hover { text-decoration: underline; }

/* Inline cross-reference line (e.g., "Full source detail: → Sources page"). */
.about-source-link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  margin: 0.6rem 0 0;
}
.about-source-link a { color: var(--brass); text-decoration: none; }
.about-source-link a:hover { text-decoration: underline; }
