/* ==========================================================================
   Sunrise & Sunset Times — /sunrise-sunset
   All sizes in px (site base: html { font-size: 62.5% }, 1rem = 10px).
   ========================================================================== */

/* --- Hero --- */
.ss-hero {
  position: relative;
  border-radius: 80px 80px 80px 20px;
  overflow: hidden;
  margin: 10px 0 0;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 40%;
  background-color: #1a2a40;
}
.ss-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5% 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.ss-hero h1 {
  color: #fff;
  font-size: 34px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  line-height: 1.15;
}
.ss-hero h1 i { margin-right: 8px; }
.ss-hero p {
  color: rgba(255,255,255,.92);
  font-size: 19px;
  margin: 0;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .ss-hero { min-height: 340px; }
  .ss-hero h1 { font-size: 42px; }
  .ss-hero p { font-size: 21px; }
}

/* --- Island Tabs --- */
.ss-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px auto 6px;
  padding: 0 12px;
  max-width: 780px;
}
.ss-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border: 2px solid #ddd;
  border-radius: 40px;
  background: #fff;
  color: #555;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.ss-tab:hover {
  border-color: #bbb;
  color: #333;
  background: #f8f8f8;
}
.ss-tab.is-active {
  background: #c36f20;
  border-color: #c36f20;
  color: #fff;
}
.ss-tab .ss-tab-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* --- Today's Times (hero cards) --- */
.ss-today {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}
@media (min-width: 640px) {
  .ss-today { grid-template-columns: repeat(4, 1fr); }
}
.ss-today-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  padding: 22px 16px 18px;
  text-align: center;
  transition: box-shadow .2s ease;
}
.ss-today-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.ss-today-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.ss-today-icon.is-sunrise { color: #e67e22; }
.ss-today-icon.is-sunset { color: #c0392b; }
.ss-today-icon.is-golden { color: #d4a017; }
.ss-today-icon.is-daylight { color: #2a7b5b; }
.ss-today-value {
  font-size: 30px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ss-today-label {
  font-size: 14px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}
.ss-today-sub {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

/* --- Sections --- */
.ss-section {
  margin: 36px 0;
}
.ss-section h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
  line-height: 1.3;
}
.ss-section h2 i {
  margin-right: 8px;
  color: #c36f20;
}

/* --- Monthly Table --- */
.ss-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 12px;
}
.ss-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.ss-table th {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .6px;
  text-align: center;
}
.ss-table td {
  border: 1px solid #e8e8e8;
  padding: 10px 12px;
  font-size: 16px;
  color: #333;
  text-align: center;
}
.ss-table tr.is-today {
  background: #fff8f0;
  font-weight: 700;
}
.ss-table tr.is-today td {
  border-color: #e8d5c0;
}
.ss-table .ss-cell-sunrise { color: #c36f20; font-weight: 700; }
.ss-table .ss-cell-sunset { color: #c0392b; font-weight: 700; }
.ss-source {
  font-size: 13px;
  color: #999;
  margin: 8px 0 0;
}

/* --- Month navigation --- */
.ss-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 16px;
}
.ss-month-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #555;
  transition: all .2s ease;
}
.ss-month-btn:hover {
  border-color: #c36f20;
  color: #c36f20;
  background: #fff8f0;
}
.ss-month-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  min-width: 220px;
  text-align: center;
}

/* --- Daylight chart (CSS bar chart) --- */
.ss-chart {
  margin: 0 0 12px;
}
.ss-chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.ss-chart-label {
  width: 40px;
  font-size: 13px;
  font-weight: 700;
  color: #777;
  text-align: right;
  flex-shrink: 0;
}
.ss-chart-bar-wrap {
  flex: 1;
  height: 22px;
  background: #1a2a40;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.ss-chart-bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 6px;
}
.ss-chart-bar-day {
  background: linear-gradient(90deg, #f7c948 0%, #f59e0b 50%, #ea580c 100%);
}
.ss-chart-hours {
  width: 70px;
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}
.ss-chart-row.is-current .ss-chart-label { color: #c36f20; }
.ss-chart-row.is-current .ss-chart-hours { color: #c36f20; font-weight: 700; }

/* --- Golden Hour Info --- */
.ss-golden-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .ss-golden-grid { grid-template-columns: repeat(2, 1fr); }
}
.ss-golden-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fbbf24;
  border-radius: 14px;
  padding: 20px 22px;
}
.ss-golden-card h3 {
  font-size: 19px;
  color: #92400e;
  margin: 0 0 8px;
  font-weight: 700;
}
.ss-golden-card p {
  font-size: 16px;
  color: #78350f;
  margin: 0;
  line-height: 1.6;
}
.ss-golden-time {
  font-size: 24px;
  font-weight: 800;
  color: #92400e;
}

/* --- Tips grid --- */
.ss-tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .ss-tips-grid { grid-template-columns: repeat(2, 1fr); }
}
.ss-tip-card {
  background: #f0f7f4;
  border: 1px solid #d0e8db;
  border-radius: 14px;
  padding: 20px 22px;
}
.ss-tip-card h3 {
  font-size: 19px;
  color: #2a7b5b;
  margin: 0 0 8px;
  font-weight: 700;
}
.ss-tip-card p {
  font-size: 16px;
  color: #444;
  margin: 0;
  line-height: 1.6;
}

/* --- Bottom Links --- */
.ss-bottom-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 44px 0 30px;
}
@media (min-width: 560px) {
  .ss-bottom-links { grid-template-columns: repeat(2, 1fr); }
}
.ss-bottom-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fff8f0 0%, #fef3e0 100%);
  border: 1px solid #f0d8b8;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  font-size: 17px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.ss-bottom-link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.ss-bottom-link i {
  font-size: 28px;
  color: #c36f20;
  flex-shrink: 0;
}
.ss-bottom-link strong { color: #c36f20; }

/* --- Print --- */
@media print {
  .ss-tabs, .ss-month-nav button, .ss-bottom-links { display: none; }
  .ss-hero { min-height: 80px; border-radius: 0; }
}
