/* Syncrize Sports skin for page bodies.

   Loaded only when a view passes skin="sx" to <x-app-layout>, which also adds
   `.sx-page` to the shell. Everything is scoped under `.sx-page` so a page
   that has not been converted is untouched, and the scoping specificity lets
   this file win over the per-view <style> blocks (it loads after them).

   It restyles the shared tool vocabulary (hero, finder-card, result-card,
   action-button, stat-card, faq-card…) — colour, type, borders, corners —
   and deliberately leaves each page's LAYOUT alone. The palette tokens live
   on :root in x-app-layout, so header, footer and bodies cannot drift. */

.shell.sx-page,
.page-shell.sx-page {
    width: min(100% - 28px, 1400px);
    padding-top: 14px;
}

.sx-page :focus-visible {
    outline: 3px solid var(--sx-blue);
    outline-offset: 2px;
}

/* ---- Hero: a navy title strip, not a marketing banner. The answer should
   start on the first screen, so the hero stays compact. ---- */
.sx-page .hero,
.sx-page .hero-stage {
    border: 0;
    border-radius: 0;
    background: linear-gradient(105deg, var(--sx-navy), var(--sx-deep));
    box-shadow: none;
    color: #fff;
}

.sx-page .hero {
    padding: clamp(24px, 3.4vw, 44px) clamp(20px, 4vw, 54px);
}

.sx-page .hero .hero-stage {
    padding: 0;
    background: none;
}

.sx-page .hero::before,
.sx-page .hero::after,
.sx-page .hero-background-art {
    display: none;
}

.sx-page .hero h1 {
    max-width: 30ch;
    margin: 0;
    color: #fff;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.sx-page .hero .lede,
.sx-page .hero .section-copy,
.sx-page .hero .card-copy,
.sx-page .hero p {
    color: rgba(255, 255, 255, 0.78);
}

.sx-page .hero .eyebrow {
    color: var(--sx-acid);
}

.sx-page .hero .eyebrow::before {
    width: 30px;
    height: 8px;
    background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px);
}

