/* Day Clock — a small wiki-style page. The colours come from the clock. */

:root {
  --clock-blue: #003f99;
  --dial-blue: #5577bb;
  --tick: #00bfff;
  --triangle: #cd6155;
  --text: #1d2330;
  --muted: #5b6475;
  --bg: #ffffff;
  --line: #dde3ee;
  --sidebar-w: 240px;
}

/* Plus Jakarta Sans, only for the banner's "Remember" and "/Apps": the same
   font as on cerebritos.cl/games. Self-hosted (no request to a font CDN); OFL
   licence in fonts/OFL.txt. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--clock-blue);
}

/* -- LookThis.One banner -------------------------------------------------- */
/* Copied from cerebritos.cl/games (its Banner.astro and global.css), with
   /Apps for /Games and an lto- prefix (this page already has a .brand). The
   wordmark is an SVG, as on the Teleprompter: Voice Scroll page. */

.lto-banner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: linear-gradient(180deg, #f6ecff 0%, #ead6ff 100%);
  border-bottom: 1px solid #e8e5dc;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.lto-lead {  /* one unbreakable unit: the address never wraps */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.lto-text {
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  color: #4a3060;
}

.lto-brand {  /* the SVG wordmark from lookthisone2, images/lookthisone.svg */
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lto-brand img {
  display: block;
  width: auto;
  height: 15px;  /* as on the Teleprompter page (Alejandro, 2026-11-17) */
}

.lto-brand:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

/* -- left panel ---------------------------------------------------------- */

/* The banner sits above everything, so the panel can no longer be fixed to
   the window's top: it sticks beside the text instead, and the banner scrolls
   away as on the games site. */
.layout {
  display: flex;
  align-items: flex-start;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  width: var(--sidebar-w);
  padding: 24px 16px;
  background: var(--clock-blue);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  margin: 0 8px 28px;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #dbe6ff;
  text-decoration: none;
}

.sidebar li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar li a[aria-current="page"] {
  background: var(--dial-blue);
  color: #fff;
  font-weight: 600;
}

/* -- content ------------------------------------------------------------- */

.content {
  flex: 1;
  min-width: 0;
  padding: 40px 48px 64px;
  max-width: calc(var(--sidebar-w) + 820px);  /* as wide as before the banner */
}

.content.solo {  /* a page without the sidebar (privacy.html) */
  margin: 0 auto;
  max-width: 820px;
}

.updated {
  color: #666;
  font-size: 14px;
}

h1 {
  margin: 0 0 16px;
  font-size: 34px;
  color: var(--clock-blue);
}

h2 {
  margin: 36px 0 8px;
  padding-bottom: 4px;
  font-size: 22px;
  border-bottom: 1px solid var(--line);
}

.lead {
  font-size: 19px;
}

.store-badge img {  /* the official badge, saved in images/ */
  display: block;
}

figure {
  margin: 24px 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* Quick guide: a step's text with its picture beside it (under it on
   phones), and rows of three small clocks. */
.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step-shot {
  flex: 0 0 auto;
  width: 330px;
  max-width: 100%;
  height: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.clocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  gap: 16px;
  margin: 20px 0 8px;
}

.clocks figure {
  margin: 0;
}

.clocks img {
  border-radius: 50%;  /* the clock, without the corners of its square */
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f5fb;
}

.hands {
  list-style: none;
  padding: 0;
}

.hands li {
  margin: 10px 0;
  padding-left: 30px;
  position: relative;
}

.swatch {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 18px;
  height: 6px;
  border-radius: 3px;
}

.swatch.black {
  background: #000;
}

.swatch.blue {
  background: #0000ff;
}

.swatch.red {
  background: #ff0000;
  height: 3px;
}

.swatch.dots {
  height: 6px;
  background: radial-gradient(circle, var(--tick) 2px, transparent 2.5px) 0 0 / 6px 6px;
}

/* One page at a time once the script runs; without it, all pages show. */
.js .page {
  display: none;
}

.js .page.active {
  display: block;
}

/* -- top bar, phones only ------------------------------------------------ */

.topbar {
  display: none;
}

@media (max-width: 760px) {
  .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 16px;
    background: var(--clock-blue);
    color: #fff;
  }

  .menu-toggle {
    font: inherit;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 4px 10px;
  }

  .topbar-title {
    font-weight: 600;
  }

  .lto-banner {
    height: auto;
    padding: 10px 16px;
  }

  .lto-lead {
    gap: 6px;
  }

  .lto-text {
    font-size: 13px;
  }

  .lto-brand img {
    height: 13px;
  }

  .layout {
    display: block;
  }

  /* Off-canvas menu. Its top follows the bottom of the top bar, which moves
     while the banner scrolls away: script.js sets it; 52px without it. */
  .sidebar {
    position: fixed;
    top: 52px;
    bottom: 0;
    left: 0;
    height: auto;
    transform: translateX(-100%);
    transition: transform 0.2s;
    z-index: 3;
  }

  .sidebar.open {
    transform: none;
  }

  .content {
    padding: 24px 16px 48px;
  }

  .step {
    flex-direction: column;
    gap: 0;
  }

  .clocks {  /* one clock per row: big enough to read its numbers */
    grid-template-columns: minmax(0, 300px);
  }

  h1 {
    font-size: 28px;
  }
}
