/*
 * SingaCup 2026 pages: /singacup2026/, its sub-pages, and the 2026-u8 to 2026-gu16 age-group pages.
 * Loaded only there, by singacup_2026_is_page() in functions.php. Joii (Claude Code), 26 Oct 2026.
 * To undo: delete this file and the enqueue block at the end of functions.php.
 */
:root {
  --sc-red: #cf181f;
  --sc-ink: #141414;
  --sc-line: rgba(255, 255, 255, 0.14);
}

/* Main nav: every label on one line ("Hall of Fame" was breaking into three lines),
   and every item stays on screen, Store included. Tighter spacing on narrower screens. */
.main-nav.desktop-nav li a {
  white-space: nowrap;
}
@media (max-width: 1280px) {
  .main-nav.desktop-nav ul {
    gap: 0 !important;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .main-nav.desktop-nav li {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .main-nav.desktop-nav li a {
    font-size: 15px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}

/* Keep the end of the page clear of the fixed news tickers. */
body {
  padding-bottom: 70px;
}

/* Display type: Oswald (already loaded by the theme) for headings. */
.fl-builder-content h1,
.fl-builder-content h2 {
  font-family: "Oswald", "Open Sans", sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08 !important;
}
.fl-builder-content h3 {
  font-family: "Oswald", "Open Sans", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}

/* 2026 menu bar: tidy links; on phones a scrolling row of small pills instead of stacked white boxes. */
.cmenu2main ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 26px;
  margin: 0;
  padding: 0;
}
.cmenu2main li.cmenu2,
.cmenu2main li.cmenu {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
.cmenu2main li a {
  font-family: "Oswald", "Open Sans", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.cmenu2main li a:hover,
.cmenu2main li a:focus-visible {
  border-bottom-color: var(--sc-red);
}
@media (max-width: 767px) {
  .cmenu2main ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0 4px;
    scrollbar-width: none;
  }
  .cmenu2main ul::-webkit-scrollbar {
    display: none;
  }
  .cmenu2main li a {
    display: inline-block;
    white-space: nowrap;
    font-size: 13px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px;
    background: transparent !important;
  }
}

/* Hero date: a clean red badge instead of "-: ... :-". */
.fl-builder-content h3 > span[style*="background-color: #222"] {
  display: inline-block;
  background: var(--sc-red) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 26px !important;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.fl-builder-content h3 > span[style*="background-color: #222"] > span[style*="padding"] {
  display: none !important;
}
.fl-builder-content h3 > span[style*="background-color: #222"] > span[style*="cf181f"]:not([style*="padding"]) {
  color: rgba(255, 255, 255, 0.55) !important;
  padding: 0 4px;
}
@media (max-width: 767px) {
  .fl-builder-content h3 > span[style*="background-color: #222"] {
    font-size: 14px;
    padding: 8px 16px !important;
    line-height: 1.5;
  }
}

/* Video sections on /singacup2026/: one dark stage instead of red icons + pink grass. */
.fl-node-e7sjqb5xr6ac > .fl-row-content-wrap,
.fl-node-5y3puoqteza6 > .fl-row-content-wrap {
  background-image: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(207, 24, 31, 0.28), transparent 70%) !important;
  background-color: var(--sc-ink) !important;
}
.fl-node-5y3puoqteza6 > .fl-row-content-wrap {
  border-top: 1px solid var(--sc-line);
}
.fl-node-e7sjqb5xr6ac h1,
.fl-node-e7sjqb5xr6ac h1 *,
.fl-node-5y3puoqteza6 h1,
.fl-node-5y3puoqteza6 h1 * {
  color: #fff !important;
}
.fl-node-e7sjqb5xr6ac h3,
.fl-node-e7sjqb5xr6ac h3 *,
.fl-node-5y3puoqteza6 h3,
.fl-node-5y3puoqteza6 h3 * {
  color: #ff5b61 !important;
  font-size: 16px !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* YouTube embeds: full width, 16:9, rounded, lifted. */
.fl-builder-content iframe[src*="youtube.com/embed"] {
  display: block;
  width: 100% !important;
  max-width: 960px;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Age-group pages (2026-u8 ... 2026-gu16): tables, fixtures, knockouts ---------- */

/* Group and section headings, e.g. "U8 Group A", "U8A Fixtures/Results". */
.fl-builder-content .fl-rich-text > h3:only-child {
  margin: 0 0 4px;
  padding-left: 12px;
  border-left: 4px solid var(--sc-red);
  font-size: 20px !important;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--sc-ink);
}

/* Standings */
.fl-html:has(> table.standingstable) {
  overflow-x: auto;
}
table.leaguemanager.standingstable {
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid #e4e4e4 !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-variant-numeric: tabular-nums;
}
table.leaguemanager.standingstable th {
  background: var(--sc-ink) !important;
  color: #fff !important;
  font-family: "Oswald", "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 12px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 8px !important;
  border: 0 !important;
  border-bottom: 3px solid var(--sc-red) !important;
}
table.leaguemanager.standingstable td {
  padding: 11px 8px !important;
  font-size: 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #eee !important;
  vertical-align: middle !important;
}
table.leaguemanager.standingstable tr:last-child td {
  border-bottom: 0 !important;
}
table.leaguemanager.standingstable tr,
table.leaguemanager.standingstable tr.alternate {
  background: #fff !important;
}
table.leaguemanager.standingstable tr.alternate td {
  background: #fafafa;
}
table.leaguemanager.standingstable td:nth-child(4) {
  color: var(--sc-ink) !important;
  font-weight: 600;
}
table.leaguemanager.standingstable th:nth-child(11),
table.leaguemanager.standingstable td:nth-child(11) {
  font-weight: 700;
  color: var(--sc-ink);
  background: rgba(207, 24, 31, 0.06);
}
table.leaguemanager.standingstable th:nth-child(11) {
  background: var(--sc-red) !important;
}
table.leaguemanager.standingstable td.last5 a {
  opacity: 0.55;
}

/* Fixtures list */
#fixture table.leaguemanager {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid #e4e4e4 !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
#fixture table.leaguemanager tr:first-child:has(th) {
  display: none;
}
#fixture table.leaguemanager tr,
#fixture table.leaguemanager tr.alternate {
  background: #fff !important;
}
#fixture table.leaguemanager tr.alternate td {
  background-color: #fafafa !important;
}
#fixture table.leaguemanager td {
  border: 0 !important;
  border-bottom: 1px solid #eee !important;
  vertical-align: middle !important;
}
#fixture table.leaguemanager tr:last-child td {
  border-bottom: 0 !important;
}
/* first cell: was a white box with a red underline; now a thin red bar on the left of each match */
#fixture table.leaguemanager td:first-child {
  width: 4px;
  padding: 0 !important;
  background: var(--sc-red) !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
