
    :root {
      --bg: #f8fafc;
      --surface: #ffffff;
      --muted: #f1f5f9;
      --text: #1e293b; /* Softer slate-800 */
      --subtle: #64748b;
      --border: #e2e8f0;
      --primary: #059669;
      --accent: #0ea5e9;
      --today-start: #10b981;
      --today-end: #059669;
      --holiday: #f43f5e; /* Brighter rose-500 */
      --radius: 0.75rem;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--bg);
      color: var(--text);
    }

    .calendar-grid {
      grid-template-rows: repeat(6, minmax(0, 1fr));
    }
    
    .calendar-cell {
      position: relative;
      padding-top: 100%; /* square aspect ratio */
    }
    
    .calendar-cell-content {
      position: absolute;
      inset: 0;
      transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding: 0.25rem;
      overflow: hidden;
    }
    
    .calendar-cell-content:hover {
      transform: scale(1.05); /* Modern scale effect on hover */
      box-shadow: 0 10px 20px rgba(30, 41, 59, 0.1);
      z-index: 10;
    }

    .custom-select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
      background-position: right 0.5rem center;
      background-repeat: no-repeat;
      background-size: 1.5em 1.5em;
      padding-right: 2.5rem;
    }
    
    .geez-numeral {
      font-family: 'Noto Serif Ethiopic', serif;
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); /* More defined shadow */
      line-height: 1;
    }

    /* UPDATED weekday style */
    .weekday-am { 
      font-family: 'Noto Serif Ethiopic', serif;
      font-size: 13px; 
      line-height: 1; 
      font-weight: 600; 
      color: #334155; 
    }
    .weekday-en { 
      font-size: 10px; 
      line-height: 1; 
      opacity: 0.8; 
    }

    .date-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex: 1;
      width: 100%;
      min-height: 0;
    }

    /* Mobile optimizations */
    @media (max-width: 640px) {
      .calendar-grid { gap: 2px !important; }
      .calendar-cell { padding-top: 90% !important; }
      .calendar-cell-content { padding: 0.125rem !important; border-radius: 0.5rem !important; }
      .weekday-am { font-size: 12px; }
      .weekday-en { font-size: 9px; }
      
      .ethiopic-date {
        font-size: 16px !important;
        font-weight: 700;
        line-height: 1;
        margin-bottom: 2px;
      }
      
      .gregorian-date {
        font-size: 10px !important;
        font-weight: 600;
        line-height: 1;
        opacity: 0.8;
      }
      
      .holiday-names { display: none !important; }
    }

    /* Tablet and desktop styles */
    @media (min-width: 641px) {
      .calendar-cell { padding-top: 100% !important; }

      .ethiopic-date {
        font-size: 26px;
        font-weight: 500; /* Lighter for elegance */
        line-height: 1;
        margin-bottom: 3px;
        color: #334155; /* Rich slate color */
      }
      
      .gregorian-date {
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
        opacity: 0.6;
        margin-bottom: 3px;
      }

      .holiday-names {
        position: absolute;
        bottom: 5px;
        left: 6px;
        right: 6px;
        font-size: 10px;
        line-height: 1.1;
        text-align: left;
        color: var(--holiday);
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .holiday-names .holiday-am { display: block; }
      .holiday-names .holiday-en { display: none; }
    }

    /* Large desktop */
    @media (min-width: 1024px) {
      .ethiopic-date { font-size: 28px; margin-bottom: 4px; }
      .gregorian-date { font-size: 12px; margin-bottom: 4px; }
      #calendar-container { padding: 14px !important; }
      .holiday-names { font-size: 11px; }
    }

    #calendar-container .controls { gap: .5rem; }
    @media (max-width: 640px) {
      #calendar-container .controls { display: flex; flex-wrap: wrap; }
      #calendar-container .controls .stack-on-mobile { flex-basis: 100%; width: 100%; }
      #calendar-container .controls select { font-size: 14px !important; padding-top: 6px !important; padding-bottom: 6px !important; }
    }

    .holiday-cell {
      background-color: #fff1f2;
      border-color: #fecdd3;
    }
    .holiday-cell .ethiopic-date,
    .holiday-cell .gregorian-date {
      color: var(--holiday) !important; /* Important to override base color */
      font-weight: 700;
    }

    .today-cell {
      background: linear-gradient(135deg, var(--today-start), var(--today-end)) !important;
      color: white !important;
      box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
      transform: scale(1.05);
    }
    
    .today-cell .ethiopic-date,
    .today-cell .gregorian-date {
      color: white !important;
      text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
    
    .today-cell .holiday-names { color: white !important; }

    #holiday-toast {
      position:fixed;
      left:50%;
      bottom:16px;
      transform:translateX(-50%) translateY(8px);
      background:#1e293b;
      color:#fff;
      font-size:.875rem;
      padding:.5rem 1rem;
      border-radius:.5rem;
      box-shadow:0 6px 20px rgba(0,0,0,.18);
      opacity:0;
      pointer-events:none;
      transition:opacity .2s ease, transform .2s ease;
      z-index:60;
      max-width: 90%;
      text-align: center;
    }
    #holiday-toast.show {
      opacity:1;
      transform:translateX(-50%) translateY(0);
    }
    
    .content-section h2 {
      font-size: 1.75rem;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 1rem;
      border-bottom: 2px solid var(--primary);
      padding-bottom: 0.5rem;
    }
    
    .content-section h3 {
      font-size: 1.25rem;
      font-weight: 600;
      color: #334155;
      margin-top: 1.5rem;
      margin-bottom: 0.75rem;
    }
    
    .content-section p {
      line-height: 1.6;
      margin-bottom: 1rem;
      color: #475569;
    }

    .content-section ul {
      list-style-type: disc;
      padding-left: 1.5rem;
      margin-bottom: 1rem;
      color: #475569;
    }
    
    .content-section li {
      margin-bottom: 0.5rem;
    }

    .content-section strong {
      color: var(--text);
      font-weight: 600;
    }

    img.center {
  display: block;
  margin: 20px auto;   /* auto left/right centers it */
  max-width: 20%;
  height: auto;
}

    /* Table Styles */
    .holiday-table {
      width: 100%;
      border-collapse: collapse;
      overflow: hidden;
    }
    .holiday-table th, .holiday-table td {
      padding: 12px 16px;
      text-align: left;
    }
    .holiday-table thead {
      background-color: #f1f5f9;
      color: #334155;
      font-size: 0.875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .holiday-table tbody tr {
      border-bottom: 1px solid var(--border);
    }
    .holiday-table tbody tr:last-child {
      border-bottom: none;
    }
    .holiday-table tbody tr:nth-child(even) {
      background-color: #fcfcfd;
    }
    .holiday-table .holiday-name-am {
      font-family: 'Noto Serif Ethiopic', serif;
      font-size: 1.1rem;
    }
    .holiday-table .holiday-name-en {
      font-size: 0.875rem;
      color: var(--subtle);
    }
    .holiday-table .date-ethiopian {
      font-weight: 500;
    }
    .holiday-table .date-gregorian {
      font-size: 0.9rem;
      color: var(--subtle);
    }
    .holiday-table .movable-tag {
      display: inline-block;
      background-color: #eef2ff;
      color: #4338ca;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 600;
    }
