/*
 * HCW Spieler Manager – Spielerkarten CSS
 * Design: Barlow Condensed + DM Sans, Vereinsfarben #0d1b2e / #003366 / #4a9fd4
 */

:root {
    --hcw-dark:   #0d1b2e;
    --hcw-navy:   #003366;
    --hcw-blue:   #00509d;
    --hcw-accent: #4a9fd4;
    --hcw-gray:   #5a6a7a;
    --hcw-light:  #f4f7fb;
}

/* ── Grid ───────────────────────────────────────────────────── */

.hcw-team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 32px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Karte ──────────────────────────────────────────────────── */

.hcw-player-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13, 27, 46, 0.09);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

.hcw-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 51, 102, 0.18);
}


/* ── Foto-Bereich ───────────────────────────────────────────── */

.hcw-player-foto {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #9e9e9e;
    position: relative;
    flex-shrink: 0;
}

/* ── Name-only Karte (kein Foto) ────────────────────────────── */

.hcw-player-namekarte {
    background: linear-gradient(160deg, var(--hcw-dark) 0%, var(--hcw-navy) 60%, var(--hcw-blue) 100%);
    border-radius: 12px;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13, 27, 46, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hcw-player-namekarte:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 51, 102, 0.28);
}

/* Decorative circle in background */
.hcw-player-namekarte::before {
    content: '';
    position: absolute;
    width: 140%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(74, 159, 212, 0.15);
    top: -20%;
    left: -20%;
}

.hcw-player-namekarte::after {
    content: '';
    position: absolute;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(74, 159, 212, 0.10);
    bottom: -30%;
    right: -20%;
}

.hcw-player-namekarte-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 1;
    padding: 16px;
}

.hcw-player-namekarte-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: #fff;
    text-align: center;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.hcw-player-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ── Trikotnummer (Badge oben links im Foto) ────────────────── */

.hcw-player-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 27, 46, 0.72);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(2px);
}

/* ── Textbereich ────────────────────────────────────────────── */

.hcw-player-info {
    padding: 11px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    text-align: center;
}

.hcw-player-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--hcw-dark);
    line-height: 1.2;
    width: 100%;
}

.hcw-player-pos {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--hcw-accent);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    width: 100%;
}

.hcw-vp-contact {
    color: #1d4ed8;
    text-decoration: none;
    font-size: 0.72rem;
    word-break: break-all;
}
.hcw-vp-contact:hover {
    text-decoration: underline;
}
.hcw-player-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.70rem;
    color: var(--hcw-gray);
    width: 100%;
}

/* ── Trainer Mannschaft-Badges ──────────────────────────────── */

.hcw-trainer-mannschaften {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    width: 100%;
}

.hcw-trainer-badge {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
    background: var(--hcw-dark, #0d1b2e);
    border-radius: 3px;
    padding: 2px 6px;
    line-height: 1.5;
}

/* ── Keine Spieler ──────────────────────────────────────────── */

.hcw-no-players {
    color: var(--hcw-gray);
    font-style: italic;
    padding: 20px;
}

/* ── Termine ────────────────────────────────────────────────── */

/* Force Elementor shortcode wrapper to full width */
.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode {
    width: 100% !important;
}

.hcw-termine {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

@media (min-width: 1025px) {
    .hcw-termine {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hcw-termine--leer p {
    color: var(--hcw-gray);
    font-style: italic;
    text-align: center;
    width: 100%;
}

.hcw-termine--single {
    grid-template-columns: 1fr;
}

.hcw-termin-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(13, 27, 46, 0.09);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hcw-termin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.15);
}

.hcw-termin-date-col {
    background: var(--hcw-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    gap: 1px;
}

.hcw-termin-wt {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.65);
}

.hcw-termin-day {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.hcw-termin-month {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hcw-accent);
}

.hcw-termin-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
}

.hcw-termin-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hcw-dark);
    line-height: 1.2;
}

.hcw-termin-cat {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--hcw-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hcw-termin-time,
.hcw-termin-ort {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--hcw-gray);
}

/* ── Spielplan ──────────────────────────────────────────────── */

.hcw-spielplan-tabs {
    width: 100%;
}

.hcw-spielplan-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 24px;
}

.hcw-spielplan-tab {
    appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--hcw-gray);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0 0 8px;
    text-transform: uppercase;
}

.hcw-spielplan-tab.is-active {
    border-bottom-color: var(--hcw-accent);
    color: var(--hcw-dark);
}

.hcw-spielplan-list {
    display: grid;
    gap: 16px;
}

.hcw-sp-item {
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    overflow: hidden;
}

.hcw-sp-icon {
    align-items: center;
    background: var(--hcw-blue);
    color: #fff;
    display: flex;
    font-size: 1.6rem;
    justify-content: center;
    min-height: 86px;
}

