* { box-sizing: border-box; }
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --border: #dbe2ea;
  --link: #1d4ed8;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --accent: #eff6ff;
  --accent-border: #bfdbfe;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.site-header {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(219,226,234,0.92);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  flex: 1 1 auto;
}
.site-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}
.logo-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.logo-mark {
  font-size: 1.35rem;
  font-weight: 800;
  color: #14315a;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.logo-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: #14315a;
  font-weight: 700;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.nav-toggle-icon {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.nav-toggle-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-50%);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  border-color: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  color: #25476f;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav a:hover {
  background: var(--accent);
  color: #163a88;
  text-decoration: none;
  transform: translateY(-1px);
}
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hero-home { margin-bottom: 18px; }
.hero h1 { margin: 4px 0 8px; font-size: 2.5rem; line-height: 1.15; }
.intro, .lede { color: var(--muted); margin: 0; font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 8px;
}
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(219,226,234,0.85);
}
.card-highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-color: var(--accent-border);
}
.card h2, .card h3 { margin-top: 0; }
.big-time {
  font-size: 2.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-clean li { margin: 0 0 8px; }
.list-clean.faq li { margin-bottom: 14px; }
.stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fcfdff;
}
.breadcrumbs {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.search-box { position: relative; }
#city-input {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
}
#city-input:focus { outline: 2px solid #bfdbfe; border-color: #2563eb; }
.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
  z-index: 20;
}
.suggestion-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #eef2f7;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #f8fafc; }
.help-text { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.pill-list, .quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #1e40af;
  font-weight: 600;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px 40px;
  color: var(--muted);
  background: #fff;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.notice {
  background: var(--accent);
  border: 1px solid var(--accent-border);
  color: #1e3a8a;
  border-radius: 12px;
  padding: 14px;
}
.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}
.info-layout.no-sidebar {
  grid-template-columns: 1fr;
}
.info-main .card:last-child,
.info-sidebar .card:last-child { margin-bottom: 0; }
.country-city-link { display: inline-block; font-weight: 700; margin-bottom: 6px; }

.tool-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tool-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tool-grid-4 {
  grid-template-columns: 1.1fr 0.9fr 1fr 1fr;
}
.tool-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: #1f3554;
}
.tool-grid input,
.tool-grid select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  color: #10233c;
}
.tool-grid input:focus,
.tool-grid select:focus {
  outline: 2px solid #bfdbfe;
  border-color: #2563eb;
}
.tool-output {
  margin-top: 14px;
  font-weight: 700;
  line-height: 1.65;
}
.calendar-summary.compact-two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .info-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { overflow-x: hidden; }
  .container { padding: 18px 12px 40px; }
  .tool-grid, .tool-grid-3 { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 20px 16px; border-radius: 20px; }
  .hero h1 { font-size: 2rem; line-height: 1.12; }
  .intro, .lede { font-size: 1rem; }
  .big-time { font-size: 1.8rem; }
  .card { padding: 18px 16px; border-radius: 18px; }
  .header-inner { gap: 10px; padding: 10px 12px; }
  .logo-block { min-width: 0; }
  .site-logo { width: 36px; height: 36px; }
  .logo-mark { font-size: 1.1rem; }
  .logo-subtitle { display: none; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.14);
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .nav.is-open { display: grid; }
  .nav a { min-width: 0; min-height: 46px; padding: 10px 14px; justify-content: flex-start; border-radius: 14px; background: #f8fbff; border: 1px solid var(--border); }
  .nav a.nav-secondary { margin-top: 6px; }
  .breadcrumbs { font-size: 0.88rem; line-height: 1.5; }
  .month-nav, .pill-list, .quick-links { gap: 8px; }
  .pill { width: 100%; text-align: center; }
}

