@media screen {
  .sidebar .brand { font-size: 17px; }
  .brand .brand-mark { flex-shrink: 0; }
  .brand-name { font-size: clamp(13px, 4vw, 16px); font-weight: 650; }
  .book-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin: 22px 0 12px;
    font-size: 11px;
    color: #604f52;
  }
  .book-label select {
    width: 100%;
    max-width: none;
    min-height: 42px;
    padding: 6px 8px;
    border: 1px solid #cbbec0;
    border-radius: 7px;
    background: #fbf8f9;
    font-size: 14px;
    letter-spacing: normal;
  }
  .search-wrap input, .topic-link { font-size: 14px; }
  .topic-link { min-height: 44px; color: #544144; }
  .contents-label { margin-top: 18px; font-size: 11px; }
  .contents-label span { font-size: 10px; color: #68575a; }
  #contents { min-height: 56px; }
  .topic-number, .progress-line, .progress-line b { font-size: 12px; }
  .topic-number { color: #6a595c; }
  .sidebar-bottom { padding: 12px 2px 0; }
  .sidebar-bottom p { margin: 6px 0 12px; font-size: 11px; }
  .download-link {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px;
    border-radius: 8px;
    background: #511d26;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
  }
  .download-link:hover { background: #431820; }

  .intro { gap: clamp(20px, 4vw, 46px); }
  .hero-banner {
    display: grid;
    place-items: center;
    flex: 0 0 min(34%, 290px);
    aspect-ratio: 2 / 1;
    max-width: 100%;
    margin: 0;
    padding: 10px;
    border: 1px dashed #b4a4a7;
    border-radius: 11px;
    background: #f5eff0;
    color: #685558;
    font: 600 13px/1.45 var(--sans);
    text-align: center;
  }
  .hero-banner img { display: block; width: 100%; height: auto; border-radius: 8px; }
  .hero-banner:has(img:not([hidden])) { padding: 0; border-color: transparent; background: transparent; }

  .resources { display: grid; gap: 9px; padding: 16px 0; color: #48292f; }
  .resources summary, .resources .original-link {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d7c8cb;
    border-radius: 8px;
    background: #f4eeef;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
  }
  .resources .original-link { display: block; margin: 0; }
  .resources :is(summary, .original-link):hover { background: #eee5e7; }
  .resources #resource-links { gap: 6px 14px; padding: 10px 6px; }
  .resources #resource-links a { padding: 6px 8px; font-size: 14px; }
  .tutor-slot {
    display: grid;
    gap: 2px;
    padding: 13px 16px;
    border: 1px solid #ded3d5;
    border-left: 3px solid #6d3c45;
    background: #f4eeef;
  }
  .tutor-slot b { font-size: 16px; color: #48292f; }
  .tutor-slot span { font-size: 12px; color: #5c484c; }
}
@media screen and (max-width: 600px) {
  .intro { display: grid; gap: 17px; }
  .hero-banner { width: min(100%, 310px); justify-self: start; }
  .resources summary, .resources .original-link { font-size: 15px; }
}
@media screen and (max-height: 620px) {
  .sidebar { padding-top: 16px; padding-bottom: 12px; }
  .sidebar .brand-mark { height: 37px; }
  .book-label { margin-top: 12px; }
  .contents-label { margin: 12px 4px 6px; }
  .sidebar-bottom { margin-top: 7px; }
  .sidebar-bottom p { display: none; }
}
@media print {
  .hero-banner { display: none !important; }
}

.paper-origin {margin:12px 0 0;color:#57363c;font-size:13px;font-weight:650;line-height:1.45}
#example .figure img {height:auto;max-height:290px}
#example .problem table td:first-child {min-width:130px}

.reconstructed-task p {margin: .55em 0}
.vector-scroll {max-width: 100%; overflow-x: auto; margin: .45rem 0}
.source-vector {display: block; width: 100%; height: auto; min-width: min(100%, 340px)}
#example .reconstructed-task p:first-child {margin-top: 0}
@media (max-width: 600px) {
  .vector-scroll .source-vector {width: max(100%, 500px)}
  #example .figure .rebuilt-figure {max-height: none}
}
@media print {
  .vector-scroll {overflow: visible; break-inside: avoid}
  .vector-scroll .source-vector {width: 100%}
}

.display-formula{max-width:100%;overflow-x:auto;margin:.7em 0}.display-formula math{font-size:1em}.problem .table-wrap td{min-width:2.4em}
