/* ==========================================================================
   base.css — Unified baseline + section title accents + shared helpers
   Drop into css/base.css (loaded AFTER vendor CSS — see index head snippet)
   ========================================================================== */

/* Basic page reset & body baseline */
* { box-sizing: border-box; }
html,body { height: 100%; margin: 0; padding: 0; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body {
  font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: #102820;
  background: #fafbf9;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

/* Layout containers used across the site */
.container { max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Generic card baseline for tools 
.card, .tool, .currency-card, .timezone-card, .date-card {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 28px rgba(11,25,40,0.04);
  padding: 16px;
  position: relative;
} */

/* Small utility */
.small { font-size: 0.92rem; }

/* Unified section title baseline (applies to cards) */
#date-calculator-section.tool-date-diff .section-title,
.currency-card .section-title,
.timezone-card .section-title,
.tz-page .section-title,
.date-card .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px 0;
}

/* Unified icon badge - same size / rounded micro-card across cards 
#date-calculator-section.tool-date-diff .section-title i,
.currency-card .section-title i,
.timezone-card .section-title i,
.tz-page .section-title i,
.date-card .section-title i {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  font-size: 1.05rem;
  flex: 0 0 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}*/

/* Per-card tint for badges (keeps each tool recognisable) */
#date-calculator-section.tool-date-diff .section-title i { background: linear-gradient(180deg, rgba(11,99,243,0.12), rgba(11,99,243,0.05)); color: #0647b8; }
.currency-card .section-title i { background: linear-gradient(180deg, rgba(66,182,168,0.10), rgba(255,255,255,0.02)); color: #2A9D8F; }
.timezone-card .section-title i, .tz-page .section-title i { background: linear-gradient(180deg, rgba(108,168,154,0.11), rgba(255,255,255,0.6)); color: #4E8A73; }

/* Subtitle / lead styling shared across tools */
#date-calculator-section.tool-date-diff .lead,
#date-calculator-section.tool-date-diff .text-muted,
.currency-card .lead,
.currency-card .text-muted,
.timezone-card .lead,
.timezone-card .text-muted,
.tz-page .lead,
.tz-page .text-muted,
.date-card .lead,
.date-card .text-muted {
  color: inherit;
  opacity: 0.72;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 700;
}

/* Accent top stroke for cards — uses per-card variables; each card should define its own vars 
.timezone-card::before,
.tz-page::before,
.currency-card::before,
#date-calculator-section.tool-date-diff::before,
.date-card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  height: 6px;
  border-radius: 6px;
  opacity: 0.98;
  z-index: 6;
  pointer-events: none;
} */

/* Make sure title sits under stroke */
.timezone-card, .tz-page, .currency-card, #date-calculator-section.tool-date-diff, .date-card {
  position: relative;
  padding: calc(16px);
}
.timezone-card .section-title, .tz-page .section-title, .currency-card .section-title, #date-calculator-section.tool-date-diff .section-title, .date-card .section-title {
  margin-top: 6px;
  z-index: 8;
  position: relative;
}

/* Accessibility focus helper (shared) */
:focus-visible { outline: none; box-shadow: 0 0 0 6px rgba(0,0,0,0.06); border-radius: 6px; }

/* Small responsive helpers */
@media (max-width: 720px) {
  #date-calculator-section.tool-date-diff .section-title,
  .currency-card .section-title,
  .timezone-card .section-title,
  .tz-page .section-title,
  .date-card .section-title {
    font-size: 1rem;
    gap: 10px;
  }
  .timezone-card::before,
  .tz-page::before,
  .currency-card::before,
  #date-calculator-section.tool-date-diff::before,
  .date-card::before {
    left: 10px; right: 10px; top: 10px; height: 5px;
  }
}

/* Helpful dev class: hide elements for narrow view */
.hidden { display: none !important; }


/* === Global layout alignment fix === */
body {
  margin: 0;
}

.site-header,
.site-footer {
  width: 100%;
}

main.container {
  max-width: 1140px;
}

@media print {
  html, body {
    height: auto !important;
  }
}
