/* City and country subpages: the live sky (engine in an iframe) on top, the place text below.
   Font: Roboto Flex served by the site (never by name). ../ is replaced by the generator. */

@font-face {
  font-family: 'Roboto Flex';
  src: url('../font/RobotoFlex-100-1000.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --bg: #0b0f17;
  --card: #121826;
  --text: #e9edf6;
  --muted: #9aa5bd;
  --rule: #243049;
  --accent: #ffd37a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto Flex', system-ui, sans-serif;
  font-weight: 350;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: color-mix(in oklab, var(--accent) 60%, transparent); text-underline-offset: 0.15em; }
a:hover { text-decoration-color: var(--accent); }

/* --- the live sky --- */
.sky {
  position: relative;
  height: 100svh;
  min-height: 420px;
  background: #000;
}
.sky iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  background: #000;
}
.over {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  pointer-events: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.92rem);
  letter-spacing: 0.04em;
}
.over a, .over button { pointer-events: auto; }
.over nav a { opacity: 0.85; }
.over nav span { opacity: 0.5; margin: 0 0.4em; }
.over h1 { font-size: inherit; font-weight: 450; margin: 0.15em 0 0; letter-spacing: 0.02em; }
.over .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.button {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.35);
  backdrop-filter: blur(8px);
  color: #fff; text-decoration: none; font: inherit; cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.button:hover { background: rgba(10, 14, 22, 0.6); border-color: #fff; }
.down {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%);   /* above the engine's footer (coordinates and credits) */
  padding: 8px 14px;
  color: #fff; text-decoration: none; font-size: 0.82rem; letter-spacing: 0.08em;
  opacity: 0.8; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.down:hover { opacity: 1; }

/* --- the text --- */
main { max-width: 72ch; margin: 0 auto; padding: 36px 24px 48px; }
.service { color: var(--muted); margin: 0 0 32px; font-size: 1.02rem; }
section { margin: 0 0 40px; }
h2 { font-weight: 450; font-size: 1.25rem; letter-spacing: 0.01em; margin: 0 0 12px; }
h2 small, .note { color: var(--muted); font-weight: 350; }
.note { font-size: 0.9rem; margin: 6px 0 0; }
dl.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px;
  margin: 0; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
}
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.live-time { font-size: 1.35rem; font-weight: 500; letter-spacing: 0.02em; }
ul.list { margin: 0; padding-inline-start: 1.2em; }
ul.list li { margin: 4px 0; }
ul.nearby { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
ul.nearby li { padding: 8px 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; }
ul.nearby small { display: block; color: var(--muted); }
.share { display: flex; gap: 12px; flex-wrap: wrap; }
.share .button { border-color: var(--rule); background: var(--card); }
.share .button:hover { border-color: var(--accent); }
#notice { color: var(--accent); font-size: 0.9rem; min-height: 1.4em; margin: 8px 0 0; }
footer { color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--rule); padding-top: 16px; }
footer p { margin: 6px 0; }

/* --- country page and index --- */
.heading { padding: 48px 24px 8px; max-width: 72ch; margin: 0 auto; }
.heading h1 { font-weight: 450; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); margin: 0 0 8px; }
table.cities { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.cities th, table.cities td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
table.cities th { color: var(--muted); font-weight: 400; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
table.cities td.num { text-align: end; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #000; }
.card .body { padding: 12px 14px 14px; }
.card .body p { margin: 4px 0; }
.card .time { font-size: 1.3rem; font-weight: 500; }
.card .time small { color: var(--muted); font-size: 0.8rem; font-weight: 350; margin-left: 6px; }

@media (max-width: 600px) {
  .over { padding: 14px 16px; flex-direction: column; }
  .over .actions { justify-content: flex-start; }
  main { padding: 28px 16px 40px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px 0; padding: 14px; }
  dl.facts dt { margin-top: 8px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- languages (10/11/2026) ---
   Roboto Flex covers Latin, Cyrillic and Greek: for CJK and Arabic the page falls back to system fonts, one stack per
   language (Latin characters and digits stay in Roboto Flex, which comes first). */
html:lang(ja) body { font-family: 'Roboto Flex', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif; }
html:lang(ko) body { font-family: 'Roboto Flex', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif; }
html:lang(zh-Hans) body { font-family: 'Roboto Flex', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
html:lang(zh-Hant) body { font-family: 'Roboto Flex', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; }
html:lang(ar) body { font-family: 'Roboto Flex', 'Geeza Pro', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif; font-weight: 400; line-height: 1.7; }
html:lang(ja) h2, html:lang(ko) h2, html:lang(zh-Hans) h2, html:lang(zh-Hant) h2 { letter-spacing: 0.04em; }
[dir="rtl"] .over nav span { display: inline-block; transform: scaleX(-1); }   /* › points in the reading direction */
nav.languages { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
nav.languages b { color: var(--text); font-weight: 500; }
