@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg-body: #f5f6f8;
  --bg-white: #ffffff;
  --bg-secondary: #f8f9fb;
  --bg-tertiary: #eef1f5;
  --text-dark: #111827;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --link-blue: #2563eb;
  --link-hover: #1d4ed8;
  --accent: #3b82f6;
  --accent-blue: #3b82f6;
  --accent-light: rgba(59, 130, 246, 0.08);
  --accent-border: rgba(59, 130, 246, 0.18);
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.07);
  --shadow-focus: 0 0 0 3px rgba(59,130,246,0.15);
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  --r-full: 9999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--link-blue);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--link-hover);
}

img {
  display: inline-block;
  vertical-align: middle;
}

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  color: currentColor;
  line-height: 1;
  vertical-align: -0.12em;
  flex-shrink: 0;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heading-icon {
  color: var(--accent);
  width: 1.05em;
  height: 1.05em;
}

.badge-icon {
  width: 1em;
  height: 1em;
}

.flag-badge {
  --flag-w: 20px;
  --flag-h: 15px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--flag-w);
  height: var(--flag-h);
  min-width: var(--flag-w);
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(135deg, #f8fafc, #e5e7eb);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  vertical-align: middle;
  flex-shrink: 0;
}

.flag-badge .flag-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.flag-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1px;
  color: #374151;
  font-size: max(7px, calc(var(--flag-h) * 0.48));
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.flag-fallback::before {
  content: attr(data-label);
}

.flag-badge.has-flag .flag-fallback {
  display: none;
}

.flag-badge.is-missing .flag-image {
  display: none;
}

.flag-badge.is-missing .flag-fallback {
  display: flex;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-block:hover { text-decoration: none; }

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.logo-icon-svg {
  width: 21px;
  height: 21px;
  color: #fff;
}

.logo-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0;
  line-height: 1.15;
}

.logo-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 600;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

/* Search */
.search-block {
  flex: 1;
  max-width: 380px;
}

.search-wrapper { position: relative; }

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  max-height: min(320px, calc(100vh - 140px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-input {
  width: 100%;
  padding: 9px 38px 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s var(--ease);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
  background: #fff;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 10px;
  border-radius: var(--r-sm);
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}

.nav-menu {
  position: relative;
}

.nav-menu-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-link:hover,
.nav-menu-button[aria-expanded="true"] {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

.nav-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 236px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 360;
}

.nav-menu-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-menu-link:hover {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

.nav-menu-link .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: 0 0 auto;
}

.nav-link-icon {
  font-size: 15px;
  line-height: 1;
}

.nav-link-icon .ui-icon,
.search-icon .ui-icon {
  display: block;
}

/* Flag images in nav */
.nav-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* ============================================
   CARDS
   ============================================ */
.content-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.content-box-body {
  padding: 24px;
}

.content-box-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.content-box-header h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.content-box-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: 0;
}

.content-box-header a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.content-box-header-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-box-body-flush {
  padding: 0;
}

.content-box-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================
   HOME PAGE
   ============================================ */
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 0;
  padding: 0;
}

.home-hero-copy {
  padding: 34px 32px;
  border-right: 1px solid var(--border);
}

.home-hero-kicker {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.home-hero-title {
  max-width: 620px;
  margin: 0 0 14px;
  color: var(--text-dark);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.home-hero-text {
  max-width: 660px;
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.home-search-panel {
  position: relative;
  z-index: 60;
  max-width: 660px;
  margin: 0 0 18px;
  transition: margin-bottom 0.16s var(--ease);
}

.home-search-panel.is-search-open {
  margin-bottom: var(--search-results-space, 248px);
}

.home-search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
}

.home-search-control {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.home-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding-right: 44px;
  background: #fff;
  font-size: 15px;
}

.home-search-control .search-icon {
  right: 136px;
}

.home-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 116px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.home-search-submit:hover {
  border-color: var(--link-hover);
  background: var(--link-hover);
}

.home-search-submit .ui-icon {
  width: 16px;
  height: 16px;
}

.home-search-results {
  right: 124px;
  max-height: 240px;
}

.content-box.home-hero {
  position: relative;
  overflow: visible;
  z-index: 20;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.home-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-hero-button:hover {
  color: #fff;
  background: var(--link-hover);
  border-color: var(--link-hover);
}

.home-hero-button-secondary {
  background: var(--bg-white);
  color: var(--accent);
}

.home-hero-button-secondary:hover {
  background: var(--accent-light);
  color: var(--link-hover);
}

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-hero-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
}

.home-hero-stat-value {
  display: block;
  color: var(--text-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.home-hero-stat-label {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.home-clock-panel {
  padding: 24px;
  background: var(--bg-secondary);
}

.home-clock-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 800;
}

.home-clock-grid {
  display: grid;
  gap: 8px;
}

.home-clock-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-white);
  color: var(--text-primary);
  text-decoration: none;
}

.home-clock-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--text-primary);
}

