/* World Clock guide. All fonts and images are local. */
:root {
  color-scheme: light dark;
  --page: #f8f8f5;
  --surface: #fff;
  --ink: #172d39;
  --muted: #4f6370;
  --rule: #cdd7da;
  --accent: #0d5974;
  --wash: #eaf2f3;
  --tip: #f2efdf;
  --warn: #fae9e4;
  --hero: #102e3d;
  --hero-ink: #f8f5e9;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #121c21;
    --surface: #19262d;
    --ink: #edf3f1;
    --muted: #acbfc6;
    --rule: #364952;
    --accent: #8ad6e7;
    --wash: #21363d;
    --tip: #383424;
    --warn: #402b28;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
:target { scroll-margin-top: 1rem; }
p { margin: .7em 0 1em; }
h1, h2, h3 { line-height: 1.17; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { margin: .25em 0; font-size: clamp(2.5rem, 5vw, 3.7rem); letter-spacing: -.035em; }
h2 { margin: 1.6em 0 .45em; font-size: clamp(1.65rem, 3.4vw, 2.15rem); letter-spacing: -.025em; }
h3 { margin: 1.65em 0 .45em; font-size: 1.2rem; }
.skip { position: absolute; inset-inline-start: -200vw; }
.skip:focus { inset-inline-start: 1rem; top: .5rem; padding: .5rem 1rem; background: var(--surface); z-index: 5; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.bar, main, .site-footer > div {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}
.bar { display: flex; align-items: center; gap: 1.8rem; min-height: 4.4rem; position: relative; }
.brand, .top-links a, .menu summary { color: var(--ink); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; margin-inline-end: auto; font-weight: 700; }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: .48rem; }
.top-links, .site-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.top-links a, .menu summary { font-size: .93rem; font-weight: 600; }
.top-links a { padding-block: .65rem; }
.top-links a:hover, .menu summary:hover { text-decoration: underline; }
.menu summary, .chapter-links summary { cursor: pointer; }
.menu summary { border: 1px solid var(--rule); border-radius: .45rem; padding: .55rem .85rem; }
.menu-grid {
  position: absolute; z-index: 2; inset: 100% 0 auto auto; width: min(100%, 56rem);
  max-height: 72vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--rule);
  border-radius: .7rem; box-shadow: 0 .8rem 2.2rem #061b2526; padding: 1.3rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1.2rem 2rem;
}
.menu-grid h2 { font: 700 .87rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 0 0 .3rem; color: var(--muted); }
.menu-grid ul, .chapter-links ul, .toc, .feature-list { list-style: none; margin: 0; padding: 0; }
.menu-grid a { display: block; font-size: .95rem; padding-block: .22rem; }
.menu-grid a[aria-current] { font-weight: 700; color: var(--ink); }

/* The globe is the Europe/Africa view used in the app. */
.guide-intro {
  display: grid; grid-template-columns: 1.35fr .8fr; align-items: center;
  column-gap: clamp(1.5rem, 5vw, 4.5rem);
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(1rem, 2.8vw, 2.1rem); border-radius: 1.1rem;
  padding: clamp(2rem, 4.5vw, 3.8rem); background: var(--hero); color: var(--hero-ink);
}
.platforms { margin: 0 0 .7rem; font-size: .9rem; font-weight: 600; color: #b6d4d8; }
.guide-intro h1 { font-size: clamp(3.1rem, 5.9vw, 5.5rem); line-height: 1.02; margin: 0 0 .23em; }
.intro-copy { max-width: 37rem; font-size: clamp(1.03rem, 1.8vw, 1.25rem); color: #dfebed; }
.intro-links { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.4rem; margin-top: 1.5rem; }
.intro-links a { color: var(--hero-ink); font-size: .98rem; font-weight: 650; padding-block: .5rem; }
.intro-links a:first-child { background: var(--hero-ink); color: var(--hero); border-radius: .4rem; padding: .6rem 1.15rem; text-decoration: none; }
.intro-links a:first-child:hover { background: #d5eded; }
.intro-links a:first-child:focus-visible { outline-color: var(--hero-ink); }
.intro-globe { position: relative; width: 100%; max-width: 18rem; justify-self: center; }
.intro-globe::before, .intro-globe::after {
  content: ""; position: absolute; z-index: -1; inset: -7%; border-radius: 50%; border: 1px solid #a0cfda45;
}
.intro-globe::after { inset: -18%; border-color: #a0cfda24; }
.intro-globe img { display: block; width: 100%; height: auto; }
.guide-topics { padding-block: .75rem 3.25rem; }
.guide-topics h3 { margin: 1.5rem 0 .7rem; font-size: 1.08rem; }
.task-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 0 2rem; }
.task-links li { border-bottom: 1px solid var(--rule); }
.task-links a { display: block; padding: .7rem 0; font-weight: 600; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: .75rem;
}
.card {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); border-radius: .65rem; background: var(--surface); padding: 1rem 1.15rem;
}
.card:hover, .pager a:hover { border-color: var(--accent); background: var(--wash); }
.card strong { display: block; color: var(--accent); line-height: 1.35; padding-right: 1.1rem; }
.card::after { content: "›"; position: absolute; top: .8rem; right: 1rem; color: var(--accent); font-size: 1.25rem; }
.card span { display: block; margin-top: .35rem; font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* Chapters */
.article-wrap { max-width: 49rem; margin: 0 auto; padding-block: clamp(1.6rem, 4vw, 3.4rem) 3.5rem; overflow-wrap: break-word; }
.breadcrumb, .related, .back-link { font-size: .94rem; }
.breadcrumb { color: var(--muted); margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: clamp(1.13rem, 2vw, 1.32rem); line-height: 1.55; }
.article-wrap > h2 { border-top: 1px solid var(--rule); padding-top: .85em; }
.chapter-links { margin-block: 1.2rem; border-block: 1px solid var(--rule); }
.chapter-links summary { padding: .65rem .2rem; font-size: 1rem; font-weight: 650; color: var(--accent); }
.chapter-links ul, .toc { columns: 2 14rem; padding-block: .3rem .8rem; column-gap: 1.8rem; }
.chapter-links li, .toc li { break-inside: avoid; font-size: .95rem; padding-block: .18rem; }
.where, .box { padding: .85rem 1.1rem; margin: 1.2rem 0; border-radius: .4rem; }
.where, .box.note { background: var(--wash); }
.where strong, .box .label { display: block; font-weight: 700; font-size: .9rem; }
.where strong { color: var(--muted); }
.where .path { font-size: 1rem; }
.box { background: var(--tip); border-left: 3px solid #a18532; }
.box.note { border-left-color: var(--accent); }
.box.warn { border-left-color: #bb6042; background: var(--warn); }
.box p { margin: .25rem 0 0; }
ol.steps { padding-left: 1.8rem; }
ol.steps li { padding: 0 0 .4rem .3rem; }
ol.steps li::marker { font-weight: 750; color: var(--accent); }

.shots { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.1rem; margin: 1.5rem 0; }
figure { margin: 0; flex: 0 1 14rem; max-width: 100%; }
figure a, figure img { display: block; border-radius: 1rem; }
figure img { width: 100%; height: auto; border: 1px solid var(--rule); }
figcaption { margin-top: .6rem; font-size: .91rem; color: var(--muted); line-height: 1.45; }
.widget-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 13rem); align-items: start; gap: 1.5rem; }
.widget-setup figure { width: min(100%, 13rem); }
.game-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem); gap: 1.25rem; align-items: start; }
.game-intro p { margin-top: 0; }
.widget-previews { margin: 1.5rem 0; }
.widget-wide, .widget-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
}
.widget-small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-top: 1.5rem; }
.widget-previews figure { min-width: 0; }
.widget-previews img { border-radius: 1.4rem; }
.widget-small a { max-width: 11.5rem; }
.widget-previews figcaption b:first-child { color: var(--ink); }
@media (max-width: 29rem) {
  .widget-setup { grid-template-columns: 1fr; gap: .5rem; }
  .widget-setup figure { justify-self: center; }
  .game-intro { grid-template-columns: 1fr; gap: 0; }
  .game-intro figure { width: min(100%, 18rem); justify-self: center; }
  .widget-small { grid-template-columns: 1fr; }
  .widget-small figure { display: grid; grid-template-columns: 44% 1fr; align-items: center; gap: .85rem; }
  .widget-small figcaption { margin: 0; }
}

