:root {
  color-scheme: light;
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: #f7f7f7;
  --ink: #242424;
  --muted: #626262;
  --line: #d8d8d8;
  --control-border: #888;
  --paper: #fff;
  --soft: #eee;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
.mast,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 84px);
}
.mast {
  width: 100%;
  height: 80px;
  margin: 0;
  gap: 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.search-logo img {
  display: block;
  width: clamp(145px, 18vw, 212px);
  height: auto;
}
.mast-brand {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 24px);
  font-size: 14px;
}
.mast .account-name {
  max-width: 14em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.worklink {
  background: var(--paper);
  border: 1px solid var(--control-border);
  border-radius: 30px;
  padding: 9px 16px;
}
.foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  min-height: 65px;
  font-size: 12px;
  color: var(--muted);
}
.foot span {
  font-weight: 650;
  letter-spacing: 0.02em;
}
:where(.search-page, .reading) p {
  margin-block: 1em;
}
.search-body,
.reading {
  width: min(100% - 48px, 960px);
  margin: 0 auto;
}
.reading {
  padding: clamp(32px, 7vh, 80px) 0 66px;
}
.search-body {
  position: relative;
  margin-top: -26px;
  padding-bottom: 66px;
}
.hero {
  display: grid;
  place-items: center;
  min-height: clamp(224px, 27vw, 370px);
  padding: 28px 18px;
  text-align: center;
  color: #000;
  background-color: var(--soft);
  background-image: url("/assets/eit-campus-library.jpg");
  background-position: 50% 44%;
  background-size: cover;
  background-repeat: no-repeat;
}
.eyebrow,
.source-line,
.citation,
.muted,
.results-head > span {
  font-size: 13px;
  color: var(--muted);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.09em;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(48px, 7.6vw, 106px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin: 0;
  font-weight: 400;
}
.hero h1 b {
  font-weight: 730;
}
.search-box form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: 1.5px solid var(--control-border);
  border-radius: 13px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 6px 22px rgb(0 0 0 / 7%);
}
.suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--control-border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 10%);
}
.suggestions [role="option"] {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border-radius: 7px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.suggestions [role="option"]:hover,
.suggestions [aria-selected="true"] { background: var(--soft); }
.suggestions small, .correction { color: var(--muted); }
.correction { margin: 8px 0 16px; font-size: 14px; }
.correction a { text-decoration: underline; text-underline-offset: 3px; }
.lens {
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  position: relative;
  flex: none;
}
.lens:after {
  content: "";
  width: 8px;
  height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
  position: absolute;
  right: -6px;
  bottom: -3px;
}
.search-box input[type="search"] {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  color: var(--ink);
  font-size: 17px;
  background: none;
  padding: 10px 0;
}
.search-box input[type="search"]:focus-visible {
  box-shadow: inset 0 -1px var(--control-border);
}
.submit,
.original {
  display: inline-block;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  font-weight: 600;
  padding: 13px 24px;
}
.submit:hover,
.original:hover,
.worklink:hover {
  border-color: var(--ink);
}
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filters nav,
.directory-tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.filters nav a,
.directory-tabs a {
  padding: 16px 0 12px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.filters nav a[aria-current],
.directory-tabs a[aria-current] {
  color: var(--ink);
  font-weight: 690;
  border-color: currentColor;
}
.scope {
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.feedback,
.notices,
.empty {
  background: var(--soft);
  border-radius: 7px;
  padding: 13px 16px;
  line-height: 1.6;
  font-size: 14px;
}
.notices p {
  margin: 3px 0;
}
.history,
#results {
  margin-top: 32px;
}
.section-head h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.section-head button {
  color: var(--ink);
  background: none;
  border: 0;
  font-size: 13px;
  padding: 5px;
}
.muted {
  line-height: 1.7;
}
.history ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}
.history li {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 100%;
  align-items: center;
}
.history li button {
  border: 0;
  border-radius: inherit;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
}
.history .replay {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.history .remove {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.history small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 11px;
}
.searching .hero {
  min-height: clamp(116px, 12vw, 164px);
}
.searching .hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
}
.searching .search-body {
  margin-top: -18px;
}
.results-head h2 small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 450;
  margin-left: 5px;
}
.results-head > span {
  font-size: 12px;
}
.hits {
  list-style: none;
  padding: 0;
}
.hits li {
  padding: 17px 0 19px;
  border-bottom: 1px solid var(--line);
}
.source-line,
.citation {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.type {
  border-radius: 4px;
  padding: 3px 6px;
  background: var(--soft);
  color: #444;
  font-size: 11px;
}
.type.faculty {
  background: #e4e4e4;
}
.type.private {
  background: #d8d8d8;
  color: var(--ink);
}
.hits h3 {
  margin: 7px 0 4px;
  font-size: 20px;
  font-weight: 630;
  color: var(--ink);
  line-height: 1.5;
}
.hits p,
.extract {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  color: #424242;
  overflow-wrap: anywhere;
}
.citation {
  margin-top: 6px;
  font-size: 11px;
}
.page-links,
.directory-tabs {
  display: flex;
  align-items: center;
  gap: 21px;
  flex-wrap: wrap;
}
.page-links a,
.back {
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reading {
  width: min(100% - 48px, 780px);
}
.reading h1 {
  font-size: clamp(28px, 4.5vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1.25;
  margin: 24px 0;
}
.reading article {
  margin-top: 45px;
}
.reading .extract {
  font-size: 17px;
  line-height: 1.95;
}
.reading .original {
  margin-top: 12px;
}
.directory-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.directory-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.directory-list small {
  color: var(--muted);
  flex: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
@media (max-width: 720px) {
  .hits p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .mast {
    height: 64px;
  }
  .mast-brand {
    gap: 14px;
    font-size: 12px;
  }
  .worklink {
    padding: 6px 10px;
  }
  .search-body,
  .reading {
    width: calc(100% - 36px);
  }
  .eyebrow {
    font-size: 11px;
    gap: 7px;
  }
  .filters nav {
    gap: 14px;
  }
  .filters nav a {
    font-size: 13px;
  }
  .search-box form {
    gap: 12px;
    padding-left: 13px;
  }
  .search-box input[type="search"] {
    font-size: 15px;
  }
  .submit {
    padding: 11px 15px;
  }
  .directory-list li {
    display: block;
  }
  .directory-list small {
    display: block;
    margin-top: 4px;
  }
  .scope {
    padding: 6px 0;
  }
  .filters {
    gap: 0 10px;
  }
}
@media (max-width: 420px) {
  .mast {
    padding: 0 15px;
  }
  .search-logo img {
    width: clamp(108px, 33vw, 138px);
  }
  .mast-brand {
    gap: 9px;
  }
  .lens {
    width: 14px;
    height: 14px;
  }
  .filters nav {
    gap: 11px;
  }
  .scope {
    font-size: 12px;
  }
}
