/* Youth alerts, iQadsiah tool (iqadsiah_youth_alerts.py).
   The base is the four C's and predictor tools' copy of xTV's light theme (iqadsiah_psych_assets/style.css) and
   Aleef's identity standard (football-knowledge qadsiah-platform-UIstandards/01): Qadsiah v3 for the page title,
   Cairo for everything else, teal accents, 24 px cards, the fixed "iQadsiah Home" pill top left. Below the base:
   the tiles, the filters, the player cards and the country table. */
@font-face { font-family: "Qadsiah"; src: url("fonts/Qadsiah-v3-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/Cairo-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/Cairo-Bold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }

:root {
  --bg: #f6fbfb; --bg-accent: rgba(13, 148, 136, 0.07); --card: rgba(255, 255, 255, 0.96); --card-light: #eef9f8;
  --field: #f5fbfa; --soft: #edf8f7; --thead: #e4f4f2;
  --text: #102a2c; --muted: #5c7476; --border: rgba(13, 117, 110, 0.2);
  --accent: #0f9b8e; --accent-strong: #087b70; --warn: #b77912;
  --shadow: 0 18px 42px rgba(15, 91, 87, 0.12);
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Qadsiah", "Cairo", system-ui, sans-serif;
  /* the three strengths of an alert, and the three kinds of line */
  --s-critical: #087b70; --s-major: #0f9b8e; --s-minor: #8cc9c2;
  --m-alert-bg: rgba(15, 155, 142, 0.14); --m-alert-fg: #075e55;
  --m-fact-bg: rgba(16, 42, 44, 0.08); --m-fact-fg: #102a2c;
  --m-context-bg: rgba(183, 121, 18, 0.12); --m-context-fg: #7a4f08;
  --hair: #E6E9EC; --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 15% 10%, rgba(20, 184, 166, 0.14), transparent 42%),
              radial-gradient(circle at 85% 15%, rgba(45, 212, 191, 0.11), transparent 38%),
              linear-gradient(180deg, #f9fdfd, #edf8f7); }

/* back to the platform: same pill, same place as in xTV */
.iq-home-link { position: fixed; top: 18px; left: 24px; z-index: 10; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 38px; padding: .35rem .8rem .35rem .45rem; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); box-shadow: 0 10px 24px rgba(15, 91, 87, 0.12); backdrop-filter: blur(14px);
  color: var(--text); text-decoration: none; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.iq-home-link:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--card-light); color: var(--text); }
.iq-home-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.iq-home-link img { width: 24px; height: 24px; object-fit: contain; border-radius: 50%; }

.app-shell { width: min(1280px, 100%); margin: 0 auto; padding: 5rem clamp(1rem, 4vw, 2.75rem) 3.5rem;
  display: flex; flex-direction: column; gap: 1.5rem; }

/* hero */
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.hero-brand { display: flex; align-items: center; gap: .65rem; }
.hero-brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18)); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--muted); margin: 0; }
.hero h1 { margin: .5rem 0 0; font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.01em;
  line-height: 1.05; color: var(--text); font-weight: 700; }
.subtitle { margin: .4rem 0 0; color: var(--muted); max-width: 640px; line-height: 1.6; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; margin-left: auto; }
.status { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); box-shadow: 0 10px 24px rgba(15, 91, 87, 0.08); font-size: .85rem; flex-wrap: wrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.status b { font-weight: 800; }
.status-sub { color: var(--muted); font-size: .8rem; margin-right: .6rem; }
@media (max-width: 720px) { .hero-actions { align-items: flex-start; margin-left: 0; } .status-sub { margin: 0 0 0 .6rem; } }

/* tabs: xTV's pill bar */
.qtabs { display: inline-flex; flex-wrap: nowrap; gap: .35rem; padding: .35rem; margin: 0 0 1.25rem; width: fit-content;
  background: var(--soft); border: 1px solid var(--border); border-radius: 999px; }
.qtabs .nav-item { margin: 0; }
.qtabs .nav-link { border: none !important; border-radius: 999px !important; background: transparent; color: var(--muted);
  font-weight: 700; font-size: .9rem; padding: .5rem 1.25rem; min-height: 40px; transition: background .2s ease, color .2s ease; }
