/* Five Rings Combat Sports: inner page styles */

.section { padding: var(--section-y) 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section-title--sm { font-size: clamp(32px, 3.4vw, 46px); }
.lead { margin-top: 16px; font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.on-dark .lead { color: #c9cacd; }
.section p + p { margin-top: 14px; }
.muted { margin-top: 14px; color: var(--text-muted); font-size: 15px; }
.block-title { margin: 44px 0 18px; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-row--center { justify-content: center; }
.text-link--light { color: var(--white); border-color: var(--red-bright); }

/* Page banner */
.page-banner { position: relative; min-height: 340px; display: flex; align-items: flex-end; background: var(--black); color: var(--white); overflow: hidden; }
.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 5, 6, 0.95) 0%, rgba(5, 5, 6, 0.7) 50%, rgba(5, 5, 6, 0.35) 100%); }
.page-banner__inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 56px; }
.page-banner__title { max-width: 900px; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(44px, 5.6vw, 80px); line-height: 0.95; }
.page-banner__intro { max-width: 640px; margin-top: 16px; font-size: 19px; color: #dcdde0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px; padding: 0; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.breadcrumb li { color: var(--steel); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--red-bright); }
.breadcrumb a { color: var(--white); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .breadcrumb a:hover { color: var(--red-bright); } }

/* CTA band */
.cta-band { position: relative; padding: 72px 0; background: var(--black); color: var(--white); overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.cta-band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band__title { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(34px, 3.6vw, 52px); }
.cta-band__text { margin-top: 10px; color: #dcdde0; font-size: 18px; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split__media { margin: 0; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Lists */
.plain-list { margin-top: 16px; }
.plain-list li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line-light); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 3px; background: var(--red); }
.check-list li { padding: 18px 0; border-bottom: 1px solid #d8d8d4; }
.check-list li strong { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 22px; text-transform: uppercase; }
.check-list__cta { border-bottom: 0 !important; }

/* Event feature (events page) */
.event-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line-light); }
.event-feature__media { position: relative; display: block; min-height: 420px; overflow: hidden; }
.event-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) and (pointer: fine) { .event-feature__media:hover img { transform: scale(1.04); } }
.event-feature__body { padding: 40px; }
.event-feature__date { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); }
.event-feature__title { margin-top: 6px; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 48px); }
.event-feature__title a { text-decoration: none; }
.status-pill { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 6px 14px; background: var(--red); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.status-pill--inline { position: static; display: inline-block; padding: 2px 10px; font-size: 14px; }
.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 22px 0 0; }
.meta-list dt { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.meta-list dd { margin: 2px 0 0; font-weight: 600; }
.meta-list--stack { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 16px 0 22px; }
.meta-list--stack > div { padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.countdown--light { margin: 26px 0 0; }
.countdown--light .countdown__unit { border-color: var(--line-light); background: var(--paper); }
.countdown--light .countdown__unit span { color: var(--black); }
.countdown--light .countdown__unit small { color: var(--text-muted); }

/* Event page */
.event-bar { background: var(--charcoal); color: var(--white); border-bottom: 4px solid var(--red); }
.event-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.event-bar .countdown { margin-left: 0; }
.event-bar .btn-row { margin-top: 0; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.event-layout__main > div + div { margin-top: 8px; }
.event-layout__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { padding: 28px; border: 1px solid var(--line-light); background: var(--white); }
.side-card__title { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 26px; }
.side-card--dark { background: var(--black); color: #d6d7da; border-color: var(--black); }
.side-card--dark .side-card__title { color: var(--white); }
.side-card--dark p { margin: 12px 0 18px; font-size: 16px; }
.side-card--dark strong { color: var(--white); }
.mini-card { border-top: 2px solid var(--black); margin-bottom: 18px; }
.mini-card li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.mini-card__slot { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.mini-card__names { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 22px; text-transform: uppercase; }
.mini-card__names em { color: var(--red); font-style: italic; margin: 0 4px; }

/* Accordion */
.accordion details { border-bottom: 1px solid var(--line-light); }
.accordion details:first-child { border-top: 1px solid var(--line-light); }
.accordion summary {
    position: relative; display: block; padding: 18px 44px 18px 0; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: 0.02em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 600; color: var(--red); }
.accordion details[open] summary::after { content: "\2212"; }
.accordion details p { padding: 0 0 20px; color: var(--text-muted); max-width: 760px; }

/* Fight card page */
.fight-card--page { padding-top: 64px; }
.fight-card__note--center { text-align: center; margin-top: 30px; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.data-table th { text-align: left; padding: 14px 16px; background: var(--black); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.data-table tbody tr:nth-child(even) td { background: #f8f8f6; }
.data-table--dark th { background: var(--red); }
.data-table--dark td { border-color: var(--line-dark); color: #dcdde0; }
.data-table--dark tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.04); }
.compare-table td:last-child { color: var(--white); font-weight: 600; }
.compare-table td:first-child { font-family: var(--font-display); font-weight: 700; font-size: 19px; text-transform: uppercase; color: var(--white); }
.rank-table td span { display: block; font-size: 14px; color: var(--text-muted); }
.section--dark .section-title + .table-wrap { margin-top: 32px; }

/* Results */
.results-empty { padding: 40px; margin-bottom: 20px; border-left: 6px solid var(--red); background: var(--paper); }
.results-empty__label { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.results-empty .btn { margin-top: 22px; }
.album + .results-empty { margin-top: 56px; }

/* Rules page */
.quick-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--black); }
.quick-rules li { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line-light); }
.quick-rules li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line-light); }
.quick-rules__big { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 52px; line-height: 1; color: var(--red); text-transform: uppercase; }
.quick-rules strong { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.quick-rules p { margin-top: 8px; color: var(--text-muted); font-size: 16px; }
.rules-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.rules-nav { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; background: var(--black); color: var(--white); }
.rules-nav__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; }
.rules-nav a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line-dark); color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .rules-nav a:hover { color: var(--red-bright); } }
.rule-block { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line-light); scroll-margin-top: calc(var(--header-h) + 24px); }
.rule-block__title { display: flex; align-items: baseline; gap: 14px; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(30px, 3vw, 40px); margin-bottom: 14px; }
.rule-block__title span { color: var(--red); font-size: 0.7em; }
.rule-block h3 { margin: 22px 0 8px; font-weight: 800; font-size: 22px; text-transform: uppercase; }
.rule-block ul { margin: 12px 0; }
.rule-block ul li { position: relative; padding: 6px 0 6px 22px; }
.rule-block ul li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 3px; background: var(--red); }
.rule-block .score-table { margin-top: 18px; }
.foul-list li::before { background: var(--black) !important; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 20px 0; padding: 0; list-style: none; }
.steps li { padding: 18px; background: var(--paper); border-left: 4px solid var(--red); }
.steps li + li { border-left-color: var(--black); }
.steps strong { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 20px; text-transform: uppercase; }
.scorecard { margin: 0; max-width: 620px; }
.scorecard img { width: 100%; border: 1px solid var(--line-light); }
.scorecard figcaption { margin-top: 10px; font-size: 15px; color: var(--text-muted); }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.process li { padding: 24px 24px 24px 0; border-top: 3px solid var(--black); }
.process li + li { padding-left: 24px; }
.process span { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 22px; color: var(--red); }
.process strong { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.process p { margin-top: 8px; font-size: 16px; color: var(--text-muted); }

/* FAQ */
.faq-layout { display: grid; gap: 48px; max-width: 920px; }
.faq-group__title { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 32px; margin-bottom: 12px; }

/* Forms (light) */
.form-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.form-layout__media { margin: 28px 0 0; }
.form-layout__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.form-card { padding: 40px; background: var(--white); border-top: 4px solid var(--red); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06); }
.section--paper .form-card { box-shadow: none; }
.form-card fieldset { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.form-card legend { margin-bottom: 14px; padding: 0; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 24px; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-field { display: block; min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid #c9c9c5; border-radius: 0; background: var(--white);
    color: var(--text); font: inherit; font-size: 17px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(208, 2, 27, 0.35); outline-offset: 0; border-color: var(--red); }
.form-field[hidden] { display: none; }
.form-checks { display: grid; gap: 12px; margin: 4px 0 26px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--red); }
.form-alert { margin-bottom: 26px; padding: 16px 20px; border-left: 4px solid var(--red); background: #fdf0f1; color: #6b0010; font-size: 16px; }
.form-alert ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.roster { display: grid; gap: 14px; }
.roster__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed #d0d0cc; }
.roster__add { margin-top: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 52px; padding: 10px 14px; border: 1px solid #c9c9c5; font-weight: 600; font-size: 16px; }
.choice input:checked + span { border-color: var(--red); background: var(--red); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--red-bright); outline-offset: 2px; }
.contact-list { margin: 22px 0 28px; border-top: 2px solid var(--black); }
.contact-list li { padding: 14px 0; border-bottom: 1px solid #d8d8d4; font-size: 18px; overflow-wrap: anywhere; }
.contact-list span { display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.contact-list a { text-decoration: none; font-weight: 600; }

/* Athletes */
.athlete-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.athlete-card { display: block; height: 100%; background: var(--white); border: 1px solid var(--line-light); text-decoration: none; color: var(--text); transition: border-color .2s ease, transform .2s ease; }
@media (hover: hover) and (pointer: fine) { .athlete-card:hover { border-color: var(--red); transform: translateY(-3px); } }
.athlete-card__photo, .athlete-hero__photo { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 35%, #2a2b30 0%, #0b0b0c 75%); overflow: hidden; }
.athlete-card__photo img, .athlete-hero__photo img { position: absolute; width: 70%; opacity: 0.08; }
.athlete-card__initials { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 64px; color: var(--white); letter-spacing: 0.02em; }
.athlete-card__photo::after, .athlete-hero__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red); }
.athlete-card__body { display: block; padding: 18px 18px 20px; }
.athlete-card__name { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 26px; text-transform: uppercase; line-height: 1; }
.athlete-card__meta { display: block; margin-top: 6px; font-size: 15px; color: var(--text-muted); }
.athlete-card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-light); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.athlete-card__stats strong { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.athlete-hero { position: relative; padding: 64px 0; background: var(--black); color: var(--white); overflow: hidden; }
.athlete-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.athlete-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; }
.athlete-hero__photo .athlete-card__initials { font-size: 96px; }
.athlete-hero__name { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(48px, 6vw, 88px); line-height: 0.92; }
.athlete-hero__meta { margin-top: 12px; font-size: 19px; color: #dcdde0; }
.athlete-hero__stats { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 0; }
.athlete-hero__stats > div { padding: 10px 28px 10px 0; margin-right: 28px; border-right: 1px solid var(--line-dark); }
.athlete-hero__stats > div:last-child { border-right: 0; }
.athlete-hero__stats dt { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.athlete-hero__stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; }
.next-fight { margin-top: 18px; padding: 28px; background: var(--black); color: var(--white); border-left: 6px solid var(--red); }
.next-fight__event { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.next-fight__bout { margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; line-height: 1; }
.next-fight__bout em { color: var(--red-bright); margin: 0 6px; }
.next-fight__bout a { color: var(--white); }
.next-fight__meta { margin-top: 10px; color: #c9cacd; font-size: 16px; }

/* About */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.founder-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 28px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); }
.founder-card__photo { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: radial-gradient(circle at 50% 30%, #2f3035 0%, #0b0b0c 80%); border-bottom: 5px solid var(--red); }
.founder-card__photo span { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 60px; color: var(--white); }
.founder-card h3 { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 32px; }
.founder-card__role { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-bright); }
.founder-card p:not(.founder-card__role) { margin-top: 14px; color: #c9cacd; font-size: 16px; }

/* Partners */
.partner-rows { margin-top: 28px; border-top: 3px solid var(--black); }
.partner-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.partner-row h3 { font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.partner-row h3 a { color: inherit; text-decoration: none; }
.partner-row__role { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.partner-row p { color: var(--text-muted); }
.partner-row__address { margin-top: 10px; color: var(--black) !important; font-weight: 600; }
.partner-row .text-link { display: inline-block; margin-top: 12px; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.tier { padding: 30px 26px 34px 0; }
.tier + .tier { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.tier__num { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 22px; color: var(--red-bright); }
.tier h3 { margin-top: 6px; font-weight: 800; font-style: italic; font-size: 26px; text-transform: uppercase; }
.tier p { margin-top: 10px; color: #c9cacd; font-size: 16px; }

/* Gallery */
.album + .album { margin-top: 32px; }
.album .block-title { margin-top: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--black); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.gallery-item__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); color: var(--white); font-size: 15px; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .gallery-item:hover img { transform: scale(1.05); } }
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 16px; padding: 64px 24px 32px; background: rgba(5, 5, 6, 0.95); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 200px); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { max-width: 720px; text-align: center; color: #dcdde0; font-size: 16px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--white); border: 1px solid var(--line-dark); }
.lightbox__nav { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.5); }

/* Thank you and 404 */
.thanks { position: relative; min-height: 70vh; display: flex; align-items: center; background: var(--black); color: var(--white); overflow: hidden; text-align: center; }
.thanks__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.thanks__inner { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; }
.thanks__inner .page-banner__intro { margin-left: auto; margin-right: auto; }
.thanks__icon { width: 110px; height: auto; margin-bottom: 22px; }
.thanks__code { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 120px; line-height: 1; color: var(--red-bright); }

/* Legal */
.prose { max-width: 820px; }
.prose h2 { margin: 36px 0 12px; font-weight: 800; text-transform: uppercase; font-size: 28px; }
.prose h3 { margin: 22px 0 8px; font-weight: 700; text-transform: uppercase; font-size: 21px; }
.prose p, .prose li { color: #35363a; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0; }
.prose ul li { position: relative; padding: 6px 0 6px 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 3px; background: var(--red); }

/* Responsive */
@media (max-width: 1100px) {
    .split, .event-layout, .rules-layout, .form-layout, .event-feature { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .event-feature { gap: 0; }
    .event-feature__media { min-height: 320px; }
    .event-layout__side, .rules-nav { position: static; }
    .rules-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
    .quick-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-rules li, .quick-rules li:not(:nth-child(3n + 1)) { padding: 26px 22px 28px 0; border-left: 0; }
    .quick-rules li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line-light); }
    .athlete-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .founders { grid-template-columns: minmax(0, 1fr); }
    .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tier, .tier + .tier { padding: 26px 22px 28px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
    .tier:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line-dark); }
    .partner-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .partner-row .partner-logo { max-width: 240px; }
    .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process li + li { padding-left: 0; }
    .process li:nth-child(even) { padding-left: 24px; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
    .page-banner { min-height: 280px; }
    .page-banner__inner { padding-top: 56px; padding-bottom: 40px; }
    .page-banner__title { font-size: clamp(38px, 10.5vw, 52px); }
    .page-banner__intro { font-size: 17px; }
    .page-banner::after { background: linear-gradient(0deg, rgba(5, 5, 6, 0.95) 10%, rgba(5, 5, 6, 0.6) 100%); }
    .lead { font-size: 17px; }
    .event-feature__body { padding: 26px var(--gutter) 30px; }
    .meta-list { grid-template-columns: minmax(0, 1fr); }
    .event-bar .btn-row .btn, .cta-band__actions .btn, .btn-row .btn { flex: 1 1 100%; }
    .event-layout__main .text-link { margin-top: 4px; }
    .quick-rules, .process, .tiers { grid-template-columns: minmax(0, 1fr); }
    .quick-rules li, .quick-rules li:nth-child(even), .process li, .process li:nth-child(even), .tier, .tier:nth-child(even) { padding-left: 0; border-left: 0; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .rules-nav ul { grid-template-columns: minmax(0, 1fr); }
    .form-card { padding: 26px 20px; }
    .form-grid, .roster__row { grid-template-columns: minmax(0, 1fr); }
    .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .athlete-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .athlete-card__name { font-size: 21px; }
    .athlete-card__initials { font-size: 46px; }
    .athlete-card__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .athlete-card__stats span:last-child { display: none; }
    .athlete-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .athlete-hero__photo { max-width: 200px; }
    .athlete-hero__stats > div { padding-right: 16px; margin-right: 16px; }
    .athlete-hero__stats dd { font-size: 24px; }
    .founder-card { grid-template-columns: minmax(0, 1fr); }
    .founder-card__photo { max-width: 180px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .gallery-item__caption { display: none; }
    .lightbox { grid-template-columns: minmax(0, 1fr); padding: 72px 12px 24px; }
    .lightbox__nav { position: absolute; bottom: 20px; }
    .lightbox__nav--prev { left: 20px; }
    .lightbox__nav--next { right: 20px; }
    .results-empty { padding: 26px 20px; }
    .thanks__code { font-size: 90px; }
}

@media (max-width: 760px) {
    .data-table { font-size: 16px; }
    .data-table th, .data-table td { padding: 12px 12px; }
    .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
    .compare-table tr { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
    .compare-table td { padding: 4px 0; border: 0; background: none !important; }
    .compare-table td:nth-child(2)::before { content: "Typical rules: "; color: var(--steel); font-weight: 600; }
    .compare-table td:nth-child(3)::before { content: "FRCS: "; color: var(--red-bright); font-weight: 700; }
}
