/* The style of the website. It uses the system font and the colors of the app: the system backgrounds and one orange
   accent color. The help pages also show in a web view of the app. */

:root {
  color-scheme: light dark;
  --background: #ffffff;
  --text: #000000;
  --secondary: rgba(60, 60, 67, 0.6);
  --tertiary: rgba(60, 60, 67, 0.3);
  --separator: rgba(60, 60, 67, 0.29);
  --accent: #d9560f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --text: #ffffff;
    --secondary: rgba(235, 235, 245, 0.6);
    --tertiary: rgba(235, 235, 245, 0.3);
    --separator: rgba(84, 84, 88, 0.65);
    --accent: #e8611a;
  }
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* On iOS, the text follows the text size of the device (Dynamic Type). The second condition is true only on iOS, so
   that Safari on a Mac keeps the normal size. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html {
    font: -apple-system-body;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

p a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-header {
  border-bottom: 0.5px solid var(--separator);
}

.site-header nav,
main,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.5rem;
}

.site-header img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 0.5px var(--separator);
}

.site-name {
  color: var(--text);
  font-weight: 600;
}

.site-section {
  border-left: 1px solid var(--separator);
  padding-left: 0.6rem;
  color: var(--secondary);
}

main {
  padding-top: 1.1rem;
  padding-bottom: 2rem;
}

.breadcrumb {
  margin: 0;
  font-size: 0.88rem;
  color: var(--secondary);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 0.35rem;
  color: var(--tertiary);
}

h1 {
  margin: 0.7rem 0 0.7rem;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 0.75rem;
}

.table-frame {
  margin: 0 0 0.9rem;
  border: 1px solid var(--separator);
  border-radius: 12px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.35;
}

th {
  padding: 0.5rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: left;
  color: var(--secondary);
}

td {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--separator);
}

th:last-child,
td:last-child {
  width: 40%;
}

.articles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.articles li + li {
  border-top: 1px solid var(--separator);
}

.articles a {
  display: block;
  padding: 0.65rem 0;
}

footer {
  padding-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--secondary);
}
