/* ================================================
   TSV BASE — Reset, typography, grid, utilities
   ================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --tsv-primary:       #CC0000;
    --tsv-dark:          #1a1a1a;
    --tsv-positive:      #2E8B57;
    --tsv-muted:         #666;
    --tsv-border:        #e0e0e0;
    --tsv-bg:            #f4f4f4;
    --tsv-white:         #ffffff;
    --tsv-radius:        4px;
    --tsv-shadow:        0 2px 8px rgba(0,0,0,0.08);
    --tsv-font:          system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tsv-max-width:     1280px;
    --tsv-content-width: 860px;
    --tsv-gap:           32px;
    --tsv-section-gap:   64px;
}

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--tsv-font);
    color: var(--tsv-dark);
    background: var(--tsv-white);
    line-height: 1.6;
    margin: 0;
}

/* Typography */
h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.95rem; }

p { margin: 0 0 1rem; }
a { color: var(--tsv-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Global page wrapper */
.site-content,
#content,
#main {
    padding-top: 0;
}

/* Container */
.tsv-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}
@media (max-width: 1024px) { .tsv-container { padding: 0 32px; } }
@media (max-width: 768px)  { .tsv-container { padding: 0 20px; } }
@media (max-width: 480px)  { .tsv-container { padding: 0 16px; } }

/* Section vertical rhythm */
.tsv-section {
    padding: var(--tsv-section-gap) 0;
}
.tsv-section + .tsv-section {
    border-top: 1px solid var(--tsv-border);
}

/* Catch Everest .entry-content — wrap + pad */
.entry-content,
.site-main .entry-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px;
}
@media (max-width: 768px) {
    .entry-content { padding: 24px 20px; }
}

/* Generic content pages (about, camps, coaches etc.) */
.page-template-default .entry-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 48px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--tsv-dark);
}
.page-template-default .entry-content h2 {
    margin-top: 2rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--tsv-primary);
    padding-bottom: 8px;
    display: inline-block;
}
.page-template-default .entry-content img {
    border-radius: 6px;
    margin: 16px 0;
}

/* Page title on content pages */
.entry-header .entry-title {
    max-width: 860px;
    margin: 32px auto 0;
    padding: 0 20px 0 48px;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--tsv-dark);
    border-left: 5px solid var(--tsv-primary);
    padding-left: 20px;
}

/* Featured image on content pages */
.post-thumbnail {
    max-width: 860px;
    margin: 24px auto;
    padding: 0 48px;
}
.post-thumbnail img {
    width: 100%;
    border-radius: 8px;
    max-height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .entry-header .entry-title { padding: 0 20px 0 16px; font-size: 1.4rem; }
    .page-template-default .entry-content { padding: 24px 20px; }
    .post-thumbnail { padding: 0 20px; }
}

/* Section heading */
.tsv-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tsv-dark);
    border-bottom: 3px solid var(--tsv-primary);
    padding-bottom: 8px;
    margin: 0 0 16px;
}

/* Buttons */
.tsv-btn {
    display: inline-block;
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--tsv-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.tsv-btn--primary,
.tsv-btn-primary {
    background: var(--tsv-primary);
    color: var(--tsv-white);
    border-color: var(--tsv-primary);
}
.tsv-btn--primary:hover,
.tsv-btn-primary:hover {
    background: #aa0000;
    border-color: #aa0000;
    color: var(--tsv-white);
    text-decoration: none;
}
.tsv-btn--outline {
    background: transparent;
    color: var(--tsv-white);
    border-color: var(--tsv-white);
}
.tsv-btn--outline:hover {
    background: var(--tsv-white);
    color: var(--tsv-primary);
    text-decoration: none;
}
.tsv-btn--ghost {
    background: transparent;
    color: var(--tsv-primary);
    border-color: var(--tsv-primary);
}
.tsv-btn--ghost:hover {
    background: var(--tsv-primary);
    color: var(--tsv-white);
    text-decoration: none;
}
.tsv-btn--sm,
.tsv-btn-sm { padding: 7px 16px; font-size: 12px; }
.tsv-btn--full,
.tsv-btn-block { width: 100%; text-align: center; display: block; }

/* Secondary button (plugin uses this) */
.tsv-btn-secondary {
    background: transparent;
    color: var(--tsv-dark);
    border: 1px solid var(--tsv-border);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--tsv-radius);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    text-decoration: none;
}
.tsv-btn-secondary:hover {
    border-color: var(--tsv-primary);
    color: var(--tsv-primary);
    text-decoration: none;
}

