/* 4ALL SITE3 (row 88, docs\site3.md): the pages of the battle modes, /modes/ and /modes/<slug>
   (Tools\Website\Make-ModePages.ps1). Only the site's own tokens and components (site.css). */

.mode-hero .breadcrumbs a { text-decoration: none; }
.mode-hero .breadcrumbs a:hover { color: var(--gold-hi); }
.mode-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.mode-tags li { padding: 3px 12px; border: 1px solid var(--gold-line); border-radius: 999px; background: rgb(var(--gold-rgb) / .06);
  font: 700 .74rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); }

.mode-banner { width: 100%; max-width: 866px; margin: 0 auto; overflow: hidden; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--bg); }
.mode-banner img { display: block; width: 100%; height: auto; aspect-ratio: 866 / 260; object-fit: cover; }

.mode-layout { display: grid; gap: clamp(16px, 2vw, 22px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.mode-layout > * { min-width: 0; }
.mode-col { display: grid; gap: clamp(16px, 2vw, 22px); }
@media (min-width: 900px) {
  .mode-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
.mode-sec .section-title svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.mode-story p { margin: 0 0 .9em; color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
.mode-story p:first-of-type::first-letter { float: left; margin: 4px 8px 0 0; font: 400 3.1rem/.8 var(--display); color: var(--gold); }

/* how to join: numbered gold rings, as the steps of the mails */
.mode-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.mode-steps li { position: relative; padding: 3px 0 0 44px; min-height: 30px; color: var(--text-2); counter-increment: step; }
.mode-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border: 1px solid var(--gold-lo); border-radius: 50%;
  display: grid; place-items: center; font: 400 .9rem/1 var(--display); color: var(--gold-hi); }
.mode-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mode-list li { position: relative; padding-left: 20px; color: var(--text-2); }
.mode-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-lo); }

.mode-always { margin: 0; font-size: 1.02rem; color: var(--gold-hi); }
.mode-hours .tt-mode-table td.time { width: 6.5rem; }
.mode-hours .tt-mode-table .mode-name { font-weight: 600; }
.mode-hours p.small { margin: 10px 0 0; }
.mode-more { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 599px) {
  .mode-hours .tt-mode-table td.time { grid-row: auto; }
  .mode-more .btn { width: 100%; }
}

/* /modes/: one card per mode */
.mode-index { display: grid; gap: clamp(14px, 2vw, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.mode-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: border-color .15s, transform .15s; }
.mode-tile:hover { border-color: var(--gold-lo); transform: translateY(-2px); }
.mode-tile img { display: block; width: 100%; height: auto; aspect-ratio: 866 / 260; object-fit: cover; border-bottom: 1px solid var(--gold-line); }
.mode-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.mode-tile h3 { margin: 0; font-size: 1.15rem; }
.mode-tile h3 a { color: var(--text); text-decoration: none; }
.mode-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.mode-tile h3 a:hover, .mode-tile h3 a:focus-visible { color: var(--gold-hi); }
.mode-tile p { margin: 0; color: var(--text-2); font-size: .94rem; }
.mode-tile .badge { align-self: flex-start; }
.mode-group-title { margin-top: 8px; }
