/* ═══════════════════════════════════════════════════════════════
   WASHNet KP — Coordination Calendar
   Aesthetic: Editorial timeline — confident, institutional, warm
   Fonts: Libre Baskerville (display) + DM Sans (body) + JetBrains Mono (data)
═══════════════════════════════════════════════════════════════ */

:root {
    --navy:         #0c2d48;
    --navy-mid:     #1a4a6e;
    --teal:         #0891b2;
    --teal-light:   #e0f7fb;
    --teal-mid:     #7dd3e8;
    --cream:        #faf7f2;
    --cream-dark:   #f0ebe1;
    --ink:          #1a1a2e;
    --text:         #2d3748;
    --text-mid:     #4a5568;
    --text-dim:     #718096;
    --border:       #e2e8f0;
    --border-mid:   #cbd5e1;
    --white:        #ffffff;
  
    /* Status colors */
    --c-upcoming:   #0891b2;
    --c-soon:       #d97706;
    --c-past:       #94a3b8;
  
    --sans:   'DM Sans', system-ui, sans-serif;
    --serif:  'Libre Baskerville', Georgia, serif;
    --mono:   'JetBrains Mono', monospace;
  
    --r:      8px;
    --r-lg:   14px;
    --r-xl:   20px;
  
    --spine-x: 100px; /* left offset of the timeline spine */
  }
  
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  .cal-page {
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    min-height: 100vh;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     HERO
  ═══════════════════════════════════════════════════════════════ */
  .cal-hero {
    z-index: 1;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding: 80px 40px 70px;
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 40px;
  }
  
  .cal-hero-inner { position: relative; z-index: 2; }
  
  .cal-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-mid);
    margin-bottom: 20px;
  }
  
  .cal-eyebrow-line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--teal);
  }
  
  .cal-hero-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
  }
  
  .cal-hero-title em {
    color: var(--teal-mid);
    font-style: italic;
  }
  
  .cal-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 36px;
  }
  
  /* Stats row */
  .cal-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .cal-hero-stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
  }
  
  .cal-hero-stat-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-mid);
  }
  
  .cal-hero-stat-div {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
  }
  
  /* Decorative elements */
  .cal-hero-deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  
  .cal-deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(8,145,178,0.2);
  }
  
  .cal-deco-circle.c1 {
    width: 420px; height: 420px;
    right: -80px; top: -100px;
    background: radial-gradient(circle at 40% 40%, rgba(8,145,178,0.08), transparent 70%);
  }
  
  .cal-deco-circle.c2 {
    width: 240px; height: 240px;
    right: 60px; bottom: -60px;
    border-color: rgba(8,145,178,0.12);
  }
  
  .cal-deco-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     TOOLBAR
  ═══════════════════════════════════════════════════════════════ */
  .cal-toolbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  }
  
  .cal-toolbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  
  /* Search */
  .cal-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
  }
  
  .cal-search-icon {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--text-dim);
    pointer-events: none;
  }
  
  .cal-search {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text);
    background: var(--cream);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
  }
  
  .cal-search:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
  }
  
  .cal-search::placeholder { color: var(--text-dim); }
  
  /* Filters */
  .cal-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .cal-filter-wrap { position: relative; }
  
  .cal-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 7px 28px 7px 11px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 8px center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    white-space: nowrap;
  }
  
  .cal-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
  }
  
  /* View toggle */
  .cal-view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-left: auto;
    flex-shrink: 0;
  }
  
  .cal-view-btn {
    width: 34px; height: 34px;
    background: var(--white);
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
  }
  
  .cal-view-btn svg { width: 15px; height: 15px; }
  .cal-view-btn + .cal-view-btn { border-left: 1px solid var(--border); }
  .cal-view-btn.active { background: var(--navy); color: var(--white); }
  .cal-view-btn:not(.active):hover { background: var(--cream); color: var(--text); }
  
  .cal-result-count {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .cal-result-count strong { color: var(--text); }
  
  /* ═══════════════════════════════════════════════════════════════
     BODY
  ═══════════════════════════════════════════════════════════════ */
  .cal-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px 80px;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     MONTH GROUP
  ═══════════════════════════════════════════════════════════════ */
  .cal-month-group {
    margin-bottom: 12px;
  }
  
  .cal-month-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-left: calc(var(--spine-x) + 28px);
  }
  
  .cal-month-label span {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    position: relative;
  }
  
  .cal-month-label span::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
    transform: scaleX(0.4);
    transform-origin: left;
    opacity: 0.5;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     EVENT ROW (timeline layout)
  ═══════════════════════════════════════════════════════════════ */
  .cal-event {
    display: flex;
    /* grid-template-columns: var(--spine-x) 28px 1fr; */
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    animation: eventFadeIn 0.4s ease both;
  }
  
  @keyframes eventFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* Stagger animations */
  .cal-event:nth-child(1)  { animation-delay: 0.04s; }
  .cal-event:nth-child(2)  { animation-delay: 0.08s; }
  .cal-event:nth-child(3)  { animation-delay: 0.12s; }
  .cal-event:nth-child(4)  { animation-delay: 0.16s; }
  .cal-event:nth-child(5)  { animation-delay: 0.20s; }
  .cal-event:nth-child(6)  { animation-delay: 0.24s; }
  .cal-event:nth-child(7)  { animation-delay: 0.28s; }
  .cal-event:nth-child(8)  { animation-delay: 0.32s; }
  
  /* Date column */
  .cal-event-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 0;
    position: relative;
  }
  
  /* Date block */
  .cal-date-block {
    text-align: center;
    padding: 8px 10px;
    border-radius: var(--r);
    width: 62px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    flex-shrink: 0;
  }
  
  .cal-event:hover .cal-date-block {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  .cal-date-block.status-upcoming { border-color: rgba(8,145,178,0.3); }
  .cal-date-block.status-soon     { border-color: rgba(217,119,6,0.4); background: #fffbeb; }
  .cal-date-block.status-past     { opacity: 0.6; }
  
  .cal-date-day {
    display: block;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: var(--navy);
  }
  
  .cal-date-block.status-upcoming .cal-date-day { color: var(--teal); }
  .cal-date-block.status-soon     .cal-date-day { color: var(--c-soon); }
  
  .cal-date-mon {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 2px;
  }
  
  .cal-date-year {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    opacity: 0.7;
    margin-top: 1px;
  }
  
  /* Spine dot (col 2) */
  .cal-spine-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--border-mid);
    border: 2px solid var(--white);
    margin: 14px 8px 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 2px var(--border-mid);
    transition: transform 0.2s;
  }
  
  .cal-event:hover .cal-spine-dot { transform: scale(1.3); }
  
  .cal-spine-dot.status-upcoming {
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.2);
  }
  
  .cal-spine-dot.status-soon {
    background: var(--c-soon);
    box-shadow: 0 0 0 3px rgba(217,119,6,0.2);
    animation: pulseDot 1.5s ease-in-out infinite;
  }
  
  .cal-spine-dot.status-past {
    background: var(--c-past);
    box-shadow: 0 0 0 2px rgba(148,163,184,0.2);
  }
  
  @keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(217,119,6,0.2); }
    50%       { box-shadow: 0 0 0 7px rgba(217,119,6,0.08); }
  }
  
  /* Vertical spine line drawn via pseudo-element on the group */
  .cal-month-group .cal-event:not(:last-child) .cal-event-date::after {
    content: '';
    position: absolute;
    left: calc(100% - 6px + 8px);   /* align with dot center */
    top: 38px;
    bottom: -24px;
    width: 1px;
    background: var(--border);
    z-index: 1;
  }
  
  /* Event card (col 3) */
  .cal-event-card {
    min-width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 22px 16px;
    margin-left: 0;
    transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
    position: relative;
    overflow: hidden;
  }
  
  .cal-event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--border-mid);
    border-radius: 3px 0 0 3px;
    transition: background 0.2s;
  }
  
  .cal-event[data-status="upcoming"] .cal-event-card::before { background: var(--teal); }
  .cal-event[data-status="soon"]     .cal-event-card::before { background: var(--c-soon); }
  .cal-event[data-status="past"]     .cal-event-card::before { background: var(--c-past); }
  
  .cal-event:hover .cal-event-card {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    border-color: var(--border-mid);
    transform: translateX(3px);
  }
  
  .cal-event[data-status="past"] .cal-event-card {
    background: #fafafa;
  }
  
  /* Card top row */
  .cal-event-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .cal-event-meta { display: flex; gap: 6px; flex-wrap: wrap; }
  
  /* Badges */
  .cal-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .cal-badge.upcoming { background: var(--teal-light); color: var(--teal); border: 1px solid rgba(8,145,178,0.2); }
  .cal-badge.soon     { background: #fffbeb; color: var(--c-soon); border: 1px solid rgba(217,119,6,0.25); }
  .cal-badge.past     { background: #f1f5f9; color: var(--text-dim); border: 1px solid var(--border); }
  .cal-badge.type     { background: #f0f4ff; color: #4f46e5; border: 1px solid rgba(79,70,229,0.2); }
  
  /* Document button */
  .cal-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 5px 10px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
  }
  
  .cal-doc-btn svg { width: 13px; height: 13px; }
  .cal-doc-btn:hover { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }
  
  /* Title */
  .cal-event-title {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
  }
  
  .cal-event[data-status="past"] .cal-event-title { color: var(--text-mid); }
  
  .cal-event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
  }
  
  .cal-event-title a:hover { color: var(--teal); }
  
  /* Excerpt */
  .cal-event-excerpt {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 12px;
  }
  
  /* Footer details */
  .cal-event-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  
  .cal-event-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-dim);
  }
  
  .cal-event-detail svg { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.7; }
  
  .cal-event-full-date {
    font-family: var(--mono);
    font-size: 11px;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     GRID VIEW
  ═══════════════════════════════════════════════════════════════ */
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
  }
  
  .cal-grid-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
    animation: eventFadeIn 0.35s ease both;
  }
  
  .cal-grid-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
  }
  
  .cal-grid-card[data-status="upcoming"]::before { background: var(--teal); }
  .cal-grid-card[data-status="soon"]::before     { background: var(--c-soon); }
  .cal-grid-card[data-status="past"]::before     { background: var(--c-past); }
  
  .cal-grid-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
  }
  
  .cal-grid-date {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
  }
  
  .cal-grid-card[data-status="soon"]  .cal-grid-date { color: var(--c-soon); }
  .cal-grid-card[data-status="past"]  .cal-grid-date { color: var(--text-dim); }
  
  .cal-grid-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 10px;
  }
  
  .cal-grid-title a { color: inherit; text-decoration: none; }
  .cal-grid-title a:hover { color: var(--teal); }
  
  .cal-grid-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  
  .cal-grid-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-dim);
  }
  
  .cal-grid-detail svg { width: 11px; height: 11px; flex-shrink: 0; }
  
  .cal-grid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     EMPTY / NO-RESULTS
  ═══════════════════════════════════════════════════════════════ */
  .cal-empty, .cal-no-results {
    text-align: center;
    padding: 80px 20px;
  }
  
  .cal-empty-icon { font-size: 48px; margin-bottom: 16px; }
  
  .cal-empty h3, .cal-no-results h3 {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 8px;
  }
  
  .cal-empty p, .cal-no-results p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 20px;
  }
  
  .cal-clear-btn {
    padding: 9px 20px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
  }
  
  .cal-clear-btn:hover { background: var(--navy-mid); }
  
  /* ═══════════════════════════════════════════════════════════════
     CTA SECTION
  ═══════════════════════════════════════════════════════════════ */
  .cal-cta {
    background: var(--navy);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .cal-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
  }
  
  .cal-cta-inner { position: relative; z-index: 1; }
  
  .cal-cta h2 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }
  
  .cal-cta p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.6;
  }
  
  .cal-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .cal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 24px;
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s;
  }
  
  .cal-cta-btn.primary {
    background: var(--teal);
    color: var(--white);
  }
  
  .cal-cta-btn.primary:hover { background: #0aa8cc; }
  
  .cal-cta-btn.outline {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.2);
  }
  
  .cal-cta-btn.outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
  }
  
  /* ═══════════════════════════════════════════════════════════════
     HIDDEN / FILTER STATES
  ═══════════════════════════════════════════════════════════════ */
  .cal-event.hidden,
  .cal-grid-card.hidden,
  .cal-month-group.all-hidden { display: none !important; }
  
  /* ═══════════════════════════════════════════════════════════════
     RESPONSIVE
  ═══════════════════════════════════════════════════════════════ */
  @media (max-width: 900px) {
    .cal-hero {
      grid-template-columns: 1fr;
      padding: 60px 24px 50px;
    }
  
    .cal-hero-deco { display: none; }
  
    .cal-toolbar-inner,
    .cal-body { padding-left: 24px; padding-right: 24px; }
  
    :root { --spine-x: 70px; }
  
    .cal-date-block { width: 52px; }
    .cal-date-day { font-size: 22px; }
  }
  
  @media (max-width: 600px) {
    :root { --spine-x: 0px; }
  
    .cal-event {
      grid-template-columns: 0 0 1fr;
    }
  
    .cal-event-date {
      display: none;
    }
  
    .cal-month-label { padding-left: 0; }
  
    .cal-toolbar-inner {
      flex-wrap: wrap;
      gap: 10px;
    }
  
    .cal-search-wrap { max-width: 100%; flex: 1 1 100%; }
  
    .cal-event-title { font-size: 15px; }
  
    .cal-cta { padding: 48px 24px; }
  }






  