/* Cards */
.tsv-card {
    background: var(--tsv-white);
    border: 1px solid var(--tsv-border);
    border-radius: var(--tsv-radius);
    padding: 20px;
    box-shadow: var(--tsv-shadow);
}

/* Utility */
.tsv-text-red   { color: var(--tsv-primary); }
.tsv-text-green { color: var(--tsv-positive); }
.tsv-text-muted { color: var(--tsv-muted); }
.tsv-bold       { font-weight: 700; }
.tsv-uppercase  { text-transform: uppercase; letter-spacing: 0.05em; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Error text */
.tsv-error { color: var(--tsv-primary); font-size: 13px; }
.tsv-no-data {
    color: var(--tsv-muted);
    font-size: 13px;
    font-style: italic;
    padding: 16px 0;
}

/* ================================================
   FIX 2 — Page hero strip (all content pages)
   ================================================ */
.tsv-page-hero {
    background: linear-gradient(135deg,
        var(--tsv-dark) 0%,
        #2a1a1a 50%,
        #1a0a0a 100%);
    padding: 56px 0 44px;
    position: relative;
    overflow: hidden;
}
.tsv-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/liga-hero.jpg');
    background-image: image-set(
        url('../img/liga-hero.webp') type('image/webp'),
        url('../img/liga-hero.jpg')  type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
}
.tsv-page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--tsv-primary);
}
.tsv-page-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}
.tsv-page-hero__breadcrumb {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tsv-page-hero__breadcrumb a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.15s;
}
.tsv-page-hero__breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.tsv-page-hero__breadcrumb-sep { opacity: 0.4; }
.tsv-page-hero__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.1;
}
.tsv-page-hero__sub {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    max-width: 600px;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .tsv-page-hero { padding: 36px 0 28px; }
    .tsv-page-hero__inner { padding: 0 20px; }
    .tsv-page-hero__title { font-size: 1.5rem; }
}

/* ================================================
   FIX 4 — Content pages (about, camps, coaches etc.)
   ================================================ */
.tsv-content-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 48px 72px;
}
@media (max-width: 768px) {
    .tsv-content-page { padding: 32px 20px 48px; }
}
.tsv-content-page__inner {
    max-width: 860px;
    margin: 0 auto;
}
.tsv-content-page__hero-img {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.tsv-content-page__img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
    display: block;
}
/* Coach portrait photos — show at natural proportions, no cropping */
.is-coach-page .tsv-content-page__img {
    max-height: none;
    object-fit: initial;
}
.tsv-content-page__body {
    font-size: 15px;
    line-height: 1.80;
    color: #2a2a2a;
}
.tsv-content-page__body h1,
.tsv-content-page__body h2,
.tsv-content-page__body h3,
.tsv-content-page__body h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2.4rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}
.tsv-content-page__body h2 {
    font-size: 1.2rem;
    color: var(--tsv-dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tsv-primary);
    display: inline-block;
}
.tsv-content-page__body h3 {
    font-size: 1rem;
    color: var(--tsv-primary);
}
.tsv-content-page__body h4 {
    font-size: 0.9rem;
    color: var(--tsv-muted);
}
.tsv-content-page__body p {
    margin-bottom: 1.2rem;
    color: #333;
}
.tsv-content-page__body strong {
    color: var(--tsv-dark);
    font-weight: 700;
}
.tsv-content-page__body a {
    color: var(--tsv-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(204,0,0,0.25);
    transition: border-color 0.15s;
}
.tsv-content-page__body a:hover { border-bottom-color: var(--tsv-primary); }
.tsv-content-page__body ul,
.tsv-content-page__body ol {
    padding-left: 1.4rem;
    margin-bottom: 1.2rem;
}
.tsv-content-page__body li {
    margin-bottom: 0.4rem;
    color: #333;
}
.tsv-content-page__body > p:first-child {
    font-size: 17px;
    color: #222;
    line-height: 1.75;
    font-weight: 400;
}
.tsv-content-page__body blockquote {
    border-left: 4px solid var(--tsv-primary);
    margin: 2rem 0;
    padding: 16px 24px;
    background: #fafafa;
    border-radius: 0 6px 6px 0;
}
.tsv-content-page__body blockquote p {
    font-size: 16px;
    font-style: italic;
    color: #444;
    margin: 0;
}
.tsv-infobox,
.tsv-content-page__body .wp-block-group {
    background: #fff8f8;
    border: 1px solid rgba(204,0,0,0.15);
    border-radius: 8px;
    padding: 24px 28px;
    margin: 2rem 0;
}
.tsv-content-page__body hr {
    border: none;
    border-top: 2px solid var(--tsv-border);
    margin: 2.5rem 0;
}
.tsv-content-page__body img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    margin: 1rem 1rem;
}
.tsv-content-page__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 1.5rem 0;
}
.tsv-content-page__body th {
    background: var(--tsv-dark);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tsv-content-page__body td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--tsv-border);
    vertical-align: top;
    color: #333;
}
.tsv-content-page__body tr:last-child td { border-bottom: none; }
.tsv-content-page__body tr:hover td { background: #fafafa; }

/* ================================================
   FIX 7 — Suppress Catch Everest's duplicate page title
   ================================================ */
.page:not(.home) .entry-header .entry-title,
.page:not(.home) .page-header .entry-title { display: none !important; }
.breadcrumb-area { display: none !important; }

/* ================================================
   FIX 8 — Remove catch-everest background image bleed
   ================================================ */
.header-image,
.site-header.header-image,
.catch-header-bg,
#header-media,
.custom-header,
.header-media-image { display: none !important; }
#masthead { background: var(--tsv-dark) !important; }

/* ================================================
   Coaches grid
   ================================================ */
.lead {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tsv-coaches-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.tsv-coach-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--tsv-border);
    border-left: 4px solid var(--tsv-primary);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s, border-left-color 0.15s;
    color: inherit;
    text-decoration: none;
}
a.tsv-coach-card:hover {
    border-left-color: #aa0000;
    text-decoration: none;
    color: inherit;
}
.tsv-coach-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); text-decoration: none; }