#fixture table.leaguemanager td:nth-child(2) {
  padding: 12px 14px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
#fixture table.leaguemanager td:nth-child(2) .black50,
#fixture table.leaguemanager td:nth-child(2) .black80 {
  color: var(--sc-ink) !important;
  font-weight: 600;
}
#fixture table.leaguemanager td:nth-child(2) .black50::after {
  content: "  vs";
  font-weight: 400;
  color: #9a9a9a;
  font-size: 12px;
}
#fixture table.leaguemanager td:nth-child(3) {
  padding: 12px 14px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  color: #5c5c5c !important;
  text-align: right;
}
@media (max-width: 600px) {
  #fixture table.leaguemanager td:nth-child(2),
  #fixture table.leaguemanager td:nth-child(3) {
    display: block;
    text-align: left;
    padding: 6px 14px !important;
    border-bottom: 0 !important;
  }
  #fixture table.leaguemanager td:nth-child(2) {
    padding-top: 12px !important;
  }
  #fixture table.leaguemanager td:nth-child(3) {
    padding-bottom: 12px !important;
  }
}

/* Knockout matches (Final, 3rd place, semis, quarters, round of 16): one card each. */
.fl-col .fl-rich-text:has(> h2 + p) {
  height: 100%;
  padding: 18px 16px 16px;
  border: 1px solid #e4e4e4;
  border-top: 3px solid var(--sc-red);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.fl-col .fl-rich-text:has(> h2 + p) h2 {
  font-size: 20px !important;
  line-height: 1.15 !important;
  margin: 0 0 8px !important;
}
.fl-col .fl-rich-text:has(> h2 + p) p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.fl-col .fl-rich-text:has(> h2 + p) p strong,
.fl-col .fl-rich-text:has(> h2 + p) p span[style*="font-size: 16px"] {
  font-size: 15px !important;
  color: var(--sc-ink);
}
.fl-col .fl-rich-text:has(> h2 + p) .singacupred {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px !important;
  line-height: 1.45;
  color: #5c5c5c !important;
  font-weight: 500 !important;
}

/* Red match bar on every fixture row (alternate rows included). */
#fixture table.leaguemanager tr td:first-child,
#fixture table.leaguemanager tr.alternate td:first-child {
  background-color: var(--sc-red) !important;
}

/* The Final: the match line under the "... Final" heading becomes the featured dark card. */
.fl-module:has(.fl-rich-text > h1) + .fl-module .fl-rich-text:has(> p) {
  max-width: 520px;
  margin: 6px auto 0;
  padding: 20px 18px;
  border-radius: 14px;
  background: var(--sc-ink);
  border-top: 3px solid var(--sc-red);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}
