/* The user guide and the My account page: readable documents in the same colors as the calendar. */
.doc-page { min-height: 100%; }
body.help { font-family: var(--f-guide, var(--font)); }   /* Settings > Branding > Fonts */
.doc-page .topbar { position: sticky; top: 0; z-index: 5; }
.doc { width: min(860px, 100%); margin: 0 auto; padding: 18px 16px 40px; display: grid; gap: 16px; align-content: start; }
.doc .card h2 { font-size: 18px; margin: 22px 0 8px; }
.doc .card h2:first-child, .doc .card .doc-title + h2 { margin-top: 0; }
.doc .card h3 { font-size: 15px; margin: 18px 0 6px; }
.doc p, .doc li, .doc dd { font-size: 15px; line-height: 1.6; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc dt { font-weight: 700; margin-top: 10px; }
.doc dd { margin: 2px 0 0 0; }
.doc .lead { font-size: 17px; }
.doc kbd { font: 12px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--surface-2); }
.doc-title { font-size: 26px; margin: 0 0 14px; }
.tip { border-left: 4px solid var(--tc-green); background: color-mix(in srgb, var(--tc-green) 9%, transparent); padding: 10px 14px; border-radius: var(--r-sm); margin: 14px 0; font-size: 15px; line-height: 1.55; }
.who-line { font-size: 16px; margin: 6px 0; }
.steps li { margin: 8px 0; }
.status-line { margin: 6px 0 0; }
.who-tag { margin-left: 6px; }

/* guide layout: page list on the left, the page on the right; stacked on a phone */
.help-mark { width: 30px; height: 30px; flex: none; }
.help .brand h1 { font-weight: 700; color: var(--tc-ink); }
.help .brand h1 .tc-name { color: var(--tc-blue); font-weight: 800; }
.help .brand h1 .tc-plus { color: var(--tc-orange); }
.help .brand h1 .muted { font-weight: 500; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); }
.help-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px; width: min(1160px, 100%); margin: 0 auto; }
.help-nav-head { margin: 0 0 6px; padding: 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.help-nav { position: sticky; top: 64px; align-self: start; display: grid; gap: 2px; padding: 18px 8px 18px 16px; }
.help-nav a { padding: 7px 10px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 14px; }
.help-nav a:hover { background: var(--surface-2); }
.help-nav a[aria-current="page"] { background: color-mix(in srgb, var(--tc-blue) 12%, transparent); color: var(--tc-blue); font-weight: 700; box-shadow: inset 3px 0 0 var(--tc-orange); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.help-main { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 8px 0; }
.tiles a { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--text); background: var(--surface-2); }
.tiles a { border-top: 3px solid var(--tc-blue); transition: transform .12s ease, box-shadow .12s ease; }
.tiles a:nth-child(4n+2) { border-top-color: var(--tc-green); }
.tiles a:nth-child(4n+3) { border-top-color: var(--tc-orange); }
.tiles a:nth-child(4n+4) { border-top-color: var(--tc-ink); }
.tiles a:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 23, 42, .1); }
.tiles a strong { color: var(--tc-blue); }
.tiles a span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; margin: 10px 0; }
table.levels { border-collapse: collapse; width: 100%; font-size: 14px; }
table.levels th, table.levels td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: center; }
table.levels th:first-child, table.levels td:first-child { text-align: left; }
table.levels th { background: var(--surface-2); color: var(--tc-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.levels td:not(:first-child) { color: var(--tc-green); font-weight: 700; width: 80px; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; }
.help-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; gap: 12px; align-items: flex-start; }
.help-foot img { flex: none; margin-top: 2px; }
.help-foot p { margin: 0 0 4px; font-size: 12px; line-height: 1.5; }
.help-foot strong { color: var(--tc-blue); }

/* the guide and My account: the logo's colors as quiet accents (the same headings as the Settings sections) */
.doc .card { padding: 26px 30px 30px; }
.doc-title { color: var(--tc-blue); font-weight: 800; letter-spacing: -.01em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc .card h2 { display: flex; align-items: center; gap: 10px; color: var(--tc-ink); }
.doc .card h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tc-green); flex: none; }
.doc li::marker { color: var(--tc-blue); font-weight: 700; }
.hero { margin: -6px -10px 18px; padding: 22px 20px 16px; border-radius: var(--r-md); text-align: center;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tc-blue) 10%, transparent), transparent 60%),
              radial-gradient(100% 120% at 100% 100%, color-mix(in srgb, var(--tc-orange) 9%, transparent), transparent 55%), var(--surface-2); }
.hero-logo { width: min(340px, 80%); height: auto; }
.hero .by-line { margin: 4px 0 0; }
.help .doc-title:has(+ .hero) { display: none; }
.help-links { font-size: 13px; }

@media (max-width: 760px) {
  .help-shell { grid-template-columns: 1fr; }
  .help-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 16px 0; }
  .help-nav a { background: var(--surface); border: 1px solid var(--line); font-size: 13px; padding: 5px 10px; }
  .doc-title { font-size: 22px; }
  .help .brand h1 .muted { display: none; }
  .doc .card { padding: 18px 16px 22px; }
  .doc-page .topbar { position: static; display: flex; }
}

/* step-by-step fixes and FAQ answers: one line per problem, opened on demand */
details.fix { border: 1px solid var(--line); border-radius: var(--r-md); margin: 8px 0; background: var(--surface); }
details.fix > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 10px; }
details.fix > summary::-webkit-details-marker { display: none; }
details.fix > summary::before { content: "\203A"; flex: none; display: inline-block; width: 14px; text-align: center; color: var(--tc-orange); font-size: 20px; line-height: 1; transition: transform .12s ease; }
details.fix[open] > summary::before { transform: rotate(90deg); }
details.fix[open] > summary { border-bottom: 1px solid var(--line); }
details.fix > ol, details.fix > p { margin: 10px 14px 12px; }
.help-nav-head ~ .help-nav-head { margin-top: 14px; }
.help-nav-head.admin { color: var(--tc-orange); }
.doc-group { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* My account: dashboard theme choice */
.theme-pick { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 8px 0 2px; }
.theme-opt { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.theme-sw { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.theme-opt input:checked + .theme-sw { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }

/* the quick start checklist at the top of the Welcome page */
.quick { margin: 16px 0 6px; padding: 14px 18px 8px; border: 1px solid var(--line); border-top: 4px solid var(--tc-green); border-radius: var(--r-md); background: var(--surface-2); }
.doc .card .quick h2 { margin-top: 0; }
.qs-list { padding-left: 22px; }
.qs-list li { margin: 10px 0; }
.qs-list label { cursor: pointer; }
.qs-list input { width: 17px; height: 17px; margin: 0 4px 0 0; vertical-align: -3px; accent-color: var(--tc-green); }
.qs-list input:checked + strong { text-decoration: line-through; text-decoration-color: var(--tc-green); }
/* the "What leaves the server" table on Ownership and security */
table.data-flows { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data-flows th, table.data-flows td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.data-flows th { background: var(--surface-2); color: var(--tc-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.data-flows td:first-child { font-weight: 600; width: 26%; }
table.data-flows td:nth-child(2) { width: 26%; }
