/* Revers license reading guide (2026-11-26) */
.lic-page { padding-bottom: 8px; }
.lic-top { padding-bottom: 12px; }
.lic-bottom { padding-top: 8px; }
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 12px; }
.crumbs a { color: var(--ink-soft); }
.lic-howto { color: var(--ink-soft); }

.lic-explorer {
  width: min(1280px, calc(100% - 24px)); margin: 8px auto 24px;
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 28px; align-items: start;
}
.lic-figure {
  min-width: 0;
  position: sticky; top: calc(var(--header-h) + 8px);
  max-height: calc(100vh - var(--header-h) - 16px);
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; margin: 0; overflow: hidden;
}
.lic-scroll {
  border-radius: 12px; overflow: auto; flex: 1 1 auto; min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.lic-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lic-canvas { position: relative; line-height: 0; }
.lic-canvas img { width: 100%; height: auto; display: block; border-radius: 10px; }
.lic-figure figcaption {
  flex: 0 0 auto;
  font-size: .82rem; color: var(--ink-soft); padding: 8px 4px 2px; line-height: 1.5;
}
.lic-mobile-hint { display: none; }

/* Small, light pins so the printed license text stays readable underneath */
.lic-pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  color: #1a2168;
  font: 800 8px/14px Rubik, Arial, sans-serif;
  text-align: center; text-decoration: none;
  box-shadow: 0 0 0 1px #3a44c4, 0 0 0 2px rgba(255,255,255,.95), 0 1px 2px rgba(31,39,55,.28);
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  z-index: 1; direction: ltr;
  box-sizing: border-box;
}
.lic-pin::before {
  content: ""; position: absolute; inset: -7px;
}
.lic-pin:hover, .lic-pin:focus-visible, .lic-pin.is-active {
  transform: scale(1.85);
  background: #3d46c7; color: #fff;
  z-index: 3;
  box-shadow: 0 0 0 1px #fff, 0 0 0 4px rgba(61,70,199,.35), 0 2px 6px rgba(31,39,55,.35);
  outline: none;
}
.lic-pin.is-flash { animation: licPulse 1s ease 2; }
@keyframes licPulse {
  0%, 100% { box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(61,70,199,0); }
  50% { box-shadow: 0 0 0 1px #fff, 0 0 0 8px rgba(61,70,199,.45); }
}

/* Required-for-check pins: warn/amber so they stand apart from the regular purple pins */
.lic-mark {
  position: absolute; left: var(--x); top: var(--y);
  width: 0; height: 0; z-index: 2;
}
.lic-mark:has(:hover),
.lic-mark:has(:focus-visible),
.lic-mark:has(.is-active),
.lic-mark:has(.is-flash) { z-index: 5; }
.lic-mark .lic-pin { left: 0; top: 0; }
.lic-pin.is-needed {
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  background: #fff8e6; color: #6b4e00;
  font: 800 8px/16px Rubik, Arial, sans-serif;
  box-shadow: 0 0 0 1.5px #c08a14, 0 0 0 3px rgba(255,255,255,.95), 0 1px 2px rgba(31,39,55,.28);
}
.lic-pin.is-needed:hover,
.lic-pin.is-needed:focus-visible,
.lic-pin.is-needed.is-active {
  background: #c08a14; color: #fff;
  box-shadow: 0 0 0 1px #fff, 0 0 0 4px rgba(192,138,20,.4), 0 2px 6px rgba(31,39,55,.35);
}
.lic-pin.is-needed.is-flash { animation: licNeedPulse 1s ease 2; }
@keyframes licNeedPulse {
  0%, 100% { box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(192,138,20,0); }
  50% { box-shadow: 0 0 0 1px #fff, 0 0 0 8px rgba(192,138,20,.5); }
}
.lic-need-tag {
  position: absolute;
  white-space: nowrap;
  background: #c08a14; color: #fff;
  font: 700 9px/1.2 Rubik, Arial, sans-serif;
  letter-spacing: 0;
  padding: 2px 6px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(31,39,55,.25);
  pointer-events: none;
}
.lic-tag-w .lic-need-tag { right: 12px; top: 0; transform: translateY(-50%); }
.lic-tag-e .lic-need-tag { left: 12px; top: 0; transform: translateY(-50%); }
.lic-tag-n .lic-need-tag { left: 50%; bottom: 14px; transform: translateX(-50%); }
.lic-tag-s .lic-need-tag { left: 50%; top: 14px; transform: translateX(-50%); }
.lic-tag-nw .lic-need-tag { right: 14px; bottom: 26px; }

.lic-need {
  background: #fff8e6;
  border: 1px solid var(--line);
  border-right: 4px solid var(--warn);
  border-radius: 14px;
  padding: 16px 18px 12px;
  margin: 18px 0 8px;
}
.lic-need h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.lic-need p { margin-bottom: 10px; }
.lic-need ol {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  counter-reset: need;
}
.lic-need ol li {
  position: relative;
  padding-inline-start: 34px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.lic-need ol li::before {
  counter-increment: need;
  content: counter(need);
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  width: 22px; height: 22px; border-radius: 50%;
  background: #c08a14; color: #fff;
  font-size: .78rem; font-weight: 700; line-height: 22px; text-align: center;
}
.lic-need-legend { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2px; }

.lic-need-badge {
  display: inline-block;
  background: #fff8e6; color: #6b4e00;
  border: 1px solid #c08a14;
  font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  margin-inline-start: 2px;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
}
.lic-item.is-needed { border-color: #e0c27a; background: #fffdf6; }
.lic-item.is-needed.is-active {
  border-color: #c08a14;
  box-shadow: 0 0 0 3px rgba(192,138,20,.2);
  background: #fff8e6;
}
.lic-item.is-needed .lic-num { background: #fff8e6; color: #6b4e00; box-shadow: 0 0 0 1px #c08a14; }
.lic-item.is-needed.is-active .lic-num,
.lic-item.is-needed .lic-num:hover,
.lic-item.is-needed .lic-num:focus-visible { background: #c08a14; color: #fff; box-shadow: none; }

.lic-list { min-width: 0; }
.lic-group { font-size: 1.25rem; letter-spacing: -0.02em; margin: 26px 0 10px; }
.lic-group:first-child { margin-top: 0; }
.lic-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px 6px; margin-bottom: 10px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.lic-item h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 6px; }
.lic-item p { margin-bottom: 10px; }
.lic-num {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); text-decoration: none;
  display: inline-grid; place-items: center; font-size: .85rem; font-weight: 700; direction: ltr;
}
.lic-num:hover, .lic-num:focus-visible { background: var(--brand); color: #fff; }
.lic-item.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(85,95,222,.18); background: #fcfcff; }
.lic-item.is-active .lic-num { background: var(--brand); color: #fff; }
.lic-item:target { border-color: var(--brand); }

.lic-flags li { margin-bottom: 8px; }

@media (max-width: 960px) {
  .lic-explorer { grid-template-columns: minmax(0, 1fr); gap: 20px; width: min(900px, calc(100% - 16px)); }
  .lic-figure {
    position: relative; top: auto;
    max-height: min(78vh, 680px);
    padding: 6px;
  }
  .lic-canvas { width: 900px; max-width: none; }
  .lic-mobile-hint { display: inline; }
}
@media (min-width: 700px) and (max-width: 960px) {
  .lic-figure { max-height: none; }
  .lic-canvas { width: 100%; }
  .lic-mobile-hint { display: none; }
}
@media print {
  .lic-explorer { display: block; width: 100%; margin: 0; }
  .lic-figure {
    position: static; box-shadow: none; border: none;
    break-before: page; break-after: page;
    max-width: none; max-height: none; width: 100%;
    margin: 0; padding: 0; overflow: visible;
    display: block;
  }
  .lic-scroll { overflow: visible; }
  .lic-canvas { width: 100% !important; }
  .lic-figure figcaption { font-size: .7rem; padding: 6px 0 0; }
  .lic-item { break-inside: avoid; }
  .lic-need { break-inside: avoid; }
  .lic-need-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .a11y-widget, .menu-btn { display: none !important; }
  header { position: static !important; }
}
body.a11y-contrast .lic-pin {
  background: #fff; color: #000; box-shadow: 0 0 0 1.5px #000, 0 0 0 2.5px #fff;
}
body.a11y-contrast .lic-pin:hover,
body.a11y-contrast .lic-pin:focus-visible,
body.a11y-contrast .lic-pin.is-active {
  background: #000; color: #fff;
}
body.a11y-contrast .lic-pin.is-needed,
body.a11y-contrast .lic-need-tag,
body.a11y-contrast .lic-need-badge {
  background: #ffff00; color: #000;
  box-shadow: none;
  border: 2px solid #000;
}
body.a11y-contrast .lic-pin.is-needed:hover,
body.a11y-contrast .lic-pin.is-needed:focus-visible,
body.a11y-contrast .lic-pin.is-needed.is-active {
  background: #000; color: #ffff00;
}
body.a11y-contrast .lic-need { background: #fff; border: 3px solid #000; }
body.a11y-contrast .lic-need ol li::before { background: #000; color: #ffff00; }
body.a11y-contrast .lic-item.is-needed { border-color: #000; background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .lic-pin, .lic-item { transition: none; }
  .lic-pin.is-flash, .lic-pin.is-needed.is-flash { animation: none; }
}
