/* The look of the website. Every rule here starts with .site, a class index.html puts on <html> only when the page
   is NOT an overlay part: the panels the desktop program shows over the game keep the look style.css gives them. */
#tabbar { display: none; }

.site {
  --bg: #0d1017;
  --panel: #161c28;
  --panel2: #1d2534;
  --line: #283044;
  --line2: #36425c;
  --fg: #d3d9e4;
  --bright: #f1f4f9;
  --dim: #8794aa;
  --faint: #67728a;
  --accent: #5fb4d8;
  --accent-dim: rgba(95, 180, 216, .14);
  --live: #e0a63c;
  --r: 8px;
  font-size: 15px;
}
.site body { -webkit-font-smoothing: antialiased; }
.site h1 { font-size: 27px; font-weight: 700; color: var(--bright); letter-spacing: -.4px; }
.site h2 { font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 9px; }
.site th, .site td { padding: 6px 12px 6px 0; }
.site :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 4px; }
.site .head { margin-bottom: 18px; }
.site .head .sub { margin-top: 4px; font-size: 16px; }
.site .badge { vertical-align: 4px; }

/* top bar */
.site #top { display: block; padding: 0; position: sticky; top: 0; z-index: 20; }
.site #top .bar { display: flex; align-items: center; gap: 18px; max-width: 1240px; margin: 0 auto; padding: 0 16px; min-height: 54px; }
.site .brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; letter-spacing: -.2px; color: var(--bright); white-space: nowrap; }
.site .brand:hover { text-decoration: none; }
.site .brand b { color: var(--accent); font-weight: 700; }
.site .brand svg { flex: none; }
.site #top nav { gap: 2px; }
.site #top nav a { padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.site #top nav a.on { color: var(--bright); background: var(--panel2); }
.site #topsearch { width: 220px; }
.site .search input, .site .tform input { border-radius: var(--r); padding: 7px 11px; }
.site .search ul { border-radius: var(--r); box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
.site .search li[aria-selected="true"] { background: var(--panel2); }

.site .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r); padding: 7px 14px; font-weight: 600;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--bright); white-space: nowrap; cursor: pointer; }
.site .btn:hover { text-decoration: none; border-color: var(--accent); }
.site .btn.pri { background: var(--accent); border-color: var(--accent); color: #06222e; }
.site .btn.pri:hover { background: #7cc6e4; }
.site .btn.big { padding: 12px 20px; font-size: 16px; }
.site .tform button, .site .mapctl select, .site .mapctl button { border-radius: var(--r); padding: 6px 12px; }

.site #view { padding: 22px 16px 28px; }
.site #foot { padding: 14px 16px 22px; }

/* inner pages: every block is its own panel */
.site #view section { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; margin-bottom: 14px; }
.site #view section section, .site #view .prose section { background: none; border: 0; border-radius: 0; padding: 0; }
.site #view section section { margin: 12px 0 0; }
.site #view .prose section { margin-bottom: 20px; }
.site .grid2 { gap: 0 14px; }
.site .note { font-size: 14px; line-height: 1.5; }
.site .missing { color: var(--dim); margin: 0 0 14px; padding: 11px 17px; border: 1px dashed var(--line2); border-radius: 12px; }
.site .chip { border-radius: 6px; padding: 2px 9px; }
.site .tag { border-radius: 5px; }

/* home */
.site .hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; padding: 14px 0 28px; }
.site .hero h1 { display: block; font-size: 34px; line-height: 1.15; letter-spacing: -.6px; margin-bottom: 10px; }
.site .lede { color: var(--dim); font-size: 17px; margin: 0 0 20px; max-width: 34em; }
.site .search.big { max-width: 520px; margin-bottom: 0; }
.site .search.big input { padding: 13px 15px; font-size: 17px; background: var(--panel); }
.site .try { margin-top: 9px; color: var(--faint); font-size: 13px; }
.site .try a { margin-left: 8px; }
.site.inapp .getbtn { display: none; }
.site.inapp .hero .get { order: -1; }       /* in the program's window, how to attach comes first */
.site .get { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.site .get h2 { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--bright); margin: 0 0 4px; }
.site .get p { color: var(--dim); font-size: 14px; margin: 0 0 14px; }
.site .getrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.site .getrow .small { color: var(--dim); }
.site .ticks { margin: 14px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 13px; display: grid; gap: 3px; }
.site .ticks li::before { content: "\2713"; color: #4caf7d; margin-right: 7px; }
.site .lab { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.site .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(224, 166, 60, .18); }
.site .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.site .card, .site .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.site .card { padding: 15px 16px 13px; display: flex; flex-direction: column; }
.site .card h3 { margin: 0; font-size: 15px; color: var(--bright); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.site .card h3 span { font-size: 22px; font-weight: 700; line-height: 1; }
.site .card .what { color: var(--dim); font-size: 13px; margin: 1px 0 10px; }
.site .card .it { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.site .card .it > :first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.site .card .it > :last-child { color: var(--dim); flex: none; }
/* a row whose two halves do not fit side by side puts the second on a line of its own, instead of cutting the first short */
.site .card .it.roomy { flex-wrap: wrap; row-gap: 0; }
.site .card .it.roomy > :first-child { flex: 0 0 auto; max-width: 100%; }
.site .card .it.roomy > :last-child { margin-left: auto; }
.site .card .it .sec { font-size: .9em; margin-left: 3px; }
.site .card .none { color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); padding-top: 8px; white-space: normal; }
.site .more { display: block; margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; }
.site .two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-top: 26px; align-items: start; }
.site .panel { padding: 16px; }
.site .tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.site .tabs button { padding: 4px 12px; border-radius: 99px; color: var(--dim); font: inherit; font-size: 13px; border: 1px solid var(--line); background: none; cursor: pointer; }
.site .tabs button:hover { color: var(--fg); border-color: var(--line2); }
.site .tabs button[aria-pressed="true"] { background: var(--accent-dim); border-color: var(--accent); color: var(--bright); }
.site .regs { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 6px; }
.site .reg { background: var(--panel2); border-radius: 6px; padding: 6px 9px; font-size: 14px; color: var(--fg); position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.site .reg:hover { text-decoration: none; background: #25304a; color: var(--bright); }
.site .reg span { overflow: hidden; text-overflow: ellipsis; }
.site .reg i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); }
.site .reg small { color: var(--faint); font-size: 12px; }
.site .hint { margin: 10px 0 0; color: var(--faint); font-size: 13px; }
.site .chg { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.site .lab + .chg { border-top: 0; padding-top: 0; }
.site .chg > div { min-width: 0; }
.site .chg small { color: var(--dim); display: block; font-size: 13px; overflow-wrap: anywhere; }
.site .chg small a { color: inherit; }
.site .chg time { color: var(--faint); font-size: 13px; }
.site .strip { margin: 26px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 30px; color: var(--dim); font-size: 13px; }
.site .strip b { color: var(--fg); font-size: 15px; margin-right: 5px; font-weight: 600; }

/* region map: as wide as the window, with a key instead of a paragraph */
.site #view[data-page="region"] { max-width: none; }
.site #view[data-page="region"] > div > :not(.mapsec) { max-width: 1208px; margin-left: auto; margin-right: auto; }
.site .mapwrap { border-radius: var(--r); }
.site .key { display: flex; flex-wrap: wrap; gap: 5px 20px; margin: 9px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 13px; }
.site .key li { display: flex; align-items: center; gap: 7px; }
.site .key i { flex: none; display: inline-block; box-sizing: border-box; }
.site .key .k-box { width: 20px; height: 13px; border: 1.5px solid #00ef47; border-radius: 3px; background: #10151b; }
.site .key .k-bar { width: 20px; height: 4px; border-radius: 2px; background: #00ef47; opacity: .5; }
.site .key .k-pill { width: 20px; height: 11px; border: 1px solid var(--accent); border-radius: 6px; background: #0b0d10; }
.site .key .k-on { width: 8px; height: 8px; background: var(--fg); }
.site .key .k-off { width: 8px; height: 8px; border: 1px solid var(--fg); }
.site .key .k-out { width: 20px; height: 13px; border: 1px dashed var(--faint); border-radius: 3px; }
.site .key .k-node { width: 13px; height: 13px; border-radius: 50%; background: #00ef47; box-shadow: 0 0 6px #00ef47; }
.site .key .k-ring { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(0, 239, 71, .6); background: rgba(0, 239, 71, .08); }
.site .key .k-dot { width: 7px; height: 7px; border-radius: 50%; background: #0b0d10; outline: 3px solid #00ef47; margin: 0 3px; }
.site .key .k-hol { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #0b0d10; outline: 3px solid #00ef47; margin: 0 3px; }
.site .key .k-stub { width: 20px; height: 0; border-top: 1px dashed var(--dim); }

/* get the program */
.site .steps { margin: 0; padding-left: 20px; line-height: 1.6; }
.site .prose .getrow { margin: 4px 0 22px; }

@media (max-width: 1080px) {
  .site #top nav a { padding: 6px 7px; }
  .site #topsearch { width: 170px; }
  .site .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site body { padding-bottom: 58px; }
  .site #top .bar { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; }
  .site #top nav { display: none; }
  .site #topsearch { order: 3; width: 100%; margin: 0; }
  .site .getbtn { margin-left: auto; padding: 5px 12px; }
  .site #tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 58px;
    background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; }
  .site #tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim); font-size: 11px; }
  .site #tabbar a:hover { text-decoration: none; }
  .site #tabbar a.on { color: var(--accent); }
  .site #tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .site #view { padding: 16px 14px 22px; }
  .site h1 { font-size: 23px; }
  .site .head .sub { font-size: 15px; }
  .site .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 4px 0 20px; }
  .site .hero h1 { font-size: 26px; }
  .site .lede { font-size: 15px; margin-bottom: 14px; }
  .site .search.big input { font-size: 16px; padding: 11px 13px; }
  .site .get .btn.big { flex: 1; }
  .site .two { grid-template-columns: minmax(0, 1fr); }
  .site .mapctl .zoom { margin-left: 0; }
}
@media (max-width: 640px) {
  .site .cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .site .regs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site #view section { padding: 13px 14px; }
  .site .tform label { width: 100%; }
  /* tables become one block per row: the first cell is the title, the rest follow as "label value" */
  .site .tw { overflow: visible; }
  .site .tw thead { display: none; }
  .site .tw table, .site .tw tbody { display: block; }
  .site .tw tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .site .tw tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .site .tw td, .site .tw td.wrap, .site .tw td.wrap:first-child { display: block; border: 0; padding: 0; min-width: 0; text-align: left; white-space: normal; }
  .site .tw td:first-child { flex: 0 0 100%; font-weight: 600; font-size: 1.05em; }
  .site .tw td.nil { display: none; }
  .site .tw td[data-label]:not(:first-child)::before { content: attr(data-label) " "; color: var(--dim); font-size: .82em; font-weight: 400; }
}

/* privacy page */
.site .prose ul.plain { margin: 0 0 8px; padding-left: 20px; line-height: 1.6; }
