/*
 * Shared navy presentation for every athlete portrait.
 * Each portrait keeps its own scoped <style> block in the content; every selector here starts
 * with "html body.sp-athlete-portrait" so it outranks those blocks by exactly one element.
 * Article text, headings and data are never changed, only their presentation.
 */


/* Hero: the light portrait hero from blue-gradients.css stays as designed; the eyebrow keeps the site's gold (#8A5A00).
   Key facts sit on it as navy tiles, matching the label pills on the athlete cards. */
html body.sp-athlete-portrait #main-content .sp-magazine-hero h1{text-wrap:balance}
html body.sp-athlete-portrait #main-content .sp-athlete-hero-facts{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0 0 4px;padding:0}
html body.sp-athlete-portrait #main-content .sp-athlete-hero-facts li{display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;padding:10px 15px;border:1px solid #17467e;border-radius:12px;background:linear-gradient(125deg,#122b49 0%,#17467e 62%,#2464a7 100%);box-shadow:0 8px 18px #122b491f}
html body.sp-athlete-portrait #main-content .sp-athlete-hero-facts span{color:#E3A93A;font-size:10.5px;font-weight:700;line-height:1.3;letter-spacing:.12em;text-transform:uppercase}
html body.sp-athlete-portrait #main-content .sp-athlete-hero-facts strong{color:#fff;font-size:16px;font-weight:750;line-height:1.3}