.fl-module:has(.fl-rich-text > h1) + .fl-module .fl-rich-text:has(> p) p {
  margin: 0;
}
.fl-module:has(.fl-rich-text > h1) + .fl-module .fl-rich-text:has(> p) strong,
.fl-module:has(.fl-rich-text > h1) + .fl-module .fl-rich-text:has(> p) span[style*="font-size: 16px"] {
  color: #fff !important;
  font-size: 17px !important;
}
.fl-module:has(.fl-rich-text > h1) + .fl-module .fl-rich-text:has(> p) .singacupred {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500 !important;
}

/* Same dark card also holds the honours list (Champions, Runners Up, Third, Top Scorer, MVP): keep it readable. */
.fl-module:has(.fl-rich-text > h1) + .fl-module .fl-rich-text:has(> p) p {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.fl-module:has(.fl-rich-text > h1) + .fl-module .fl-rich-text:has(> p) p + p {
  margin-top: 10px;
}
.fl-module:has(.fl-rich-text > h1) + .fl-module .fl-rich-text:has(> p) p strong {
  color: #fff !important;
}

/* Standings on phones: drop Goals and Last 5, tighten cells so team names have room. */
@media (max-width: 600px) {
  table.leaguemanager.standingstable th:nth-child(9),
  table.leaguemanager.standingstable td:nth-child(9),
  table.leaguemanager.standingstable th:nth-child(12),
  table.leaguemanager.standingstable td:nth-child(12) {
    display: none !important;
  }
  table.leaguemanager.standingstable th,
  table.leaguemanager.standingstable td {
    padding: 9px 5px !important;
  }
  table.leaguemanager.standingstable td:nth-child(4) {
    font-size: 13px !important;
    line-height: 1.35 !important;
    padding-left: 10px !important;
  }
}

/* ---------- Rules page (/singacup2026/rules/): sectioned cards, rebuilt 26 Oct 2026 ---------- */
.fl-node-mpoj5rviq1fc > .fl-row-content-wrap {
  background-image: none !important;
  background-color: #f4f3f0 !important;
}
.fl-node-mpoj5rviq1fc .fl-row-content {
  max-width: 1200px !important;
}
.sc-rules {
  color: var(--sc-ink);
  font-family: "Open Sans", sans-serif;
}
.sc-rules__head {
  text-align: center;
  margin: 0 auto 1.75rem;
}
.sc-rules p.sc-rules__kicker {
  margin: 0 0 0.35rem;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sc-red);
}
.sc-rules__head h2 {
  margin: 0 !important;
  font-size: clamp(32px, 5vw, 52px) !important;
  color: var(--sc-ink) !important;
}
.sc-rules p.sc-rules__note {
  margin: 0.4rem 0 0;
  color: #6b6b6b;
  font-size: 14px;
}
.sc-rules__toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 2.5rem;
  max-width: 1000px;
}
.sc-rules__toc a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 6px;
  border: 1px solid #dedcd6;
  border-radius: 999px;
  background: #fff;
  color: var(--sc-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.sc-rules__toc a b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--sc-ink);
  color: #fff;
  font-size: 12px;
}
.sc-rules__toc a:hover,
.sc-rules__toc a:focus-visible {
  border-color: var(--sc-red);
  color: var(--sc-red);
}
.sc-rules__grid {
  column-count: 1;
  column-gap: 22px;
}
@media (min-width: 768px) {
  .sc-rules__grid { column-count: 2; }
}
@media (min-width: 1100px) {
  .sc-rules__grid { column-count: 3; }
}
.sc-rule {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  padding: 22px 22px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6e4df;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 90px;
}
.sc-rule:target {
  border-color: var(--sc-red);
  box-shadow: 0 0 0 3px rgba(207, 24, 31, 0.15);
}
.sc-rules .sc-rule h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  color: var(--sc-ink) !important;
}
.sc-rule__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--sc-red);
  color: #fff;
  font-size: 15px;
}
.sc-rules .sc-rule h4 {
  margin: 16px 0 6px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--sc-ink);
}
.sc-rules .sc-rule p,
.sc-rules .sc-rule li {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #333 !important;
}
.sc-rules .sc-rule p {
  margin: 0 0 10px !important;
}
.sc-rules .sc-rule p:last-child {
  margin-bottom: 0 !important;
}
.sc-rules .sc-rule ul {
  margin: 0 0 10px;
  padding-left: 1.2rem;
  list-style: disc outside !important;
}
.sc-rules .sc-rule ul li {
  display: list-item !important;
  list-style: disc outside !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  background: none !important;
}
.sc-rules .sc-rule ul li::marker {
  color: var(--sc-red);
}
.sc-rules .sc-rule strong {
  color: var(--sc-ink);
}
.sc-rules .sc-rule .sc-rule-label {
  display: inline-block;
  margin-bottom: 2px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc-red);
}

/* Rule 21 (haze): stands out from the other rules. */
.sc-rule.sc-rule--alert {
  border-top: 4px solid var(--sc-red);
  background: #fff8f8;
}
.sc-rules .sc-rule--alert a {
  color: var(--sc-red);
  font-weight: 600;
}