.hcw-sp-body {
    min-width: 0;
    padding: 16px 20px;
}

.hcw-sp-date {
    color: #111827;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.hcw-sp-time {
    color: var(--hcw-gray);
    font-weight: 500;
}

.hcw-sp-teams {
    color: var(--hcw-navy);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 6px;
}

.hcw-sp-vs {
    color: #b91c1c;
    font-size: 0.76rem;
    font-weight: 900;
    margin: 0 8px;
    text-transform: uppercase;
}

.hcw-sp-meta {
    align-items: center;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    gap: 6px;
}

.hcw-sp-ha {
    border-radius: 4px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    padding: 5px 8px;
    text-transform: uppercase;
}

.hcw-sp-heim     { background: #dff4e7; color: #16803b; }
.hcw-sp-auswaerts { background: #f7e6ad; color: #8a6400; }

.hcw-no-games {
    color: var(--hcw-gray);
    font-style: italic;
}

/* ── Sponsoren ──────────────────────────────────────────────── */

.hcw-dynamic-sponsors-grid {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.hcw-dynamic-sponsor-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 31, 63, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    height: 74px;
    justify-content: center;
    padding: 12px 20px;
    width: 150px;
}

.hcw-dynamic-sponsor-card a {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.hcw-dynamic-sponsor-card img {
    height: auto;
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

.hcw-dynamic-sponsors-grid--hauptsponsoren {
    gap: 28px;
}

.hcw-dynamic-sponsors-grid--hauptsponsoren .hcw-dynamic-sponsor-card {
    flex: 0 1 290px;
    height: 155px;
    padding: 24px 32px;
    width: 290px;
}

.hcw-dynamic-sponsors-grid--hauptsponsoren .hcw-dynamic-sponsor-card img {
    max-height: 100%;
}

/* ── 100er Club Member Badges ───────────────────────────────── */

.hcw-member-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hcw-member-badge {
    background: var(--hcw-dark);
    border-radius: 100px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 16px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

a.hcw-member-badge:hover {
    background: var(--hcw-navy);
}

/* ── CF7 100er Club Formular ────────────────────────────────── */

.hcw-cf7-row {
    margin-bottom: 16px;
}

/* CF7 wraps content in <p> — make that the grid */
.hcw-cf7-row p {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
}

.hcw-cf7-field {
    margin-bottom: 16px;
}

.hcw-cf7-row .wpcf7-form-control-wrap,
.hcw-cf7-field .wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}

.hcw-cf7-row input[type="text"],
.hcw-cf7-row input[type="email"],
.hcw-cf7-row input[type="tel"],
.hcw-cf7-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #dce1e7;
    border-radius: 6px;
    background: #fff;
    color: #0d1b2e;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.hcw-cf7-row input:focus,
.hcw-cf7-field textarea:focus {
    border-color: #00509d;
}

.hcw-cf7-field textarea {
    min-height: 110px;
    resize: vertical;
}

.hcw-cf7-acceptance {
    margin-bottom: 20px;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

.hcw-cf7-acceptance .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hcw-cf7-acceptance input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #00509d;
    cursor: pointer;
}

input.hcw-cf7-submit,
.wpcf7-submit.hcw-cf7-submit {
    width: 100%;
    padding: 14px 24px;
    background: #0d1b2e;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

input.hcw-cf7-submit:hover,
.wpcf7-submit.hcw-cf7-submit:hover {
    background: #003366;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
    display: block;
}

.wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background: #e6f4ea;
    color: #276749;
}

.wpcf7-validation-errors,
.wpcf7-spam-blocked {
    background: #fff5f5;
    color: #c53030;
}

@media (max-width: 600px) {
    .hcw-cf7-row {
        grid-template-columns: 1fr;
    }
}

/* ── CF7 Vereinsanmeldung ───────────────────────────────────── */

.hcw-form {
    width: 100%;
}

.hcw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hcw-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.hcw-form-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hcw-dark);
    letter-spacing: 0.01em;
}

.hcw-req {
    color: #c0392b;
}

.hcw-form-control,
.hcw-form .hcw-form-control,
.wpcf7 .hcw-form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d9e0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: var(--hcw-dark);
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.hcw-form-control:focus {
    outline: none;
    border-color: var(--hcw-accent);
    box-shadow: 0 0 0 3px rgba(74, 159, 212, 0.15);
}

.hcw-form-control::placeholder {
    color: #aab4be;
}

/* Select arrow */
.hcw-form-group select.hcw-form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Date input */
.hcw-form-group input[type="date"].hcw-form-control {
    cursor: pointer;
}

/* File input */
.hcw-form-file {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px dashed #d1d9e0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--hcw-gray);
    background: #f8fafc;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.18s ease;
}

.hcw-form-file:hover {
    border-color: var(--hcw-accent);
}

.hcw-form-hint {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--hcw-gray);
    margin: 4px 0 0;
}

/* Checkboxes */
.hcw-form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.hcw-checkbox .wpcf7-list-item {
    margin: 0;
}

.hcw-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--hcw-gray);
    line-height: 1.5;
    cursor: pointer;
}