.mini-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}
.metric {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.card-currency {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.currency-primary {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.currency-secondary {
  margin: 0;
  color: var(--muted);
}
.currency-converter {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.converter-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.converter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.converter-input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
}
.converter-swap {
  border: 1px solid var(--accent-border);
  background: var(--accent);
  color: #1e3a8a;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}
.converter-output {
  margin: 10px 0 0;
  font-weight: 700;
}
@media (max-width: 900px) {
  .page-top-grid,
  .page-top-grid.page-top-grid-trust { grid-template-columns: 1fr; }
}

.holiday-list, .holiday-calendar { display: grid; gap: 14px; }
.holiday-card { padding: 16px; border: 1px solid #dbe5f4; border-radius: 16px; background: #fff; }
.holiday-date { font-size: 14px; color: #5a6b84; margin-bottom: 6px; }
.holiday-name { font-size: 20px; font-weight: 700; color: #132238; margin-bottom: 4px; }
.holiday-type { font-size: 13px; color: #2b62d9; margin-bottom: 8px; }
.holiday-note { font-size: 15px; color: #344a63; line-height: 1.6; }
.holiday-month { padding: 16px; border: 1px solid #dbe5f4; border-radius: 16px; background: #f8fbff; }
.holiday-month h3 { margin: 0 0 10px; font-size: 18px; }
.holiday-month ul { margin: 0; padding-left: 18px; }
.holiday-month li { margin-bottom: 8px; color: #344a63; }
.holiday-tips li { margin-bottom: 10px; }
.metric { font-size: 32px; font-weight: 800; line-height: 1.2; color: #14263f; }

.page-top-grid.page-top-grid-trust {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(220px, 0.68fr);
  align-items: stretch;
}

.live-stat-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  padding-top: 24px;
}

.live-stat-card h2,
.live-stat-card .help-text,
.live-stat-card .mini-note {
  text-align: center;
}

.live-stat-card h2 {
  min-height: 58px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.2;
  margin-bottom: 6px;
}

.live-stat-card .big-time {
  font-size: clamp(2.35rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin: 8px 0 10px;
}

.live-stat-card .metric {
  font-size: clamp(2rem, 3.1vw, 2.45rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 8px 0 10px;
}

.live-stat-card .help-text {
  font-size: 1rem;
  margin-top: 0;
}

.live-stat-card .mini-note {
  font-size: 0.95rem;
  margin-top: auto;
}

@media (max-width: 720px) {
  .tool-grid, .tool-grid-3 { grid-template-columns: 1fr; }

  .page-top-grid.page-top-grid-trust { grid-template-columns: 1fr; }

  .live-stat-card {
    min-height: 0;
    padding-top: 16px;
    text-align: left;
  }

  .live-stat-card h2,
  .live-stat-card .help-text,
  .live-stat-card .mini-note {
    text-align: left;
  }

  .live-stat-card h2 {
    min-height: auto;
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .live-stat-card .big-time {
    font-size: 2rem;
    line-height: 1.02;
    word-break: break-word;
  }

  .live-stat-card .metric {
    font-size: 1.7rem;
    line-height: 1.05;
    word-break: break-word;
  }

  .data-trust-card { order: 3; }
}

.currency-live-card {
  justify-content: space-between;
}

.currency-live-card h2,
.currency-live-card .help-text,
.currency-live-card .mini-note,
.currency-live-card .currency-primary,
.currency-live-card .currency-secondary {
  text-align: center;
}

.currency-live-card .currency-primary {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 10px 0 10px;
  color: #14263f;
}

.currency-live-card .currency-secondary {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.currency-live-card .help-text[data-rate-status] {
  font-size: 0.95rem;
  margin-top: 0;
}

.currency-live-card .currency-converter {
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
}

.currency-live-card .converter-label,
.currency-live-card .converter-output {
  text-align: left;
}

.currency-live-card .converter-output {
  font-size: 1rem;
}

.section-intro {
  color: var(--muted);
  margin: -2px 0 16px;
}

.popular-city-card {
  border: 1px solid var(--accent-border);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.popular-city-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
  border-color: #9ec5ff;
}

.popular-city-card .country-city-link {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.popular-city-time {
  font-size: 2rem;
  font-weight: 800;
  color: #14263f;
  margin: 0 0 8px;
}

.popular-city-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.diff-card .big-time {
  margin-bottom: 18px;
}

.diff-details {
  display: grid;
  gap: 10px;
}

.diff-details p {
  margin: 0;
  color: #344a63;
}

.diff-details strong {
  color: #132238;
  display: inline-block;
  min-width: 160px;
}

@media (max-width: 720px) {
  .tool-grid, .tool-grid-3 { grid-template-columns: 1fr; }

  .popular-city-card .country-city-link {
    font-size: 1.25rem;
  }

  .popular-city-time {
    font-size: 1.6rem;
  }

  .diff-details strong {
    min-width: 0;
    display: block;
    margin-bottom: 2px;
  }
}


.result-header {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.result-header h2 {
  margin-bottom: 6px;
}

#result-title-link {
  color: inherit;
  text-decoration: none;
}

#result-title-link:hover {
  color: var(--link);
  text-decoration: underline;
}

#result-read-more {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .tool-grid, .tool-grid-3 { grid-template-columns: 1fr; }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-secondary {
  background: #f8fafc;
  border: 1px solid var(--accent-border);
  color: #25476f;
}

.pill-secondary:hover {
  background: var(--accent);
  text-decoration: none;
}

@media (max-width: 720px) {
  .tool-grid, .tool-grid-3 { grid-template-columns: 1fr; }

  .result-actions {
    justify-content: flex-start;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 1000;
  background: #ffffff;
  color: #14315a;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20,49,90,0.15);
}


.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-cell, .calendar-head {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  min-height: 110px;
  padding: 10px;
}
.calendar-head {
  min-height: auto;
  background: var(--accent);
  color: #1e3a8a;
  font-weight: 700;
  text-align: center;
}
.calendar-cell.is-outside {
  background: #f8fafc;
  color: var(--muted);
}
.calendar-cell.is-today {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(147,197,253,0.25) inset;
}
.calendar-date {
  font-size: 1rem;
  font-weight: 800;
  color: #132238;
  margin-bottom: 8px;
}
.calendar-week {
  font-size: 0.78rem;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 8px;
}
.calendar-notes {
  display: grid;
  gap: 6px;
}
.calendar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dbe5f4;
  color: #23405f;
  font-size: 0.82rem;
  font-weight: 600;
}
.calendar-chip.holiday { background: #fff8e6; border-color: #fde68a; color: #92400e; }
.calendar-chip.moon { background: #f3f4f6; border-color: #d1d5db; color: #374151; }
.calendar-chip.today { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.month-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.month-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.month-card h3 { margin: 0 0 8px; }
.phase-list {
  display: grid;
  gap: 10px;
}
.phase-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}
.phase-name { font-weight: 800; color: #132238; }
.phase-date { color: var(--muted); font-size: 0.95rem; }
.calendar-table td, .calendar-table th { white-space: normal; line-height: 1.55; }
.calendar-summary { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.moon-hero-stats { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.moon-stat { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.moon-stat strong { display:block; color:#132238; margin-bottom:4px; }
@media (max-width: 900px) { .month-grid, .calendar-summary, .moon-hero-stats, .calendar-summary-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .tool-grid, .tool-grid-3 { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: 1fr; }
  .calendar-head { display:none; }
  .calendar-cell { min-height: 0; }
  .month-grid, .calendar-summary, .moon-hero-stats, .calendar-summary-4 { grid-template-columns: 1fr; }
  .calendar-cell, .calendar-head { padding: 12px; border-radius: 16px; }
  .calendar-date { margin-bottom: 6px; }
  .calendar-chip { font-size: 0.8rem; }
}


.text-small { font-size: 0.98rem; color: var(--muted); }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.mini-calendar-home { overflow:hidden; }
.mini-calendar-wrap {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
}
.mini-calendar-header { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.mini-calendar-label { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #34547a; }
.mini-calendar-meta { color: var(--muted); font-size: 0.95rem; }
.mini-calendar-grid { display:grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap:8px; }
.mini-calendar-dayname { padding: 8px 0; text-align:center; font-size: 0.82rem; font-weight: 800; color:#516b8f; }
.mini-calendar-cell {
  min-height: 74px;
  padding: 10px 8px;
  border-radius: 16px;
  border: 1px solid #e5edf7;
  background: #fff;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.mini-calendar-cell.is-outside { background:#f8fafc; color:#8ba0b8; }
.mini-calendar-cell.is-today { border-color:#93c5fd; box-shadow:0 0 0 2px rgba(147,197,253,0.2) inset; }
.mini-calendar-date { font-weight: 800; color:#132238; }
.mini-calendar-weekno { font-size: 0.76rem; color:#2563eb; font-weight:700; }
.mini-calendar-note { font-size: 0.74rem; color: var(--muted); }
.calendar-summary { display:grid; gap:14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.moon-hero-stats { display:grid; gap:14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.moon-stat {
  min-height: 122px;
  padding: 18px 18px 16px;
  border: 1px solid #dbe5f4;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 30px rgba(20,49,90,0.04);
}
.moon-stat strong {
  display:block;
  margin-bottom:10px;
  font-size:0.8rem;
  font-weight:800;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:#2f5686;
}
.moon-stat .stat-value { display:block; font-size: 1.05rem; line-height: 1.3; font-weight: 800; color:#132238; }
.moon-stat .stat-subtle { display:block; margin-top:6px; color: var(--muted); font-size:0.92rem; }

.calendar-summary-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.planning-note { margin-bottom: 14px; }
.converter-tools-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.converter-tool-links { align-items: center; }
.converter-shell[id],
section[id] {
  scroll-margin-top: 92px;
}
.phase-list.compact { gap: 8px; }
.phase-list.compact .phase-card { padding: 12px 14px; }
.phase-list.compact .phase-name { font-size: 0.98rem; }
.phase-list.compact .phase-date { font-size: 0.9rem; }
@media (max-width: 900px) {
  .section-heading, .mini-calendar-header { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 720px) {
  .tool-grid, .tool-grid-3 { grid-template-columns: 1fr; }

  .mini-calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-calendar-dayname { display:none; }
  .mini-calendar-cell { min-height: 66px; }
}

.home-text-row { margin-top: 0; }
.home-text-row-primary .card { background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); }
.text-small { font-size: 0.98rem; line-height: 1.75; color: #42556f; }
.mini-calendar-grid { align-items: stretch; }
.mini-calendar-cell {
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mini-calendar-top {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}
.mini-calendar-weekno {
  font-size: 0.72rem;
  color:#2563eb;
  font-weight:800;
  line-height:1.25;
  max-width: 52px;
}
.mini-calendar-weekno.is-empty { visibility:hidden; }
.mini-calendar-tags {
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:10px;
}
.mini-calendar-tag {
  display:inline-flex;
  align-self:flex-start;
  max-width:100%;
  padding:4px 8px;
  border-radius:999px;
  font-size:0.7rem;
  font-weight:700;
  line-height:1.2;
  border:1px solid #dbe5f4;
  background:#f8fbff;
  color:#34547a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mini-calendar-tag.holiday { background:#fff8e6; border-color:#fde68a; color:#92400e; }
.mini-calendar-tag.moon { background:#f3f4f6; border-color:#d1d5db; color:#374151; }
.mini-calendar-tag.today { background:#eff6ff; border-color:#93c5fd; color:#1d4ed8; }
@media (max-width: 900px) {
  .mini-calendar-cell { min-height: 90px; }
}
@media (max-width: 720px) {
  .tool-grid, .tool-grid-3 { grid-template-columns: 1fr; }

  .mini-calendar-cell { min-height: 84px; }
  .mini-calendar-tags { gap:4px; }
  .mini-calendar-tag { font-size: 0.66rem; padding:3px 6px; }
  .mini-calendar-weekno { max-width: 48px; }
}


.tool-field > span {
  font-size: 0.92rem;
  font-weight: 800;
  color: #17365d;
}

.converter-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: #d7e5f8;
}

.converter-top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.converter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.converter-secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: #17365d;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.converter-secondary:hover,
.converter-swap:hover {
  transform: translateY(-1px);
}

.converter-result {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.converter-result-title,
.converter-result-value {
  font-size: 1.04rem;
  font-weight: 800;
  color: #12315a;
}

.converter-result-arrow,
.converter-result-meta {
  color: #31527a;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .tool-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tool-grid-4 {
    grid-template-columns: 1fr;
  }

  .converter-top,
  .converter-actions {
    align-items: stretch;
  }
}


.grid > .card,
.grid > article.card,
.grid > section.card,
.grid > div.card {
  margin-bottom: 0;
}

.offer-links-card,
.page-context-copy,
.planning-side-card,
.table-card {
  height: 100%;
}

.offer-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-links-card .section-intro,
.page-context-copy p:last-child,
.planning-side-card p:last-of-type {
  margin-bottom: 0;
}

.page-context-copy {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.planning-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.planning-detail-grid > .card {
  margin-bottom: 0;
}

.table-card {
  padding: 20px;
}

.card-tight {
  padding: 20px;
}

.table-card h2,
.planning-side-card h2 {
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe5f4;
  border-radius: 16px;
  background: #fff;
}

.table-wrap .planning-table {
  min-width: 640px;
}

.planning-table thead th {
  background: #f8fbff;
  color: #17365d;
  font-size: 0.92rem;
  font-weight: 800;
}

.planning-table th,
.planning-table td {
  padding: 14px 12px;
}

.planning-table tbody tr:nth-child(even) th,
.planning-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.planning-side-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.planning-side-card .pill-list {
  margin-top: 14px;
}

.overview-calendar-panel {
  overflow: hidden;
}

.overview-calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.overview-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.overview-calendar-button {
  border: 1px solid var(--accent-border);
  background: var(--accent);
  color: #1e3a8a;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.overview-calendar-button:hover:not(:disabled) {
  background: #dbeafe;
}

.overview-calendar-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.overview-calendar-header {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dbe5f4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.overview-calendar-meta {
  color: var(--muted);
  max-width: 440px;
}

.overview-calendar-wrap {
  overflow-x: auto;
  border: 1px solid #dbe5f4;
  border-radius: 18px;
  background: #fff;
}

.overview-calendar-table {
  min-width: 900px;
}

.overview-calendar-table th,
.overview-calendar-table td {
  padding: 0;
  border-bottom: 1px solid #e6edf7;
  border-right: 1px solid #e6edf7;
  vertical-align: top;
}

.overview-calendar-table tr > *:last-child {
  border-right: none;
}

.overview-calendar-table thead th {
  background: #f8fbff;
  color: #17365d;
  font-weight: 800;
  padding: 12px;
  text-align: center;
}

.overview-calendar-weekhead,
.overview-calendar-weekcell {
  min-width: 86px;
  white-space: nowrap;
  text-align: center;
  color: #1d4ed8;
  background: #f8fbff;
  font-weight: 800;
}

.overview-calendar-weekcell {
  padding: 12px;
}

.overview-calendar-daycell {
  min-width: 112px;
  background: #fff;
}

.overview-calendar-daycell.is-outside {
  background: #f8fafc;
}

.overview-calendar-daycell.is-today {
  box-shadow: inset 0 0 0 2px rgba(147, 197, 253, 0.28);
}

.overview-calendar-inner {
  min-height: 124px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-calendar-daynum {
  font-size: 1rem;
  font-weight: 800;
  color: #132238;
}

.overview-calendar-daycell.is-outside .overview-calendar-daynum {
  color: #8ba0b8;
}

.overview-calendar-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overview-calendar-tags .calendar-chip {
  width: 100%;
  white-space: normal;
  line-height: 1.25;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .planning-detail-grid {
    grid-template-columns: 1fr;
  }

  .overview-calendar-top,
  .overview-calendar-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-calendar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .planning-table th,
  .planning-table td {
    padding: 12px 10px;
  }

  .overview-calendar-table {
    min-width: 760px;
  }

  .overview-calendar-button {
    width: 100%;
    text-align: center;
  }

  .overview-calendar-actions {
    width: 100%;
  }

  .calendar-summary-4 {
    grid-template-columns: 1fr;
  }

  .overview-calendar-inner {
    min-height: 112px;
    padding: 10px;
  }
}

.trust-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.trust-list li {
  color: #334a64;
  line-height: 1.55;
}

.trust-metric {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.data-trust-card {
  text-align: left;
  padding-top: 22px;
}

.data-trust-card .help-text,
.data-trust-card .mini-note,
.data-trust-card .metric,
.data-trust-card h2 {
  text-align: left;
}

.data-trust-card h2 {
  justify-content: flex-start;
  min-height: 58px;
}

.data-trust-card .metric {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 6px;
}

.data-trust-card .help-text {
  font-size: 0.98rem;
}

@media (max-width: 720px) {
  .data-trust-card { padding-top: 18px; }
  .data-trust-card h2 { min-height: auto; }
  .data-trust-card .metric { font-size: 1rem; }
  .trust-list { gap: 8px; }
}

.button {
  border: 1px solid #c8d5ea;
  background: #fff;
  color: #14315a;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.button.secondary {
  background: #eff4fb;
}

@media (max-width: 720px) {
  .offer-pill-list { flex-direction: column; }
  .offer-pill-list .pill, .converter-tool-links .pill { width: 100%; }
  .table-wrap { border-radius: 14px; }
  .planning-table thead th { font-size: 0.88rem; }
  .overview-calendar-header { padding: 14px; }
  .overview-calendar-meta { max-width: none; }
  .overview-calendar-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .overview-calendar-button, .overview-calendar-actions .pill { width: 100%; margin: 0; }
  .overview-calendar-wrap { margin-top: 12px; }
  .overview-calendar-daycell { min-width: 96px; }
  .overview-calendar-inner { gap: 8px; }
  .table th, .table td { padding: 10px 8px; }
}

.footer-consent-link {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #9fb8dc;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.footer-consent-link:hover {
  color: #fff;
}

.has-consent-open {
  overflow: hidden;
}

.consent-shell[hidden] {
  display: none !important;
}

.consent-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.consent-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(100%, 560px);
  background: #fff;
  border-radius: 24px;
  border: 1px solid #d7e3f4;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
  padding: 24px;
}

.consent-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.consent-panel-header h2 {
  margin: 4px 0 0;
}

.consent-close {
  border: 0;
  background: #eff4fb;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.consent-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.consent-option {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dbe5f4;
  background: #f8fbff;
}

.consent-option strong {
  display: block;
  margin-bottom: 4px;
}

.consent-option small {
  display: block;
  color: #5a6b84;
  line-height: 1.45;
}

.consent-option input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .consent-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    padding: 20px;
  }

  .consent-actions {
    flex-direction: column;
  }

  .consent-actions .button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .converter-top { flex-direction: column; align-items: stretch; }
  .converter-actions { flex-direction: column; align-items: stretch; }
  .converter-actions > * { width: 100%; }
  .converter-result-value { font-size: 1.8rem; }
  .converter-result-meta { font-size: 0.95rem; line-height: 1.5; }
}

@media (min-width: 721px) { .nav-toggle { display: none !important; } }

.link-list {
  display: grid;
  gap: 10px;
}
.link-list li { margin: 0; }
.link-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fbff;
  font-weight: 600;
}
.link-list a:hover {
  text-decoration: none;
  background: #eef5ff;
  border-color: var(--accent-border);
}
.related-links-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.next-step-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  background: #eef5ff;
}
.next-step-card .eyebrow {
  margin-bottom: 10px;
}
.next-step-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #14315a;
}
.next-step-link:hover {
  text-decoration: none;
}
@media (max-width: 720px) {
  .link-list a { padding: 11px 12px; }
  .next-step-card { padding: 14px; }
}

.site-logo {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(20, 49, 90, 0.16);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.footer-brand-link:hover { text-decoration: none; }
.footer-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(20, 49, 90, 0.14);
  flex: 0 0 auto;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.footer-brand-text strong {
  color: #14315a;
  font-size: 1rem;
}
.footer-brand-text span {
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-brand p {
  margin: 0;
}
.inline-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.info-chip-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.info-chip-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.info-chip-card strong {
  display: block;
  font-size: 0.95rem;
  color: #14315a;
}
.info-chip-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .footer-brand { width: 100%; }
  .footer-links { gap: 10px; }
  .info-chip-grid { grid-template-columns: 1fr; }
}


.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}
.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: #334155;
  font-size: 0.95rem;
}
.editorial-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.editorial-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.editorial-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #14315a;
}
.editorial-card p:last-child,
.editorial-card ul:last-child { margin-bottom: 0; }
.step-list {
  display: grid;
  gap: 12px;
}
.step-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.step-item strong {
  display: block;
  color: #14315a;
  margin-bottom: 6px;
}
.checklist {
  padding-left: 1.1rem;
  margin: 0;
}
.checklist li + li { margin-top: 8px; }
.link-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.link-grid .pill-list { gap: 8px; }
.muted-small {
  color: var(--muted);
  font-size: 0.95rem;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #14315a;
}
.faq-item p {
  margin: 10px 0 0;
}
.note-box {
  border-left: 4px solid #2563eb;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}
.comparison-table td strong { color: #14315a; }
@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .link-grid { grid-template-columns: 1fr; }
  .page-meta { gap: 8px; }
  .page-meta span { width: 100%; justify-content: flex-start; }
}

.direct-answer-card { border-left: 5px solid #14315a; }
.direct-answer-card .eyebrow { margin-bottom: 6px; }
.direct-answer-text { font-size: clamp(1.08rem, 1vw + 0.95rem, 1.28rem); line-height: 1.55; margin: 8px 0 14px; color: #14315a; font-weight: 700; }
.ad-slot { position: relative; min-height: 280px; border: 1px solid rgba(140, 153, 174, 0.28); border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,250,252,0.78)); display: block; color: var(--muted); font-size: .92rem; margin: 28px 0; padding: 28px 18px 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,23,42,0.04); }
.ad-slot .ad-label { position: absolute; top: 9px; left: 16px; font-size: .72rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .78; }
.ad-slot ins.adsbygoogle { min-height: 250px; width: 100%; }
.ad-slot-pending::after { content: "Annonce aktiveres, når slot-id er indsat"; position: absolute; inset: 42px 18px 18px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); border: 1px dashed rgba(140,153,174,.38); border-radius: 16px; background: rgba(255,255,255,.42); pointer-events: none; }
.ad-fallback { display: block; text-align: center; color: var(--muted); }
@media (min-width: 960px) { .info-layout:not(.no-sidebar) .ad-slot[data-ad-placement="sidebar"] { position: sticky; top: 96px; } }
@media (max-width: 720px) { .ad-slot { min-height: 220px; margin: 22px 0; padding: 26px 12px 12px; border-radius: 18px; } .ad-slot ins.adsbygoogle { min-height: 190px; } .ad-slot-pending::after { inset: 40px 12px 12px; } }

.seo-copy-card { background: rgba(255,255,255,0.84); }
.seo-copy-card p { color: var(--text); }