.home-clock-flag {
  line-height: 1;
}

.home-clock-place,
.home-clock-city,
.home-clock-country {
  display: block;
  min-width: 0;
}

.home-clock-city,
.home-clock-country {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-clock-city {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
}

.home-clock-country {
  color: var(--text-muted);
  font-size: 11px;
}

.home-clock-time {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-feature-item {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border: 0.5px solid var(--border);
}

.home-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}

.home-feature-item h3 {
  margin: 0 0 4px;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 800;
}

.home-feature-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.home-link-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
}

.home-link-group {
  min-width: 0;
}

.home-link-group h3 {
  margin: 0 0 12px;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 800;
}

.home-chip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-chip {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 50px;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-white);
  color: var(--text-primary);
  text-decoration: none;
}

.home-chip:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--text-primary);
}

.home-chip-title {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-chip-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.home-compare-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 0.5px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
}

.service-card-button {
  width: 100%;
  border: 0.5px solid var(--border);
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.home-compare-card:hover {
  background: var(--accent-light);
  color: var(--text-primary);
}

.service-card-button.is-active {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.service-card-button.is-active .home-compare-icon {
  color: #b45309;
}

.home-compare-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
  color: var(--accent);
  flex-shrink: 0;
}

.home-compare-title,
.home-compare-meta {
  display: block;
}

.home-compare-title {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.home-compare-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 6px 0;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--border-strong);
  font-size: 11px;
}

/* ============================================
   CLOCK
   ============================================ */
.clock-section {
  text-align: center;
  padding: 48px 24px 40px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #fff 100%);
}

.clock-city-name {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
  margin-bottom: 6px;
}

.clock-city-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 28px;
  letter-spacing: 0;
}

.clock-time {
  font-size: 84px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.clock-date {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 24px;
}

/* Meta badges */
.clock-meta-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.clock-meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

.clock-meta-badge-date {
  max-width: 100%;
  padding-inline: 16px;
}

.clock-meta-badge-date .clock-date {
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.clock-meta-badge > span:first-child {
  transform: translateY(-0.5px);
}

/* Info row beneath clock */
.clock-info-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.clock-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.clock-info-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

.clock-info-icon .ui-icon,
.clock-status-icon .ui-icon,
.info-icon .ui-icon,
.link-card-icon .ui-icon,
.astro-card-icon .ui-icon {
  display: block;
}

.clock-info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 600;
  margin-bottom: 2px;
}

.clock-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Status row */
.clock-status-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.clock-status-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clock-status-icon { font-size: 22px; }

.clock-status-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 600;
}

.clock-status-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.city-live-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  max-width: 860px;
  margin: 20px auto 0;
}

.visitor-time-card,
.business-time-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-white);
  box-shadow: var(--shadow-xs);
  text-align: left;
}

.visitor-time-head,
.business-time-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.visitor-time-head .ui-icon,
.business-time-head .ui-icon {
  color: var(--accent);
  width: 15px;
  height: 15px;
}

.visitor-time-main,
.business-time-main {
  color: var(--text-dark);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.business-time-main {
  font-size: 22px;
  line-height: 1.15;
}

.business-time-card.is-open .business-time-main {
  color: var(--green);
}

.business-time-card.is-soon .business-time-main {
  color: var(--amber);
}

.business-time-card.is-closed .business-time-main,
.business-time-card.is-weekend .business-time-main {
  color: var(--text-dark);
}

.visitor-time-meta,
.business-time-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.visitor-time-diff,
.business-time-note {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.business-time-note {
  color: var(--text-secondary);
}

/* ============================================
   CITY TITLE
   ============================================ */
.city-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.city-title-block {
  min-width: 0;
  padding-bottom: 8px;
}

.city-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.city-page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0;
  margin: 0 0 4px;
}

.city-page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.city-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--border);
}

.city-section-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.city-section-nav a:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.city-section-nav .ui-icon {
  width: 15px;
  height: 15px;
}

.country-section-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0;
  padding: 0;
  background: var(--bg-secondary);
}

.country-section-nav a {
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
}

.country-section-nav a:last-child {
  border-right: 0;
}

.country-section-nav a:hover {
  border-color: var(--border);
  background: var(--bg-white);
  color: var(--accent);
}

.country-section-nav .ui-icon {
  width: 14px;
  height: 14px;
}

