/* Ranker Faculty: shared stylesheet for the company and policy pages.
   Plain CSS, no external fonts. Light and dark follow the device, or the workspace's saved choice
   (data-theme on <html>, set by the shared theme start-up script in published pages).
   Brand: action green #176852, link blue #3159A8, dark #0A0D0C with mint #86F7B8.
   The build publishes this file at /legal/legal.css without the editing-marker block at the end. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-2: #eef3f1;
  --text: #20262c;
  --muted: #56606a;
  --line: #d9dee3;
  --primary: #176852;
  --primary-ink: #ffffff;
  --link: #3159a8;
  --link-hover: #1f3f80;
  --focus: #3159a8;
  --logo-ring: #d9dee3;
  --radius: 10px;
  --measure: 42rem; /* rem, not ch, so the header, main text and smaller footer text share one column */
  --font: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0a0d0c;
    --surface: #121716;
    --surface-2: #0f1a16;
    --text: #e6ece9;
    --muted: #a3b0aa;
    --line: #26302c;
    --primary: #86f7b8;
    --primary-ink: #0a0d0c;
    --link: #86f7b8;
    --link-hover: #b9fbd5;
    --focus: #86f7b8;
    --logo-ring: #26302c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d0c;
  --surface: #121716;
  --surface-2: #0f1a16;
  --text: #e6ece9;
  --muted: #a3b0aa;
  --line: #26302c;
  --primary: #86f7b8;
  --primary-ink: #0a0d0c;
  --link: #86f7b8;
  --link-hover: #b9fbd5;
  --focus: #86f7b8;
  --logo-ring: #26302c;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { top: 8px; color: var(--primary-ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.125rem;
}
.brand:hover { color: var(--text); }
.logo-tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--logo-ring);
}
.logo-tile img { display: block; width: 28px; height: 28px; }
.brand b { font-weight: 800; }
.brand span { font-weight: 400; }
.header-link { font-size: 0.95rem; }

main { padding: 28px 0 48px; }

.kicker {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 {
  margin: 2.2em 0 0.5em;
  font-size: 1.3rem;
  line-height: 1.3;
  scroll-margin-top: 16px;
}
h3 { margin: 1.6em 0 0.4em; font-size: 1.08rem; }
p, ul, ol, dl, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: 0.25em 0; }
code { font-size: 0.95em; }

.meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}
.meta p { margin: 0.15em 0; }
.operator { font-weight: 600; color: var(--text); }

.summary, .notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0 8px;
}
.summary h2, .notice h2 { margin-top: 0; font-size: 1.1rem; }
.summary ul { margin-bottom: 0; }
.notice p:last-child { margin-bottom: 0; }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.toc h2 { margin: 0 0 6px; font-size: 1rem; }
.toc ol { margin: 0; }

/* Tables: scroll inside their own box on narrow screens, never the page. */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.97rem; }
caption { text-align: left; padding: 10px 12px; font-weight: 700; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  /* break-word (not anywhere) keeps columns at least one word wide; wide tables scroll in .table-scroll */
  overflow-wrap: break-word;
}
thead th { background: var(--surface); border-top: 0; }
tbody th { font-weight: 600; }

/* Narrow screens: tables marked .stack become labelled blocks (labels come from data-label). */
@media (max-width: 560px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { border-top: 1px solid var(--line); padding: 6px 0; }
  table.stack tr:first-child { border-top: 0; }
  table.stack th, table.stack td { border-top: 0; padding: 4px 12px; }
  table.stack tbody th { font-size: 1.02rem; padding-top: 8px; }
  table.stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface);
}
.plan h3 { margin: 0 0 4px; font-size: 1.1rem; }
.plan .price { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1em; font-size: 0.97rem; }
.plan .soon {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

dl.contact { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 6px 16px; }
dl.contact dt { font-weight: 600; }
dl.contact dd { margin: 0; }
@media (max-width: 520px) {
  dl.contact { grid-template-columns: 1fr; gap: 2px; }
  dl.contact dd { margin-bottom: 10px; }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 0 32px;
  font-size: 0.95rem;
}
.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.site-footer a[aria-current="page"] { font-weight: 700; text-decoration: none; color: var(--text); }
.site-footer p { margin: 0.25em 0; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .skip-link, .site-header .header-link, .site-footer nav { display: none; }
  html, body { background: #fff; color: #000; }
  a { color: #000; }
}
