/* Sport pages and free tools (www.titanscores.com/beisbol/, /herramientas/...). Loaded after styles.css, same theme:
   black stage, white reading sections, one yellow accent. Teko is always uppercase. */

.crumbs { font-size: 13px; color: var(--mute-400); margin: 0 0 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-500); }
.crumbs a { color: var(--fog-300); }
.crumbs a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--titan-400); }

.hero.page-hero { padding: 48px 0 56px; }
.page-hero h1 { font-size: clamp(56px, 9vw, 96px); }
.hero-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 18px; line-height: 1;
  padding: 7px 14px 4px; border-radius: 999px; border: 1.5px solid var(--ink-500); color: var(--fog-300);
}

/* Linked cards (sports, tools) */
a.card.link-card { display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
a.card.link-card:hover { border-color: var(--ink-900); transform: translateY(-2px); }
a.card.link-card .arrow {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 14px; font-weight: 500; font-size: 20px; line-height: 1;
}
a.card.link-card .arrow span { border-bottom: 3px solid var(--titan-400); padding-top: 3px; }
a.card.link-card p { margin-bottom: 4px; }

.sports a.sport { transition: background .15s, color .15s; }
.sports a.sport:hover { background: var(--ink-900); color: var(--white); }
.sports a.sport[aria-current="page"] { background: var(--titan-400); border-color: var(--titan-400); }

/* Prose blocks (how it works, rules) */
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--ink-700); font-size: 17px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose h3 { font-size: 30px; line-height: 1; margin: 28px 0 8px; font-weight: 600; }
.prose code, .formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px;
  background: var(--paper-100); border: 1px solid var(--paper-200); border-radius: 8px; padding: 2px 6px;
}
.formula { display: block; padding: 10px 12px; margin: 8px 0 16px; overflow-x: auto; white-space: nowrap; }

/* Tools */
.tool { display: grid; gap: 16px; }
.panel {
  background: var(--white); border: 1px solid var(--paper-200); border-radius: var(--radius); padding: 20px;
  min-width: 0;
}
.panel h2, .panel h3 { font-size: 30px; line-height: 1; margin: 0 0 14px; font-weight: 600; }
.panel-dark { background: var(--ink-900); color: var(--white); border-color: var(--ink-600); }
.panel-dark .hint { color: var(--mute-400); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label, .field .label, .fields-head span {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-500);
}
.field input, .field select, .field textarea, .rows input, .rows select {
  font: 16px/1.4 var(--font-body); color: var(--ink-900); background: var(--white);
  border: 1.5px solid var(--paper-200); border-radius: 12px; padding: 10px 12px; width: 100%; min-width: 0;
}
.field textarea { min-height: 200px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .rows input:focus, .rows select:focus {
  outline: 3px solid var(--titan-300); outline-offset: 1px; border-color: var(--ink-900);
}
.field input[aria-invalid="true"], .rows input[aria-invalid="true"] { border-color: #b42318; }
.fields { display: grid; gap: 0 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; color: var(--ink-700); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink-900); }
.hint { font-size: 13px; color: var(--mute-500); margin: 0 0 14px; }
.error { color: #b42318; font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.error:empty { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn-line { color: var(--ink-900); border-color: var(--ink-900); background: transparent; }
.btn-line:hover { background: var(--paper-100); }
button.btn { cursor: pointer; }
.btn-xs { height: 32px; font-size: 16px; padding: 3px 12px 0; }

/* Repeating input rows (NRR, TQB) */
.rows { display: grid; gap: 10px; margin-bottom: 14px; }
.row-card { border: 1px solid var(--paper-200); border-radius: 16px; padding: 12px; display: grid; gap: 10px; }
.row-card .row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-card .row-top b { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; line-height: 1; padding-top: 3px; font-weight: 500; }
.row-card .grid4 { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-card .field { margin-bottom: 0; }
.remove { border: 0; background: transparent; color: var(--mute-500); font-size: 14px; cursor: pointer; text-decoration: underline; }
.remove:hover { color: var(--ink-900); }

/* Results */
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { border: 1px solid var(--ink-600); border-radius: 16px; padding: 12px 14px 10px; min-width: 0; }
.stat dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-400); }
.stat dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 48px; line-height: .9; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 4px; }
.stat dd.pos { color: var(--titan-400); }
.stat small { display: block; color: var(--mute-400); font-size: 12px; margin-top: 2px; }

.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.summary span { font-size: 14px; color: var(--fog-300); border: 1.5px solid var(--ink-500); border-radius: 999px; padding: 4px 12px; }
.rounds { display: grid; gap: 12px; }
.round { border: 1px solid var(--ink-600); border-radius: 16px; padding: 14px; }
.round h3 { font-size: 26px; margin: 0 0 8px; color: var(--white); }
.round h3 small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--mute-400); margin-left: 8px; }
.round ol { list-style: none; margin: 0; padding: 0; }
.round li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--ink-700); font-size: 15px; }
.round li:first-child { border-top: 0; }
.round li .vs { color: var(--mute-400); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.round li .away { text-align: right; }
.round .bye { color: var(--mute-400); font-size: 14px; margin: 8px 0 0; }
.empty { color: var(--mute-400); font-size: 15px; margin: 0; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.standings { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.standings th, table.standings td { padding: 9px 6px; text-align: right; border-bottom: 1px solid var(--ink-700); white-space: nowrap; }
table.standings th { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-400); }
table.standings th:nth-child(2), table.standings td:nth-child(2) { text-align: left; white-space: normal; min-width: 110px; }
table.standings th:first-child, table.standings td:first-child { text-align: left; color: var(--mute-400); width: 28px; }
table.standings td.pts { font-weight: 700; color: var(--titan-400); }

.copy-ok { font-size: 14px; color: var(--titan-400); align-self: center; }
.copy-ok:empty { display: none; }

@media (min-width: 720px) {
  .panel { padding: 28px; }
  .fields.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-card .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .hero.page-hero { padding: 64px 0 72px; }
  .tool { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .tool.stack { grid-template-columns: 1fr; }
}

@media print {
  .site-header, footer, .hero, .no-print, section:not(.print-me) { display: none !important; }
  body, .panel-dark, .round { background: #fff !important; color: #000 !important; }
  .round h3, .round li, .round .bye { color: #000 !important; }
  .round { border-color: #999; break-inside: avoid; }
  section.print-me { padding: 0; }
}

/* Keep inputs lined up when a label wraps to two lines on phones */
.fields .field { justify-content: flex-end; }