.qtabs .nav-link:hover { color: var(--text); }
.qtabs .nav-link.active { background: rgba(15, 155, 142, 0.14) !important; color: var(--text) !important; }
.qtabs .nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* cards */
.qcard { border-radius: 24px; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow); min-width: 0; }
.card-title { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.005em; color: var(--text); line-height: 1.35; }
.note { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: .35rem 0 1rem; }
.lbl { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; color: var(--muted); margin: 0 0 .4rem; font-weight: 700; }
.stack { display: grid; gap: 1.25rem; }

/* the strip of tiles */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.tile { border-radius: 16px; border: 1px solid var(--border); background: var(--card); padding: .8rem 1rem; min-width: 0; box-shadow: 0 10px 24px rgba(15, 91, 87, 0.06); }
.tile-v { font-size: 1.7rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; margin-top: .2rem; }
.tile-s { color: var(--muted); font-size: .8rem; line-height: 1.4; }
@media (max-width: 991px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles .tile:nth-child(4), .tiles .tile:nth-child(5) { grid-column: span 1; } }
@media (max-width: 575px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles .tile:nth-child(5) { grid-column: 1 / -1; } }

/* filters */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.1rem; margin-bottom: 1.25rem; }
.filters .actions { grid-column: 1 / -1; display: flex; gap: .75rem 1.25rem; align-items: center; flex-wrap: wrap; }
.filters .hint { color: var(--muted); font-size: .85rem; margin-left: auto; }
@media (max-width: 991px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters .hint { margin-left: 0; } }
@media (max-width: 575px) { .filters { grid-template-columns: 1fr; } }
.filters .dash-dropdown { background: var(--field); border: 1px solid var(--border); border-radius: 14px; min-height: 46px;
  color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.filters .dash-dropdown:hover { border-color: rgba(15, 155, 142, 0.45); }
.filters .dash-dropdown:focus-visible, .filters .dash-dropdown[data-state="open"] { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 155, 142, 0.15); }
.filters .dash-dropdown-trigger-icon { color: var(--accent); }
.qinput { width: 100%; min-height: 46px; border-radius: 14px; border: 1px solid var(--border); background: var(--field); padding: .5rem .9rem;
  font: inherit; color: var(--text); }
