/* Pi Coach League — porta pubblica (IA a mode) */
.pcl { color: #14241c; background: #f3f6f1; }
.pcl h1, .pcl h2, .pcl-display { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: -0.03em; }
.pcl-nav-mark { font-family: Fraunces, Georgia, serif; font-weight: 680; }
.pcl-rule h3 { margin: 0 0 0.35rem; font-size: 1.02rem; font-family: Inter, sans-serif; font-weight: 700; letter-spacing: 0; }

.pcl-main { min-height: 60vh; padding-bottom: 1rem; }
.pcl[data-pcl-mode="claim"] .pcl-main,
.pcl[data-pcl-mode="claim"] .pcl-bottom-nav,
.pcl[data-pcl-mode="claim"] .footer { visibility: hidden; pointer-events: none; }

.pcl-panel[hidden] { display: none !important; }

.pcl-hero {
    background:
        radial-gradient(900px 420px at 90% -10%, rgba(214, 242, 92, 0.28), transparent 55%),
        linear-gradient(165deg, #0c3d28 0%, #08462a 48%, #123524 100%);
    color: #f4f7f2;
    padding: 4.5rem 0 4rem;
}
.pcl-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}
.pcl-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d6f25c;
    margin-bottom: 0.9rem;
}
.pcl-hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.02; color: #fff; margin: 0 0 1rem; }
.pcl-lead { font-size: 1.12rem; line-height: 1.55; color: rgba(244, 247, 242, 0.88); max-width: 38rem; margin: 0 0 1.6rem; }
.pcl-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.pcl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px; padding: 0.9rem 1.35rem;
    font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
    background: #e4f56a; color: #102216;
}
.pcl-btn:hover { background: #eefb90; }
.pcl-btn-ghost {
    background: transparent; color: #f4f7f2;
    border: 1px solid rgba(244, 247, 242, 0.35);
}
.pcl-btn-ghost:hover { background: rgba(255,255,255,0.06); }
.pcl-btn-dark { background: #08462a; color: #f4f7f2; }
.pcl-btn-dark:hover { background: #0c5a36; }
.pcl-btn-line {
    background: #fff; color: #14241c;
    border: 1px solid #c9d7ce;
}
.pcl-btn-line:hover { background: #f4f7f2; }
.pcl-btn-block { width: 100%; }

.pcl-live {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 1.4rem;
    padding: 1.25rem 1.3rem 1.1rem;
}
.pcl-live h2 { color: #fff; font-size: 1.35rem; margin: 0 0 0.35rem; }
.pcl-live p { color: rgba(244,247,242,0.8); margin: 0; font-size: 0.95rem; line-height: 1.45; }
.pcl-meter { margin-top: 1rem; }
.pcl-meter-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.15); overflow: hidden; }
.pcl-meter-fill { height: 100%; background: #e4f56a; width: 0; }
.pcl-meter-label { margin-top: 0.4rem; font-size: 0.82rem; color: #d6f25c; font-weight: 600; }

.pcl-section { padding: 4rem 0; }
.pcl-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 0.4rem; color: #14241c; }
.pcl-sub { color: #3d5248; margin: 0 0 1.5rem; max-width: 40rem; line-height: 1.5; }
.pcl-card {
    background: #fff; border-radius: 1.4rem;
    border: 1px solid #d7e3db;
    box-shadow: 0 16px 40px rgba(20, 36, 28, 0.05);
    padding: 1.4rem;
}
.pcl-formats { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.pcl-formats button {
    flex: 1; border-radius: 999px; border: 1px solid #d7e3db;
    background: #f7faf8; padding: 0.7rem 0.8rem; font-weight: 650; cursor: pointer; color: #14241c;
}
.pcl-formats button[aria-pressed="true"] { background: #08462a; color: #f4f7f2; border-color: #08462a; }
.pcl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pcl-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.75rem; }
.pcl-field.full { grid-column: 1 / -1; }
.pcl-field label { font-size: 0.82rem; font-weight: 650; color: #24382e; }
.pcl-field input, .pcl-field select {
    width: 100%; min-width: 0;
    border: 1px solid #c9d7ce; border-radius: 0.8rem; padding: 0.75rem 0.8rem;
    font: inherit; color: #14241c; background: #fff;
}
.pcl-field input:focus, .pcl-score input:focus, .pcl-field select:focus {
    outline: 2px solid #08462a; border-color: #08462a;
}
.pcl-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.75rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.35rem;
    row-gap: 0.4rem;
    align-items: center;
    margin: 0.15rem 0 0.95rem;
    padding: 0.85rem;
    background: #f4f7f2;
    border: 1px solid #e1ebe4;
    border-radius: 1rem;
}
.pcl-score label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3d5248;
    text-align: center;
}
.pcl-score input {
    width: 100%;
    min-width: 0;
    text-align: center;
    font-size: 1.65rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    min-height: 3.25rem;
    padding: 0.35rem 0.25rem;
    border: 1px solid #c9d7ce;
    border-radius: 0.75rem;
    color: #14241c;
    background: #fff;
}
.pcl-score-dash {
    grid-row: 2;
    grid-column: 2;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #5c7266;
    line-height: 1;
    padding: 0;
}
.pcl-score-gap { grid-row: 1; grid-column: 2; }
.pcl-hint { font-size: 0.85rem; color: #4d6458; margin: 0 0 1rem; line-height: 1.45; }
.pcl-error { background: #fde8e4; color: #7a2618; border-radius: 0.8rem; padding: 0.7rem 0.85rem; margin-bottom: 0.8rem; }
.pcl-names { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.pcl-names span { background: #eef6df; color: #1d3a16; border-radius: 999px; padding: 0.28rem 0.7rem; font-size: 0.88rem; font-weight: 600; }

.pcl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pcl-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pcl-table th {
    text-align: left; font-size: 0.72rem; letter-spacing: 0.04em;
    text-transform: uppercase; color: #5c7266; padding: 0.35rem 0.3rem; white-space: nowrap;
}
.pcl-table td { padding: 0.45rem 0.3rem; border-top: 1px solid #e6eee8; font-variant-numeric: tabular-nums; }
.pcl-rank { color: #5c7266; font-weight: 700; width: 1.6rem; }
.pcl-rating { font-weight: 700; color: #08462a; }
.pcl-standings-hint { margin: 0 0 0.85rem; }
.pcl-league-name { font-weight: 700; margin: 0 0 0.15rem; }
.pcl-league + .pcl-league { margin-top: 1.25rem; }
.pcl-other-zones { margin-top: 1rem; font-size: 0.88rem; color: #5c7266; }
.pcl-other-zones summary { cursor: pointer; font-weight: 600; }
.pcl-other-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.pcl-band {
    margin-top: 0.85rem;
    padding: 0.75rem 0.8rem 0.85rem;
    border-radius: 1rem;
    border: 1px solid #d7e3db;
    background: linear-gradient(165deg, #fff 0%, #f7faf7 100%);
}
.pcl-band:first-of-type { margin-top: 0.5rem; }
.pcl-band__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.pcl-band__label {
    font-family: Fraunces, Georgia, serif; font-weight: 680; font-size: 1.05rem;
    letter-spacing: -0.02em; color: #14241c;
}
.pcl-band__meta { font-size: 0.75rem; color: #5c7266; font-weight: 600; }
.pcl-band--bronze { border-color: #d4b896; background: linear-gradient(165deg, #fffdf9 0%, #f6efe4 100%); }
.pcl-band--bronze .pcl-band__label { color: #6b4a1f; }
.pcl-band--gold { border-color: #e2c76a; background: linear-gradient(165deg, #fffef5 0%, #f7f0d4 100%); }
.pcl-band--gold .pcl-band__label { color: #7a5b0a; }
.pcl-band--diamond { border-color: #9eb8d4; background: linear-gradient(165deg, #f8fbff 0%, #e8f0f8 100%); }
.pcl-band--diamond .pcl-band__label { color: #1e3a5f; }

.pcl-albo-story {
    font-size: 1.02rem; line-height: 1.5; color: #24382e; margin: 0 0 1.25rem;
    max-width: 42rem; font-family: Fraunces, Georgia, serif; font-weight: 500;
}
.pcl-albo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.pcl-albo-list { list-style: none; margin: 0; padding: 0; }
.pcl-albo-list li {
    display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: baseline;
    padding: 0.55rem 0; border-top: 1px solid #e6eee8; font-size: 0.92rem;
}
.pcl-albo-list li:first-child { border-top: none; padding-top: 0; }
.pcl-albo-name { font-weight: 700; color: #14241c; }
.pcl-albo-meta { font-size: 0.78rem; color: #5c7266; font-weight: 600; }
.pcl-albo-empty { margin: 0; color: #4d6458; font-size: 0.9rem; line-height: 1.45; }

.pcl-info-acc { display: flex; flex-direction: column; gap: 0.55rem; max-width: 48rem; }
.pcl-info-acc details {
    background: #fff;
    border: 1px solid #d7e3db;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
}
.pcl-info-acc summary {
    cursor: pointer;
    font-weight: 700;
    color: #14241c;
    list-style: none;
}
.pcl-info-acc summary::-webkit-details-marker { display: none; }
.pcl-info-acc summary::after {
    content: '+';
    float: right;
    color: #5c7266;
    font-weight: 700;
}
.pcl-info-acc details[open] summary::after { content: '–'; }
.pcl-info-acc details p {
    margin: 0.65rem 0 0;
    color: #3d5248;
    line-height: 1.5;
    font-size: 0.94rem;
}

.pcl-next { background: #102216; color: #f4f7f2; padding: 3.2rem 0; }
.pcl-next h2, .pcl-next p { color: #f4f7f2; }
.pcl-next p { max-width: 36rem; opacity: 0.88; }

.pcl-who { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.4rem 0 0.8rem; }
.pcl-who button {
    text-align: left; border-radius: 1rem; border: 1px solid #d7e3db; background: #f7faf8;
    padding: 0.85rem 1rem; font-weight: 700; cursor: pointer; color: #14241c; font: inherit;
}
.pcl-who button[aria-pressed="true"] { background: #08462a; color: #f4f7f2; border-color: #08462a; }
.pcl-who button:disabled { opacity: 0.55; cursor: default; }
.pcl-done { background: #eef6df; border-radius: 1rem; padding: 0.95rem 1rem; margin-top: 0.6rem; }
.pcl-check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; color: #3d5248; margin: 0.2rem 0 0.8rem; }
.pcl-check input { margin-top: 0.2rem; }
.pcl-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin-bottom: 1rem; }
.pcl-toolbar .pcl-field { margin: 0; min-width: 0; flex: 1; }
.pcl-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.pcl-actions .pcl-btn { flex: 1 1 9rem; }
.pcl-card, .pcl-segna, .pcl-grid { min-width: 0; }
.pcl-segna {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}
.pcl-segna > div { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.pcl-score-caption {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c7266;
}
.pcl-card .pcl-meter-track { background: #e6eee8; }
.pcl-card .pcl-meter-fill { background: #08462a; }
.pcl-card .pcl-meter-label { color: #0c6b3e; }
#pclSeason, #pclAnnual { overflow-x: auto; }

.pcl-subtabs {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.25rem;
    background: #e8efe9;
    border-radius: 999px;
    max-width: 22rem;
}
.pcl-subtabs button {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.75rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: #3d5248;
}
.pcl-subtabs button[aria-selected="true"] {
    background: #08462a;
    color: #f4f7f2;
}
.pcl-board-pane[hidden] { display: none !important; }

.pcl-board-context { margin-bottom: 0.85rem; }
.pcl-board-formats { max-width: 28rem; margin-bottom: 0.85rem; }
.pcl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.9rem;
}
.pcl-chips button {
    border-radius: 999px;
    border: 1px solid #d7e3db;
    background: #f7faf8;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    color: #14241c;
}
.pcl-chips button[aria-selected="true"],
.pcl-chips button[aria-pressed="true"] {
    background: #08462a;
    color: #f4f7f2;
    border-color: #08462a;
}
.pcl-banner {
    background: #eef6df;
    border: 1px solid #d7e3db;
    border-radius: 0.9rem;
    padding: 0.7rem 0.85rem;
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: #24382e;
    line-height: 1.45;
}

.pcl .navbar .btn-primary {
    background: #08462a;
    color: #f4f7f2;
    border-radius: 999px;
    box-shadow: none;
}
.pcl .navbar .btn-primary:hover {
    background: #0c5a36;
    color: #f4f7f2;
    transform: none;
    box-shadow: none;
}
.pcl .nav-links a:hover { color: #08462a; }
.pcl .nav-links a[aria-current="page"] { color: #08462a; font-weight: 700; }

/* Bottom nav — mobile tool chrome */
.pcl-bottom-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: #fff;
    border-top: 1px solid #d7e3db;
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    gap: 0.15rem;
}
.pcl-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.45rem 0.25rem;
    text-decoration: none;
    color: #5c7266;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 0.75rem;
}
.pcl-bottom-nav a[aria-current="page"] {
    color: #08462a;
    background: #eef6df;
}
.pcl-bottom-nav .pcl-bn-ico {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

/* Claim overlay */
.pcl-claim {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(16, 34, 22, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.pcl-claim[hidden] { display: none !important; }
.pcl-claim__sheet {
    width: min(32rem, 100%);
    max-height: min(92vh, 100%);
    overflow: auto;
    background: #f3f6f1;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1rem 1rem 1.5rem;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
}
.pcl-claim__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.pcl-claim__close {
    border: 0;
    background: #e6eee8;
    color: #14241c;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .pcl-claim { align-items: center; padding: 1.5rem; }
    .pcl-claim__sheet {
        border-radius: 1.4rem;
        max-height: 90vh;
    }
}

@media (max-width: 860px) {
    .pcl-hero-grid, .pcl-albo-grid, .pcl-grid, .pcl-segna { grid-template-columns: 1fr; }
    .pcl-hero { padding: 1.6rem 0 1.4rem; }
    .pcl-hero h1 { font-size: clamp(1.85rem, 9vw, 2.6rem); }
    .pcl-section { padding: 1.5rem 0 2rem; }
    .pcl-card { padding: 1.05rem; }
    .pcl-hero-actions { flex-direction: column; align-items: stretch; }
    .pcl-hero-actions .pcl-btn { width: 100%; }
    .pcl-toolbar { flex-direction: column; align-items: stretch; }
    .pcl-toolbar .pcl-btn { width: 100%; }
    .pcl-actions { flex-direction: column; }
    .pcl-actions .pcl-btn { width: 100%; }
    .pcl-nav-mark { font-size: 1.05rem; }
    .pcl-bottom-nav { display: flex; }
    .pcl-main { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
    .pcl .navbar .nav-links.desktop-only,
    .pcl .navbar .nav-actions.desktop-only { /* keep site pattern */ }
}

@media (min-width: 861px) {
    .pcl-claim__sheet { padding: 1.35rem 1.4rem 1.6rem; }
}
