/* ============================================================
   ROGUE RIVER HATCH CALENDAR — applies only to hatches.php
   ============================================================ */

.hatch-hero {
    padding: 4rem 1rem 3rem;
    background:
        radial-gradient(circle at 82% 18%, rgba(34,197,94,0.14), transparent 32%),
        radial-gradient(circle at 18% 20%, rgba(56,189,248,0.13), transparent 36%),
        linear-gradient(180deg, #0f172a, #111827);
}

.hatch-hero-inner {
    max-width: 960px;
    margin: 0 auto;
}

.hatch-kicker {
    display: inline-flex;
    margin-bottom: 0.75rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(56,189,248,0.14);
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hatch-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.9rem);
    line-height: 1.02;
}

.hatch-hero .muted {
    max-width: 720px;
    margin: 1rem 0 0;
    color: rgba(226,232,240,0.78);
    line-height: 1.6;
}

.hatch-hero .muted a {
    color: #7dd3fc;
}

.hatch-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(min(150px, 100%), 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hatch-stat {
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.055);
}

.hatch-stat span {
    display: block;
    color: rgba(226,232,240,0.62);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hatch-stat strong {
    display: block;
    margin-top: 0.25rem;
    color: #fff;
    font-size: 1.2rem;
}

/* ---------- layout ---------- */

.hatch-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}

.hatch-section {
    margin-top: 2.5rem;
}

.hatch-section:first-child {
    margin-top: 1rem;
}

.hatch-section > h2 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.5rem;
}

.hatch-note {
    margin: 0 0 1rem;
    color: rgba(226,232,240,0.66);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hatch-note .swatch {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 3px;
    vertical-align: -1px;
    margin: 0 0.15rem;
}
.hatch-note .swatch.active { background: rgba(52,211,153,0.32); border: 1px solid rgba(52,211,153,0.5); }
.hatch-note .swatch.peak   { background: #34d399; }

/* ---------- calendar grid ---------- */

.hatch-calendar-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.hatch-calendar {
    border-collapse: collapse;
    width: 100%;
    min-width: 620px;
}

.hatch-calendar th,
.hatch-calendar td {
    padding: 0.55rem 0.4rem;
    text-align: center;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hatch-calendar thead th {
    color: rgba(226,232,240,0.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: sticky;
    top: 0;
    background: #131a2b;
    z-index: 2;
}

.hatch-calendar .hatch-name-col {
    text-align: left;
    position: sticky;
    left: 0;
    background: #131a2b;
    z-index: 1;
    min-width: 130px;
}

.hatch-calendar thead .hatch-name-col {
    z-index: 3;
}

.hatch-row-name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.hatch-row-type {
    display: block;
    color: rgba(226,232,240,0.55);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hatch-calendar td.cell-off    { background: transparent; }
.hatch-calendar td.cell-active { background: rgba(52,211,153,0.22); }
.hatch-calendar td.cell-peak   { background: #34d399; }

.hatch-calendar th.is-current,
.hatch-calendar td.is-current {
    box-shadow: inset 2px 0 0 #7dd3fc, inset -2px 0 0 #7dd3fc;
}
.hatch-calendar thead th.is-current {
    color: #7dd3fc;
}

/* ---------- hatch detail cards ---------- */

.hatch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.hatch-card {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.4rem 1.4rem 1.2rem;
    background:
        linear-gradient(180deg, rgba(56,189,248,0.05), transparent),
        rgba(255,255,255,0.045);
    backdrop-filter: blur(10px);
}

.hatch-card.is-now {
    border-color: rgba(52,211,153,0.55);
    box-shadow: 0 0 0 1px rgba(52,211,153,0.25), 0 6px 22px rgba(0,0,0,0.3);
}

.hatch-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hatch-card-head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
}

.hatch-now-flag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(52,211,153,0.9);
    color: #06231a;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: 2px;
}

.hatch-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.hatch-badge.imp-very-high { background: rgba(34,197,94,0.33);  border: 1px solid rgba(34,197,94,0.55); }
.hatch-badge.imp-high      { background: rgba(56,189,248,0.28); border: 1px solid rgba(56,189,248,0.5); }
.hatch-badge.imp-moderate  { background: rgba(234,179,8,0.28);  border: 1px solid rgba(234,179,8,0.5); }
.hatch-badge.imp-low       { background: rgba(148,163,184,0.25); border: 1px solid rgba(148,163,184,0.45); }

.hatch-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.7rem 0 0.4rem;
}

.hatch-tag {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(226,232,240,0.85);
    font-size: 0.78rem;
}

.hatch-line {
    margin: 0.35rem 0 0;
    color: rgba(226,232,240,0.8);
    font-size: 0.88rem;
    line-height: 1.5;
}
.hatch-line strong {
    color: rgba(226,232,240,0.62);
    font-weight: 700;
}

.hatch-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    gap: 0.75rem 1rem;
    margin: 0.9rem 0 0.2rem;
}

.hatch-cols h4 {
    margin: 0 0 0.3rem;
    color: #fff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.hatch-cols ul {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(226,232,240,0.82);
    font-size: 0.86rem;
    line-height: 1.5;
}

.hatch-notes {
    margin: 0.9rem 0 0;
    color: rgba(226,232,240,0.82);
    font-size: 0.9rem;
    line-height: 1.55;
}

.hatch-intel {
    margin: 0.6rem 0 0;
    padding: 0.6rem 0.8rem;
    border-left: 3px solid rgba(125,211,252,0.6);
    background: rgba(56,189,248,0.07);
    border-radius: 0 8px 8px 0;
    color: rgba(226,232,240,0.85);
    font-size: 0.86rem;
    line-height: 1.5;
}
.hatch-intel strong {
    color: #7dd3fc;
}

.hatch-provenance {
    margin-top: 2.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
    color: rgba(226,232,240,0.66);
    font-size: 0.85rem;
    line-height: 1.55;
}

.hatch-empty {
    padding: 1.4rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
    color: rgba(226,232,240,0.7);
    text-align: center;
}

.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;
}

@media (max-width: 600px) {
    .hatch-hero {
        padding: 3rem 1rem 2rem;
    }
    .hatch-section > h2 {
        font-size: 1.3rem;
    }
}