/* Body text, links and section headings */
html body.sp-athlete-portrait .entry-content{color:#2f4862}
html body.sp-athlete-portrait .entry-content a{color:#17467e;text-decoration-color:#9fb9d6;text-underline-offset:3px}
html body.sp-athlete-portrait .entry-content a:hover{color:#2464a7;text-decoration-color:#2464a7}
html body.sp-athlete-portrait .entry-content .ref{color:#2464a7;text-decoration:none}
html body.sp-athlete-portrait .entry-content h2{color:#122b49}
html body.sp-athlete-portrait .entry-content>h2{padding-top:22px}
html body.sp-athlete-portrait .entry-content>h2::before{width:56px;height:4px;background:linear-gradient(90deg,#B8860B,#E3A93A)}
html body.sp-athlete-portrait .entry-content .lead{position:relative;padding:4px 0 4px 24px;color:#24405f;font-weight:500}
html body.sp-athlete-portrait .entry-content .lead::before{content:"";position:absolute;top:6px;bottom:6px;left:0;width:4px;border-radius:4px;background:linear-gradient(#B8860B,#E3A93A)}

/* Steckbrief: the existing fact table shown as a grid of fact tiles */
html body.sp-athlete-portrait .entry-content .athlete-facts{padding:0;overflow:hidden;border:1px solid #c7d7ea;border-radius:20px;background:#fff;box-shadow:0 16px 36px #122b4914}
html body.sp-athlete-portrait .entry-content .athlete-facts>.section-label,html body.sp-athlete-portrait .entry-content .athlete-facts>h2{background:linear-gradient(100deg,#122b49 0%,#17467e 62%,#2464a7 100%)}
html body.sp-athlete-portrait .entry-content .athlete-facts>.section-label{margin:0;padding:22px 26px 0;color:#E3A93A}
html body.sp-athlete-portrait .entry-content .athlete-facts>h2{margin:0;padding:6px 26px 22px;border-bottom:3px solid #E3A93A;color:#fff;font-size:26px}
html body.sp-athlete-portrait .entry-content .athlete-facts .wp-block-table{margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible}
html body.sp-athlete-portrait .entry-content .athlete-facts table,html body.sp-athlete-portrait .entry-content .athlete-facts tbody{display:block;width:100%}
html body.sp-athlete-portrait .entry-content .athlete-facts tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:12px;padding:22px}
html body.sp-athlete-portrait .entry-content .athlete-facts tbody tr,html body.sp-athlete-portrait .entry-content .athlete-facts tbody tr:nth-child(even){display:flex;flex-direction:column;gap:5px;min-width:0;padding:14px 16px;border:1px solid #d8e3f1;border-radius:13px;background:linear-gradient(160deg,#f7faff,#edf3fa)}
html body.sp-athlete-portrait .entry-content .athlete-facts tbody th,html body.sp-athlete-portrait .entry-content .athlete-facts tbody td{display:block;width:auto;padding:0;border:0;background:none}
html body.sp-athlete-portrait .entry-content .athlete-facts tbody th{color:#4f6b8a;font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.1em;text-transform:uppercase}
html body.sp-athlete-portrait .entry-content .athlete-facts tbody td{color:#122b49;font-size:15.5px;font-weight:650;line-height:1.55}
html body.sp-athlete-portrait .entry-content .athlete-facts tbody td strong{font-weight:800}
html body.sp-athlete-portrait .entry-content .athlete-facts .wp-element-caption{margin:0;padding:13px 24px 16px;border-top:1px solid #e3ebf5;background:#f8fbff;color:#4f6b8a;font-size:12.5px}
html body.sp-athlete-portrait .entry-content .athlete-facts .small{margin:0;padding:0 24px 18px;background:#f8fbff;color:#4f6b8a}
html body.sp-athlete-portrait .entry-content .athlete-facts figure+.small{padding-top:14px;border-top:1px solid #e3ebf5}

/* Table of contents with numbered steps */
html body.sp-athlete-portrait .entry-content .toc{position:relative;overflow:hidden;counter-reset:sp-toc;padding:24px 26px 20px 30px;border:1px solid #c7d7ea;border-radius:18px;background:#fff;box-shadow:0 8px 22px #122b490d}
html body.sp-athlete-portrait .entry-content .toc::before{content:"";position:absolute;top:0;bottom:0;left:0;width:5px;background:linear-gradient(#122b49,#2464a7)}
html body.sp-athlete-portrait .entry-content .toc strong{color:#17467e;letter-spacing:.12em}
html body.sp-athlete-portrait .entry-content .toc ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;margin-top:14px}
html body.sp-athlete-portrait .entry-content .toc li{counter-increment:sp-toc}
html body.sp-athlete-portrait .entry-content .toc a{display:flex;align-items:flex-start;gap:12px;padding:8px 10px;border-radius:10px;color:#17467e;font-size:14.5px;line-height:1.45;text-decoration:none;transition:background .15s}
html body.sp-athlete-portrait .entry-content .toc a::before{content:counter(sp-toc,decimal-leading-zero);flex:0 0 32px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:#e3ecf7;color:#17467e;font-size:12px;font-weight:800;transition:background .15s,color .15s}
html body.sp-athlete-portrait .entry-content .toc a:hover{background:#edf3fa;text-decoration:none}
html body.sp-athlete-portrait .entry-content .toc a:hover::before{background:linear-gradient(125deg,#122b49,#17467e);color:#E3A93A}

/* Data tables: navy header row */
html body.sp-athlete-portrait .entry-content .wp-block-table{border-color:#c7d7ea;border-radius:14px;box-shadow:0 6px 18px #122b490a}
html body.sp-athlete-portrait .entry-content .wp-block-table thead{background:linear-gradient(100deg,#122b49 0%,#17467e 62%,#2464a7 100%)}
html body.sp-athlete-portrait .entry-content .wp-block-table thead th{background:transparent;color:#fff;letter-spacing:.02em}
html body.sp-athlete-portrait .entry-content .wp-block-table tbody tr:nth-child(even){background:#f4f8fc}
html body.sp-athlete-portrait .entry-content .wp-block-table tbody tr:hover{background:#eaf1f9}

/* Callouts, media cards and links to profiles */
html body.sp-athlete-portrait .entry-content .athlete-callout{border-left-color:#17467e;background:#edf3fa}
html body.sp-athlete-portrait .entry-content .athlete-media{border-color:#c7d7ea;box-shadow:0 14px 30px #122b4912}
html body.sp-athlete-portrait .entry-content .media-heading{background:#f3f7fc;border-bottom-color:#dfe8f3}
html body.sp-athlete-portrait .entry-content .athlete-media figcaption>strong{color:#122b49}
html body.sp-athlete-portrait .entry-content .media-bottom a{display:inline-flex;align-items:center;padding:6px 12px;border-radius:100px;background:#e3ecf7;color:#17467e;text-decoration:none}
html body.sp-athlete-portrait .entry-content .media-bottom a:hover{background:linear-gradient(125deg,#122b49,#17467e);color:#fff}
html body.sp-athlete-portrait .entry-content .social-links{flex-direction:row;flex-wrap:wrap;gap:10px;padding:0;border:0;background:none}
html body.sp-athlete-portrait .entry-content .social-links a{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 14px;border-radius:100px;background:linear-gradient(125deg,#122b49,#17467e);color:#fff;font-size:13px;font-weight:700;line-height:1.3;text-decoration:none;transition:background .15s}
html body.sp-athlete-portrait .entry-content .social-links a:hover{background:linear-gradient(125deg,#17467e,#2464a7);color:#fff}

/* FAQ */
html body.sp-athlete-portrait .entry-content .sp-faq-item{border-color:#c7d7ea;border-radius:14px;transition:border-color .15s,box-shadow .15s}
html body.sp-athlete-portrait .entry-content .sp-faq-item:hover{border-color:#17467e}
html body.sp-athlete-portrait .entry-content .sp-faq-item[open]{border-color:#17467e;background:#fff;box-shadow:0 10px 24px #122b4914}
html body.sp-athlete-portrait .entry-content .sp-faq-item summary h3{color:#122b49}
html body.sp-athlete-portrait .entry-content .sp-faq-item summary::after{background:#e3ecf7;color:#17467e}
html body.sp-athlete-portrait .entry-content .sp-faq-item[open] summary::after{background:linear-gradient(125deg,#122b49,#17467e);color:#fff}

/* Link to the overview */
html body.sp-athlete-portrait .entry-content .hub-link{border:0;border-radius:16px;background:linear-gradient(125deg,#122b49 0%,#17467e 62%,#2464a7 100%);color:#dbe8f8;box-shadow:0 12px 28px #122b491f}
html body.sp-athlete-portrait .entry-content .hub-link a{color:#F2C063;font-weight:700;text-decoration-color:#F2C06380}
html body.sp-athlete-portrait .entry-content .hub-link a:hover{color:#FFD27A;text-decoration-color:#FFD27A}

/* Sources and author */
html body.sp-athlete-portrait .entry-content .athlete-sources{border-top-color:#c7d7ea}
html body.sp-athlete-portrait .entry-content .athlete-sources h2{color:#122b49}
html body.sp-athlete-portrait .entry-content .sp-source-number{color:#17467e;font-weight:800}
html body.sp-athlete-portrait .entry-content .athlete-sources li:target,html body.sp-athlete-portrait .entry-content .sp-source-item:target{background:#e3ecf7;outline-color:#e3ecf7}
html body.sp-athlete-portrait .sp-magazine-author{border-color:#c7d7ea;background:#fff;box-shadow:0 8px 22px #122b490d}

/* Related portraits */
html body.sp-athlete-portrait .sp-athlete-related{margin-top:56px;padding:32px;border:1px solid #d8e3f1;border-radius:22px;background:linear-gradient(160deg,#f3f7fc,#e9f0f9)}
html body.sp-athlete-portrait .sp-athlete-related-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;margin-bottom:22px}
html body.sp-athlete-portrait .sp-athlete-related-head .eyebrow{margin:0 0 6px;color:#2464a7;letter-spacing:.12em}
html body.sp-athlete-portrait .sp-athlete-related-head h2{margin:0;color:#122b49;font-size:clamp(24px,2.6vw,30px);line-height:1.25;letter-spacing:-.02em}
html body.sp-athlete-portrait .sp-athlete-related-all{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 14px;border-radius:100px;background:linear-gradient(125deg,#122b49,#17467e);color:#fff;font-size:13px;font-weight:700;line-height:1.3;text-decoration:none;transition:background .15s}
html body.sp-athlete-portrait .sp-athlete-related-all:hover{background:linear-gradient(125deg,#17467e,#2464a7);color:#fff}
html body.sp-athlete-portrait .sp-athlete-related-all svg{width:16px;height:16px}
html body.sp-athlete-portrait .sp-athlete-related-all:focus-visible{outline:3px solid #326dc7;outline-offset:3px}

@media(max-width:850px){
html body.sp-athlete-portrait .entry-content .toc ul{grid-template-columns:1fr}
}
@media(max-width:600px){
html body.sp-athlete-portrait .sp-athlete-hero-facts{gap:8px}
html body.sp-athlete-portrait .sp-athlete-hero-facts li{padding:8px 11px}
html body.sp-athlete-portrait .sp-athlete-hero-facts strong{font-size:15px}
html body.sp-athlete-portrait .entry-content .athlete-facts>.section-label{padding:18px 18px 0}
html body.sp-athlete-portrait .entry-content .athlete-facts>h2{padding:6px 18px 18px;font-size:23px}
html body.sp-athlete-portrait .entry-content .athlete-facts tbody{gap:10px;padding:16px}
html body.sp-athlete-portrait .entry-content .athlete-facts .wp-element-caption{padding:12px 18px 14px}
html body.sp-athlete-portrait .entry-content .athlete-facts .small{padding:0 18px 16px}
html body.sp-athlete-portrait .entry-content .toc{padding:20px 18px 16px 22px}
html body.sp-athlete-portrait .entry-content .lead{padding-left:18px}
html body.sp-athlete-portrait .sp-athlete-related{margin-top:40px;padding:22px 16px;border-radius:18px}
}
@media(prefers-reduced-motion:reduce){
html body.sp-athlete-portrait .entry-content .toc a,html body.sp-athlete-portrait .entry-content .toc a::before,html body.sp-athlete-portrait .entry-content .sp-faq-item,html body.sp-athlete-portrait .entry-content .social-links a,html body.sp-athlete-portrait .sp-athlete-related-all{transition:none}
}
@media print{html body.sp-athlete-portrait .sp-athlete-related{display:none}}
