/* --- Typography & Badges --- */
.wn-eyebrow {
  margin-bottom: 6px;
}

.wn-eyebrow-badge {
  display: inline-block;
  background-color: #e8f0fe;
  color: #1967d2;
  font-family: "Google Sans", "Roboto", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.wn-banner-title {
  font-family: "Google Sans", "Roboto", "Helvetica Neue", "Arial", "sans-serif";
  font-size: 2.75rem; /* Impactful and well-proportioned for 1-up hero */
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #202124;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.wn-title {
  font-family: "Google Sans", "Roboto", "Helvetica Neue", "Arial", "sans-serif";
  font-size: 2.25rem; /* Clear, strong section headers */
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #202124;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.wn-banner-normal,
.wn-body {
  font-family: "Roboto", "Google Sans Text", sans-serif;
  font-size: 1.05rem;
  font-weight: 400; /* Standard body weight */
  line-height: 1.55;
  color: #3c4043;
  max-width: 70ch; /* Improves readability */
}

/* --- Hero Section & Media Framing --- */
.devsite-landing-row-hero .devsite-landing-row-item-description {
  padding-right: 32px;
  padding-block: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.devsite-landing-row-hero .devsite-landing-row-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.devsite-landing-row-hero .devsite-landing-row-item-code {
  width: 100%;
}

.devsite-landing-row-hero .devsite-landing-row-item-media figure,
.devsite-landing-row-hero .devsite-landing-row-item-media img,
.devsite-landing-row-hero .devsite-landing-row-item-media video,
.devsite-landing-row-hero .devsite-landing-row-item-video {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  height: auto;
  display: block;
  animation: fadeIn 1.2s ease-out;
}

/* Spotlight Architecture Image Framing */
.devsite-landing-row-item-media figure,
.devsite-landing-row-item-image {
  border-radius: 12px;
  overflow: hidden;
}

.devsite-landing-row-item-media img {
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8eaed;
}

/* --- Section 2: Tightened & Balanced List Spacing --- */
.devsite-landing-row-item-description-content + .devsite-landing-row-item-list {
  margin-top: 18px !important;
}

.devsite-landing-row-item-list-item:not(:last-child) {
  margin-bottom: 12px !important;
}

.devsite-landing-row-item-list-item:not(:last-child) .devsite-landing-row-item-list-item-description-content {
  margin-bottom: 0 !important;
}

.devsite-landing-row-item-list-item-content {
  display: flex;
  align-items: flex-start;
}

.devsite-landing-row-item-list-item-icon-container {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px;
  background-color: #e8f0fe !important;
  color: #1967d2 !important;
  margin-inline-end: 14px !important;
  margin-top: 2px !important;
  flex: 0 0 36px !important;
}

.devsite-landing-row-item-list-item-icon {
  font-size: 20px !important;
  width: 20px !important;
  height: 20px !important;
  line-height: 20px !important;
  color: #1967d2 !important;
}

.devsite-landing-row-item-list h4 {
  font-family: "Google Sans", "Roboto", sans-serif;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  margin: 0 0 3px !important;
  color: #202124;
}

.devsite-landing-row-item-list-item-description-content {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5f6368;
}

.devsite-landing-row-item-description .devsite-landing-row-item-buttons {
  margin-top: 20px;
}

/* --- Row 3: Modern Material 3 Interactive Cards & Responsive Grid --- */
.devsite-landing-row {
  overflow-x: clip;
}

.devsite-landing-row-3-up {
  overflow-x: clip;
}

.devsite-landing-row-3-up .devsite-landing-row-group {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.devsite-landing-row-3-up .devsite-landing-row-item {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 28px 24px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-align: left !important;
  align-items: flex-start !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.devsite-landing-row-3-up .devsite-landing-row-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #1a73e8;
}

.devsite-landing-row-3-up .devsite-landing-row-item-icon-container {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px;
  background-color: #e8f0fe !important;
  color: #1967d2 !important;
  margin-bottom: 16px;
  align-self: flex-start !important;
}

.devsite-landing-row-3-up .devsite-landing-row-item-icon {
  font-size: 24px !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
  color: #1967d2 !important;
}

.devsite-landing-row-3-up .devsite-landing-row-item h3 {
  font-family: "Google Sans", "Roboto", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #202124;
  margin: 0 0 8px 0;
  text-align: left !important;
  width: 100%;
}

.devsite-landing-row-3-up .devsite-landing-row-item-description-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5f6368;
  flex-grow: 1;
  margin-bottom: 20px;
  text-align: left !important;
  width: 100%;
}

.devsite-landing-row-3-up .devsite-landing-row-item-buttons {
  margin-top: auto;
  align-self: flex-start !important;
  text-align: left !important;
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

/* Ensure buttons in cards wrap text naturally and never poke out past borders */
.devsite-landing-row-3-up .devsite-landing-row-item-buttons .button,
.devsite-landing-row-item-buttons .button {
  white-space: normal !important;
  height: auto !important;
  min-height: 36px !important;
  line-height: 1.35 !important;
  padding: 8px 16px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  word-break: normal !important;
  text-align: left !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Arrow Micro-interactions on buttons */
.devsite-landing-row-item-buttons .button .material-icons,
.devsite-landing-row-item-buttons .button .icon-after {
  font-size: 18px !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.devsite-landing-row-3-up .devsite-landing-row-item:hover .button .material-icons,
.devsite-landing-row-item-buttons .button:hover .material-icons,
.devsite-landing-row-item-buttons .button:hover .icon-after {
  transform: translateX(4px);
}

/* Responsive adjustments for 3-up cards on tablet and mobile */
@media (max-width: 1100px) {
  .devsite-landing-row-3-up .devsite-landing-row-item {
    padding: 24px 20px !important;
  }
}

@media (max-width: 960px) {
  .devsite-landing-row-3-up .devsite-landing-row-group {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .devsite-landing-row-3-up .devsite-landing-row-item {
    padding: 24px 20px !important;
  }
  .wn-banner-title {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 600px) {
  .devsite-landing-row-3-up .devsite-landing-row-item {
    padding: 20px 16px !important;
  }
  .wn-banner-title {
    font-size: 2rem !important;
    line-height: 1.25 !important;
  }
  .wn-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
}

/* --- Row 4: CTA Polish --- */
.devsite-landing-row-cta .devsite-landing-row-inner {
  border-radius: 16px;
}

/* --- Animation Definitions --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Modern Material 3 Table Styles
   ========================================================================== */

.weathernext-table,
.weather-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: "Roboto", "Google Sans Text", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  background-color: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
}

/* Header Row */
.weathernext-table thead th,
.weather-table thead th {
  background-color: #f8f9fa;
  color: #5f6368;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 2px solid #dadce0;
  text-align: left;
  vertical-align: middle;
}

/* Body Cells & Rows */
.weathernext-table tbody td,
.weathernext-table tbody th,
.weather-table tbody td,
.weather-table tbody th {
  padding: 12px 16px;
  border-top: 1px solid #f1f3f4;
  border-bottom: 1px solid #f1f3f4;
  border-left: none;
  border-right: none;
  vertical-align: middle;
  text-align: left;
}

.weathernext-table tbody th,
.weather-table tbody th {
  background-color: #fcfdfe;
  color: #202124;
  font-weight: 600;
}

/* Row Hover Effect */
.weathernext-table tbody tr:hover,
.weather-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Domain Category Divider Row */
.weathernext-table tr.table-group-header td,
.weather-table tr.table-group-header td {
  background-color: #f1f3f4;
  color: #202124;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  letter-spacing: 0.2px;
  border-top: 2px solid #dadce0;
  border-bottom: 1px solid #dadce0;
}

/* Code styling inside tables */
.weathernext-table code,
.weather-table code {
  background-color: #e8f0fe;
  color: #1967d2;
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Unit Badge Chip */
.wn-badge-unit {
  display: inline-block;
  background-color: #e6f4ea;
  color: #137333;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Resolution Badge Chip */
.wn-badge-res {
  display: inline-block;
  background-color: #f1f3f4;
  color: #5f6368;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Timestep Badge Chip */
.wn-badge-time {
  display: inline-block;
  background-color: #e8f0fe;
  color: #1967d2;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

/* CTA Card & Button */
.wn-cta-card {
  background-color: #e8f0fe;
  border: 1px solid #c2e7ff;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.wn-cta-button {
  background-color: #1a73e8;
  color: #fff !important;
  font-weight: 500;
  font-size: 0.95em;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
  transition: background-color 0.2s ease;
}

.wn-cta-button:hover {
  background-color: #1557b0;
}

/* Eyebrow Badge */
.wn-eyebrow {
  margin-bottom: 8px;
}

.wn-eyebrow-badge {
  display: inline-block;
  background-color: #e8f0fe;
  color: #1967d2;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

/* ==========================================================================
   WeatherNext 3 Forecast Horizon & Initialization Visualizer Widget
   ========================================================================== */

.wn-widget {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 18px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header */
.wn-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eaed;
}

.wn-title-area {
  flex: 1;
  min-width: 240px;
}

.wn-widget .wn-title {
  margin: 0 0 3px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #202124;
  letter-spacing: -0.2px;
}

.wn-widget .wn-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: #5f6368;
  line-height: 1.35;
}

.wn-controls-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wn-modes {
  display: inline-flex;
  gap: 4px;
  background: #f1f3f4;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #dadce0;
}

.wn-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5f6368;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.wn-btn:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 1px;
}

.wn-btn-active.synoptic-btn {
  background: #fff;
  color: #1a73e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.wn-btn-active.interim-btn {
  background: #fff;
  color: #e37400;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.wn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-blue { background: #1a73e8; }
.dot-orange { background: #e37400; }

/* Clean Date Picker */
.wn-date-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dadce0;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.wn-date-label {
  color: #5f6368;
  font-size: 0.75rem;
  font-weight: 500;
}

.wn-date-input {
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 0.75rem;
  color: #202124;
  background: #f8f9fa;
  cursor: pointer;
}

.wn-btn-today {
  border: 1px solid #dadce0;
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: #1a73e8;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wn-btn-today:hover {
  background: #e8f0fe;
}

/* 24-Hour Grid */
.wn-init-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wn-init-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #5f6368;
}

.wn-label-strong {
  font-weight: 500;
  color: #202124;
}

.wn-badge-init {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-syn {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #c2e7ff;
}

.badge-int {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #fce8b2;
}

.wn-timeline-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
}

.wn-hour-pill {
  padding: 6px 2px;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #dadce0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.15s ease;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  touch-action: manipulation;
  user-select: none;
}

.wn-hour-pill:hover {
  border-color: #1a73e8;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wn-hour-pill:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 1px;
}

.wn-hour-pill.synoptic {
  background: #e8f0fe;
  color: #1a73e8;
  border-color: #aecbfa;
}

.wn-hour-pill.interim {
  background: #fef7e0;
  color: #b06000;
  border-color: #fce8b2;
}

.wn-hour-pill.active-syn {
  background: #1a73e8 !important;
  color: #fff !important;
  border-color: #1557b0 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(26,115,232,0.35) !important;
}

.wn-hour-pill.active-int {
  background: #e37400 !important;
  color: #fff !important;
  border-color: #b06000 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(227,116,0,0.35) !important;
}

.wn-hour-pill.dimmed {
  opacity: 0.35;
  box-shadow: none;
}

/* Init hours not available in the selected archive (e.g. 2024-2025 interim). */
.wn-hour-pill.unavailable {
  opacity: 0.2;
  cursor: not-allowed;
  box-shadow: none;
  background: #f1f3f4;
  color: #9aa0a6;
  border-color: #e8eaed;
  text-decoration: line-through;
}

.wn-hour-pill.unavailable:hover {
  border-color: #e8eaed;
  transform: none;
  box-shadow: none;
}

.wn-historical-note {
  font-size: 0.75rem;
  color: #5f6368;
  background: #f1f3f4;
  border-left: 3px solid #e37400;
  border-radius: 4px;
  padding: 6px 10px;
}

/* Main Card */
.wn-main-card {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Coverage Bar */
.wn-coverage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eaed;
}

.wn-coverage-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wn-lead-label {
  font-size: 0.82rem;
  color: #5f6368;
  font-weight: 500;
}

.wn-lead-val {
  font-size: 0.95rem;
  font-weight: 600;
}

.wn-widget .text-blue { color: #1a73e8; }
.wn-widget .text-orange { color: #e37400; }

.wn-coverage-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wn-window-label {
  font-size: 0.8rem;
  color: #5f6368;
  font-weight: 500;
}

.wn-window-capsule {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.wn-time-str {
  font-size: 0.82rem;
  font-weight: 500;
  color: #202124;
  font-variant-numeric: tabular-nums;
}

.wn-arrow {
  color: #80868b;
  font-size: 0.8rem;
}

/* Timeline Bar with 48 discrete notch ticks */
.wn-timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wn-timeline-bar-track {
  background: #e8eaed;
  border: 1px solid #dadce0;
  border-radius: 6px;
  height: 16px;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
}

.wn-ticks-grid {
  display: grid;
  grid-template-columns: repeat(48, 1fr);
  gap: 1.5px;
  height: 100%;
}

.wn-tick-seg {
  background: #dadce0;
  border-radius: 1px;
  transition: background 0.2s ease;
}

.wn-tick-seg.active-blue {
  background: #1a73e8;
}

.wn-tick-seg.active-orange {
  background: #e37400;
}

/* Dynamic Milestones */
.wn-timeline-markers {
  position: relative;
  height: 38px;
  margin-top: 4px;
}

.wn-marker {
  position: absolute;
  top: 0;
  line-height: 1.25;
  white-space: nowrap;
}

.wn-marker-step {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #202124;
}

.wn-marker-date {
  display: block;
  font-size: 0.68rem;
  color: #5f6368;
  font-variant-numeric: tabular-nums;
}

.wn-marker.m-0 { left: 0%; text-align: left; }
.wn-marker.m-1 { left: 13.333%; transform: translateX(-50%); text-align: center; }
.wn-marker.m-2 { left: 33.333%; transform: translateX(-50%); text-align: center; }
.wn-marker.m-3 { left: 66.667%; transform: translateX(-50%); text-align: center; }
.wn-marker.m-4 { left: 100%; transform: translateX(-100%); text-align: right; }

/* Collapsible 4-Week Calendar */
.wn-calendar-details {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  margin-top: 2px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.wn-calendar-details[open] {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.wn-cal-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #202124;
  cursor: pointer;
  user-select: none;
  background: #fff;
  list-style: none;
  transition: background 0.15s ease;
}

.wn-cal-summary::-webkit-details-marker {
  display: none;
}

.wn-cal-summary:hover {
  background: #f8f9fa;
}

.wn-cal-summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wn-cal-arrow {
  font-size: 1.1rem;
  line-height: 1;
  color: #5f6368;
  transition: transform 0.2s ease;
  display: inline-block;
}

.wn-calendar-details[open] .wn-cal-arrow {
  transform: rotate(90deg);
}

.wn-cal-summary-title {
  font-weight: 500;
  color: #202124;
}

.wn-cal-toggle-hint {
  font-size: 0.7rem;
  color: #1a73e8;
}

.wn-cal-range-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #5f6368;
}

.wn-calendar-body {
  padding: 8px 12px 12px 12px;
  border-top: 1px solid #e8eaed;
}

.wn-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.wn-cal-day-header {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: #5f6368;
  padding: 2px 0 4px 0;
}

.wn-cal-cell {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  min-height: 40px;
  padding: 3px 4px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.wn-cal-num {
  font-size: 0.68rem;
  font-weight: 500;
  color: #5f6368;
}

.wn-cal-num.first-of-month {
  font-weight: 700;
  color: #202124;
}

.wn-cal-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
}

.wn-cal-badge.badge-blue {
  background: #1a73e8;
  color: #fff;
}

.wn-cal-badge.badge-orange {
  background: #e37400;
  color: #fff;
}

.wn-cal-cell.in-range-syn {
  background: #e8f0fe !important;
  border-color: #c2e7ff !important;
}

.wn-cal-cell.in-range-int {
  background: #fef7e0 !important;
  border-color: #fce8b2 !important;
}

.wn-cal-cell.init-day-syn {
  border-left: 3px solid #1a73e8 !important;
}

.wn-cal-cell.init-day-int {
  border-left: 3px solid #e37400 !important;
}

.wn-cal-cell.end-day-syn {
  border-right: 3px solid #1a73e8 !important;
}

.wn-cal-cell.end-day-int {
  border-right: 3px solid #e37400 !important;
}

/* Bare Minimum Code Extract */
.wn-code-details {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  margin-top: 2px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.wn-code-details[open] {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.wn-code-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #202124;
  cursor: pointer;
  user-select: none;
  background: #fff;
  list-style: none;
  transition: background 0.15s ease;
}

.wn-code-summary::-webkit-details-marker {
  display: none;
}

.wn-code-summary:hover {
  background: #f8f9fa;
}

.wn-code-summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wn-code-arrow {
  font-size: 1.1rem;
  line-height: 1;
  color: #5f6368;
  transition: transform 0.2s ease;
  display: inline-block;
}

.wn-code-details[open] .wn-code-arrow {
  transform: rotate(90deg);
}

.wn-code-summary-title {
  font-weight: 500;
  color: #202124;
}

.wn-code-toggle-hint {
  font-size: 0.7rem;
  color: #1a73e8;
}

.wn-code-summary-var {
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 2px 6px;
  border-radius: 4px;
}

.wn-code-body {
  padding: 10px 12px 12px 12px;
  border-top: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fdfdfd;
}

.wn-code-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.wn-code-select-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wn-code-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #5f6368;
}

.wn-code-select {
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 3px 6px;
  font-family: inherit;
  font-size: 0.75rem;
  color: #202124;
  background: #fff;
  cursor: pointer;
}

.wn-code-copy-btn {
  border: 1px solid #dadce0;
  background: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: #1a73e8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wn-code-copy-btn:hover {
  background: #e8f0fe;
}

.wn-code-pre {
  margin: 0;
  background: #f8f9fa !important;
  border: 1px solid #dadce0 !important;
  color: #202124 !important;
  padding: 12px 14px;
  border-radius: 6px;
  font-family: "Roboto Mono", SFMono-Regular, Consolas, Menlo, monospace !important;
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-x: auto;
}

.wn-code-pre code {
  background: transparent !important;
  color: #202124 !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

.wn-code-pre code * {
  font-family: inherit !important;
}

.wn-kwd { color: #d93025 !important; font-weight: 600 !important; }
.wn-str { color: #137333 !important; font-weight: 500 !important; }
.wn-com { color: #5f6368 !important; font-style: italic !important; }
.wn-txt { color: #202124 !important; }
.wn-fn { color: #1a73e8 !important; }

/* Variables Section */
.wn-vars-section {
  padding-top: 10px;
  border-top: 1px solid #e8eaed;
}

.wn-vars-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5f6368;
  margin-bottom: 8px;
}

.wn-vars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.wn-var-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 10px 12px;
  transition: opacity 0.2s ease;
}

.wn-var-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.wn-var-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #202124;
}

.wn-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.wn-tag.tag-all {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.wn-tag.tag-syn {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #c2e7ff;
}

.wn-tag.tag-excluded {
  background: #f1f3f4;
  color: #5f6368;
  border: 1px solid #dadce0;
}

.wn-var-desc {
  font-size: 0.72rem;
  color: #5f6368;
  line-height: 1.35;
}

/* Footer */
.wn-card-footer {
  padding-top: 10px;
  border-top: 1px solid #e8eaed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
}

.wn-footer-text {
  color: #5f6368;
}

.wn-zarr-file {
  background: #e8f0fe;
  color: #1a73e8;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
}

/* Responsive Adjustments & Mobile Optimization */
@media (max-width: 768px) {
  .wn-timeline-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}
@media (max-width: 600px) {
  .wn-marker.m-1,
  .wn-marker.m-3 {
    display: none;
  }
}
@media (max-width: 560px) {
  .wn-widget {
    padding: 14px 16px;
  }
  .wn-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .wn-controls-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .wn-modes {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .wn-btn {
    flex: 1;
    justify-content: center;
  }
  .wn-date-picker {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }
  .wn-coverage-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .wn-coverage-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .wn-window-capsule {
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }
  .wn-cal-cell {
    min-height: 34px;
    padding: 2px;
  }
  .wn-cal-num {
    font-size: 0.6rem;
  }
  .wn-cal-badge {
    font-size: 0.5rem;
    padding: 1px 2px;
  }
  .wn-vars-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 440px) {
  .wn-timeline-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .wn-marker-date {
    font-size: 0.62rem;
  }
}