* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #173442;
  background: #fafbf8;
  font:
    15px/1.6 system-ui,
    -apple-system,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  border: 1px solid #d0d9d6;
  border-radius: 5px;
  background: white;
  color: #173442;
  padding: 10px 16px;
}
button:hover {
  background: #edf4ef;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  border: 1px solid #cbd6d2;
  border-radius: 4px;
  background: white;
  color: #173442;
  padding: 11px;
  max-width: 100%;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
textarea {
  width: 100%;
  min-height: 100px;
}
:focus-visible {
  outline: 3px solid #cb962c;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 10px;
  top: -60px;
  background: white;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 0;
}
.utility {
  background: #112f3c;
  color: #b8cdc9;
  padding: 9px max(6vw, 20px);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.5px;
}
#connection {
  letter-spacing: 0.3px;
}
header {
  padding: 23px 6vw;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid #dfe5df;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brandmark {
  width: 47px;
  height: 51px;
  background: #173e48;
  color: white;
  border-radius: 3px;
  font: 36px Georgia;
  text-align: center;
  position: relative;
}
.brandmark span {
  position: absolute;
  right: 1px;
  top: 1px;
  color: #86b99c;
  font: 23px system-ui;
}
.brand b {
  font-size: 10px;
  letter-spacing: 1.4px;
}
.brand small {
  display: block;
  font:
    23px Georgia,
    serif;
}
nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 13px;
}
nav a.active {
  color: #2c7054;
  border-bottom: 2px solid #2c7054;
}
.nav-manage {
  border: 1px solid #d8e2dc;
  border-radius: 4px;
  padding: 9px 12px;
}
#menu {
  display: none;
}
main {
  min-height: 65vh;
}
.hero {
  background: #eaf0e9;
  padding: 58px 6vw 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 45px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #3f735a;
  text-transform: uppercase;
}
.hero h1 {
  font:
    clamp(36px, 4.3vw, 64px)/1.12 Georgia,
    serif;
  letter-spacing: -1.8px;
  font-weight: normal;
  margin: 19px 0 22px;
  max-width: 730px;
}
.hero h1 em {
  font-style: normal;
  color: #367357;
}
.hero p {
  color: #526961;
  max-width: 550px;
  font-size: 15px;
}
.searchbar {
  display: flex;
  margin: 27px 0 13px;
  max-width: 690px;
  background: white;
  border: 1px solid #b9c9bc;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 8px 20px #15352b08;
}
.searchbar input {
  flex: 1;
  border: 0;
  min-width: 0;
  padding: 11px 12px;
}
.primary {
  background: #25664e;
  color: white;
  border-color: #25664e;
}
.primary:hover {
  background: #1a513e;
  color: white;
}
.hero-hint {
  font-size: 11px;
  color: #66786d;
  padding-bottom: 35px;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
}
.orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid #bdcbbd;
  border-radius: 50%;
}
.orbit:after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed #c2d0c2;
  border-radius: 50%;
}
.book {
  width: 220px;
  height: 230px;
  background: #163e44;
  border-radius: 5px 14px 14px 5px;
  box-shadow: 14px 16px 0 #bccdbb;
  transform: rotate(-9deg);
  position: relative;
  color: #dbe8d9;
  padding: 30px;
  border-left: 8px solid #32605d;
}
.book .cross {
  font: 53px Georgia;
  color: #9bc7ad;
  line-height: 1;
}
.book b {
  font: 24px/1.2 Georgia;
  display: block;
  margin: 15px 0;
}
.book small {
  font-size: 9px;
  letter-spacing: 2px;
}
.art-label {
  position: absolute;
  bottom: 33px;
  right: 0;
  background: #fff;
  padding: 11px 19px;
  box-shadow: 0 5px 25px #20302012;
  border-radius: 5px;
  font-size: 12px;
}
.art-label span {
  display: block;
  font-size: 10px;
  color: #66786d;
}
.hero-stats {
  display: flex;
  max-width: 1250px;
  margin: 20px auto 0;
  padding: 18px 0;
  border-top: 1px solid #cdd9cd;
  gap: 40px;
  font-size: 12px;
  color: #536b60;
}
.hero-stats strong {
  font-size: 20px;
  color: #183d34;
  margin-right: 7px;
}
.section {
  padding: 42px 6vw;
  max-width: 1500px;
  margin: auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.section-head h2,
h2 {
  font: 28px/1.3 Georgia;
  margin: 0 0 8px;
}
h3 {
  font: 21px/1.3 Georgia;
  margin: 0 0 10px;
}
.muted {
  color: #67776e;
  font-size: 13px;
}
.collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.collection {
  padding: 27px;
  border: 1px solid #d9e1d8;
  border-radius: 7px;
  background: white;
  display: block;
  position: relative;
}
.collection:hover {
  border-color: #4b8261;
  text-decoration: none;
  box-shadow: 0 5px 20px #203c2410;
}
.collection .symbol {
  font: 28px Georgia;
  color: #3e7656;
  margin-bottom: 18px;
}
.collection h3 {
  font-size: 22px;
  max-width: 240px;
}
.collection p {
  font-size: 13px;
  color: #67776e;
  min-height: 45px;
}
.collection .arrow {
  position: absolute;
  right: 23px;
  bottom: 22px;
}
.collection small {
  font-size: 11px;
  color: #44715b;
}
.collection:nth-child(2) {
  background: #f0f4f5;
}
.collection:nth-child(3) {
  background: #f5f2e9;
}
.empty {
  text-align: center;
  padding: 40px 24px;
  border: 1px dashed #cbd7cc;
  border-radius: 7px;
  background: #fff;
}
.empty .empty-icon {
  font-size: 29px;
  color: #5f8770;
}
.empty h3 {
  margin: 8px 0;
}
.empty p {
  color: #6c7b70;
  font-size: 13px;
  max-width: 560px;
  margin: 10px auto 20px;
}
.callout {
  background: #123d43;
  color: white;
  border-radius: 7px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-top: 30px;
}
.callout p {
  color: #c1d5cf;
  font-size: 13px;
  margin: 7px 0;
}
.callout button {
  white-space: nowrap;
}
.page-heading {
  background: #eaf0e9;
  padding: 36px 6vw;
}
.page-heading h1 {
  font: 40px Georgia;
  margin: 8px 0;
}
.page-heading p {
  max-width: 760px;
  color: #5e7266;
  margin-bottom: 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar input {
  flex: 1;
  min-width: 180px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
}
.filters {
  padding-right: 22px;
  border-right: 1px solid #dde4da;
}
.filters select {
  width: 100%;
  margin-bottom: 15px;
  font-size: 13px;
}
.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.results.list {
  grid-template-columns: 1fr;
}
.doc {
  background: white;
  border: 1px solid #dce3dc;
  border-radius: 6px;
  padding: 22px;
  min-width: 0;
}
.doc h3 {
  font-size: 21px;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.4px;
  background: #edf4ec;
  color: #38654a;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.doc p {
  font-size: 13px;
  color: #607268;
}
.doc .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.doc button {
  font-size: 12px;
  padding: 7px 10px;
}
.wide {
  grid-column: 1/-1;
}
.panel {
  padding: 25px;
  border: 1px solid #d8e2d9;
  border-radius: 7px;
  background: white;
  margin-bottom: 22px;
}
.panel p {
  font-size: 14px;
  color: #607268;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid input,
.form-grid select {
  width: 100%;
}
.notice {
  border-left: 3px solid #b69249;
  padding: 12px 17px;
  background: #f5f1e5;
  font-size: 13px;
  margin: 15px 0;
}
.links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.links a {
  display: block;
  background: white;
  border: 1px solid #dae2da;
  border-radius: 6px;
  padding: 24px;
}
.links a strong {
  display: block;
  font: 23px Georgia;
}
.links a small {
  color: #657b69;
}
.tabbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.tabbar button[aria-pressed="true"] {
  background: #173f40;
  color: white;
}
.reading-note {
  background: #f3f5ec;
  padding: 14px;
  margin: 10px 0;
  border-radius: 3px;
  white-space: pre-wrap;
}
footer {
  border-top: 1px solid #d5dfd4;
  background: #eef2ea;
  padding: 32px 6vw;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.3fr;
  gap: 35px;
  color: #4d6759;
  font-size: 12px;
}
footer b {
  color: #234839;
}
footer a {
  display: block;
  margin-bottom: 10px;
}
footer button {
  font-size: 12px;
  background: transparent;
  padding: 7px 10px;
}
#status {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #163c3b;
  color: white;
  border-radius: 6px;
  padding: 12px 22px;
  max-width: 90vw;
  z-index: 20;
  box-shadow: 0 4px 25px #0002;
}
#status:empty {
  display: none;
}
dialog {
  border: 0;
  border-radius: 8px;
  padding: 30px;
  width: min(850px, 95vw);
  max-height: 94vh;
  box-shadow: 0 20px 100px #0005;
  color: #173442;
}
dialog::backdrop {
  background: #112d38b3;
}
.close {
  float: right;
  padding: 5px 10px;
  position: sticky;
  top: 0;
  z-index: 4;
}
dialog h2 {
  margin-right: 45px;
}
#pdf-canvas {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
  background: white;
  box-shadow: 0 2px 20px #0002;
}
.reader-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 15px 0;
}
.reader-tools input[type="number"] {
  width: 75px;
}
.reader-tools button,
.reader-tools input {
  font-size: 12px;
  padding: 6px 9px;
}
.reader-surface {
  background: #dce1dd;
  padding: 15px;
  overflow: auto;
}
.reader-surface:fullscreen {
  overflow: auto;
}
progress {
  width: 100%;
  accent-color: #306c50;
}
.preview-list {
  max-height: 220px;
  overflow: auto;
  font-size: 13px;
  padding: 15px;
  background: #eef3eb;
}
dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  font-size: 13px;
  gap: 8px;
}
dt {
  font-weight: 600;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
code {
  overflow-wrap: anywhere;
}
#cancel-job {
  margin: 5px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details {
  border-bottom: 1px solid #dae3d8;
  padding: 16px 0;
}
details p {
  max-width: 850px;
}
a.inline {
  color: #286b51;
  text-decoration: underline;
}
.file-label {
  display: inline-block;
  border: 1px dashed #9eb8a6;
  padding: 18px;
  width: 100%;
  background: #f4f8f1;
}
input[type="file"] {
  width: 100%;
  font-size: 12px;
}
.error {
  color: #9e3e31;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1500px) {
  header,
  .hero,
  .page-heading,
  footer {
    padding-left: calc((100vw - 1320px) / 2);
    padding-right: calc((100vw - 1320px) / 2);
  }
}
@media (max-width: 1000px) {
  nav {
    gap: 13px;
    font-size: 12px;
  }
  .brand b {
    font-size: 8px;
  }
  .hero-inner {
    grid-template-columns: 1.6fr 1fr;
  }
  .hero-art {
    transform: scale(0.85);
  }
  .results {
    grid-template-columns: 1fr;
  }
  .brand small {
    font-size: 20px;
  }
}
@media (max-width: 760px) {
  header {
    flex-wrap: wrap;
    padding: 16px 5vw;
  }
  #menu {
    display: block;
    font-size: 12px;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  nav.open {
    display: flex;
  }
  .hero {
    padding: 34px 5vw 0;
  }
  .hero-inner {
    display: block;
  }
  .hero-art {
    display: none;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-stats {
    gap: 15px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .hero-stats strong {
    font-size: 18px;
  }
  .section {
    padding: 30px 5vw;
  }
  .collections,
  .grid2,
  .links {
    grid-template-columns: 1fr;
  }
  .collection p {
    min-height: 0;
  }
  .collection {
    padding: 22px;
  }
  .collection .symbol {
    margin-bottom: 10px;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .filters select {
    margin-bottom: 0;
  }
  .filters button {
    grid-column: 1/-1;
  }
  .callout {
    flex-direction: column;
    align-items: start;
  }
  .section-head {
    align-items: start;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .utility {
    font-size: 8px;
    padding: 8px 5vw;
  }
  .page-heading {
    padding: 28px 5vw;
  }
  .page-heading h1 {
    font-size: 33px;
  }
  dialog {
    padding: 20px;
  }
  dl {
    grid-template-columns: 100px 1fr;
  }
  .searchbar button {
    padding: 8px;
    font-size: 12px;
  }
  .hero-hint {
    padding-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.institution-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}
@media (max-width: 760px) {
  .institution-logo {
    width: 52px;
    height: 52px;
  }
}

.availability {
  display: block;
  padding: 6px 9px;
  background: #f5f0e5;
  border-radius: 4px;
  color: #725c32;
}
.availability.ready {
  background: #eaf3e9;
  color: #25664e;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0;
}
.word-reader {
  display: block;
  width: 100%;
  height: 70vh;
  border: 1px solid #d4ded8;
  border-radius: 4px;
}
.inventory-table {
  overflow: auto;
  max-height: 65vh;
  border: 1px solid #d7e0d7;
  margin-top: 20px;
}
.inventory-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.inventory-table td,
.inventory-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e6df;
  text-align: left;
}
.inventory-table th {
  background: #eaf0e9;
  position: sticky;
  top: 0;
}
.inventory-table td:first-child {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .pagination {
    gap: 8px;
    font-size: 12px;
  }
  .word-reader {
    height: 65vh;
  }
}
/* Identidade institucional: azul, preto e verde. */
:root {
  --iss-blue: #07549b;
  --iss-blue-dark: #063569;
  --iss-green: #16744d;
  --iss-ink: #111820;
  --iss-soft: #edf5fc;
}
body {
  color: var(--iss-ink);
  background: #f8fafc;
}
.utility {
  background: #090f17;
  color: #d3e5f8;
}
header {
  border-bottom-color: #d7e3ee;
}
.brand b {
  color: var(--iss-blue-dark);
}
nav a.active {
  color: var(--iss-green);
  border-color: var(--iss-green);
}
.hero {
  background: linear-gradient(115deg, #eef6ff 10%, #e5f0fb 65%, #e7f4ed);
}
.hero h1 {
  color: #111820;
}
.hero h1 em {
  color: var(--iss-blue);
}
.hero p,
.hero-hint {
  color: #3f5669;
}
.eyebrow {
  color: var(--iss-green);
}
.hero-stats {
  border-color: #cadbea;
  color: #38556b;
}
.hero-stats strong {
  color: var(--iss-blue-dark);
}
.orbit {
  border-color: #adc9df;
}
.orbit:after {
  border-color: #b7d2e4;
}
.book {
  background: var(--iss-blue-dark);
  border-left-color: var(--iss-blue);
  box-shadow: 14px 16px 0 #a3c7b5;
}
.book .cross {
  color: #95d2b3;
}
.page-heading {
  background: linear-gradient(110deg, #eaf3fc, #eff7f2);
  border-bottom: 1px solid #dce7f0;
}
.page-heading h1 {
  color: #111820;
}
.primary {
  background: var(--iss-blue);
  border-color: var(--iss-blue);
  color: white;
}
.primary:hover {
  background: var(--iss-blue-dark);
  border-color: var(--iss-blue-dark);
  color: white;
}
.collection {
  border-color: #d4e1ec;
}
.collection:hover {
  border-color: var(--iss-blue);
}
.collection .symbol {
  color: var(--iss-blue);
}
.collection:nth-child(2) {
  background: #edf5fc;
}
.collection:nth-child(3) {
  background: #edf6f0;
}
.collection:nth-child(3) .symbol {
  color: var(--iss-green);
}
.collection h3 {
  color: #111820;
}
.collection small,
.inline,
a.inline {
  color: var(--iss-green);
}
.badge {
  background: #eaf2fc;
  color: var(--iss-blue-dark);
}
.availability {
  background: #eef2f7;
  color: #344b60;
}
.availability.ready {
  background: #e7f4ec;
  color: #11613d;
}
.notice {
  background: #edf6f0;
  border-color: var(--iss-green);
  color: #244e38;
}
.panel {
  border-color: #d7e2ec;
}
.callout {
  background: #101820;
}
.inventory-table th {
  background: #e5f0fa;
}
footer {
  background: #101820;
  border-color: #101820;
  color: #c0d0dc;
}
footer b {
  color: #fff;
}
footer a {
  color: #d5e8ff;
}
footer .muted {
  color: #c0d0dc;
}
#status {
  background: #0d2338;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.button:hover {
  text-decoration: none;
}
.button-dark {
  background: #111820;
  color: #fff;
  border-color: #111820;
}
.button-dark:hover {
  background: #24394b;
  color: #fff;
}
.institution-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}
.course-card {
  overflow: hidden;
  min-height: 260px;
}
.course-number {
  position: absolute;
  right: 22px;
  top: 15px;
  color: #cadce9;
  font: 50px Georgia;
}
.course-duration {
  margin: 22px 0 !important;
  min-height: 0 !important;
}
.course-duration span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #566b79;
}
.course-duration strong {
  font: 23px Georgia;
  color: var(--iss-blue-dark);
}
.enrolment-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  padding: 32px;
  margin: 30px 0;
  border-radius: 7px;
  background: #111820;
  color: white;
}
.enrolment-band > div {
  flex: 1;
}
.enrolment-band .eyebrow {
  color: #8ad6b0;
}
.enrolment-band p {
  color: #d3e0eb;
}
.enrolment-band .inline {
  color: #9de3bd;
}
.enrolment-band h2,
.enrolment-band h3 {
  color: white;
}
.requirements {
  padding-left: 21px;
  margin: 18px 0 0;
}
.requirements li {
  padding: 6px 0;
  color: #354b5c;
}
.next-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #edf5fc;
}
.next-step h2 {
  margin-top: 12px;
}
.next-step .button {
  margin-top: 15px;
}
.contact-intro {
  max-width: 720px;
  margin-bottom: 28px;
}
.contact-intro h2 {
  font-size: 35px;
  margin: 10px 0;
}
.contact-intro p {
  color: #53697a;
}
.contact-value {
  font-size: 17px !important;
  color: #123d68 !important;
  overflow-wrap: anywhere;
  min-height: 48px;
}
.contact-grid .collection {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-grid .button,
.contact-grid .inline {
  margin-top: auto;
}
.contact-grid h3 {
  font-size: 25px;
}
@media (max-width: 1080px) {
  header {
    flex-wrap: wrap;
  }
  #menu {
    display: block;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  nav.open {
    display: flex;
  }
  nav a {
    padding: 7px 0;
  }
  .nav-manage {
    padding: 9px 12px;
  }
}
@media (max-width: 760px) {
  .enrolment-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
  .contact-intro h2 {
    font-size: 29px;
  }
  .institution-actions {
    gap: 10px;
    margin-bottom: 20px;
  }
  .institution-actions .button {
    flex: 1;
  }
  .contact-value {
    min-height: 0;
  }
  .course-card {
    min-height: 0;
  }
  .course-number {
    font-size: 42px;
  }
}
/* Biblioteca 2: estantes visuais, leitura ajustável e instalação. */
body {
  background: #f5f8fc;
}
.section-head h2 {
  font-size: 30px;
}
.modern-hero {
  padding-top: 48px;
  padding-bottom: 0;
  background:
    radial-gradient(ellipse at 85% 10%, #d9f2e5 0, transparent 40%),
    linear-gradient(125deg, #e9f3ff, #f6faff 65%);
}
.modern-hero .hero-inner {
  grid-template-columns: 1.5fr 0.8fr;
  align-items: center;
  gap: 60px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #07549b;
  border: 1px solid #bed5eb;
  background: #ffffffb3;
  border-radius: 100px;
  padding: 7px 13px;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 750;
}
.hero-pill i,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #178456;
  box-shadow: 0 0 0 4px #17845618;
  display: inline-block;
  flex-shrink: 0;
}
.modern-hero h1 {
  font-size: clamp(38px, 4.2vw, 65px);
  margin-top: 24px;
}
.modern-hero .hero-copy > p {
  max-width: 610px;
}
.modern-hero .searchbar {
  margin-bottom: 18px;
  box-shadow: 0 9px 32px #08386810;
  border-color: #b9cfe1;
}
.modern-hero .institution-actions {
  margin-bottom: 8px;
}
.button-outline {
  background: #fff9;
  border-color: #c4d4e2;
  color: #183d5b;
}
.button-outline:hover {
  background: #fff;
  border-color: #07549b;
}
.hero-micro {
  font-size: 11px !important;
  color: #536b7e !important;
  margin: 13px 0 23px;
}
.hero-feature {
  position: relative;
  max-width: 340px;
  justify-self: center;
  padding: 20px 28px 18px;
  background: linear-gradient(135deg, #092744, #07549b);
  border: 1px solid #2d5d87;
  border-radius: 22px;
  box-shadow: 0 23px 55px #0d3c6a30;
  transform: rotate(2deg);
}
.feature-kicker {
  display: block;
  color: #c8e2f5;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-feature .cover-preview {
  height: 290px;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  box-shadow:
    -6px 7px 0 #09223a,
    0 20px 25px #0003;
  transform: rotate(-4deg);
}
.hero-feature .cover-preview img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.hero-feature .cover-preview span {
  display: none;
}
.feature-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a8c9e1;
  font-size: 10px;
  margin: 20px 0 2px;
  line-height: 1.6;
}
.feature-caption strong {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.hero-stats {
  align-items: center;
}
.hero-stats > a {
  margin-left: auto;
  color: #07549b;
  font-weight: 650;
}
.collection-modern {
  padding: 26px 26px 23px;
  overflow: hidden;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.collection-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 32px #163f6910;
}
.collection-number {
  position: absolute;
  right: 22px;
  top: 9px;
  font: 62px Georgia;
  color: #0a4c8c12;
}
.collection-modern .symbol {
  margin-bottom: 15px;
}
.collection-modern h3 {
  font-size: 23px;
  max-width: 260px;
  min-height: 60px;
}
.collection-modern small {
  display: block;
  margin-top: 16px;
}
.shelf-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 24px;
}
.shelf-tabs button {
  border-radius: 100px;
  font-size: 12px;
  padding: 9px 18px;
  background: transparent;
}
.shelf-tabs button[aria-pressed="true"] {
  background: #112b43;
  color: #fff;
  border-color: #112b43;
}
.results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.modern-doc {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e4ee;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 12px #163f6905;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
  min-width: 0;
}
.modern-doc:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px #10365613;
  border-color: #adc8df;
}
.cover-preview {
  display: block;
  position: relative;
  width: 100%;
  height: 230px;
  padding: 14px 24px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #e5edf5, #f1f5f9);
  overflow: hidden;
  cursor: zoom-in;
}
.cover-preview:hover {
  background: #e7eef5;
}
.cover-preview img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  box-shadow: 0 5px 12px #152e4b14;
}
.cover-preview > span {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #ffffff50;
  border-radius: 100px;
  background: #102b43df;
  color: #fff;
  font-size: 9px;
  white-space: nowrap;
  padding: 4px 10px;
  opacity: 0;
  transition: opacity 0.18s;
}
.cover-preview:hover > span,
.cover-preview:focus-visible > span {
  opacity: 1;
}
.cover-reference {
  width: 100%;
  height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  border: 0;
  border-left: 9px solid #093b69;
  border-radius: 0;
  padding: 20px 21px;
  background: linear-gradient(145deg, #0c3155, #07549b);
  color: white;
  position: relative;
  overflow: hidden;
}
.cover-reference:after {
  content: "";
  position: absolute;
  width: 155px;
  height: 155px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  right: -65px;
  top: -45px;
}
.cover-reference:hover {
  background: linear-gradient(145deg, #0c3155, #1269b1);
}
.cover-B {
  background: linear-gradient(145deg, #11273c, #20455e);
  border-left-color: #05111f;
}
.cover-C {
  background: linear-gradient(145deg, #0c4735, #17754e);
  border-left-color: #063527;
}
.reference-top {
  font-size: 8px;
  letter-spacing: 1px;
  color: #b9d7ef;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-reference strong {
  font: 22px/1.25 Georgia;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  z-index: 1;
}
.reference-publisher {
  font-size: 9px;
  color: #c3d4e4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reference-label {
  font-size: 8px;
  background: #ffffff18;
  padding: 4px 7px;
  border: 1px solid #ffffff20;
  border-radius: 3px;
  color: #e1ebf3;
}
.doc-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.doc-topline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}
.doc-topline .badge {
  font-size: 9px;
  line-height: 1.5;
  max-width: calc(100% - 40px);
  margin: 0 0 12px;
}
.favorite-button {
  font-size: 24px !important;
  line-height: 1;
  padding: 2px 5px !important;
  border: 0;
  background: transparent;
  color: #42627e;
  flex-shrink: 0;
}
.favorite-button[aria-pressed="true"] {
  color: #16774f;
}
.modern-doc h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.modern-doc .doc-author {
  font-size: 11px;
  margin: 0 0 9px;
  line-height: 1.55;
}
.modern-doc .doc-subject {
  font-size: 10px;
  color: #708397;
  margin: 0 0 14px;
}
.modern-doc .availability {
  font-size: 9px;
  line-height: 1.5;
  margin-top: auto;
}
.modern-doc .actions {
  gap: 7px;
  margin-top: 13px;
}
.modern-doc .actions button,
.modern-doc .actions .button {
  font-size: 10px;
  line-height: 1.4;
  padding: 8px 10px;
}
.modern-doc .download-link {
  background: #edf7f0;
  color: #12683f;
  border: 1px solid #c6e3d0;
}
.modern-doc .download-link:hover {
  background: #dff0e5;
}
.modern-doc .info-button {
  margin-left: auto;
  color: #5c7388;
  background: transparent;
  border-color: transparent;
}
.results.list {
  grid-template-columns: 1fr;
}
.results.list .modern-doc {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}
.results.list .cover-preview,
.results.list .cover-reference {
  height: 100%;
  min-height: 235px;
}
.results.list .modern-doc h3 {
  -webkit-line-clamp: 2;
}
.results.list .doc-body {
  padding: 21px;
}
.integration-notice {
  margin-top: 26px;
  font-size: 12px;
}
.app-banner-section {
  padding-top: 0;
}
.app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background:
    radial-gradient(ellipse at right, #12694f50, transparent 70%), #0d263e;
  color: #fff;
  padding: 35px 38px;
  border: 1px solid #22415c;
  border-radius: 16px;
}
.app-banner h2 {
  color: #fff;
  max-width: 650px;
  font-size: 30px;
  margin: 10px 0;
}
.app-banner p {
  color: #bad0e1;
  font-size: 13px;
  margin: 0;
}
.app-banner .eyebrow {
  color: #8dd6b4;
}
.app-install-button {
  background: #8bd5b0;
  color: #082c23;
  white-space: nowrap;
}
.app-install-button:hover {
  background: #a6e7c6;
  color: #082c23;
}
.footer-install {
  display: block;
  background: #173f61;
  color: #fff;
  border-color: #476983;
  font-size: 12px;
  padding: 10px 16px;
  margin: 14px 0;
}
.footer-install:hover {
  background: #24638d;
  color: white;
}
.footer-copyright {
  grid-column: 1/-1;
  border-top: 1px solid #ffffff1c;
  padding-top: 18px;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.footer-copyright p {
  margin: 0;
  font-size: 11px;
}
.footer-copyright small {
  font-size: 10px;
  max-width: 360px;
}
.large-preview {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  margin: 22px auto;
  box-shadow: 0 8px 30px #17334d1c;
}
.preview-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.preview-actions .button {
  background: #edf7f0;
  color: #12683f;
  border-color: #c6e3d0;
}
.install-dialog {
  padding: 10px 0;
}
.install-dialog h2 {
  margin: 10px 45px 14px 0;
}
.install-dialog p {
  font-size: 14px;
  color: #536b7c;
}
.install-dialog input {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  font-size: 13px;
}
.reader-tools output {
  font-size: 12px;
  min-width: 46px;
  text-align: center;
  font-weight: 700;
  color: #07549b;
}
.reader-tools select {
  font-size: 12px;
  padding: 6px 8px;
}
.reader-tools .reader-download {
  margin-left: auto;
  background: #e8f5ed;
  color: #166640;
  border: 1px solid #c8e3d1;
  font-size: 11px;
  padding: 7px 12px;
}
.reader-surface {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}
#pdf-canvas {
  max-width: none !important;
  flex-shrink: 0;
  image-rendering: auto;
}
dialog:has(#pdf-canvas),
dialog:has(.word-reader) {
  width: min(1120px, 96vw);
}
.reader-tools {
  position: relative;
  gap: 8px;
}
.word-reader {
  height: 68vh;
  background: white;
}
@media (min-width: 1600px) {
  .results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .modern-hero .hero-inner {
    gap: 30px;
    grid-template-columns: 1.5fr 0.8fr;
  }
  .hero-feature {
    max-width: 280px;
    padding: 19px;
  }
  .hero-feature .cover-preview {
    height: 245px;
  }
  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modern-hero h1 {
    font-size: 45px;
  }
  .modern-doc .actions button,
  .modern-doc .actions .button {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .modern-hero {
    padding-top: 28px;
  }
  .modern-hero .hero-inner {
    display: block;
  }
  .hero-feature {
    display: none;
  }
  .modern-hero h1 {
    font-size: 42px;
  }
  .hero-pill {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hero-stats {
    gap: 12px;
    padding-top: 17px;
  }
  .hero-stats > a {
    margin-left: 0;
    width: 100%;
    font-size: 11px;
  }
  .modern-hero .institution-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .modern-hero .institution-actions [data-install] {
    grid-column: 1/-1;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .results {
    gap: 15px;
  }
  .collection-modern h3 {
    min-height: 0;
  }
  .app-banner {
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
  }
  .app-banner h2 {
    font-size: 26px;
  }
  .footer-copyright {
    flex-direction: column;
    gap: 8px;
  }
  .shelf-tabs {
    gap: 6px;
  }
  .shelf-tabs button {
    font-size: 10px;
    padding: 8px 12px;
  }
  .doc-body {
    padding: 14px;
  }
  .modern-doc h3 {
    font-size: 18px;
  }
  .modern-doc .actions .button,
  .modern-doc .actions button {
    font-size: 10px;
    padding: 8px;
  }
  .results.list .modern-doc {
    grid-template-columns: 125px minmax(0, 1fr);
  }
  .results.list .doc-body {
    padding: 13px;
  }
  .results.list .cover-reference {
    padding: 13px;
    border-left-width: 6px;
  }
  .results.list .cover-reference strong {
    font-size: 17px;
  }
  .results.list .reference-label {
    font-size: 7px;
  }
  .results.list .cover-preview {
    padding: 10px;
  }
  .reader-tools .reader-download {
    margin-left: 0;
  }
  .reader-tools button {
    min-height: 34px;
  }
  .word-reader {
    height: 60vh;
  }
}
@media (max-width: 500px) {
  .results {
    grid-template-columns: 1fr;
  }
  .cover-preview,
  .cover-reference {
    height: 255px;
  }
  .modern-doc h3 {
    font-size: 21px;
    -webkit-line-clamp: 3;
  }
  .doc-body {
    padding: 18px;
  }
  .modern-doc .actions button,
  .modern-doc .actions .button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .doc-topline .badge {
    font-size: 10px;
  }
  .modern-doc .availability {
    font-size: 11px;
  }
  .modern-doc .doc-author {
    font-size: 12px;
  }
  .modern-doc .doc-subject {
    font-size: 11px;
  }
  .results.list .modern-doc h3 {
    font-size: 17px;
  }
  .results.list .actions {
    flex-wrap: wrap;
  }
  .results.list .actions .button,
  .results.list .actions button {
    font-size: 10px;
    padding: 7px;
  }
  .results.list .cover-preview,
  .results.list .cover-reference {
    min-height: 260px;
  }
  .cover-preview > span {
    opacity: 1;
  }
  .hero-micro {
    font-size: 10px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modern-doc,
  .collection-modern,
  .cover-preview > span {
    transition: none;
  }
  .modern-doc:hover,
  .collection-modern:hover {
    transform: none;
  }
}
