/* sky-and-astronomy-event-tracker styles */

:root {
  --saet-primary: #1565c0;
  --saet-primary-hover: #0d47a1;
  --saet-bg-card: #ffffff;
  --saet-border: #cfd8dc;
  --saet-text: #1a237e;
  --saet-muted: #546e7a;
  --saet-radius: 8px;
  --saet-meteor: #e65100;
  --saet-moon: #4527a0;
  --saet-planet: #00695c;
  --saet-season: #c2185b;
}

.saet-main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.saet-wrap {
  width: 100%;
}

.saet-panel {
  background: var(--saet-bg-card);
  border: 1px solid var(--saet-border);
  border-radius: var(--saet-radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.saet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 40rem) {
  .saet-grid {
    grid-template-columns: 1fr;
  }
}

.saet-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.saet-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--saet-text);
}

.saet-select,
.saet-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--saet-border);
  border-radius: var(--saet-radius);
  background: var(--saet-bg-card);
  color: var(--saet-text);
  font-size: 0.9375rem;
  box-sizing: border-box;
}

.saet-select:focus,
.saet-input:focus {
  outline: 2px solid var(--saet-primary);
  outline-offset: 1px;
}

.saet-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.875rem 1.5rem;
  background: var(--saet-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--saet-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.saet-btn:hover {
  background: var(--saet-primary-hover);
}

.saet-results {
  margin-top: 1.75rem;
}

.saet-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 44rem) {
  .saet-summary-row {
    grid-template-columns: 1fr;
  }
}

.saet-kpi {
  background: var(--saet-bg-card);
  border: 1px solid var(--saet-border);
  border-radius: var(--saet-radius);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.saet-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--saet-muted);
  margin-bottom: 0.25rem;
}

.saet-kpi-val {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--saet-text);
  line-height: 1.2;
}

.saet-kpi-sub {
  font-size: 0.8125rem;
  color: var(--saet-muted);
  margin-top: 0.25rem;
}

.saet-events-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--saet-border);
  padding-bottom: 0.5rem;
}

.saet-events-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--saet-text);
  margin: 0;
}

.saet-events-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--saet-muted);
}

.saet-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saet-card {
  background: var(--saet-bg-card);
  border: 1px solid var(--saet-border);
  border-radius: var(--saet-radius);
  padding: 1.25rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.saet-card:hover {
  border-color: var(--saet-primary);
}

.saet-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.saet-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.saet-tag-meteor {
  background: rgba(230, 81, 0, 0.12);
  color: var(--saet-meteor);
}

.saet-tag-moon {
  background: rgba(69, 39, 160, 0.12);
  color: var(--saet-moon);
}

.saet-tag-planet {
  background: rgba(0, 105, 92, 0.12);
  color: var(--saet-planet);
}

.saet-tag-season {
  background: rgba(194, 24, 91, 0.12);
  color: var(--saet-season);
}

.saet-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--saet-muted);
}

.saet-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--saet-text);
  margin: 0 0 0.5rem;
}

.saet-card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--saet-muted);
  margin: 0 0 0.75rem;
}

.saet-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--saet-text);
  border-top: 1px dashed var(--saet-border);
  padding-top: 0.625rem;
}

/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --saet-primary: #81abda;
  --saet-primary-hover: #7199d6;
  --saet-bg-card: var(--tf-surface);
  --saet-border: var(--tf-rule);
  --saet-text: #606ad1;
  --saet-muted: var(--tf-ink-soft);
  --saet-meteor: #daa081;
  --saet-moon: #9781da;
  --saet-planet: #59cfc0;
  --saet-season: #da81a4;
}
