/* Bridges the older content pages (layouts/app.blade.php, styled by /css/app.css)
   to the Turkey 2027 design: same palette, fonts and page heading treatment. */

.legacy-page {
  --c-forest: var(--forest);
  --c-forest-deep: var(--deep);
  --c-sage: #617550;
  --c-gold: #b78332;
  --c-gold-light: var(--gold);
  --c-gold-dark: #977135;
  --c-cream: var(--paper);
  --c-ivory: #f1f3e9;
  --c-sand: var(--line);
  --c-charcoal: var(--ink);
  --c-slate: var(--muted);
  --f-display: var(--serif);
  --f-body: var(--sans);
  font-size: 15px;
}

.legacy-page main h1,
.legacy-page main h2,
.legacy-page main h3,
.legacy-page main h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.5px;
}

.legacy-page main p { margin: 0 0 1em; }

/* Page heading band, matching the design's forest opening section. */
.legacy-page .page-hero {
  background: var(--forest);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}
.legacy-page .page-hero h1 {
  font: 400 clamp(32px, 4vw, 52px)/1.15 var(--serif);
  letter-spacing: -1.2px;
  color: #fff;
}
.legacy-page .page-hero .breadcrumb,
.legacy-page .page-hero .breadcrumb a {
  color: var(--gold);
  font: 600 10px/1.6 var(--sans);
  letter-spacing: 1.9px;
  text-transform: uppercase;
}

/* app.css also styles .footer-bottom for the old footer; restore the design's. */
.legacy-page footer .footer-bottom {
  flex-direction: row;
  text-align: left;
  font-size: 9px;
  color: #b8c7b2;
  border-top: 1px solid #6a83614d;
  padding-top: 20px;
}
.legacy-page footer .footer-bottom a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .legacy-page footer .footer-bottom { flex-wrap: wrap; }
  .legacy-page footer .footer-bottom > span:nth-child(2) { display: inline; }
}

/* Let long words (addresses, URLs, emails) wrap instead of widening the page on phones. */
.legacy-page main { overflow-wrap: break-word; }
.legacy-page .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 768px) {
  .legacy-page .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Leaderboards: the tables have an inline min-width:600px inside a sideways scroller, which
   hides the score columns on phones. The five short columns fit, so let them shrink. */
@media (max-width: 600px) {
  .legacy-page .leaderboard-section table { min-width: 0 !important; }
  .legacy-page .leaderboard-section th,
  .legacy-page .leaderboard-section td { padding: .75rem .35rem !important; font-size: .8rem !important; }
}