.hcw-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1.5px solid #d1d9e0;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.hcw-checkbox input[type="checkbox"]:checked {
    background: var(--hcw-navy);
    border-color: var(--hcw-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* Acceptance field (CF7) */
.wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--hcw-gray);
    line-height: 1.5;
    cursor: pointer;
}

.wpcf7-acceptance input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1.5px solid #d1d9e0;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.wpcf7-acceptance input[type="checkbox"]:checked {
    background: var(--hcw-navy);
    border-color: var(--hcw-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* Submit button */
.hcw-form-submit,
input.hcw-form-submit {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--hcw-navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: 8px;
}

.hcw-form-submit:hover {
    background: var(--hcw-dark);
    transform: translateY(-1px);
}

/* CF7 validation states */
.wpcf7-not-valid-tip {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: #c0392b;
    margin-top: 4px;
    display: block;
}

.wpcf7-response-output {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 20px !important;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background: #fdecea;
    color: #c62828;
}

.wpcf7-spam-blocked,
.wpcf7-acceptance-missing {
    background: #fff3e0;
    color: #e65100;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #c0392b !important;
}

/* Remove CF7 default spinner styling */
.wpcf7 .ajax-loader { display: none; }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .hcw-player-namekarte-name {
        font-size: clamp(0.8rem, 2vw, 1.1rem);
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 600px) {
    .hcw-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hcw-player-namekarte-name {
        font-size: clamp(0.75rem, 3.5vw, 0.95rem);
    }

    .hcw-sp-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .hcw-sp-icon {
        min-height: 78px;
    }

    .hcw-termin-title,
    .hcw-termin-time,
    .hcw-termin-ort {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ── Mobile/Tablet: fix background-attachment:fixed (not supported on iOS) ── */
/*
 * background-attachment: fixed (parallax) doesn't work on iOS Safari or most
 * mobile browsers — it causes each section to render the background from its
 * own 0 0 origin, making sections look inconsistent. Switching to scroll on
 * touch devices ensures a uniform look across all ice-background containers.
 */
@media (max-width: 1024px) {
    /* background-attachment:fixed is not supported on iOS/mobile browsers.
       Switch to scroll so sections render consistently. The per-page ::before
       override is output dynamically via wp_head in hcw-spieler-manager.php. */
    .elementor-section,
    .e-con,
    .e-container {
        background-attachment: scroll !important;
    }
}

/* ── Monatskalender ──────────────────────────────────────────── */

.hcw-mkal {
    font-family: 'DM Sans', sans-serif;
    width: 100%;
}

.hcw-mkal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.hcw-mkal-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hcw-dark, #0d1b2e);
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hcw-mkal-btn {
    background: var(--hcw-navy, #003366);
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    flex-shrink: 0;
}

.hcw-mkal-btn:hover {
    background: var(--hcw-blue, #00509d);
}

.hcw-mkal-month { display: none; }
.hcw-mkal-month--active { display: block; }

.hcw-mkal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #cbd5e1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
}

.hcw-mkal-wday {
    background: var(--hcw-navy, #003366);
    color: #fff;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 4px;
}

.hcw-mkal-cell {
    background: #fff;
    min-height: 88px;
    padding: 5px 4px 4px;
}

.hcw-mkal-cell--empty { background: #f8fafc; }

.hcw-mkal-day-num { margin-bottom: 3px; }

.hcw-mkal-day-num span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.hcw-mkal-cell--today .hcw-mkal-day-num span {
    background: var(--hcw-accent, #4a9fd4);
    color: #fff;
}

.hcw-mkal-event {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    margin-bottom: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.55;
    cursor: default;
}

.hcw-mkal-event-time { font-weight: 800; }

@media (max-width: 768px) {
    .hcw-mkal-cell { min-height: 60px; padding: 3px 2px; }
    .hcw-mkal-wday { font-size: 0.6rem; padding: 6px 2px; }
    .hcw-mkal-event { font-size: 0.58rem; padding: 1px 3px; }
    .hcw-mkal-event-time { display: none; }
    .hcw-mkal-day-num span { font-size: 0.65rem; width: 18px; height: 18px; }
}



.hcw-mkal-tooltip {
    position: fixed;
    background: #1a2744;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.74rem;
    line-height: 1.45;
    max-width: 220px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 99999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    word-break: break-word;
}
