/* team.croatia.sportdata.org — the Sportdata Croatia site's look (croatia.sportdata.org,
   karloversic/crosportdata src/styles/global.css): navy, the red accent, Schibsted
   Grotesk, square corners, numbered rows with hairlines. Shared by / and /start. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #0f3e6c; --navy-deep: #0b2a4a; --red: #c41e26; --red-dark: #a1181e;
  --blue: #2a5b8f; --sky: #77a2d9; --ink: #1a2230; --ink-soft: #4a5363;
  --kamen: #efede8; --white: #ffffff; --line: #dcd9d2; --line-strong: #c3bfb5;
  --on-navy-muted: #b5c3d6; --on-navy-line: rgb(255 255 255 / 0.16);
  --font: "Schibsted Grotesk", Arial, Helvetica, sans-serif;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --container: 75rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); }
a { color: var(--blue); }
a[href], button, summary, label[for], [role=button] { cursor: pointer; }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* header: white, the logo left, two links right */
.top { border-bottom: 1px solid var(--line); background: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { display: block; width: 232px; height: auto; }
.top nav { display: flex; align-items: center; gap: 1.5rem; }
.top nav a { color: var(--navy); font-weight: 500; text-decoration: none; }
.top nav a:hover { color: var(--red); }
.top nav .btn-red, .top nav .btn-red:hover { color: var(--white); }

/* buttons: square, red solid or white outline (on navy) */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; font: 600 1rem/1.2 var(--font);
  text-decoration: none; border: 2px solid transparent; border-radius: 0; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: var(--white); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--navy); }
.top .btn { padding: .6rem 1.1rem; }

/* hero: navy, the red bar, a large tight headline */
.hero { background: var(--navy); color: var(--white); padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.bar { display: block; width: 40px; height: 3px; background: var(--red); margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 1.2rem; max-width: 16ch; }
.hero p { color: var(--on-navy-muted); font-size: 1.25rem; line-height: 1.5; max-width: 38rem; margin: 0 0 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.back { display: inline-block; color: var(--on-navy-muted); text-decoration: none; margin-bottom: 1.5rem; }
.back:hover { color: var(--white); }

/* the tools: groups with a number and a title left, linked rows right */
.tools { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.tools h2.title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); color: var(--navy); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .6rem; }
.tools .sub { color: var(--ink-soft); font-size: 1.125rem; max-width: 40rem; margin: 0 0 2.5rem; }
.group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 2rem; border-top: 1px solid var(--line-strong); padding: 2rem 0; }
.group:first-of-type { border-top: 2px solid var(--navy); }
.group .n { display: block; color: var(--navy); font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: .6rem; }
.group h3 { color: var(--navy); font-size: 1.375rem; margin: 0 0 .4rem; line-height: 1.2; }
.group .lead { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 2.6rem minmax(9rem, 13rem) minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; color: inherit; text-decoration: none; }
.row .i { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.row .name { color: var(--navy); font-weight: 700; }
.row .what { color: var(--ink-soft); font-size: .95rem; }
.row .url { color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.row .url::after { content: " →"; color: var(--red); }
.row:hover .name { color: var(--red); }
.row:hover .url { color: var(--navy); }
.row:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* cards: a framed screenshot (or a tile with the tool's sign) over the name */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--navy); box-shadow: 0 14px 30px rgb(11 42 74 / 0.10); }
.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.shot { margin: 0; background: var(--kamen); border-bottom: 1px solid var(--line); }
.shot .chrome { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: var(--navy-deep); }
.shot .chrome i { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / 0.28); }
.shot .chrome span { margin-left: 8px; color: var(--on-navy-muted); font-size: .72rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot .tile { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.shot .tile svg { width: 64px; height: 64px; opacity: .92; }
.card .body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .3rem; }
.card .i { color: var(--blue); font-weight: 700; font-size: .85rem; }
.card h4 { margin: 0; color: var(--navy); font-size: 1.2rem; line-height: 1.2; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card .url { color: var(--ink-soft); font-size: .85rem; margin-top: .3rem; }
.card .url::after { content: " →"; color: var(--red); }
.card:hover h4 { color: var(--red); }

/* guide: numbered steps on stone */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 2rem; border-top: 1px solid var(--line-strong); padding: 2rem 0; }
.step:first-child { border-top: 2px solid var(--navy); }
.step h2 { color: var(--navy); font-size: 1.375rem; line-height: 1.25; margin: 0; }
.step .n { display: block; color: var(--navy); font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: .6rem; }
.step ul { margin: 0; padding-left: 1.1rem; }
.step li { margin: 0 0 .6rem; }
.step li::marker { color: var(--red); }
code { font: 500 .95em ui-monospace, "Cascadia Mono", Menlo, monospace; background: var(--kamen); padding: .1em .35em; }

.note { background: var(--kamen); padding: 1.4rem 0; color: var(--ink-soft); font-size: .95rem; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 1.6rem 0 2.2rem; color: var(--ink-soft); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.foot a { color: var(--ink-soft); }
.made { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.made svg { height: .85rem; width: auto; vertical-align: middle; }

@media (max-width: 860px) {
  .group, .step { grid-template-columns: 1fr; gap: 1rem; }
  .row { grid-template-columns: 2rem minmax(0, 1fr); gap: .15rem .75rem; }
  .row .what, .row .url { grid-column: 2; }
  .cards { grid-template-columns: 1fr; }
  .top nav .hide-sm { display: none; }
  .brand img { width: 176px; }
}
