/* KAROART — flat grey, no borders, no shadows, no icons. Set in Uncut Sans. */

@font-face {
  font-family: "Uncut Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/UncutSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Uncut Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/UncutSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Uncut Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/UncutSans-Semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Uncut Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/UncutSans-Bold.woff2") format("woff2");
}

:root {
  --page: #c9c9c9;
  --card: #d6d6d6;
  --field: #e2e2e2;
  --rule: #b5b5b5;
  --ink: #000;
  --radius: 14px;
  --gutter: 13px;
  --sans: "Uncut Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--gutter);
}

/* document pages only: room for the comparison tables on a laptop */
@media (min-width: 1024px) {
  .wrap-doc { max-width: 960px; }
}

a { color: var(--ink); }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

/* ---- wordmark ---------------------------------------------------------- */

.masthead { margin: 6px 0 14px; }

.wordmark { display: block; color: var(--ink); max-width: 694px; margin: 0 auto; } /* same size on the 960px document column as on the 720px column */
.wordmark svg { display: block; width: 100%; height: auto; }

/* ---- header rows and category rows ------------------------------------- */

.rowhead, .catrow {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rowhead { margin-top: 18px; }
.rowhead:first-child, .catstack + .rowhead { margin-top: 8px; }

.rowhead h1, .rowhead h2, .catname {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rowhead h1, .catname { font-size: 26px; }
.rowhead h2 { font-size: 20px; }

.pagehead .btn { margin-top: 0; flex: 0 0 auto; }

.dochead h1 { text-transform: none; font-size: 22px; letter-spacing: 0; line-height: 1.15; }

.catstack { display: block; margin-top: 18px; }
.catrow { text-decoration: none; color: var(--ink); }
.catrow:hover .catname { text-decoration: underline; text-underline-offset: 3px; }

.count {
  flex: 0 0 auto;
  min-width: 34px;
  text-align: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

/* ---- cards ------------------------------------------------------------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.empty { font-size: 15px; }

.qtext { font-size: 18px; font-weight: 500; }

.context {
  display: block;
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.72;
}

.meta { font-size: 13px; margin-top: 8px; opacity: 0.6; }

.body { margin-top: 6px; font-size: 16px; white-space: pre-wrap; }

.answer { margin-top: 10px; font-size: 16px; white-space: pre-wrap; }

.linktitle, .doctitle { font-size: 18px; font-weight: 500; color: var(--ink); }

.pill {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 12px;
  margin-bottom: 8px;
}

/* ---- new-since banner -------------------------------------------------- */

.newbanner { padding: 12px 16px; font-size: 15px; font-weight: 500; }

/* ---- forms ------------------------------------------------------------- */

label {
  display: block;
  font-size: 13px;
  margin: 10px 0 4px;
  opacity: 0.6;
}

textarea, input[type="text"], input[type="search"], input[type="password"], select {
  display: block;
  width: 100%;
  background: var(--field);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  resize: vertical;
}

textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--ink);
}

::placeholder { color: var(--ink); opacity: 0.4; }

.answerform textarea { margin-top: 12px; }

.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary { background: var(--ink); color: #fff; }

.searchrow { display: flex; align-items: center; gap: 10px; }
.searchrow input { flex: 1 1 auto; }
.searchrow .btn { margin-top: 0; flex: 0 0 auto; }

.navcard { text-align: center; }
.navcard .btn { margin-top: 0; }

/* ---- login ------------------------------------------------------------- */

.loginerror { margin: 10px 0 0; font-size: 15px; }
.whorow { display: flex; flex-wrap: wrap; gap: 10px; }
.whorow .btn { flex: 1 1 auto; text-align: center; }

/* ---- tasks ------------------------------------------------------------- */

.taskrow { display: flex; align-items: flex-start; gap: 12px; }

.taskrow input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
}

.taskrow label { margin: 0; opacity: 1; font-size: 16px; }
.tasktitle { display: block; font-size: 16px; }
.taskdone .tasktitle { text-decoration: line-through; opacity: 0.5; }

/* ---- documents --------------------------------------------------------- */

.doc { padding: 18px 16px; font-size: 17px; line-height: 1.5; }
.doc > :first-child { margin-top: 0; }
.doc p, .doc ul, .doc ol, .doc pre, .doc blockquote, .doc .tablebox { margin: 0 0 1em; }
.doc h1, .doc h2, .doc h3, .doc h4, .doc h5, .doc h6 {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 1.4em 0 0.5em;
}
.doc h1 { font-size: 24px; }
.doc h2 { font-size: 21px; }
.doc h3 { font-size: 18px; }
.doc h4, .doc h5, .doc h6 { font-size: 17px; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 0.2em 0; }
.doc blockquote { padding: 2px 0 2px 14px; border-left: 2px solid var(--ink); }
.doc blockquote > :last-child { margin-bottom: 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.doc pre { background: var(--field); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; font-size: 14px; line-height: 1.45; }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 1.4em 0; }
.doc img { display: none; }

.docsummary { font-size: 15px; opacity: 0.72; }

.tablebox { position: relative; max-width: 100%; }
.tablewrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* right-edge fade = "there is more to the right"; app.js adds .has-more while there is */
.tablebox::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, rgba(214, 214, 214, 0), var(--card));
  opacity: 0;
  pointer-events: none;
}
.tablebox.has-more::after { opacity: 1; }
.doc table { border-collapse: collapse; font-size: 15px; line-height: 1.35; min-width: 100%; }
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.doc th { font-weight: 500; border-bottom-color: var(--ink); }
.doc td:last-child, .doc th:last-child { padding-right: 0; }

.docfoot { margin-top: 1.4em; font-size: 13px; opacity: 0.6; }

/* ---- collapse on answer ------------------------------------------------ */

.qcard { transition: max-height 220ms ease, opacity 220ms ease; max-height: 1200px; }
.qcard.collapsing { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }

/* ---- footer ------------------------------------------------------------ */

.foot { margin: 22px 0 8px; font-size: 13px; opacity: 0.5; }
.foot .logout { margin-left: 12px; color: var(--ink); }

@media (min-width: 600px) {
  .rowhead, .catrow { padding: 16px 20px; }
  .rowhead h1, .catname { font-size: 32px; }
  .rowhead h2 { font-size: 24px; }
  .dochead h1 { font-size: 26px; }
  .card { padding: 18px 20px; }
  .doc { padding: 22px 20px; }
}
