@import url("../chota.min.8966d488fe3b.css");

:root {
  --col-neutral: #fff;
  --col-primary: #064994;
  --col-secondary: #53007A;
  --col-muted: #4087C4;
  --col-text: #02122C;
  --col-card-border: #f0f3f3;
  --col-divider: #4087C4;
  --col-header: #4087C4;
  --col-venue: #3d5a80;
  --col-src-blog: #3d5a80;
  --col-tag-background: #f3f6f9;
  --col-tag-hover: #f6f0f9;
}

/* fix chota */

html {
  font-size: initial;
}

body {
  font-size: initial;
}

[type=checkbox],
[type=radio] {
  height: initial;
  width: initial;
}

/* General */

body > main {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  --main-margin-left: max(5%, calc((100vw - 1200px) / 2));
}

/* Header */

.nav {
  position: inherit;
  xbackground: linear-gradient(175deg, #1e3c72 0%, #2a5298 100%);
  border-bottom: 1px solid #9ac2f8;
  box-shadow: 0 0 1.2em #ccc;
  margin-bottom: 3rem;
  min-height: 1rem;
}

.nav > div {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left .brand {
  padding: 0;
  font-size: 1.3rem;
  font-weight: 500;
  color: #1e3c72;
  padding: 0.3rem 0;
}

.nav-right a {
  font-size: 1.2rem;
  color: #1e3c72;
  padding: 0.3rem 1rem;
}


/* Filter controls */

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #666;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* optional */
}

.filter-left label {
  display: flex;            /* inline is not needed inside a flex container */
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  cursor: pointer;
}

.filter-left input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  margin: 0;                /* remove inline spacing differences */
  position: relative;
  cursor: pointer;
}

.filter-left input[type="checkbox"]:hover {
  border-color: var(--col-primary);
  background: #e9e9e9;
}

.filter-left input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #064994;
  font-size: 15px;
  font-weight: bold;
}

.filter-right {
  text-align: right;
}

.quality-choice {
  padding: 0.3rem 0.7rem;
  margin-left: 0.3rem;
  border-radius: 4px;
  cursor: pointer;
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.quality-choice:hover {
  background: #e9e9e9;
}

.quality-choice.active {
  background: var(--col-primary);
  color: white;
  border-color: var(--col-primary);
}

/** doc listings **/

#pagination-trigger {
  margin: 2rem 0;
  font-weight: bold;
  color: var(--col-primary);
}

.doc {
  margin: 1rem 0;
  border: 0px solid var(--col-card-border);
  border-radius: 8px;
  box-shadow: 0 1px 235px var(--col-card-border);
  padding: 0.7rem 1rem;
}

.doc .authors {
  font-size: 1.3rem;
  line-height: 1;
  color: #920;
}

.doc .title {
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
  line-height: 1.2;
  margin:0.3rem 0 0.4rem 0;
}

.doc .title a {
  text-decoration: none;
  color: #03b;
}

.doc .title a:hover {
  color: #03b;
  text-decoration: underline;
  text-decoration-color: #eee;
}

.doc .wordcount {
  font-size: 0.8rem;
  color: var(--col-muted);
  font-weight: 400;
  padding-left: 5px;
}

.doc .source-channels {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc .doc-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
  color: red;
}

.doc .venue {
  color: var(--col-venue);
  font-weight: 444;
  font-size: 1rem;
  padding-right: 0.5rem;
}

.doc .venue.source-repo {
}

.doc .venue.source-journal {
  font-weight: 555;
}

.doc .venue.source-blog {
  color: var(--col-src-blog);
}

.doc .channels>a {
  background: var(--col-tag-background);
  color: var(--col-venue);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.9rem;
  text-decoration: none;
}

.doc .channels>a:hover {
  background: var(--col-tag-hover);
}

.doc .abstract {
  font-size: 1rem;
  text-align: justify;
  line-height: 1.5;
  color: var(--col-text);
  margin: 0.5rem 0;
}

button.expand-abstract {
  padding: 0rem 0.5rem;
  border-width: 0;
  font-size: 1.2em;
  background-color: #edeff9;
}

.found-info {
  color: var(--col-muted);
  font-size: 0.8rem;
}

.found-info a {
  color: inherit;
  text-decoration: none;
}

.source-info a:hover {
  text-decoration: underline;
}

.training-buttons {
  margin-top: 0.5rem;
}

.training-buttons button {
  font-size: inherit;
  padding: 0.5rem 1rem;
  margin-right: 10px;
}

/* Admin controls */

.doc.hidden {
  border-color: #ffcc6b !important;
  background-color: #fcf9f5;
}

.admin-controls {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: var(--col-muted);
}

.admin-controls a {
  color: inherit;
}

.admin-controls span {
  padding-right: 1.5rem;
}

/* Date divider */

.date-divider {
  position: relative;
  width: 100vw;
  margin: 2.5rem 0 2.5rem;
  margin-left: calc(-50vw + 50%);
  height: 1px;
  background-color: #d
}

.date-divider span {
  position: absolute;
  top: 50%;
  left: calc(var(--main-margin-left) - 2rem);
  transform: translateY(-50%);
  padding: 0.2em 1rem 0.2rem 3.0rem;
  font-size: 1rem;
  background-color: var(--col-divider);
  color: var(--col-neutral);
  border-radius: 0.5rem;
  line-height: 1.5;
  font-weight: 500;
  white-space: nowrap;
}

.last-visit-divider span {
  background-color: unset;
  border-radius: 0;
  color: #666;
  border-bottom: 5px solid #c66;
}
