/* teachers/site/classroom.css */
:root {
  --forest: #183f35;
  --ink: #24382d;
  --paper: #fbf7ed;
  --line: #cdc5ad;
  --red: #843c4a;
  --serif:
    "Baskervville",
    "Palatino Linotype",
    Palatino,
    Georgia,
    serif;
  font:
    16px/1.55 "Barlow",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--forest);
  text-underline-offset: 4px;
}
header,
footer {
  background: var(--forest);
  color: var(--paper);
}
header a,
footer a {
  color: inherit;
}
.wrap {
  width: min(1120px, 90vw);
  margin: auto;
}
.mast,
footer .wrap,
.actions,
.action-bar,
.panel-heading,
.list-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mast,
footer .wrap,
.panel-heading,
.list-heading {
  justify-content: space-between;
}
.mast {
  min-height: 72px;
}
.brand {
  font: 600 1.65rem var(--serif);
  text-decoration: none;
}
.brand span {
  font: 500 0.82rem/1.3 system-ui;
  letter-spacing: 0.07em;
  border-left: 1px solid #899f94;
  margin-left: 0.4em;
  padding-left: 0.75em;
}
.mast > a:last-child {
  font-weight: 600;
}
.cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}
.intro {
  position: relative;
  z-index: 1;
}
.intro h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.06;
  text-wrap: balance;
}
.intro h1 {
  font-size: clamp(3rem, 5.8vw, 5.75rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  margin: 0;
  color: var(--forest);
  overflow-wrap: anywhere;
}
.intro p {
  font-size: 1.13rem;
  max-width: 34em;
  margin: 1.25rem 0;
  color: #4c5a4b;
}
.rabbit {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.actions,
.action-bar {
  flex-wrap: wrap;
}
.actions a {
  font-weight: 650;
}
button {
  cursor: pointer;
  background: transparent;
  border: 1px solid #878773;
  color: var(--forest);
  border-radius: 5px;
  padding: 0.57rem 0.9rem;
  font-weight: 620;
}
button.primary {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
button:hover {
  filter: brightness(0.9);
}
button:disabled {
  opacity: 0.65;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a85e24;
  outline-offset: 3px;
}
.action-bar,
#message {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
#lists {
  padding-bottom: 3rem;
}
.list-heading {
  border-top: 3px double #9f987d;
  padding: 1.4rem 0;
  flex-wrap: wrap;
}
.list-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
}
.list-heading span {
  color: #705443;
  font-size: 0.9rem;
}
.shelves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.panel {
  border: 1px solid var(--line);
  background: #fffdf7;
  padding: 1.3rem clamp(1rem, 2vw, 1.7rem);
  border-top: 4px solid var(--forest);
  min-width: 0;
}
.wanted {
  border-top-color: var(--red);
}
.panel h3 {
  font-size: 1.6rem;
  margin: 0;
}
.wanted h3 {
  color: var(--red);
}
.panel-heading span {
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 0.04rem 0.6rem;
  font-weight: 650;
}
ul {
  padding: 0;
  list-style: none;
  margin: 1rem 0 0;
}
li {
  padding: 0.85rem 0;
  border-top: 1px solid #dfd9c8;
  overflow-wrap: anywhere;
}
li strong,
li small {
  display: block;
}
li strong {
  font: 600 1.18rem var(--serif);
}
li small {
  margin-top: 0.22rem;
  color: #596456;
}
.row-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.row-actions button {
  padding: 0.33rem 0.65rem;
  font-size: 0.88rem;
}
dialog {
  width: min(450px, 94vw);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  padding: 1.5rem;
}
dialog::backdrop {
  background: #1b2c24a6;
}
dialog h2 {
  margin: 0 0 1rem;
  font-size: 1.85rem;
}
label {
  display: block;
  font-weight: 650;
  margin: 0.75rem 0 0.25rem;
}
input,
select {
  width: 100%;
  border: 1px solid #9d9985;
  background: white;
  border-radius: 4px;
  padding: 0.6rem;
  color: var(--ink);
}
dialog .actions {
  margin-top: 1.25rem;
}
.feedback:empty,
#copy-state:empty {
  display: none;
}
footer .wrap {
  min-height: 70px;
}
footer a {
  font-size: 0.9rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 690px) {
  .mast {
    min-height: 60px;
    gap: 0.5rem;
  }
  .brand {
    font-size: 1.17rem;
  }
  .brand span {
    font-size: 0.68rem;
  }
  .mast > a:last-child {
    font-size: 0.8rem;
  }
  .cover {
    grid-template-columns: 1fr;
    padding: 1.25rem 0 1.65rem;
    gap: 0.5rem;
  }
  .rabbit {
    grid-row: 1;
    max-height: 185px;
    object-fit: contain;
  }
  .intro h1 {
    font-size: clamp(2.45rem, 10vw, 3.5rem);
  }
  .intro p {
    margin: 0.7rem 0 1rem;
  }
  .shelves {
    grid-template-columns: 1fr;
  }
  .actions {
    gap: 0.75rem;
  }
  button {
    min-height: 44px;
  }
  .list-heading {
    gap: 0.3rem;
  }
}