.sx-page .hero .side-card,
.sx-page .hero .detail-card {
    padding: clamp(18px, 2.4vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    color: #fff;
}

.sx-page .hero .side-card h2,
.sx-page .hero .side-card h3,
.sx-page .hero .side-card strong {
    color: #fff;
}

.sx-page .hero .summary-chip,
.sx-page .hero .info-chip,
.sx-page .hero .metric-chip,
.sx-page .hero .badge {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #fff;
}

.sx-page .hero a:not(.action-button):not(.premium-button) {
    color: var(--sx-acid);
}

/* ---- Cards ---- */
.sx-page .finder-card,
.sx-page .result-card,
.sx-page .content-card,
.sx-page .detail-card,
.sx-page .chart-card,
.sx-page .intro-card,
.sx-page .side-card,
.sx-page .affiliate-section,
.sx-page .howto-section,
.sx-page .scenario-card {
    border: 1px solid var(--sx-rule);
    border-radius: 0;
    background: var(--sx-paper);
    box-shadow: none;
}

.sx-page .result-card {
    background: #fffefa;
}

.sx-page .faq-card,
.sx-page .howto-card,
.sx-page .stat-card {
    border: 1px solid var(--sx-rule);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.sx-page h2 {
    color: var(--sx-navy);
    font-family: "Arial Black", Arial, sans-serif;
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-transform: uppercase;
}

.sx-page h3 {
    color: var(--sx-navy);
    letter-spacing: -0.01em;
}

.sx-page .eyebrow,
.sx-page .result-kicker,
.sx-page .affiliate-kicker,
.sx-page .affiliate-kicker + h2 + .section-copy .eyebrow {
    color: var(--sx-orange);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sx-page .eyebrow::before {
    background: var(--sx-orange);
}

.sx-page .section-copy,
.sx-page .card-copy,
.sx-page .faq-answer,
.sx-page .field-help,
.sx-page .field-hint {
    color: #3b4852;
}

.sx-page .note,
.sx-page .affiliate-note,
.sx-page .table-note {
    color: var(--sx-muted);
}

.sx-page .howto-step {
    border-radius: 2px;
    background: var(--sx-orange);
    color: #fff;
}

/* ---- Actions: one filled orange primary, square outlines for the rest. ---- */
.sx-page .action-button {
    /* Base layout too, not just the skin: older tools define it in their own
       <style>, but a page built on the skin alone (the magic number
       calculator) had underlined text sitting on an empty box. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    cursor: pointer;
    text-decoration: none;
    min-height: 48px;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: none;
}

.sx-page .action-button.primary,
.sx-page .hero-start-cta {
    border: 0;
    background: var(--sx-orange);
    color: #fff;
}

.sx-page .action-button.primary:hover,
.sx-page .action-button.primary:focus-visible,
.sx-page .hero-start-cta:hover {
    background: var(--sx-navy);
    color: #fff;
}

.sx-page .action-button.secondary,
.sx-page .action-button.share-button,
.sx-page .action-button:not(.primary):not(.amazon-cta) {
    border: 1px solid var(--sx-rule);
    background: #fff;
    color: var(--sx-navy);
}

.sx-page .action-button.secondary:hover,
.sx-page .action-button.share-button:hover,
.sx-page .action-button:not(.primary):not(.amazon-cta):hover {
    border-color: var(--sx-navy);
    background: var(--sx-navy);
    color: #fff;
}

.sx-page .action-button.amazon-cta {
    border: 0;
    background: var(--sx-navy);
    color: #fff;
}

.sx-page .action-button.amazon-cta:hover {
    background: var(--sx-blue);
}

/* ---- Chips, badges, pills ---- */
.sx-page .summary-chip,
.sx-page .info-chip,
.sx-page .metric-chip,
.sx-page .comparison-pill,
.sx-page .badge,
.sx-page .team-count-link {
    border: 1px solid var(--sx-rule);
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
    color: var(--sx-navy);
}

.sx-page .badge {
    background: var(--sx-acid);
    border-color: transparent;
    color: var(--sx-navy);
}

/* ---- Numbers ---- */
.sx-page .result-metric,
.sx-page .stat-value {
    color: var(--sx-navy);
    font-family: "Arial Black", Arial, sans-serif;
    letter-spacing: -0.03em;
}

.sx-page .stat-label,
.sx-page .slider-label,
.sx-page .field-label {
    color: var(--sx-muted);
}

/* ---- Inputs ---- */
.sx-page input[type="text"],
.sx-page input[type="number"],
.sx-page input[type="time"],
.sx-page input[type="date"],
.sx-page input[type="email"],
.sx-page select,
.sx-page textarea {
    border-color: var(--sx-rule);
    border-radius: 0;
    background: #fff;
    color: var(--sx-navy);
}

.sx-page input[type="range"] {
    accent-color: var(--sx-blue);
}

.sx-page .validation-note {
    border-left: 3px solid var(--sx-orange);
    border-radius: 0;
    background: rgba(194, 65, 12, 0.08);
    color: var(--sx-navy);
}

/* ---- Tables ---- */
.sx-page table {
    border-top: 3px solid var(--sx-navy);
}

.sx-page th {
    color: var(--sx-muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sx-page td,
.sx-page th {
    border-bottom-color: var(--sx-rule);
}

.sx-page .table-wrap,
.sx-page .chart-wrap {
    border-radius: 0;
    box-shadow: none;
}

/* ---- Step indicator on the multi-step calculators ---- */
.sx-page .step-indicator,
.sx-page .step-pill {
    border-radius: 2px;
}

@media (max-width: 760px) {
    .shell.sx-page,
    .page-shell.sx-page {
        width: min(100% - 12px, 1400px);
        padding-top: 6px;
    }

    .sx-page .hero {
        padding: 22px 18px;
    }

    .sx-page .hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .sx-page .finder-card,
    .sx-page .result-card,
    .sx-page .content-card,
    .sx-page .detail-card,
    .sx-page .chart-card {
        padding: 22px 16px;
    }
}

/* ---- Global guard: several views give `.action-button` / `.chip-link` a
   `display` value, which beats the UA `[hidden] { display: none }` and left
   hidden controls (e.g. "Undo last result") on screen. ---- */
.sx-page [hidden] {
    display: none !important;
}

/* ---- Leftover per-tool components ---- */
.sx-page .hero .lede,
.sx-page .hero .measurement-note {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

/* Decorative device mock in the exit velocity hero: it competes with the
   real live result a few hundred pixels below. */
.sx-page .hero-art {
    display: none;
}

.sx-page .step-panel,
.sx-page .helper-card,
.sx-page .measurement-card,
.sx-page .trajectory-card,
.sx-page .measurement-note,
.sx-page .result-section {
    border-radius: 0;
    box-shadow: none;
}

.sx-page .step-panel {
    background: transparent;
}

.sx-page .summary-row {
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sx-page .trajectory-card,
.sx-page .measurement-note {
    border-color: var(--sx-rule);
    background: #fff;
}

.sx-page .option-card,
.sx-page .swing-choice-card,
.sx-page .family-choice-card {
    border: 1px solid var(--sx-rule);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: none;
}

.sx-page .option-label:hover .option-card,
.sx-page .option-label:focus-within .option-card,
.sx-page .option-card:hover {
    border-color: var(--sx-navy);
    box-shadow: none;
    transform: none;
}

.sx-page .option-label input:checked + .option-card,
.sx-page .option-card.is-active {
    border-color: var(--sx-blue);
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--sx-blue);
}

.sx-page .choice-kicker {
    color: var(--sx-orange);
}

/* Bracket / round robin: format tabs and the hero preview card. */
.sx-page .format-tab {
    border: 1px solid var(--sx-rule);
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
    color: var(--sx-navy);
    font-weight: 800;
}

.sx-page .format-tab:hover {
    border-color: var(--sx-navy);
}

.sx-page .format-tab.is-active {
    border-color: var(--sx-navy);
    background: var(--sx-navy);
    color: #fff;
}

.sx-page .hero-preview {
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: var(--sx-navy);
}

.sx-page .hero .hero-preview strong,
.sx-page .hero .hero-preview .preview-team {
    color: var(--sx-navy);
}

.sx-page .hero .hero-preview p,
.sx-page .hero .hero-preview .preview-note {
    color: var(--sx-muted);
}

.sx-page .preview-team,
.sx-page .slot,
.sx-page .rr-match,
.sx-page .rr-team {
    border-radius: 0;
}

/* Season-kit promo strip: same job, new language. */
.sx-page .kit-teaser {
    border: 1px solid var(--sx-rule);
    border-left: 4px solid var(--sx-orange);
    border-radius: 0;
    background: var(--sx-paper);
    color: var(--sx-navy);
}

.sx-page .kit-teaser-cta {
    color: var(--sx-orange);
}

/* ---- Panel pages: /premium, sign-in, and the whole account area ---- */
.sx-page .panel {
    border: 1px solid var(--sx-rule);
    border-radius: 0;
    background: var(--sx-paper);
    box-shadow: none;
}

.sx-page .panel h1,
.sx-page .panel > h1 {
    color: var(--sx-navy);
    font-family: "Arial Black", Arial, sans-serif;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-transform: uppercase;
}

.sx-page .panel .lede {
    color: #3b4852;
}

.sx-page .plan {
    border: 1px solid var(--sx-rule);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.sx-page .plan.is-best {
    border-color: var(--sx-navy);
    box-shadow: inset 0 0 0 1px var(--sx-navy);
}

.sx-page .plan-name,
.sx-page .sandbox-flag {
    color: var(--sx-orange);
}

.sx-page .plan-price {
    color: var(--sx-navy);
    font-family: "Arial Black", Arial, sans-serif;
}

.sx-page .plan-cta,
.sx-page .button {
    min-height: 48px;
    border-radius: 0;
    box-shadow: none;
    font-weight: 900;
}

.sx-page .plan-cta:not(.is-soon),
.sx-page .button:not(.link):not(.secondary) {
    background: var(--sx-navy);
    color: #fff;
}

.sx-page .plan-cta:not(.is-soon):hover,
.sx-page .button:not(.link):not(.secondary):hover {
    background: var(--sx-blue);
    color: #fff;
}

.sx-page .features li::before {
    border-radius: 0;
    background: var(--sx-orange);
}

.sx-page .free-note,
.sx-page .soon-note,
.sx-page .errors,
.sx-page .flash,
.sx-page .paid-banner {
    border-radius: 0;
}

.sx-page .account-nav {
    border: 1px solid var(--sx-rule);
    border-radius: 0;
    background: var(--sx-paper);
}

.sx-page .account-nav a {
    border-radius: 2px;
    color: var(--sx-navy);
    font-weight: 800;
}

.sx-page .account-nav a[aria-current="page"] {
    background: var(--sx-navy);
    color: #fff;
}

.sx-page .account-list,
.sx-page .account-item,
.sx-page .account-empty,
.sx-page .account-danger,
.sx-page .saved-item,
.sx-page .tool-group,
.sx-page .section,
.sx-page .stat,
.sx-page .danger {
    border-radius: 0;
    box-shadow: none;
}

.sx-page .account-item,
.sx-page .saved-item,
.sx-page .stat {
    border-color: var(--sx-rule);
    background: #fff;
}

.sx-page .account-button:not(.premium-button) {
    border-radius: 0;
}

.sx-page .pill {
    border-radius: 2px;
}

/* ---- Spacing and remaining rounded bits ---- */
.sx-page .hero h1 + .lede,
.sx-page .hero h1 + p {
    margin-top: 16px;
}

.sx-page .hero .chip-row,
.sx-page .hero .badge-row {
    margin-top: 18px;
}

.sx-page .quick-step,
.sx-page .standings-card,
.sx-page .readiness-item {
    border-radius: 0;
    box-shadow: none;
}

.sx-page .standings-card {
    border: 1px solid var(--sx-rule);
    background: #fff;
}

.sx-page .quick-step {
    background: #fff;
    border: 1px solid var(--sx-rule);
}

.sx-page input[type="password"] {
    border-color: var(--sx-rule);
    border-radius: 0;
    background: #fff;
}

.sx-page .panel h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.sx-page .google-sign-in a,
.sx-page .google-sign-in button,
.sx-page .button.link,
.sx-page a.link {
    border-radius: 0;
}

/* Sitewide feedback and "preferred source" panels sit in the page body. */
.sx-page .feedback-widget .content-card,
.sx-page .feedback-widget.is-prompt .content-card,
.sx-page .preferred-source {
    border: 1px solid var(--sx-rule);
    border-radius: 0;
    background: var(--sx-paper);
    box-shadow: none;
}

.sx-page .feedback-widget button,
.sx-page .feedback-widget textarea {
    border-radius: 0;
}

/* ---- Blog / guides ----
   Posts reuse .hero / .content / .cta / .cta-panel with bare element styles
   in each view. Same navy title strip and paper cards as the tools, but body
   headings stay sentence case: all-caps long-form headings read slowly. */
.sx-page .hero .meta,
.sx-page .hero figcaption,
.sx-page .hero-media figcaption {
    color: rgba(255, 255, 255, 0.75);
}

.sx-page .hero-media img {
    border-radius: 0;
    box-shadow: none;
}

.sx-page .content {
    border: 1px solid var(--sx-rule);
    border-radius: 0;
    background: var(--sx-paper);
    box-shadow: none;
}

.sx-page .content h2,
.sx-page .content h3,
.sx-page .faq h2,
.sx-page .faq h3 {
    color: var(--sx-navy);
    text-transform: none;
    letter-spacing: -0.025em;
}

.sx-page .content h2 {
    font-family: "Arial Black", Arial, sans-serif;
}

.sx-page .content p,
.sx-page .content li {
    color: #3b4852;
}

.sx-page .content a:not(.cta):not(.action-button):not(.chip-link) {
    color: var(--sx-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.sx-page .cta,
.sx-page a.cta {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: var(--sx-orange);
    box-shadow: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transform: none;
}

.sx-page .cta:hover,
.sx-page .cta:focus-visible {
    background: var(--sx-navy);
    color: #fff;
}

/* The end-of-post call to action: a navy block, so the next step after
   reading is the loudest thing below the article. */
.sx-page .cta-panel {
    border: 0;
    border-radius: 0;
    background: var(--sx-navy);
    box-shadow: none;
    color: #fff;
}

.sx-page .cta-panel h2,
.sx-page .cta-panel h3,
.sx-page .cta-panel p,
.sx-page .cta-panel strong {
    color: #fff;
}

.sx-page .cta-panel p {
    opacity: 0.85;
}

.sx-page .cta-panel .cta,
.sx-page .cta-panel .action-button.primary {
    background: var(--sx-acid);
    color: var(--sx-navy);
}

.sx-page .cta-panel .cta:hover,
.sx-page .cta-panel .action-button.primary:hover {
    background: #fff;
    color: var(--sx-navy);
}

.sx-page .cta-panel a:not(.cta):not(.action-button) {
    color: var(--sx-acid);
}

.sx-page .cluster-panel,
.sx-page .formula,
.sx-page .faq {
    border-radius: 0;
    box-shadow: none;
}

.sx-page .cluster-panel,
.sx-page .formula {
    border: 1px solid var(--sx-rule);
    background: #fff;
}

.sx-page .formula {
    border-left: 4px solid var(--sx-blue);
}

.sx-page .cluster-links a {
    border: 1px solid var(--sx-rule);
    border-radius: 2px;
    background: #fff;
    color: var(--sx-navy);
}

.sx-page .content table,
.sx-page .chart-wrap table {
    background: #fff;
}

/* Blog index: cluster cards and the per-cluster tool button. */
.sx-page .post-card {
    border: 1px solid var(--sx-rule);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: none;
}

.sx-page .post-card:hover,
.sx-page .post-card:focus-within {
    border-color: var(--sx-navy);
    box-shadow: none;
    transform: none;
}

.sx-page .post-more,
.sx-page .post-card a {
    color: var(--sx-blue);
}

.sx-page .card-kicker {
    color: var(--sx-orange);
}

.sx-page .tool-cta {
    border: 0;
    border-radius: 0;
    background: var(--sx-orange);
    box-shadow: none;
    color: #fff;
    font-weight: 900;
    transform: none;
}

.sx-page .tool-cta:hover,
.sx-page .tool-cta:focus-visible {
    background: var(--sx-navy);
    color: #fff;
}

/* Bracket pieces still carrying the old rounded language. */
.sx-page .match,
.sx-page .champion-card,
.sx-page .advanced-options,
.sx-page textarea#team-names {
    border-radius: 0;
    box-shadow: none;
}

.sx-page .champion-card {
    border: 2px solid var(--sx-navy);
    background: var(--sx-acid);
    color: var(--sx-navy);
}

.sx-page .champion-card .champion-label {
    color: var(--sx-navy);
}

.sx-page .advanced-options,
.sx-page textarea#team-names {
    border-color: var(--sx-rule);
    background: #fff;
}

/* The draw already carries each seed; list numbers beside it read as a
   second, conflicting number ("1. (1) Falcons"). */
.sx-page .draw-list-items {
    list-style: none;
    padding-left: 0;
}