/* Photo replaces initials avatar when image is available */
.tsv-coach-card__photo {
    width: 120px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--tsv-border);
}

.tsv-coach-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tsv-primary) 0%, #8B0000 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.tsv-coach-card__info h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tsv-dark);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tsv-coach-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tsv-primary);
    margin-bottom: 10px;
}

.tsv-coach-card__info p {
    font-size: 14px;
    color: var(--tsv-muted);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 600px) {
    .tsv-coach-card { flex-direction: column; gap: 14px; }
}

/* ================================================
   FAQ accordion (sidebar quicklinks + full FAQ page)
   ================================================ */
.tsv-faq-accordion { margin: 0; padding: 0; }

.tsv-faq-item { border-bottom: 1px solid var(--tsv-border); }
.tsv-faq-item:last-child { border-bottom: none; }

.tsv-faq-toggle { display: none; }

.tsv-faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tsv-dark);
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: background 0.15s;
}
.tsv-faq-question:hover { background: #fafafa; }

.tsv-faq-icon {
    font-size: 18px;
    font-weight: 300;
    color: var(--tsv-primary);
    flex-shrink: 0;
    line-height: 1;
    margin-left: auto;
    order: 2;
    transition: transform 0.2s ease;
    display: inline-block;
}

.tsv-faq-toggle:checked + .tsv-faq-question {
    background: #fff8f8;
    color: var(--tsv-primary);
}
.tsv-faq-toggle:checked + .tsv-faq-question .tsv-faq-icon {
    transform: rotate(45deg);
}

.tsv-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
    font-size: 13px;
    color: #444;
    line-height: 1.7;
}
.tsv-faq-toggle:checked ~ .tsv-faq-answer {
    max-height: 600px;
    padding: 14px 18px;
    border-top: 1px solid var(--tsv-border);
}

/* ================================================
   FAQ full page layout
   ================================================ */
.tsv-faq-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 48px 72px;
}
.tsv-faq-page__inner { max-width: 800px; }

.tsv-faq-category { margin-bottom: 48px; }

.tsv-faq-cat-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tsv-dark);
    border-left: 4px solid var(--tsv-primary);
    padding-left: 14px;
    margin: 0 0 16px;
}

.tsv-faq-list {
    border: 1px solid var(--tsv-border);
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .tsv-faq-page { padding: 32px 20px 48px; }
}
