/* Scoped reset & base — only affects elements inside .uwc-atl */
.uwc-atl, .uwc-atl *, .uwc-atl *::before, .uwc-atl *::after { box-sizing: border-box; }
.uwc-atl { font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text-dark); background: var(--bg); border-radius: 14px; overflow: hidden; margin: 1.2em auto; }
.uwc-atl h1, .uwc-atl h2, .uwc-atl h3, .uwc-atl p, .uwc-atl ul, .uwc-atl ol, .uwc-atl table, .uwc-atl div { margin: 0; padding: 0; }
.uwc-atl table { border-collapse: collapse; }
.uwc-atl a { color: inherit; }
.uwc-atl {
    --isak-teal: #009b90;
    --isak-teal-dark: #007a71;
    --whole-school: #009b90;
    --ib-core: #2d6a8f;
    --humanities: #c0392b;
    --sciences: #27ae60;
    --languages: #8e44ad;
    --arts: #e67e22;
    --maths: #2980b9;
    --uni: #16a085;
    --co2027: #d35400;
    --break-color: #95a5a6;
    --bg: #f8fafa;
    --text-dark: #1a2e2d;
    --text-mid: #4a6060;
    --text-light: #7a9090;
    --border: #e0eded;
  }


  .uwc-atl .header {
    background: linear-gradient(135deg, #007a71 0%, #009b90 50%, #00b8aa 100%);
    padding: 28px 24px 24px; color: white; position: relative; overflow: hidden;
  }

  .uwc-atl .header::before { content: ''; position: absolute; top: -60px; right: -60px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.06); }

  .uwc-atl .header::after { content: ''; position: absolute; bottom: -40px; left: 200px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.04); }

  .uwc-atl .header-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

  .uwc-atl .school-name { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; opacity: 0.75; margin-bottom: 6px; }

  .uwc-atl .header h1 { font-size: 29px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.2; }

  .uwc-atl .header h1 span { opacity: 0.55; font-weight: 300; }

  .uwc-atl .header-sub { font-size: 14.5px; opacity: 0.7; font-weight: 300; margin-top: 5px; }


  .uwc-atl .main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }


  .uwc-atl .legend {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-bottom: 24px; padding: 12px 16px;
    background: white; border-radius: 10px; border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }

  .uwc-atl .legend-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-right: 2px; width: 100%; }

  .uwc-atl .legend-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-mid); }

  .uwc-atl .legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }


  .uwc-atl .section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

  .uwc-atl .section-header h2 { font-size: 18px; font-weight: 700; color: var(--text-dark); letter-spacing: -0.3px; white-space: nowrap; }

  .uwc-atl .section-line { flex: 1; height: 1px; background: var(--border); }


  .uwc-atl .year-overview {
    background: white; border-radius: 12px; border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 28px;
  }

  .uwc-atl .year-bar { display: flex; height: 44px; }

  .uwc-atl .year-segment { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: white; cursor: default; }

  .uwc-atl .seg-label { text-align: center; line-height: 1.3; padding: 0 2px; }

  .uwc-atl .seg-q1 { background: var(--isak-teal); flex: 2.8; }

  .uwc-atl .seg-fall { background: var(--break-color); flex: 0.55; font-size: 8px; }

  .uwc-atl .seg-q2 { background: var(--isak-teal-dark); flex: 1.8; }

  .uwc-atl .seg-winter { background: var(--break-color); flex: 0.9; font-size: 8px; }

  .uwc-atl .seg-q3 { background: #006f67; flex: 2; }

  .uwc-atl .seg-spring { background: var(--break-color); flex: 0.55; font-size: 8px; }

  .uwc-atl .seg-q4 { background: #005a53; flex: 2.5; }


  .uwc-atl .key-dates-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
  }

  .uwc-atl .key-date-cell {
    padding: 10px 12px; border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .uwc-atl .key-date-cell:nth-child(2n) { border-right: none; }

  .uwc-atl .key-date-cell:nth-last-child(-n+2) { border-bottom: none; }

  .uwc-atl .kd-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); margin-bottom: 2px; }

  .uwc-atl .kd-value { font-size: 12.5px; font-weight: 700; color: var(--text-dark); }

  .uwc-atl .kd-sub { font-size: 11px; color: var(--text-mid); margin-top: 1px; }


  .uwc-atl .milestones-list {
    background: white; border-radius: 12px; border: 1px solid var(--border);
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 28px;
    overflow-x: auto;
  }

  .uwc-atl .milestone-table { width: 100%; border-collapse: collapse; min-width: 500px; }

  .uwc-atl .milestone-table th {
    background: #f8fafa; padding: 8px 14px;
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-light); text-align: left; cursor: pointer;
    user-select: none; white-space: nowrap; border-bottom: 1px solid var(--border);
    transition: background 0.15s;
  }

  .uwc-atl .milestone-table th:hover { background: #eef5f5; color: var(--isak-teal); }

  .uwc-atl .milestone-table th.sort-asc::after { content: " "; opacity: 0.7; }

  .uwc-atl .milestone-table th.sort-desc::after { content: " "; opacity: 0.7; }

  .uwc-atl .milestone-table td { padding: 10px 14px; border-bottom: 1px solid #f0f5f5; font-size: 13.5px; color: var(--text-dark); vertical-align: middle; }

  .uwc-atl .milestone-table tr:last-child td { border-bottom: none; }

  .uwc-atl .milestone-table tr:hover td { background: #fafcfc; }

  .uwc-atl .td-date { font-weight: 700; white-space: nowrap; }

  .uwc-atl .td-quarter { font-size: 11px; font-weight: 700; color: var(--text-light); }

  .uwc-atl .m-badge {
    display: inline-flex; align-items: center; font-size: 10px; font-weight: 700;
    letter-spacing: 0.4px; text-transform: uppercase; padding: 2px 7px;
    border-radius: 20px; color: white; white-space: nowrap;
  }


  .uwc-atl .ia-columns-wrapper {
    display: flex; flex-direction: column; gap: 12px;
  }

  .uwc-atl .ia-col {
    background: white; border-radius: 12px; border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); overflow: hidden;
  }

  .uwc-atl .ia-col-header {
    padding: 10px 14px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
    text-transform: uppercase; color: white; line-height: 1.3;
  }

  .uwc-atl .ia-col-header.g1 { background: var(--languages); }

  .uwc-atl .ia-col-header.g2 { background: #6c3483; }

  .uwc-atl .ia-col-header.g3 { background: var(--humanities); }

  .uwc-atl .ia-col-header.g4 { background: var(--sciences); }

  .uwc-atl .ia-col-header.g5 { background: var(--maths); }

  .uwc-atl .ia-col-header.g6 { background: var(--arts); }

  .uwc-atl .ia-col-header.core { background: var(--ib-core); }


  .uwc-atl .ia-col-body {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .uwc-atl .ia-subject-block { }

  .uwc-atl .ia-subject-name {
    font-size: 12.5px; font-weight: 700; color: var(--text-dark);
    padding-bottom: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
  }

  .uwc-atl .ia-chip { display: flex; align-items: baseline; gap: 4px; font-size: 12.5px; margin-bottom: 2px; line-height: 1.4; }

  .uwc-atl .ia-chip-date { font-weight: 700; color: var(--text-dark); white-space: nowrap; flex-shrink: 0; }

  .uwc-atl .ia-chip-label { color: var(--text-mid); }


  .uwc-atl .footer { text-align: center; padding: 20px 16px; font-size: 12.5px; color: var(--text-light); letter-spacing: 0.5px; border-top: 1px solid var(--border); margin-top: 20px; }


  @media (min-width: 768px) {

      .uwc-atl .header { padding: 36px 60px 32px; }

      .uwc-atl .header h1 { font-size: 40.5px; }

      .uwc-atl .header-sub { font-size: 15.5px; }

      .uwc-atl .main { padding: 36px 60px 80px; }

      .uwc-atl .legend-title { width: auto; }

      .uwc-atl .key-dates-row { grid-template-columns: repeat(4, 1fr); }

      .uwc-atl .key-date-cell { border-bottom: none; }

      .uwc-atl .key-date-cell:nth-child(2n) { border-right: 1px solid var(--border); }

      .uwc-atl .key-date-cell:nth-child(4n) { border-right: none; }

      .uwc-atl .ia-columns-wrapper {
      flex-direction: row; align-items: stretch;
      background: white; border-radius: 14px; border: 1px solid var(--border);
      box-shadow: 0 2px 8px rgba(0,0,0,0.05); gap: 0;
    }

      .uwc-atl .ia-col {
      flex: 1; min-width: 130px; border-radius: 0;
      border: none; border-right: 1px solid var(--border);
      box-shadow: none;
    }

      .uwc-atl .ia-col:last-child { border-right: none; }

      .uwc-atl .ia-col-header { min-height: 48px; display: flex; align-items: center; }

      .uwc-atl .ia-col-body { display: block; padding: 8px; }

      .uwc-atl .ia-subject-name { font-size: 11px; }

      .uwc-atl .ia-chip { font-size: 10.5px; }

      .uwc-atl .section-header h2 { font-size: 21.5px; }

  }


  @media (min-width: 1024px) {

      .uwc-atl .key-dates-row { grid-template-columns: repeat(8, 1fr); }

      .uwc-atl .key-date-cell:nth-child(4n) { border-right: 1px solid var(--border); }

      .uwc-atl .key-date-cell:nth-last-child(1) { border-right: none; }

  }

/* Extra mobile polish under 420px */
@media (max-width: 420px) {
  .uwc-atl .header { padding: 22px 18px 18px; }
  .uwc-atl .header h1 { font-size: 24.5px; }
  .uwc-atl .main { padding: 16px 12px 40px; }
  .uwc-atl .year-bar { height: 38px; }
  .uwc-atl .year-segment { font-size: 9px; }
  .uwc-atl .seg-fall, .uwc-atl .seg-winter, .uwc-atl .seg-spring { font-size: 0; }
  .uwc-atl .seg-fall::after { content: 'F'; font-size: 10px; }
  .uwc-atl .seg-winter::after { content: 'W'; font-size: 10px; }
  .uwc-atl .seg-spring::after { content: 'S'; font-size: 10px; }
  .uwc-atl .milestones-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .uwc-atl .milestone-table { min-width: 460px; }
}

/* Honour site-prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .uwc-atl * { transition: none !important; animation: none !important; }
}

/* v1.2.0 — Victor's font-size adjustments (2026-05-19) */
.uwc-atl .legend-item { font-size: 16px; }
.uwc-atl .kd-label { font-size: 13px; letter-spacing: 0; text-transform: none; }
.uwc-atl .kd-value { font-size: 16px; }
.uwc-atl .seg-label { font-size: 11px; }
@media (min-width: 768px) {
  .uwc-atl .ia-chip { font-size: 12px; }
}