.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--rule); border-radius: .55rem; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .98rem; }
th, td { text-align: start; vertical-align: top; padding: .67rem .85rem; border-bottom: 1px solid var(--rule); }
th { background: var(--wash); font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
.feature-list li { border-bottom: 1px solid var(--rule); }
.feature-list a { display: block; text-decoration: none; padding: .75rem 0; }
.feature-list a:hover b { text-decoration: underline; }
.feature-list b, .feature-list span { display: block; }
.feature-list span { color: var(--muted); font-size: .98rem; }
.feature-search { padding: 1rem; border-radius: .55rem; background: var(--wash); margin-block: 1.3rem; }
.feature-search label { display: block; font-weight: 650; margin-bottom: .4rem; }
.search-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-row input, .search-row button { color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: .4rem; padding: .55rem .7rem; font: inherit; }
.search-row input { flex: 1 1 12rem; min-width: 0; }
.search-row button { color: var(--accent); cursor: pointer; }
.search-count { margin: .5rem 0 0; }
.search-count:empty { margin: 0; }
.index-topics[hidden] ~ .feature-group .back-link { display: none; }
.back-link { display: inline-block; padding: .7rem 0; }
.related { margin: 2.4rem 0 0; }
.related strong { margin-right: .4rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2rem; }
.pager a { padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: .55rem; text-decoration: none; font-weight: 650; }
.pager small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.pager .next { text-align: right; grid-column: 2; }
.site-footer { border-top: 1px solid var(--rule); background: var(--surface); }
.site-footer > div { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.25rem; font-size: .9rem; }
.site-footer p { margin: 0 auto 0 0; color: var(--muted); }
kbd { background: var(--surface); border: 1px solid var(--rule); border-radius: .25rem; padding: 0 .3rem; font: inherit; white-space: nowrap; }

@media (max-width: 42rem) {
  .bar, main, .site-footer > div { width: calc(100% - 2rem); }
  .bar { min-height: 3.8rem; gap: .7rem; }
  .top-links .start-link, .index-detail { display: none; }
  .top-links a { display: inline-block; }
  .menu-grid { max-height: 65vh; padding: 1rem; }
  .guide-intro { grid-template-columns: 1fr auto; gap: 0 1rem; padding: 1.5rem; }
  .guide-intro > div:first-child { display: contents; }
  .guide-intro h1 { grid-column: 1; font-size: clamp(2.45rem, 9.3vw, 3.6rem); }
  .intro-globe { grid-column: 2; grid-row: 1 / 3; width: clamp(3rem, 15vw, 6rem); }
  .intro-copy, .intro-links { grid-column: 1 / -1; }
  .intro-links { margin-top: .3rem; gap: .4rem 1rem; }
  .guide-topics { padding-top: 0; }
  .shots { gap: .8rem; }
  .shots figure { flex-basis: min(100%, 14rem); }
  .shots:has(figure:nth-of-type(2)) figure { flex-basis: calc(50% - .4rem); }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .table-wrap:has(.stack) { border: 0; border-radius: 0; }
  .stack { background: transparent; }
  .stack thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .stack, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack tr { margin-bottom: .7rem; padding: .6rem .8rem; background: var(--surface); border: 1px solid var(--rule); border-radius: .55rem; }
  .stack td { border: 0; padding: .2rem 0; }
  .stack td::before { content: attr(data-label); display: block; color: var(--muted); font-weight: 650; font-size: .82rem; }
}

/* Keep the download action within the first viewport at every width. */
.download-header, .intro-links .download-primary {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 44px; text-align: center; line-height: 1.25; text-decoration: none;
}
.download-header {
  border-radius: .55rem; padding: .65rem 1rem; background: var(--ink);
  color: var(--surface); font-weight: 700; font-size: .95rem;
}
.download-header:hover { background: var(--accent); }
.download-header:focus-visible { outline-color: var(--ink); }
.intro-links .download-primary:first-child {
  min-height: 52px; padding: .8rem 1.4rem; background: #c2f4e4;
  color: #102e3d; font-size: 1.12rem; border-radius: .55rem;
}
.intro-links .download-primary:hover { background: #e7fff6; }
@media (max-width: 54rem) {
  .bar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .4rem .8rem; padding-block: .65rem; }
  .brand { grid-area: 1 / 1; }
  .bar .menu { grid-area: 1 / 2; }
  .download-header { grid-area: 2 / 1 / 3 / -1; }
  .bar .top-links { display: none; }
}
@media (max-width: 32rem) {
  .intro-links .download-primary { width: 100%; }
}
html[dir="rtl"] .menu-grid { inset: 100% auto auto 0; }
html[dir="rtl"] ol.steps { padding-inline-start: 1.8rem; padding-inline-end: 0; }
html[dir="rtl"] .card::after { left: 1rem; right: auto; content: "‹"; }
html[dir="rtl"] .card strong { padding-left: 1.1rem; padding-right: 0; }
.screenshot-language { display: block; margin-top: .35rem; font-size: .82rem; }
