/* ============================================================
   TIME-PAGE.CSS — styles for /time/[city].html and /time/index.html
   Layers on top of the site's real styles.css. Does not modify it.
   ============================================================ */

.breadcrumb {
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 0 24px;
  font-size: 13px;
  color: rgba(241,233,216,0.4);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }

.city-page-instrument {
  width: min(320px, 70vw) !important;
}

.city-meta {
  text-align: center;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(241,233,216,0.45);
}
.city-meta b { color: var(--parchment); font-weight: 500; }

.compare-panel {
  max-width: 420px;
  margin: 32px auto 0;
  background: rgba(18,20,31,0.5);
  border: 1px solid rgba(241,233,216,0.1);
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
}
.compare-panel .compare-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241,233,216,0.4);
  margin-bottom: 6px;
}
.compare-panel .compare-time {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
}
.compare-panel .compare-diff {
  font-size: 12.5px;
  color: var(--teal);
  margin-top: 4px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.cta-link {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,162,76,0.4);
  padding-bottom: 2px;
}
.cta-link:hover { border-color: var(--brass); }

.related-cities {
  margin-top: 64px;
}
.related-cities h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241,233,216,0.55);
  margin: 0 0 20px;
  text-align: center;
}

/* Hub page (/time/index.html) */
.hub-hero {
  text-align: center;
  padding: 8px 24px 8px;
}
.hub-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 12px;
}
.hub-hero p {
  color: rgba(241,233,216,0.55);
  max-width: 56ch;
  margin: 0 auto;
}

.region-block { margin-bottom: 44px; }
.region-block h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 16px;
}
.region-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.region-links a {
  display: inline-block;
  font-size: 13.5px;
  color: rgba(241,233,216,0.75);
  text-decoration: none;
  background: rgba(241,233,216,0.06);
  border: 1px solid rgba(241,233,216,0.1);
  border-radius: 8px;
  padding: 8px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.region-links a:hover {
  border-color: var(--brass);
  color: var(--brass);
}

@media (max-width: 480px) {
  .compare-panel { margin-left: 16px; margin-right: 16px; }
}

/* Hub page reuses the site's real .lookup / .suggestions classes from
   styles.css directly. Give it real breathing room between the hero
   text above and the region list below. */
.hub-hero + .lookup {
  margin-top: 32px;
  margin-bottom: 72px;
}

/* ---- Share this time ---- */
.share-panel {
  max-width: 420px;
  margin: 24px auto 0;
  background: rgba(18,20,31,0.5);
  border: 1px solid rgba(241,233,216,0.1);
  border-radius: 10px;
  padding: 18px 20px;
}
.share-panel .panel-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241,233,216,0.4);
  margin-bottom: 12px;
  text-align: center;
}
.share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.share-row input[type="date"],
.share-row input[type="time"] {
  background: rgba(241,233,216,0.06);
  border: 1px solid rgba(241,233,216,0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--parchment);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
}
.share-row input:focus { outline: none; border-color: var(--brass); }
.share-btn {
  background: var(--brass);
  color: #1B1F3B;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.share-btn:hover { filter: brightness(1.08); }
.share-link-row {
  display: none;
  margin-top: 12px;
  gap: 8px;
}
.share-link-row.open { display: flex; }
.share-link-row input {
  flex: 1;
  background: rgba(241,233,216,0.06);
  border: 1px solid rgba(241,233,216,0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(241,233,216,0.75);
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
}
.share-copy-btn {
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--brass);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.share-copy-btn:hover { background: var(--brass); color: #1B1F3B; }

.shared-time-banner {
  max-width: 480px;
  margin: 0 auto 24px;
  background: rgba(212,162,76,0.1);
  border: 1px solid rgba(212,162,76,0.35);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
}
.shared-time-banner .stb-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.shared-time-banner .stb-time {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
}
.shared-time-banner .stb-sub {
  font-size: 12.5px;
  color: rgba(241,233,216,0.6);
  margin-top: 4px;
}
.shared-time-banner a {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--brass);
}

/* ---- Embed this clock ---- */
.embed-panel {
  max-width: 420px;
  margin: 16px auto 0;
}
.embed-panel summary {
  cursor: pointer;
  font-size: 12px;
  color: rgba(241,233,216,0.5);
  text-align: center;
  list-style: none;
}
.embed-panel summary::-webkit-details-marker { display: none; }
.embed-panel summary:hover { color: var(--brass); }
.embed-code-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.embed-code-row textarea {
  flex: 1;
  background: rgba(241,233,216,0.06);
  border: 1px solid rgba(241,233,216,0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(241,233,216,0.75);
  font-family: 'Space Grotesk', monospace;
  font-size: 10.5px;
  resize: none;
  height: 54px;
}

@media (max-width: 480px) {
  .share-panel, .shared-time-banner, .embed-panel { margin-left: 16px; margin-right: 16px; }
}