.qinput:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 155, 142, 0.15); }
.switches { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; }
.switches .form-check { margin: 0; min-height: 44px; display: flex; align-items: center; }
.switches .form-check-input { width: 2.4em; height: 1.3em; margin-top: 0; cursor: pointer; }
.switches .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.switches .form-check-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 155, 142, 0.25); }
.switches .form-check-label { font-size: .88rem; color: var(--text); padding-left: .3rem; cursor: pointer; }
.chipbtn { border: 1px solid var(--accent); background: rgba(15, 155, 142, 0.1); color: var(--accent-strong); border-radius: 999px;
  padding: .45rem .9rem; min-height: 44px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.chipbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fbnote { color: var(--warn); font-size: .85rem; font-weight: 700; grid-column: 1 / -1; }
.fbnote:empty { display: none; }
.legend { display: flex; gap: .4rem .9rem; align-items: center; flex-wrap: wrap; margin: -.5rem 0 1rem; font-size: .8rem; color: var(--muted); }
.legtxt { margin-right: .5rem; }
.emptybox .btn-2 { margin: .25rem 0 .5rem; }

.btn-go, .btn-2 { border-radius: 16px; padding: .8rem 1.4rem; min-height: 46px; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; font-size: .85rem; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn-go { background: linear-gradient(135deg, #0f9b8e, #16b8a8); color: #fff; border: 1px solid transparent; }
.btn-2 { background: var(--soft); color: var(--text); border: 1px solid var(--border); }
@media (hover: hover) and (pointer: fine) {
  .btn-go:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15, 155, 142, 0.28); }
  .btn-2:hover { transform: translateY(-2px); border-color: var(--accent); }
}
.btn-go:focus-visible, .btn-2:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.more { display: flex; justify-content: center; margin-top: 1.25rem; }

/* the player cards: two to a row on a screen, one on a phone; each card as tall as its own content */
#cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 860px) { #cards { grid-template-columns: 1fr; } }
.pcard { border-radius: 20px; border: 1px solid var(--border); background: var(--card); padding: 1.1rem 1.25rem 1rem; box-shadow: 0 12px 28px rgba(15, 91, 87, 0.08);
  min-width: 0; display: flex; flex-direction: column; gap: .55rem; transition: transform 160ms var(--ease-out), box-shadow 160ms ease; }
@media (hover: hover) and (pointer: fine) { .pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.pcard.is-new { border-color: rgba(15, 155, 142, 0.45); }
.pcard.ignored { opacity: .7; }
.pcard.ignored .fbtn.ghost { color: var(--text); }
.ph { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.ph-left { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.pname { font-weight: 800; font-size: 1.08rem; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 3px; padding: .2rem 0; display: inline-block; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .pname:hover { color: var(--accent-strong); } }
.age { display: inline-flex; align-items: center; justify-content: center; min-width: 2em; padding: .05rem .45rem; border-radius: 999px;
  background: var(--text); color: #fff; font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums; }
.pos { color: var(--muted); font-size: .85rem; font-weight: 700; }
.new-tag { font-size: .75rem; font-weight: 800; letter-spacing: .08em; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-strong); color: #fff; }
.cov-tag { font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--soft); color: var(--text); border: 1px solid var(--border); }
.sev { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); flex: none; }
.sev-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(16, 42, 44, 0.35); }
.s-critical { background: var(--s-critical); } .s-major { background: var(--s-major); } .s-minor { background: var(--s-minor); }
.s-context { background: #e8b65a; } .s-fact { background: #c9d2d2; }
.pmeta { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.mbar { position: relative; height: 8px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.mfill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #0f9b8e, #16b8a8); }
.mtext { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 575px) { .mrow { grid-template-columns: 1fr; gap: .25rem; } .mtext { white-space: normal; } }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.line { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .92rem; line-height: 1.45; }
@media (max-width: 575px) { .line { grid-template-columns: 1fr; gap: .2rem; } }
.lchip { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; line-height: 1.3; margin-top: .05rem; justify-self: start; }
.m-alert { background: var(--m-alert-bg); color: var(--m-alert-fg); }
.m-fact { background: var(--m-fact-bg); color: var(--m-fact-fg); }
.m-context { background: var(--m-context-bg); color: var(--m-context-fg); }
.newdot { font-weight: 800; text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; }
.ltext { min-width: 0; overflow-wrap: anywhere; }
.facts { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: .5rem; }
.pactions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .15rem; }
.fbtn { border: 1px solid var(--border); background: var(--soft); color: var(--text); border-radius: 999px; padding: .55rem 1rem; min-height: 44px; font: inherit;
  font-size: .85rem; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
@media (hover: hover) and (pointer: fine) { .fbtn:hover { border-color: var(--accent); transform: translateY(-1px); } }
.fbtn:active { transform: scale(.97); }
.fbtn.on { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.fbtn.ghost { background: transparent; color: var(--text); }
.fbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fstatus { font-size: .82rem; color: var(--accent-strong); font-weight: 700; }
.totop { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 9; min-width: 44px; min-height: 44px; padding: .6rem .9rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: var(--text); font-weight: 800; font-size: .8rem; text-decoration: none; box-shadow: var(--shadow); }
@media (max-width: 760px) { .totop { display: inline-flex; align-items: center; justify-content: center; } .iq-home-link { position: absolute; } }

/* tables (the country tab, the proof table) */
.tscroll { overflow-x: auto; }
.qtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.qtable th { text-align: left; text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; color: var(--muted); font-weight: 700;
  padding: .5rem .6rem; border-bottom: 2px solid var(--thead); }
.qtable td { padding: .5rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.qtable tr:last-child td { border-bottom: none; }
.qtable .r { text-align: right; font-variant-numeric: tabular-nums; }
.qtable .b { font-weight: 800; }
.qtable .mut { color: var(--muted); }
.linkbtn { border: none; background: none; padding: .55rem 0; min-height: 44px; margin: 0; font: inherit; font-weight: 800; color: var(--text); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .linkbtn:hover { color: var(--accent-strong); } }

/* the guide */
.gitems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; }
@media (max-width: 860px) { .gitems { grid-template-columns: 1fr; } }
.gitem { border-top: 1px solid var(--border); padding-top: .6rem; }
.gh { display: flex; align-items: center; gap: .6rem; margin-bottom: .25rem; }
.mword { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.gtext { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--text); }
.about-text p { margin: 0 0 .6rem; line-height: 1.55; }
.foot { color: var(--muted); font-size: .8rem; text-align: center; margin-top: .5rem; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--card-light); border-top-color: var(--accent);
  animation: qspin .8s linear infinite; margin: 30px auto; }
@keyframes qspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } .pcard, .iq-home-link, .fbtn { transition: none; } }

/* ---- 2026-10-11, third pass: each scout's own list (save, archive, note) ---- */
.userchip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .8rem;
  border: 1px solid var(--border); background: var(--card); color: var(--text); }
.userchip.anon { color: var(--muted); }
.udot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); display: inline-block; }
.udot.anon { background: #c9d2d2; }
.showrow { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; }
.showlbl { margin: 0; }
.dlbtn { min-height: 38px; padding: .35rem .9rem; margin-left: auto; }
@media (max-width: 575px) { .dlbtn { margin-left: 0; } }
.pcard.saved { border-color: rgba(8, 123, 112, 0.55); box-shadow: 0 0 0 1px rgba(8, 123, 112, 0.25), 0 12px 28px rgba(15, 91, 87, 0.08); }
.pcard.archived { opacity: .82; }
.fbtn.save.on { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.pnote { border-left: 3px solid var(--accent); background: var(--card-light); border-radius: 10px; padding: .5rem .75rem; }
.pnote-h { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-strong); }
.pnote-d { font-size: .72rem; color: var(--muted); margin-left: .35rem; }
.pnote-t { margin: .2rem 0 0; font-size: .88rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.notedet { display: inline-block; }
.notedet > summary { list-style: none; display: inline-flex; align-items: center; }
.notedet > summary::-webkit-details-marker { display: none; }
.notedet[open] { display: block; width: 100%; }
.notebox { display: grid; gap: .5rem; margin-top: .55rem; }
.notearea { width: 100%; min-height: 84px; border-radius: 12px; border: 1px solid var(--border); background: var(--field); padding: .55rem .75rem;
  font: inherit; font-size: .9rem; color: var(--text); resize: vertical; }
.notearea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 155, 142, 0.15); }
.notebox .chipbtn { justify-self: start; }

/* ---- 2026-10-11, second pass: the card's crest, flags, foot and tiles ---- */
.ph { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .75rem; align-items: start; }
.crest { width: 44px; height: 44px; object-fit: contain; display: block; }
.crest.mono { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card-light);
  border: 1px solid var(--border); color: var(--accent-strong); font-weight: 800; font-size: .78rem; letter-spacing: .02em; }