.city-services-box {
  overflow: hidden;
}

.city-services-box .content-box-header-between {
  flex-wrap: wrap;
  gap: 8px 14px;
}

.city-services-box .content-box-header h2 {
  min-width: 0;
}

.city-services-intro {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.city-services-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

#time,
#timezone,
#sun,
#sun-overview,
#sun-date,
#sun-calendar,
#sun-moon,
#sun-faq,
#moon-overview,
#moon-date,
#moon-calendar,
#moon-faq,
#moon,
#coordinates,
#compare-time,
#city-faq,
#country-overview,
#countries-filter,
#country-filter,
#country-popular,
#country-neighbors,
#country-timezones,
#country-cities,
#country-regions,
#country-facts,
#country-history,
#country-faq,
#region-overview,
#region-timezones,
#region-cities-filter,
#region-cities,
#region-faq,
#region-neighbor-regions {
  scroll-margin-top: 86px;
}

.favorite-toggle.is-active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #b45309;
}

.favorite-toggle.is-active:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

/* ============================================
   DATA TABLES
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.data-table th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 13px;
  width: 35%;
  background: transparent;
}

.data-table td {
  font-weight: 600;
  color: var(--text-dark);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}

.timezone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  padding: 0;
}

.timezone-card {
  padding: 16px 18px;
  border: 0.5px solid var(--border);
  background: #fff;
}

.timezone-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.timezone-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.timezone-meta {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.timezone-time {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timezone-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.timezone-card-foot a {
  font-weight: 700;
}

.timezone-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.timezone-example-table {
  min-width: 760px;
}

.timezone-example-table th {
  width: auto;
}

.timezone-example-table tbody th {
  white-space: nowrap;
}

.timezone-example-table td {
  color: var(--text-primary);
  font-weight: 500;
  vertical-align: top;
}

.fact-source {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  font-weight: 400;
}

.fact-source a {
  color: var(--text-secondary);
  font-weight: 500;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.fact-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 116px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.fact-card-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.fact-card-value {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fact-card-value-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fact-token {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.facts-source-summary {
  padding: 0 16px 14px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.facts-source-summary a {
  color: var(--text-secondary);
  font-weight: 600;
}

.population-source-note {
  display: block;
}

/* City Summary */
.city-summary-box,
.country-summary-box {
  overflow: hidden;
}

.city-summary-highlights,
.country-summary-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.summary-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.summary-highlight > div:last-child {
  min-width: 0;
}

.summary-highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}

