/* SIOSS Journal of Sport Science — section styles.
   Palette and type follow the main sioss.se stylesheet so the journal reads as part of the same site. */
:root {
  --primary: #1a6fc4;
  --primary-dk: #145aa1;
  --accent: #4cc3f7;
  --dark: #0a0e15;
  --dark-2: #10151f;
  --mid: #171e2b;
  --border: #242d3d;
  --text: #e8edf4;
  --muted: #9aa5b8;
  --white: #ffffff;
  --note: #f5b83d;
  --radius: 12px;
  --font-display: 'Archivo', 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'IBM Plex Sans', system-ui, sans-serif; background: var(--dark); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(10,14,21,.94); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.brand span { font-weight: 600; font-size: .9rem; color: var(--muted); }
.jnav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.jnav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 0; }
.jnav a:hover, .jnav a.active { color: var(--white); }
.jnav a.site { color: var(--accent); }

/* page header */
.hero { padding: 64px 0 52px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--dark-2), var(--dark)); }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.1; letter-spacing: -.025em; color: var(--white); max-width: 24ch; }
.hero.article h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); max-width: 34ch; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 64ch; margin-top: 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 13px 26px; font-size: .95rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dk); }
.btn-outline { border-color: rgba(232,237,244,.35); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }

/* issue cover */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: center; }
.cover { display: block; text-decoration: none; }
.cover svg, .cover img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.7), 0 0 0 1px var(--border); transition: transform .25s ease; }
.cover:hover svg, .cover:hover img { transform: translateY(-4px); }
.cover-caption { display: block; margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }
.issue-head { display: flex; gap: 28px; align-items: center; margin-bottom: 28px; }
.issue-head h2 { margin-bottom: 8px; }
.issue-head p { margin-bottom: 6px; }
.cover-sm { flex: 0 0 132px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 40px; }
.facts div { background: var(--dark-2); padding: 16px 20px; }
.facts dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { font-weight: 600; color: var(--white); margin-top: 4px; }

/* content */
main section { padding: 52px 0; border-bottom: 1px solid var(--border); }
h2 { font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 1.95rem); color: var(--white); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 20px; }
h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--white); margin: 28px 0 10px; }
p { margin-bottom: 14px; max-width: 72ch; }
ul, ol { margin: 0 0 14px 22px; max-width: 72ch; }
li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: .92rem; }

.article-list { list-style: none; margin: 0; max-width: none; display: grid; gap: 12px; }
.article-card { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 0; }
.article-card h3 { margin: 0 0 6px; font-size: 1.06rem; line-height: 1.35; }
.article-card h3 a { color: var(--white); text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
.card-links { margin-top: 10px; display: flex; gap: 18px; font-size: .9rem; flex-wrap: wrap; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; list-style: none; margin: 0 0 8px; max-width: none; }
.person { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 0; }
.person .role { color: var(--accent); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.person strong { color: var(--white); display: block; }
.person span { color: var(--muted); font-size: .88rem; display: block; }

.abstract { background: var(--dark-2); border-left: 3px solid var(--primary); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 80ch; }
.abstract p { max-width: none; margin: 0; }
.cite { font-size: .92rem; color: var(--muted); background: var(--mid); padding: 14px 18px; border-radius: 8px; max-width: 80ch; }
table.details { border-collapse: collapse; margin: 4px 0 18px; }
table.details th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 24px 6px 0; vertical-align: top; white-space: nowrap; }
table.details td { padding: 6px 0; color: var(--white); }

/* items the editors still have to decide; remove each note before the page goes live */
.editor-note { border: 1px dashed var(--note); background: rgba(245,184,61,.08); color: #f5d58a; padding: 14px 18px; border-radius: 8px; margin: 18px 0; max-width: 72ch; font-size: .92rem; }
.editor-note strong { color: var(--note); }
.editor-note + h2 { margin-top: 44px; }

/* Arabic (RTL) pages */
[dir="rtl"] body, body[dir="rtl"] { font-family: 'Cairo', 'IBM Plex Sans', system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: 'Cairo', var(--font-display); letter-spacing: 0; }
[dir="rtl"] main ul, [dir="rtl"] main ol { margin: 0 22px 14px 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .facts dt { letter-spacing: 0; }
[dir="rtl"] main strong { color: var(--white); }
.jnav a[lang="ar"] { font-family: 'Cairo', 'IBM Plex Sans', system-ui, sans-serif; }

.footer { padding: 36px 0; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-split .cover { max-width: 220px; }
  .cover-sm { flex-basis: 96px; }
  .issue-head { gap: 18px; }
  .jnav { margin-left: 0; gap: 14px; }
  .hero { padding: 44px 0 36px; }
  main section { padding: 40px 0; }
}