.ph-main { min-width: 0; display: grid; gap: .25rem; }
.ph-name { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.flag { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16, 42, 44, 0.16); vertical-align: middle; flex: none; }
.flag.sm { width: 18px; height: 12px; margin-right: .35rem; }
.natx { font-size: .8rem; color: var(--muted); font-weight: 700; }
.pmeta { display: flex; align-items: center; flex-wrap: wrap; row-gap: .15rem; }
.pclub { font-weight: 700; color: var(--text); }
.pmeta .sep { color: var(--muted); white-space: pre; }
.ptiles { display: flex; flex-wrap: wrap; gap: .45rem; }
.ptile { display: flex; flex-direction: column; justify-content: center; min-width: 4.8rem; padding: .35rem .7rem; border-radius: 12px;
  background: var(--card-light); border: 1px solid var(--border); line-height: 1.25; }
.ptile b { font-size: .9rem; font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.ptile span { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.ptile.warn { background: #fff4e5; border-color: #f5c27a; }
.ptile.warn b { color: #8a5200; }
.ptile.agent b { display: block; max-width: 14rem; white-space: normal; }
.pleague { display: inline-flex; align-items: center; min-width: 0; }
.yguide .gsvg text.gxclub { font-weight: 700; fill: var(--text); }
.foot-ic { width: 18px; height: 18px; flex: none; }
.cbtn { display: inline-flex; align-items: center; }
.yguide .gsvg .gxmono { fill: var(--card-light); stroke: var(--border); }
.yguide .gsvg .gxmonot { fill: var(--accent-strong); font-weight: 800; }
.yguide .gsvg .gxtile { fill: var(--card-light); stroke: rgba(13, 117, 110, 0.28); }
.yguide .gsvg .gxtile.warn { fill: #fff4e5; stroke: #f5c27a; }
.yguide .gsvg .gxtv { fill: var(--text); font-weight: 800; }
.yguide .gsvg .gxtc { fill: var(--muted); font-weight: 700; letter-spacing: .05em; }

/* ---- 2026-10-11: tooltips, the country table's pills, the reading guide ---- */
/* a label that explains itself: a small question mark, the tooltip on hover or focus */
.tipt { display: inline-flex; align-items: center; gap: .3rem; cursor: help; border-radius: 6px; }
.tipt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qm { display: inline-flex; align-items: center; justify-content: center; width: 1.15em; height: 1.15em; border-radius: 50%;
  border: 1px solid var(--border); background: var(--soft); color: var(--accent-strong); font-size: .72em; font-weight: 800;
  letter-spacing: 0; text-transform: none; line-height: 1; flex: none; }
.tipt.sw { gap: .35rem; }
.qtip .tooltip-inner { max-width: 300px; text-align: left; font-family: var(--font); font-size: .82rem; line-height: 1.45;
  background: var(--text); padding: .55rem .75rem; border-radius: 10px; }
.guidebtn { min-height: 38px; padding: .35rem .9rem; }

/* the country table */
.ordrow { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.ordlbl { margin: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .3rem; background: var(--soft); border: 1px solid var(--border); border-radius: 999px; }
.seg .form-check { margin: 0; padding: 0; min-height: 0; }
.seg .form-check-input { position: absolute; opacity: 0; pointer-events: none; }
.seg .form-check-label { display: inline-flex; align-items: center; min-height: 38px; padding: .3rem .95rem; border-radius: 999px; cursor: pointer;
  font-size: .85rem; font-weight: 700; color: var(--muted); transition: background .15s ease, color .15s ease; }
.seg .form-check-input:checked + .form-check-label { background: rgba(15, 155, 142, 0.16); color: var(--text); }
.seg .form-check-input:focus-visible + .form-check-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctable th { white-space: nowrap; vertical-align: bottom; }
.ctable td { vertical-align: middle; }
.ctable .ccountry { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 9rem; }
.ctable .linkbtn { padding: .2rem 0; min-height: 0; text-align: left; }
.csub { color: var(--muted); font-size: .75rem; font-weight: 600; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 2.3em; padding: .12rem .6rem; border-radius: 999px;
  font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums; line-height: 1.35; white-space: nowrap; }
.p-strong { background: var(--s-critical); color: #fff; }
.p-new { background: rgba(15, 155, 142, 0.12); color: var(--accent-strong); border: 1px solid rgba(15, 155, 142, 0.45); }
.p-cov { background: rgba(15, 155, 142, 0.14); color: var(--m-alert-fg); }
.p-cov.part { background: rgba(15, 155, 142, 0.07); }
.p-nocov { background: var(--m-fact-bg); color: var(--muted); }
.p-rate { color: #102a2c; }
.p-rate.r0 { background: #eef6f5; } .p-rate.r1 { background: #d3ece9; } .p-rate.r2 { background: #a9dbd5; }
.p-rate.r3 { background: #5fbfb4; color: #fff; } .p-rate.r4 { background: #087b70; color: #fff; }
.allcell { display: grid; grid-template-columns: 2.6rem minmax(70px, 1fr); gap: .5rem; align-items: center; min-width: 9rem; }
.allcell .num { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.sbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--hair); min-width: 70px; }
.sbar i { display: block; height: 100%; }
.sb-s { background: var(--s-critical); } .sb-m { background: var(--s-major); } .sb-l { background: var(--s-minor); }
.clegend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin-top: 1rem; font-size: .8rem; color: var(--text); }
.lgi { display: inline-flex; align-items: center; gap: .35rem; }
.lgbar { display: inline-block; width: 64px; vertical-align: middle; }

/* the reading guide: the digest's and the League Briefing's blocks, in this page's colours */
.yguide .ghead { display: flex; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; }
.yguide .gtitle { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; color: var(--text); }
.yguide .gnote { color: var(--muted); font-size: .9rem; }
.yguide .gxh { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; color: var(--accent-strong);
  margin: 1.75rem 0 .35rem; letter-spacing: .01em; }
.yguide .gsub { font-size: .95rem; font-weight: 800; color: var(--text); margin: 1.1rem 0 .5rem; }
.yguide .glead { font-size: .92rem; color: var(--text); max-width: 760px; margin: .5rem 0; line-height: 1.55; }
.yguide .gxtabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .6rem; margin-top: .5rem; }
.yguide .gxtab { background: var(--card-light); border: 1px solid var(--border); border-radius: 14px; padding: .7rem .9rem; font-size: .85rem;
  color: var(--muted); line-height: 1.45; }
.yguide .gxtab b { display: block; font-size: .95rem; color: var(--accent-strong); margin-bottom: .15rem; }
.yguide .gxpic { margin-top: .5rem; }
.yguide .gsvg { display: block; width: 100%; height: auto; margin: .5rem auto 0; }
.yguide .gsvg.gw { max-width: 1000px; }
.yguide .gsvg.gn { max-width: 420px; }
.yguide .gn { display: none; }
@media (max-width: 760px) { .yguide .gw { display: none; } .yguide .gsvg.gn, .yguide .glegend.gn { display: block; } }
.yguide .gsvg text { font-family: var(--font); }
.yguide .gsvg .gt { font-weight: 700; fill: var(--text); }
.yguide .gsvg .gs { fill: var(--muted); }
.yguide .gsvg .gb { fill: var(--accent-strong); stroke: #fff; stroke-width: 3; }
.yguide .gsvg .gbn { fill: #fff; font-weight: 700; }
.yguide .gsvg .gahalo { stroke: #fff; stroke-width: 5; fill: none; stroke-linecap: round; }
.yguide .gsvg .ga { stroke: var(--accent-strong); stroke-width: 2; fill: none; }
.yguide .gah { fill: var(--accent-strong); stroke: #fff; stroke-width: 1; }
.yguide .gsvg .gxcard { fill: #fff; stroke: rgba(13, 117, 110, 0.32); stroke-width: 1.5; }
.yguide .gsvg .gxname { fill: var(--text); font-weight: 800; text-decoration: underline; }
.yguide .gsvg .gxage { fill: var(--text); }
.yguide .gsvg .gxagen { fill: #fff; font-weight: 800; }
.yguide .gsvg .gxpos { fill: var(--muted); font-weight: 700; }
.yguide .gsvg .gxsevt { fill: var(--text); font-weight: 800; letter-spacing: .06em; }
.yguide .gsvg .gxsev { stroke: rgba(16, 42, 44, 0.35); stroke-width: 1; }
.yguide .gsvg .gxsev.s-critical { fill: var(--s-critical); } .yguide .gsvg .gxsev.s-major { fill: var(--s-major); }
.yguide .gsvg .gxsev.s-minor { fill: var(--s-minor); } .yguide .gsvg .gxsev.s-context { fill: #e8b65a; }
.yguide .gsvg .gxnew { fill: var(--accent-strong); }
.yguide .gsvg .gxnewt { fill: #fff; font-weight: 800; letter-spacing: .08em; }
.yguide .gsvg .gxcov { fill: var(--soft); stroke: var(--border); }
.yguide .gsvg .gxcovt { fill: var(--text); font-weight: 700; }
.yguide .gsvg .gxmeta { fill: var(--muted); }
.yguide .gsvg .gxbarbg { fill: var(--hair); }
.yguide .gsvg .gxbar { fill: var(--accent); }
.yguide .gsvg .gxchip.m-alert { fill: rgba(15, 155, 142, 0.16); } .yguide .gsvg .gxchipt.m-alert { fill: var(--m-alert-fg); font-weight: 800; }
.yguide .gsvg .gxchip.m-context { fill: rgba(183, 121, 18, 0.14); } .yguide .gsvg .gxchipt.m-context { fill: var(--m-context-fg); font-weight: 800; }
.yguide .gsvg .gxchip.m-fact { fill: rgba(16, 42, 44, 0.08); } .yguide .gsvg .gxchipt.m-fact { fill: var(--m-fact-fg); font-weight: 800; }
.yguide .gsvg .gxsent { fill: var(--text); }
.yguide .gsvg .gxrule { stroke: var(--border); stroke-width: 1; }
.yguide .gsvg .gxbtn { fill: var(--soft); stroke: var(--border); }
.yguide .gsvg .gxbtnt { fill: var(--text); font-weight: 700; }
.yguide .glegend { list-style: none; margin: .5rem 0 0; padding: 0; }
.yguide .glegend li { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; padding: .3rem 0; line-height: 1.45; }
.yguide .gnum { flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: .75rem;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: .1rem; }
.yguide .gscale { display: flex; border-radius: 12px; overflow: hidden; margin-top: .6rem; max-width: 820px; }
.yguide .gseg { padding: .65rem .75rem; font-size: .8rem; line-height: 1.4; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.yguide .gseg b { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.yguide .gseg.s-critical { background: var(--s-critical); color: #fff; }
.yguide .gseg.s-major { background: var(--s-major); color: #fff; }
.yguide .gseg.s-minor { background: var(--s-minor); color: var(--text); }
.yguide .gsegn { font-weight: 800; opacity: .92; }
@media (max-width: 575px) { .yguide .gscale { flex-direction: column; } .yguide .gseg { flex: 1 1 auto !important; } }
.yguide .gkinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; margin-top: .4rem; max-width: 980px; }
.yguide .gkind { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: .7rem .85rem; font-size: .85rem; line-height: 1.45; }
.yguide .rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; margin-top: .4rem; }
.yguide .rcard { border: 1px solid var(--border); border-radius: 16px; padding: .95rem 1rem; background: #fff; }
.yguide .rtop { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.yguide .rcard h4 { margin: 0; font-size: 1.02rem; font-weight: 800; color: var(--accent-strong); line-height: 1.25; }
.yguide .rq { font-size: .88rem; font-weight: 700; color: var(--text); margin-top: .25rem; line-height: 1.35; }
.yguide .rcard p { font-size: .84rem; margin: .55rem 0 0; color: var(--text); line-height: 1.5; }
.yguide .rcard p.rex { color: var(--muted); }
.yguide .rcard p.ruse { color: var(--accent-strong); font-weight: 700; }
.yguide .rcard p.rwarn { color: #8a5a06; font-weight: 700; }
.yguide .rcard p.rfact { color: var(--muted); font-weight: 700; }
.yguide .gcols { display: grid; gap: .55rem; margin-top: .4rem; max-width: 900px; }
.yguide .gcol { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .8rem; align-items: center; font-size: .86rem; line-height: 1.45;
  border-top: 1px solid var(--border); padding-top: .5rem; }
.yguide .gsmp { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
@media (max-width: 575px) { .yguide .gcol { grid-template-columns: 1fr; gap: .3rem; } }
.yguide .gmore { margin-top: 1.75rem; border-top: 1px solid var(--border); padding-top: .9rem; }
.yguide .gmore summary { cursor: pointer; font-weight: 800; color: var(--accent-strong); font-size: .92rem; min-height: 44px; display: flex; align-items: center; }
.yguide .gmore[open] summary { margin-bottom: .5rem; }