.summary-highlight-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.summary-highlight-value {
  margin-top: 4px;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.summary-highlight-value a {
  font-weight: 700;
}

.summary-highlight-meta {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.city-summary-groups,
.country-summary-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: start;
  gap: 14px;
  padding: 14px;
  background: #fff;
}

.summary-group {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.summary-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.summary-group h3 .ui-icon {
  color: var(--accent);
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.summary-list > div {
  display: grid;
  grid-template-columns: minmax(104px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.summary-list > div:last-child {
  border-bottom: none;
}

.summary-list dt {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.summary-list dd {
  min-width: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.summary-list dd a {
  font-weight: 600;
}

.country-filter-box .content-box-body {
  padding: 16px 20px;
}

.country-index-filter {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
}

.country-filter-control {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
}

.country-filter-input {
  min-height: 42px;
  background: #fff;
}

.country-filter-status,
.country-filter-empty {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.country-filter-empty {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
}

.country-filter-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.country-filter-result-group {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.country-filter-result-heading {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.country-filter-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.country-filter-result:last-child {
  border-bottom: 0;
}

.country-filter-result:hover {
  background: var(--accent-light);
  text-decoration: none;
}

.country-filter-result-title {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.country-filter-result-meta {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.country-direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
}

.country-direction-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 15px 18px;
  border: 0.5px solid var(--border);
  background: #fff;
  text-decoration: none;
}

.country-direction-card:hover {
  background: var(--accent-light);
  text-decoration: none;
}

.country-direction-flag {
  flex-shrink: 0;
  margin-top: 2px;
}

.country-direction-body {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.country-direction-name {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.country-direction-meta,
.country-direction-time {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.country-direction-time {
  font-weight: 600;
}

.country-timezone-header {
  flex-wrap: wrap;
  gap: 10px 14px;
}

.country-timezone-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.country-timezone-stat {
  min-width: 0;
  padding: 15px 18px;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: #fff;
}

.country-timezone-stat-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.country-timezone-stat-value {
  margin-top: 4px;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.country-timezone-note {
  border-bottom: 1px solid var(--border);
}

.country-timezone-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.country-geo-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.country-map-embed {
  border-bottom: 1px solid var(--border);
}

.country-geo-source {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.country-region-header {
  flex-wrap: wrap;
  gap: 12px;
}

.country-region-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.country-region-sort {
  min-height: 34px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.country-region-sort:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.country-region-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.country-region-action-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.country-region-action-copy strong {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.country-region-action-copy span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.country-region-toggle {
  flex-shrink: 0;
  min-height: 38px;
  white-space: nowrap;
}

.country-region-grid .link-card {
  scroll-margin-top: 92px;
}

.country-region-grid .country-region-card-hidden {
  display: none !important;
}

.country-neighbor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0;
}

.country-neighbor-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  border: 0.5px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.country-neighbor-link:hover {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

.country-neighbor-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  min-width: 38px;
  border-radius: 5px;
  background: var(--bg-secondary);
}

.country-neighbor-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.country-neighbor-name {
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.country-neighbor-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.country-region-card-reveal {
  animation: country-region-card-reveal 1.15s var(--ease);
}

@keyframes country-region-card-reveal {
  0% {
    background: rgba(59, 130, 246, 0.16);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
  }
  100% {
    background: #fff;
    box-shadow: none;
  }
}

.country-timeline {
  display: grid;
  gap: 0;
  padding: 0;
}

.country-timeline-item {
  display: grid;
  grid-template-columns: minmax(128px, 220px) minmax(0, 1fr);
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}

.country-timeline-item:last-child {
  border-bottom: 0;
}

.country-timeline-date {
  color: #2563eb;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.country-timeline-body {
  min-width: 0;
}

.country-timeline-body h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.country-timeline-source {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.country-timeline-source a {
  color: var(--text-secondary);
  font-weight: 500;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.city-summary-note {
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.city-summary-note strong {
  color: var(--text-dark);
  font-weight: 700;
}

.info-grid-col { padding: 0; }

.info-grid-col:first-child {
  border-right: 1px solid var(--border);
}

.info-grid-col-header {
  padding: 14px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.info-row:last-child { border-bottom: none; }

.info-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  color: var(--accent);
}

.info-label {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 110px;
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.info-value a { font-weight: 600; }

/* ============================================
   LINKS GRID
   ============================================ */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 0.5px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.15s var(--ease);
  text-decoration: none;
}

.link-card:hover {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

.region-city-card {
  align-items: flex-start;
}

.link-card-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.link-card-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.iana-timezone-card .link-card-name {
  overflow-wrap: anywhere;
}

.link-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

.link-card-time-row {
  font-weight: 600;
  color: var(--text-secondary);
}

.link-card-time {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   CITY DATE TOOL / SOURCES
   ============================================ */
.date-tool-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.date-tool-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.date-tool-input {
  height: 40px;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
}

.date-tool-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.date-tool-status {
  min-height: 18px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.date-tool-box.is-loading .date-result-grid {
  opacity: 0.58;
  pointer-events: none;
}

.date-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 18px;
}

.date-quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.date-quick-link:hover,
.date-quick-link.is-active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.date-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.date-result-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  padding: 14px;
}

.date-result-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.date-result-value {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.35;
}

/* ============================================
   SECTION / PAGE TITLES
   ============================================ */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: 0;
}

.section-title-with-flag {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flag-image {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
}

.flag-image-shadow {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0;
  margin: 0 0 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s var(--ease);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-light);
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn-primary:hover {
  background: rgba(59,130,246,0.14);
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-dark);
  text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  margin-top: 40px;
}

.site-footer .container {
  padding-top: 36px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}

.footer-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-link-accent {
  color: var(--accent);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   COMPARE
   ============================================ */
.compare-section { padding: 20px 24px; }

.compare-tool-box {
  position: relative;
  z-index: 30;
  overflow: visible;
}

.compare-tool-box .compare-section,
.compare-tool-box .compare-city--search {
  overflow: visible;
}

.compare-inputs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.compare-city {
  flex: 1;
  min-width: 200px;
  padding: 18px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.compare-city-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.compare-city-tz {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.compare-badge {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.compare-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: all 0.2s var(--ease);
}

.compare-input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.compare-landing-box {
  position: relative;
  z-index: 35;
  overflow: visible;
}

.compare-landing-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.compare-landing-field {
  min-width: 0;
}

.compare-landing-badge {
  align-self: center;
  margin-top: 30px;
}

.compare-landing-results {
  max-height: 260px;
}

.compare-landing-selected {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--r-sm);
  background: var(--accent-light);
}

.compare-landing-selected strong {
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.3;
}

.compare-landing-selected span {
  color: var(--text-secondary);
  font-size: 12px;
}

.compare-landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.converter-time-fields {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(130px, 0.5fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}

.converter-time-fields .service-note {
  grid-column: 1 / -1;
  margin: 0;
}

.converter-result-note {
  padding-top: 0;
}

.time-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.time-tool-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.time-tool-form-row {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) auto;
}

.time-tool-inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: end;
  gap: 12px;
}

.time-tool-result-grid {
  margin-top: 14px;
}

.time-tool-cell-note {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.planner-work-good {
  color: #047857;
  font-weight: 800;
}

.planner-work-muted {
  color: var(--text-muted);
}

.time-tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.time-browser-tool {
  display: grid;
  gap: 16px;
}

.timer-display {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  padding: 18px;
  color: var(--text-dark);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.time-tool-laps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 24px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.time-tool-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.time-clock-board {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.time-clock-card {
  min-height: 128px;
}

.time-clock-value {
  display: block;
  margin: 8px 0 4px;
  color: var(--text-dark);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.time-code-example {
  min-height: auto;
  white-space: pre-wrap;
}

.business-holidays-input {
  min-height: 74px;
}

.time-tool-list {
  display: grid;
  gap: 8px;
}

.time-tool-list-row {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.time-tool-list-row:last-child {
  border-bottom: 0;
}

.time-tool-list-row span {
  color: var(--text-muted);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* ============================================
   CITY CLOUD
   ============================================ */
.city-cloud {
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.city-cloud-link {
  display: inline-block;
  padding: 5px 13px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: all 0.15s var(--ease);
}

.city-cloud-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

.popular-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
  padding: 18px 24px;
}

.popular-compare-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-white);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}

.popular-compare-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  text-decoration: none;
}

.popular-compare-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.popular-compare-title {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.popular-compare-flag {
  flex: 0 0 auto;
  margin-right: 8px;
}

.popular-compare-time {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.popular-compare-meta {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.popular-compare-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popular-compare-details span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

/* ============================================
   WIDGET BAR
   ============================================ */
.widget-bar {
  background: var(--accent-light);
  border-top: 1px solid var(--border);
  padding: 11px 24px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.widget-bar:hover {
  background: rgba(59,130,246,0.1);
}

/* ============================================
   ALPHABET NAV
   ============================================ */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
}

.alphabet-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all 0.15s var(--ease);
  text-decoration: none;
}

.alphabet-nav a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.countries-popular {
  margin-bottom: 24px;
}

.countries-popular-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* ============================================
   SEO TEXT
   ============================================ */
.seo-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.seo-text p { margin-bottom: 12px; }
.seo-text p:last-child { margin-bottom: 0; }
.seo-text strong { color: var(--text-dark); font-weight: 600; }

/* ============================================
   SEARCH DROPDOWN
   ============================================ */
.search-result-item:hover {
  background: var(--bg-secondary) !important;
}
.search-result-item:last-child {
  border-bottom: none !important;
}

.search-result-item {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.search-result-name {
  font-weight: 600;
  color: var(--text-dark);
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.stats-intro {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.letter-group {
  margin-bottom: 28px;
}

.letter-heading {
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.clock-info-row-spaced {
  margin-top: 30px;
}

.link-accent {
  color: var(--accent);
  font-weight: 600;
}

.compare-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.compare-search-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.compare-search-item:last-child {
  border-bottom: none;
}

.compare-search-item:hover {
  background: var(--bg-secondary);
}

.compare-search-name {
  font-weight: 600;
  color: var(--text-dark);
}

.compare-search-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.compare-city--search {
  position: relative;
  z-index: 40;
}

.compare-helper-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.city-title-wrap {
  padding-bottom: 0;
}

.daylight-widget {
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.daylight-scale-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.daylight-progress-bar {
  position: relative;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.daylight-segment {
  position: absolute;
  top: 0;
  height: 100%;
}

.daylight-segment-night {
  background: #1e293b;
}

.daylight-segment-day {
  background: linear-gradient(90deg, #fcd34d 0%, #f59e0b 50%, #f97316 100%);
}

.daylight-indicator {
  position: absolute;
  top: 0;
  left: 0%;
  height: 100%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  z-index: 10;
  transition: left 0.5s ease;
}

.daylight-indicator-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.daylight-markers {
  position: relative;
  height: 20px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.daylight-marker {
  position: absolute;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.daylight-marker-icon {
  color: var(--amber);
  width: 13px;
  height: 13px;
}

.map-embed {
  width: 100%;
  height: 350px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.map-embed-frame {
  border: 0;
}

.map-embed-lazy {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.78)),
    repeating-linear-gradient(45deg, var(--bg-secondary) 0, var(--bg-secondary) 12px, #fff 12px, #fff 24px);
}

.map-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.map-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}

.map-placeholder-title {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.map-placeholder-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px 18px;
  background: var(--bg-secondary);
}

.map-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.map-actions a:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.seo-heading {
  margin-bottom: 12px;
  font-size: 18px;
}

.table-scroll {
  overflow-x: auto;
  padding: 0 10px;
}

.table-note {
  margin: -4px 20px 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sun-table {
  width: 100%;
  min-width: 400px;
  margin-bottom: 16px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.sun-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.moon-table {
  min-width: 640px;
}

.city-sun-table {
  min-width: 960px;
}

.sun-table-head {
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
}

.sun-table th {
  padding: 12px 8px;
  font-weight: 500;
}

.sun-table-row {
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}

.sun-table-row.is-today {
  background: rgba(59, 130, 246, 0.06);
}

.sun-table-row td {
  padding: 12px 8px;
}

.table-date-main {
  display: inline-block;
  margin-right: 8px;
}

.table-today-badge,
.moon-phase-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.moon-phase-pill {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
}

.table-metric {
  display: grid;
  gap: 6px;
  max-width: 210px;
  min-width: 150px;
}

.table-meter {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: var(--r-full);
  background: var(--bg-tertiary);
}

.table-meter span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
}

.table-meter-sun span {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.table-meter-moon span {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.sun-table-sunrise {
  color: #f59e0b;
  font-weight: 500;
}

.sun-table-sunset {
  color: #f97316;
  font-weight: 500;
}

.sun-table-moonrise {
  color: #4f46e5;
  font-weight: 500;
}

.sun-table-moonset {
  color: #7c3aed;
  font-weight: 500;
}

.sun-table-empty {
  color: var(--text-muted);
  font-weight: 500;
}

.astro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px;
}

.astro-card {
  background: var(--bg-secondary);
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.astro-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.astro-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-white);
  box-shadow: var(--shadow-xs);
  font-size: 24px;
}

.astro-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.astro-card-date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.astro-card-desc {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.astro-card-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-block {
  padding: 20px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.faq-answer {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

.compare-city-flag {
  margin-right: 8px;
}

.compare-city-time {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
}

.compare-page-hero {
  text-align: center;
}

.compare-page-title {
  font-size: 26px;
}

.compare-page-subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}

.compare-planner-verdict {
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
}

.compare-planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.compare-planner-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
}

.compare-planner-item-strong {
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.compare-planner-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.compare-planner-value {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.compare-planner-value-second {
  margin-top: 10px;
}

.compare-planner-meta {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.compare-planner-note {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.compare-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.compare-setting-field {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.compare-setting-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compare-setting-field input,
.compare-setting-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-white);
  color: var(--text-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.compare-setting-field input:focus,
.compare-setting-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.compare-best {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.compare-best-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.compare-best-header h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 15px;
}

.compare-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--r-sm);
  background: var(--accent-light);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.compare-copy-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.compare-best-list {
  display: grid;
  gap: 10px;
}

.compare-best-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: var(--r-sm);
  background: rgba(16, 185, 129, 0.07);
}

.compare-best-rank {
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.compare-best-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-best-times strong {
  display: block;
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.compare-best-times span {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.compare-best-empty {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
}

.compare-copy-status {
  min-height: 18px;
  margin-top: 8px;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.compare-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.compare-column-card {
  flex: 1;
  min-width: min(100%, 250px);
}

.compare-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.compare-card-title {
  margin: 0;
  font-size: 22px;
}

.compare-card-link {
  color: inherit;
  text-decoration: none;
}

.compare-card-subtitle {
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-muted);
}

.compare-card-clock {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.compare-card-meta {
  margin-top: 16px;
}

.compare-card-status {
  margin-top: 16px;
}

.compare-block-spacing {
  margin-top: 16px;
}

.compare-summary-scroll {
  padding: 0;
}

.compare-summary-table {
  min-width: 680px;
}

.compare-summary-table thead th {
  color: var(--text-dark);
  font-weight: 800;
  background: var(--bg-secondary);
}

.compare-summary-table tbody th {
  color: var(--text-muted);
  font-weight: 600;
}

.compare-summary-table td {
  vertical-align: top;
}

.compare-time-note {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.compare-time-list {
  display: grid;
  gap: 8px;
}

.compare-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-white);
}

.compare-time-row-head {
  padding: 0 12px 4px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.compare-time-row.is-good {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.07);
}

.compare-time-row.is-partial {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.06);
}

.compare-time-cell {
  min-width: 0;
}

.compare-time-clock {
  display: block;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.compare-time-date {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
}

.compare-time-status-cell {
  text-align: right;
}

.compare-time-status {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.compare-time-status.is-good {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.compare-time-status.is-partial {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.compare-time-status.is-muted {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.city-cloud-link-fixed {
  font-size: 14px;
}

.disambiguation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px;
}

.choice-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}

.choice-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.choice-card-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.choice-card-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.choice-card-action {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.world-now-card .link-card-time {
  font-variant-numeric: tabular-nums;
}

.world-now-relative {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.world-now-relative-col {
  min-width: 0;
}

.world-now-relative-col + .world-now-relative-col {
  border-left: 1px solid var(--border);
}

.world-now-relative-col h3 {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 800;
}

.world-now-empty {
  padding: 14px 18px;
  color: var(--text-secondary);
  font-size: 13px;
}

.technical-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}

.technical-time-card {
  min-width: 0;
  padding: 18px;
  border: 0.5px solid var(--border);
  background: #fff;
}

.technical-time-label {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.technical-time-value {
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.technical-example-table {
  min-width: 720px;
}

.technical-example-table code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-dark);
  font-size: 13px;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}

.stat-card {
  min-width: 0;
  padding: 18px;
  border: 0.5px solid var(--border);
  background: #fff;
}

.stat-number {
  color: var(--text-dark);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
/* ============================================
   SERVICE PAGES
   ============================================ */
.service-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 24px;
  flex-shrink: 0;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 16px;
}

.service-form {
  display: grid;
  gap: 12px;
}

.service-label {
  display: block;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 800;
}

.service-search-wrap {
  position: relative;
}

.service-search-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  text-align: left;
  font-family: inherit;
}

.service-search-item:last-child {
  border-bottom: 0;
}

.service-select,
.code-output {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.service-select {
  min-height: 40px;
  padding: 8px 12px;
}

.code-output {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

.service-select:focus,
.code-output:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.service-note {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.service-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 20px;
  text-align: center;
}

.service-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 26px;
}

.service-empty h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 800;
}

.service-empty p {
  max-width: 460px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.service-loading {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  text-align: center;
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.favorite-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
}

.favorite-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.favorite-card-title-wrap {
  min-width: 0;
}

.favorite-card-title {
  display: block;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-card-meta,
.favorite-card-foot {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.favorite-card-time {
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.favorite-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.favorite-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.favorite-remove:hover {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: var(--red);
}

.widget-selected {
  padding: 14px;
  border: 1px solid var(--accent-border);
  border-radius: var(--r-sm);
  background: var(--accent-light);
}

.widget-selected-title {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.widget-selected-meta {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
}

.widget-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-secondary);
}

.widget-preview iframe {
  width: 260px;
  height: 120px;
  max-width: 100%;
  border: 0;
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sync-panel {
  display: grid;
  gap: 16px;
}

.sync-button {
  justify-self: start;
}

.sync-status {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.sync-status.is-ok {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
}

.sync-status.is-error {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.sync-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sync-result-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
}

.sync-result-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.sync-result-card strong {
  display: block;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }

  .logo-block { order: 1; }
  
  .nav-links {
    order: 2;
    gap: 0;
    margin-left: auto;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 12px;
  }

  .nav-link-text { display: none; }

  .nav-link-icon { font-size: 18px; }

  .search-block {
    order: 3;
    max-width: 100%;
    width: 100%;
    flex-basis: 100%;
  }

  .container { padding: 0 16px; }

  .content-box { 
    border-radius: var(--r-md); 
    margin-bottom: 12px;
  }

  .content-box-body { padding: 16px; }
  .content-box-header { padding: 14px 16px; }

  .city-title-row {
    flex-direction: column;
    gap: 12px;
  }

  .city-title-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .city-section-nav {
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 -16px;
    padding: 0 16px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .city-section-nav a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .city-services-intro {
    padding: 12px 16px;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-hero {
    align-items: flex-start;
  }

  .sync-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-now-relative {
    grid-template-columns: 1fr;
  }

  .world-now-relative-col + .world-now-relative-col {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .technical-time-value {
    font-size: 19px;
  }

  .main-content {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .home-hero-copy {
    padding: 24px 18px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .home-hero-title {
    font-size: 26px;
  }

  .home-hero-text {
    font-size: 14px;
  }

  .home-search-submit {
    min-height: 42px;
    min-width: 104px;
  }

  .home-search-results {
    right: 0;
  }

  .home-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-clock-panel {
    padding: 18px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-item {
    padding: 16px;
  }

  .home-link-groups {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .home-chip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clock-section { padding: 32px 16px 28px; }

  .clock-time {
    font-size: 56px;
    letter-spacing: 0;
  }

  .clock-city-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .clock-meta-row {
    gap: 6px;
  }

  .clock-meta-badge {
    font-size: 12px;
    padding: 5px 10px;
  }

  .city-live-cards {
    margin-top: 16px;
  }

  .visitor-time-card,
  .business-time-card {
    padding: 13px 14px;
  }

  .visitor-time-main {
    font-size: 26px;
  }

  .business-time-main {
    font-size: 20px;
  }

  .clock-info-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
  }

  .clock-info-item {
    width: 100%;
    max-width: 280px;
  }

  .clock-status-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    margin-top: 18px;
  }

  .city-summary-highlights,
  .country-summary-highlights,
  .city-summary-groups,
  .country-summary-groups,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .summary-highlight,
  .summary-group {
    padding: 14px 16px;
  }

  .summary-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 0;
  }

  .country-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-section-nav a {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .country-section-nav a:nth-child(2n),
  .country-section-nav a:last-child {
    border-right: 0;
  }

  .country-filter-box .content-box-body {
    padding: 14px 16px;
  }

  .country-filter-control {
    grid-template-columns: 1fr;
  }

  .country-region-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .country-region-toggle {
    justify-content: center;
    width: 100%;
  }

  .country-timezone-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .country-timeline-item {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px 16px;
  }

  .info-grid-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .info-row { padding: 11px 16px; }
  .info-label { min-width: 90px; font-size: 12px; }

  .links-grid { grid-template-columns: 1fr; }

  .link-card { padding: 12px 16px; }

  .map-placeholder {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 14px;
  }

  .map-placeholder .btn {
    width: 100%;
    justify-content: center;
  }

  .compare-inputs { flex-direction: column; }
  .compare-landing-inputs {
    grid-template-columns: 1fr;
  }
  .compare-badge { transform: rotate(90deg); }
  .compare-landing-badge {
    justify-self: center;
    margin-top: 0;
  }
  .compare-landing-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .converter-time-fields {
    grid-template-columns: 1fr;
  }

  .converter-time-fields .btn {
    width: 100%;
    justify-content: center;
  }

  .time-tool-form-row,
  .time-tool-copy-row {
    grid-template-columns: 1fr;
  }

  .timer-display {
    font-size: 32px;
  }

  .compare-columns {
    flex-direction: column;
  }

  .compare-planner-box .content-box-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .compare-planner-verdict {
    text-align: left;
  }

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

  .compare-copy-button {
    width: 100%;
  }

  .compare-best-card,
  .compare-best-times {
    grid-template-columns: 1fr;
  }

  .compare-time-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-time-row-head {
    display: none;
  }

  .compare-time-status-cell {
    grid-column: 1 / -1;
    text-align: left;
  }

  .astro-grid,
  .disambiguation-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .data-table th,
  .data-table td {
    padding: 12px 16px;
    font-size: 13px;
  }

  .data-table th { width: 40%; }

  .city-page-title { font-size: 20px; }
  .city-cloud { padding: 14px 16px; }
  .popular-compare-grid {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .alphabet-nav {
    gap: 3px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .alphabet-nav a {
    width: 30px;
    height: 30px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .compare-page-title {
    font-size: 22px;
  }

  .compare-card-title {
    font-size: 20px;
  }

  .daylight-widget {
    margin-top: 24px;
  }
}

/* ============================================
   RESPONSIVE — PHONE
   ============================================ */
@media (max-width: 480px) {
  .home-hero-actions {
    flex-direction: column;
  }

  .city-title-actions .btn {
    flex: 1 1 140px;
    justify-content: center;
  }

  .city-section-nav a {
    max-width: 170px;
  }

  .city-section-nav .ui-icon {
    width: 14px;
    height: 14px;
  }

  .sync-result-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-button {
    width: 100%;
  }

  .home-chip-list {
    grid-template-columns: 1fr;
  }

  .home-clock-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-clock-time {
    grid-column: 2;
    justify-self: start;
    font-size: 16px;
  }

  .clock-time {
    font-size: 48px;
    letter-spacing: 0;
  }

  .clock-meta-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .visitor-time-main {
    font-size: 24px;
  }

  .clock-meta-badge-date {
    padding: 7px 14px;
  }

  .link-card {
    padding: 11px 14px;
    gap: 10px;
  }

  .link-card-name { font-size: 13px; }
  .link-card-meta { font-size: 11px; }

  .content-box-header h2 { font-size: 14px; }

  .footer-nav {
    grid-template-columns: 1fr;
  }

}
