/* Shared base for both faces of the app. */
:root {
  color-scheme: light dark;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overscroll-behavior: none;
}
input { -webkit-user-select: text; user-select: text; font: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
.mode { position: fixed; inset: 0; overflow: hidden; }

/* ============================ BORN ============================ */
/* An early-2000s website: Verdana, blue underlined links, bevelled buttons, a hit counter. */
#born { background: #d8d4c8; color: #222; font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 13px; line-height: 1.45; }
.w-page {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; margin: 0 6px; border-left: 1px solid #a9a491; border-right: 1px solid #a9a491;
  padding-bottom: calc(var(--safe-bottom) + 10px);
  -webkit-user-select: none; user-select: none;
}
#born a { color: #0033cc; text-decoration: underline; }
.w-banner {
  padding: calc(var(--safe-top) + 12px) 12px 10px;
  background: linear-gradient(#24427a, #12285a); border-bottom: 3px solid #f2b705;
}
.w-logo { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: bold; font-style: italic; line-height: 1; text-shadow: 2px 2px 0 #000; display: inline-block; }
.w-logo .w-star { color: #f2b705; font-style: normal; }
.w-logo .w-dot { color: #f2b705; }
.w-logo small { display: block; font-family: Verdana, sans-serif; font-style: normal; font-weight: normal; font-size: 10px; letter-spacing: .04em; color: #c9d5ee; margin-top: 6px; text-shadow: none; }
.w-nav { display: flex; background: #e6e2d3; border-bottom: 1px solid #a9a491; font-size: 12px; font-weight: bold; overflow-x: auto; }
.w-nav a { padding: 7px 9px; border-right: 1px solid #c4bfab; white-space: nowrap; }
.w-nav a.on { background: #fff; color: #cc0000 !important; text-decoration: none !important; }
.w-crumbs { font-size: 11px; color: #666; padding: 7px 10px; border-bottom: 1px dotted #bbb; }

.w-box { margin: 12px 10px; border: 1px solid #7a8db5; }
.w-box-head { background: #dfe6f5; border-bottom: 1px solid #7a8db5; padding: 4px 8px; font-weight: bold; color: #12285a; font-size: 12px; }
.w-box-body { padding: 8px; }
.w-box-body p { margin: 0 0 8px; }
.w-selects { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.w-selects select {
  font-family: Verdana, sans-serif; font-size: 16px; color: #000; background: #fff;
  border: 1px solid #7f9db9; border-radius: 0; padding: 2px 2px; height: 30px;
  -webkit-appearance: menulist; appearance: auto;
}
.w-go {
  font-family: Verdana, sans-serif; font-size: 14px; font-weight: bold; color: #000;
  background: linear-gradient(#fdfdfd, #d9d9d9); border: 1px solid; border-color: #fff #707070 #707070 #fff;
  box-shadow: 1px 1px 0 #404040; padding: 4px 10px; height: 30px; border-radius: 0;
}
.w-go:active { border-color: #707070 #fff #fff #707070; box-shadow: none; }

.w-h2 { font-family: Georgia, "Times New Roman", serif; color: #990000; font-size: 20px; margin: 16px 10px 6px; border-bottom: 2px solid #990000; padding-bottom: 3px; }
.w-table { margin: 0 10px; width: calc(100% - 20px); border-collapse: collapse; border: 1px solid #999; }
.w-table th, .w-table td { border: 1px solid #bbb; padding: 6px 8px; text-align: left; vertical-align: top; }
.w-table th { background: #f2efe4; width: 34%; font-size: 12px; }
.w-person { background: #fffbe6; }
.w-name { font-size: 18px; font-weight: bold; }
.w-desc { color: #555; margin-top: 2px; }
.w-fact { margin: 10px 10px 0; font-size: 12px; color: #333; }
.w-more { margin: 16px 10px 0; border: 1px solid #c4bfab; background: #f8f6ef; }
.w-more-head { background: #e6e2d3; padding: 4px 8px; font-weight: bold; font-size: 12px; border-bottom: 1px solid #c4bfab; }
.w-more ul { margin: 6px 0; padding-left: 26px; font-size: 12px; }
.w-more li { margin: 3px 0; }
.w-foot { margin-top: 18px; padding: 10px; border-top: 1px solid #a9a491; background: #e6e2d3; text-align: center; font-size: 10px; color: #555; display: grid; gap: 5px; }
.w-counter span { font-family: "Courier New", monospace; background: #000; color: #3f3; padding: 1px 4px; letter-spacing: 2px; font-size: 12px; }
.w-counter b { color: #3f3; }
.w-best { font-style: italic; }
