/* ==========================================================================
   Who Am I — a manila case file on a dark wood desk
   ========================================================================== */

.label--spaced { letter-spacing: 0.32em; }

.about-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.about-head__title { margin-top: 0.75rem; font-size: clamp(3.25rem, 11vw, 8.5rem); line-height: 0.88; }

/* ---------- The desk ---------- */

.case-desk {
  position: relative;
  max-width: 80rem;
  margin: 0 auto clamp(4rem, 9vw, 7rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(0.75rem, 4vw, 4rem) clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  border-radius: 0.8rem;
  background:
    radial-gradient(ellipse 55% 45% at 16% 8%, rgba(245, 185, 113, 0.42), rgba(245, 185, 113, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .3' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .04 0 0 0 0 .02 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #3A2414, #23150B);
  background-size: auto, 600px 300px, auto;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.case-desk__lamp {
  position: absolute;
  top: -3rem;
  left: -3rem;
  width: 10rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 55%, #FFF2D0 0 18%, #2E2015 19% 55%, #170E07 56%);
  box-shadow: 0 0 90px 45px rgba(245, 185, 113, 0.28);
}

/* ---------- The folder ---------- */

.folder {
  --manila: #E8D3A3;
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
  padding-top: 2.4rem;          /* room for the tab */
  perspective: 2000px;
}
.folder__tab {
  position: absolute;
  top: 0;
  left: 6%;
  z-index: 3;
  padding: 0.55rem 1.4rem 0.6rem;
  border-radius: 0.6rem 0.6rem 0 0;
  background: var(--manila);
  color: #2A2014;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.folder__inside {
  position: relative;
  padding: 1.25rem 1rem 1rem;
  border-radius: 0 0.6rem 0.6rem 0.6rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent 6%),
    var(--manila);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(120, 90, 40, 0.25);
}

/* exhibit tabs (phones: a row on top) */
.folder__tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.folder__tabbtn {
  flex: 1;
  min-height: 2.75rem;
  border: 1px solid rgba(80, 60, 20, 0.35);
  border-radius: 0.35rem;
  background: #F3E6C4;
  color: #4A3A1E;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.folder__tabbtn:hover { background: #FFF5DC; color: var(--accent); }
.folder__tabbtn[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.folder__tabbtn:focus-visible { outline: 3px solid #111; outline-offset: 2px; }

/* the pages: a swipeable row, one document at a time */
.docs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.docs::-webkit-scrollbar { display: none; }
.docs:focus-visible { outline: 3px solid #111; outline-offset: 4px; }

.folder__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}
.folder__arrow {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(80, 60, 20, 0.45);
  border-radius: 50%;
  background: #F6EBCD;
  color: #2A2014;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.folder__arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.folder__arrow:disabled { opacity: 0.35; cursor: default; }
.folder__arrow:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.folder__count {
  color: #4A3A1E;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* the closed cover (larger screens only) */
.folder__cover { display: none; }

/* ---------- One document (page) ---------- */

.doc {
  position: relative;
  min-width: 0;
  padding: 2.6rem 1.25rem 1.75rem;
  margin: 0 0.15rem;
  scroll-snap-align: start;
  background: #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  color: #1A1A1A;
}
.doc__label {
  margin-bottom: 1.25rem;
  padding-right: 6rem;
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}
.doc__label:focus { outline: none; }
.is-placeholder { background: rgba(200, 16, 46, 0.08); }

/* red evidence tag tied on with string */
.evidence-tag {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem 0.25rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%);
  transform: rotate(4deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.evidence-tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.6rem;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.225rem;
  border-radius: 50%;
  background: #FFF;
}

/* ---------- Exhibit A: the baseball card ---------- */

.doc--card { background: #F7F2E6; display: flex; flex-direction: column; align-items: center; }
.doc--card .doc__label { align-self: flex-start; }

.card-holder { position: relative; padding-top: 1.2rem; }
.paperclip {
  position: absolute;
  top: 0;
  left: 18%;
  z-index: 3;
  width: 1.4rem;
  height: 4.2rem;
  border: 3px solid #9AA0A6;
  border-radius: 0.7rem;
  box-shadow: inset 0 0 0 4px transparent, 1px 2px 2px rgba(0, 0, 0, 0.3);
}
.paperclip::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0.2rem;
  width: 0.55rem;
  height: 2.6rem;
  border: 3px solid #B5BBC1;
  border-bottom: 0;
  border-radius: 0.4rem 0.4rem 0 0;
}

.bcard {
  width: min(84vw, 21rem);
  perspective: 1400px;
  cursor: pointer;
}
.bcard__inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}
.bcard.is-flipped .bcard__inner { transform: rotateY(180deg); }
.bcard__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  aspect-ratio: 5 / 7;
  padding: 0.75rem;
  border: 0.55rem solid var(--accent);
  border-radius: 0.6rem;
  box-shadow: inset 0 0 0 0.25rem #FBF6EA, 0 10px 20px rgba(0, 0, 0, 0.35);
  backface-visibility: hidden;
}
.bcard__front { position: relative; background: #FBF6EA; }
.bcard__photo { flex: 1; min-height: 0; overflow: hidden; border: 3px solid #1A1A1A; background: #CFE0E8; }
.bcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.bcard__team {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  padding: 0.3rem 1.4rem 0.25rem 0.6rem;
  background: #1A1A1A;
  color: #FBF6EA;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%);
}
.bcard__banner {
  position: relative;
  margin: -1.1rem -0.4rem 0;
  padding: 0.5rem 1rem 0.45rem;
  background: var(--accent);
  color: #FBF6EA;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.bcard__pos {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.bcard__back {
  gap: 0.45rem;
  overflow: hidden;
  background: #EAD9C2;
  color: #1A1A1A;
  transform: rotateY(180deg);
  font-size: 0.8rem;
}
.bcard__backhead { padding: 0.35rem 0.5rem 0.3rem; background: var(--accent); color: #FBF6EA; text-align: center; }
.bcard__backname { font-family: "Alfa Slab One", Georgia, serif; font-size: 1.05rem; line-height: 1.05; text-transform: uppercase; }
.bcard__backteam { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.bcard__stats { margin: 0; }
.bcard__stats div { display: flex; gap: 0.5rem; padding: 0.18rem 0; border-bottom: 1px dotted rgba(0, 0, 0, 0.35); }
.bcard__stats dt { flex: none; width: 5.2rem; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.bcard__stats dd { margin: 0; font-size: 0.75rem; line-height: 1.3; }
.bcard__highlights { padding: 0.35rem 0.5rem; border: 2px solid #1A1A1A; background: #F4E8D3; }
.bcard__boxhead { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.bcard__highlights li { font-size: 0.72rem; line-height: 1.35; }
.bcard__highlights li::before { content: "\2605  "; color: var(--accent); }
.bcard__cartoon { display: flex; align-items: center; gap: 0.4rem; margin-top: auto; padding: 0.3rem; border: 2px solid #1A1A1A; background: #FFF8E8; }
.bcard__cartoon svg { flex: none; width: 4.2rem; }
.bcard__fact { font-size: 0.72rem; font-style: italic; line-height: 1.3; }

.bcard__flip { margin-top: 1.1rem; }

/* ---------- Typed statement ---------- */
.doc--statement { font-family: "Courier Prime", "Courier New", monospace; font-size: 1rem; line-height: 1.65; }
.doc__heading { margin-bottom: 1rem; font-family: "Courier Prime", monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 0.25em; }
.doc--statement p + p { margin-top: 0.85rem; }
.doc__verse { margin: 1.5rem 0 0; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: #FFF6F7; }
.doc__verse p { color: var(--accent); font-size: 1.15rem; font-style: italic; font-weight: 700; }
.doc__verse cite { display: block; margin-top: 0.4rem; font-family: var(--font-display); font-size: 0.95rem; font-style: normal; letter-spacing: 0.1em; }

/* ---------- Newspaper clipping ---------- */
.doc--newspaper {
  background: #F1EADB;
  font-family: "Old Standard TT", Georgia, serif;
  clip-path: polygon(0 1%, 4% 0, 9% 1.2%, 15% 0.2%, 22% 1%, 30% 0, 38% 1.1%, 47% 0.3%, 55% 1%, 63% 0, 72% 1.2%, 80% 0.2%, 88% 1%, 95% 0.1%, 100% 1%, 100% 99%, 94% 100%, 86% 98.9%, 77% 100%, 68% 99%, 58% 100%, 48% 98.9%, 39% 100%, 30% 99%, 21% 100%, 12% 98.8%, 5% 100%, 0 99%);
}
.news__mast { font-family: "UnifrakturMaguntia", "Old English Text MT", serif; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1; text-align: center; }
.news__rule { margin: 0.4rem 0 0.9rem; padding: 0.2rem 0; border-top: 3px double #1A1A1A; border-bottom: 1px solid #1A1A1A; font-size: 0.8rem; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }
.news__headline { font-family: "Old Standard TT", Georgia, serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.05; letter-spacing: 0; text-transform: none; }
.news__deck { margin-top: 0.4rem; font-size: 1.05rem; font-style: italic; }
.news__cols { margin-top: 0.9rem; font-size: 1rem; line-height: 1.55; }
.news__cols p + p { margin-top: 0.6rem; }
.news__lead::first-letter { float: left; margin: 0.1rem 0.4rem 0 0; font-size: 3.2rem; font-weight: 700; line-height: 0.8; }
.news__mark {
  position: absolute;
  color: var(--accent);
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.news__mark--0 { top: 9.5rem; right: 0.4rem; transform: rotate(-8deg); }
.news__mark--1 { top: 13rem; left: 0.15rem; }
.news__mark--2 { bottom: 4rem; right: 0.5rem; transform: rotate(6deg); }
.news__mark--3 { bottom: 1.5rem; left: 0.4rem; transform: rotate(-4deg); }

/* ---------- Legal memo ---------- */
.doc--memo { font-family: "Courier Prime", "Courier New", monospace; font-size: 0.98rem; line-height: 1.6; }
.memo__title { font-family: "Courier Prime", monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.3em; text-align: center; text-transform: uppercase; }
.memo__meta { margin: 1rem 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid #1A1A1A; }
.memo__meta div { display: flex; gap: 1rem; }
.memo__meta dt { width: 4.5rem; font-weight: 700; text-transform: uppercase; }
.memo__meta dd { margin: 0; }
.memo__section + .memo__section { margin-top: 0.85rem; }
.memo__section h4 { font-family: "Courier Prime", monospace; font-size: 1rem; font-weight: 700; letter-spacing: 0; text-decoration: underline; text-transform: uppercase; }

/* ---------- Service record ---------- */
.doc--record { background: #FCFBF7; }
.doc--record .doc__heading { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; text-decoration: none; letter-spacing: 0.06em; }
.record { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.record th { padding: 0.45rem 0.5rem; border-bottom: 2px solid #1A1A1A; font-family: var(--font-display); font-size: 1rem; font-weight: 400; letter-spacing: 0.1em; text-align: left; text-transform: uppercase; }
.record td { padding: 0.65rem 0.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.15); vertical-align: top; }
.record td:first-child { font-weight: 400; white-space: nowrap; }
.record__stamp {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.2rem 0.7rem 0.1rem;
  border: 3px double var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  opacity: 0.85;
}

/* ---------- Scouting report (pre-printed form, typed in) ---------- */
.doc--scouting { background: #EEF0E6; font-family: "Courier Prime", "Courier New", monospace; font-size: 0.95rem; }
.scout { border: 2px solid #1A1A1A; background: #F8F9F2; }
.scout__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.6rem 0.9rem 0.45rem;
  background: #1A1A1A;
  color: #F8F9F2;
}
.scout__title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; letter-spacing: 0.08em; line-height: 1; }
.scout__form { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.scout__info { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 2px solid #1A1A1A; }
.scout__info div { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(0, 0, 0, 0.2); }
.scout__info div:nth-child(odd) { border-right: 1px solid rgba(0, 0, 0, 0.2); }
.scout__info div:nth-last-child(-n+2) { border-bottom: 0; }
.scout__info dt { flex: none; font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: #555; }
.scout__info dd { margin: 0; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }

.scout table { width: 100%; border-collapse: collapse; }
.scout caption {
  padding: 0.5rem 0.75rem 0.3rem;
  border-bottom: 1px solid #1A1A1A;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}
.scout th, .scout td { padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.15); text-align: left; vertical-align: middle; }
.scout thead th { font-family: var(--font-display); font-size: 0.85rem; font-weight: 400; letter-spacing: 0.1em; color: #555; text-transform: uppercase; }
.scout tbody th { font-weight: 700; }
.scout th:first-child, .scout td:first-child { padding-left: 0.75rem; }
.scout__num { width: 3.2rem; font-weight: 700; text-align: center !important; }
.scout__num--fut { color: var(--accent); }
.scout__scale { width: 45%; }
.scout__scale span { display: inline-block; width: 33.33%; }
.scout__scale span:nth-child(2) { text-align: center; }
.scout__scale span:nth-child(3) { text-align: right; }
.scout__meter { width: 45%; padding-right: 0.75rem !important; }
.scout__track {
  position: relative;
  display: block;
  height: 0.7rem;
  border: 1px solid #1A1A1A;
  background: repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 1px), rgba(0, 0, 0, 0.25) calc(16.666% - 1px) 16.666%);
}
.scout__fill { position: absolute; inset: 0 auto 0 0; background: rgba(200, 16, 46, 0.35); }
.scout__now { position: absolute; top: -0.3rem; bottom: -0.3rem; width: 3px; margin-left: -1.5px; background: #1A1A1A; }
.scout__note { padding: 0.35rem 0.75rem; font-size: 0.8rem; font-style: italic; }

.scout__intang { border-top: 2px solid #1A1A1A; }
.scout__intang .scout__num.is-plus { color: var(--accent); }
.scout__intang .scout__num.is-minus { color: #6B6B6B; text-decoration: line-through; text-decoration-color: var(--accent); }
.scout__comment { font-family: "Caveat", cursive; font-size: 1.3rem; line-height: 1.1; color: #1D3A7A; }

.scout__sw { border-top: 2px solid #1A1A1A; }
.scout__sw div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; padding: 0.45rem 0.75rem; border-bottom: 1px solid rgba(0, 0, 0, 0.15); }
.scout__sw dt, .scout__sumlabel { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.1em; color: #555; text-transform: uppercase; }
.scout__sw dd { margin: 0; }
.scout__summary { padding: 0.5rem 0.75rem; }
.scout__hand { color: #1D3A7A; font-family: "Caveat", cursive; font-size: 1.45rem; line-height: 1.2; }
.scout__foot { display: flex; align-items: center; gap: 1rem; padding: 0.25rem 0.75rem 0.85rem; }
.scout__ofp {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border: 3px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  transform: rotate(-8deg);
}
.scout__ofplabel { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.18em; line-height: 1; }
.scout__ofpnum { font-family: "Caveat", cursive; font-size: 2.3rem; font-weight: 700; line-height: 0.9; }
.scout__sig { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; padding-bottom: 0.2rem; border-bottom: 1px solid #1A1A1A; }

/* ---------- The playlist (cassette + insert card) ---------- */
.doc--tape { background: #F3EEE4; }
.tape-deck { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.tape { width: min(100%, 24rem); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35)); transform: rotate(-2deg); }
.tape svg { display: block; width: 100%; height: auto; }
.tape__hub { transform-box: fill-box; transform-origin: center; animation: tape-spin 3s linear infinite; animation-play-state: paused; }
.tape-deck:hover .tape__hub, .tape-deck:focus-within .tape__hub { animation-play-state: running; }
@keyframes tape-spin { to { transform: rotate(-360deg); } }
.tape__nolink { padding: 0.25rem 0.5rem; font-size: 0.85rem; text-align: center; }

.jcard {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 10px solid var(--accent);
  background: #FFFDF7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.jcard__title { color: #1D3A7A; font-family: "Caveat", cursive; font-size: 2rem; font-weight: 700; letter-spacing: 0; line-height: 1.1; text-transform: none; }
.jcard__sides { display: grid; gap: 1rem; margin-top: 0.5rem; }
.jcard__sidename { padding-bottom: 0.2rem; border-bottom: 2px solid #1A1A1A; font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; letter-spacing: 0.1em; }
.jcard ol { margin: 0; padding: 0; list-style: none; counter-reset: song; }
.jcard li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
  padding: 0.3rem 0 0.15rem;
  border-bottom: 1px solid rgba(29, 58, 122, 0.25);
  color: #1D3A7A;
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  line-height: 1.15;
  counter-increment: song;
}
.jcard li::before { content: counter(song) "."; min-width: 1.2rem; color: var(--accent); font-weight: 700; }
.jcard__song { font-weight: 700; }
.jcard__artist { color: #4A5A80; }
.jcard__artist::before { content: "— "; }
.jcard__more { margin-top: 0.4rem; color: #1D3A7A; font-family: "Caveat", cursive; font-size: 1.35rem; font-weight: 700; }
.jcard__more a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Handwritten note ---------- */
.doc--note { background: #FFF7CF; }
.note {
  padding: 0.5rem 0.5rem 0 2.25rem;
  background: repeating-linear-gradient(180deg, transparent 0 calc(2.6rem - 1px), rgba(29, 78, 154, 0.25) calc(2.6rem - 1px) 2.6rem);
  border-left: 2px solid rgba(200, 16, 46, 0.45);
  color: #1D3A7A;
  font-family: "Caveat", cursive;
  font-size: 1.75rem;
  line-height: 2.6rem;
}
.note__sign { margin-top: 0.5rem; text-align: right; font-weight: 700; }

/* ---------- The verdict ---------- */
.doc--verdict { text-align: center; font-family: "Courier Prime", "Courier New", monospace; }
.verdict__court { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: 0.12em; }
.verdict__court:focus { outline: none; }
.verdict__caption { margin-top: 0.5rem; font-style: italic; }
.verdict__order { margin-top: 1.5rem; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; }
.verdict__findings { max-width: 34rem; margin: 0.75rem auto 0; line-height: 1.65; }
.verdict__ruling { margin-top: 1.5rem; color: var(--accent); font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 0.95; text-transform: uppercase; }
.verdict__gavel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  padding: 0.6rem 1rem 0.4rem;
  border: 4px double var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(-10deg);
  opacity: 0.9;
}
.verdict__gavel svg { width: 3rem; height: 3rem; }
.verdict__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }

/* ==========================================================================
   Larger screens: closed folder that opens, tabs down the side
   ========================================================================== */

@media (min-width: 48em) {
  .folder__inside { padding: 1.75rem 1.75rem 1.25rem; border-radius: 0 0.8rem 0.8rem 0.8rem; }
  .folder__tabs {
    position: absolute;
    top: 2.5rem;
    right: -2.9rem;
    flex-direction: column;
    margin: 0;
    gap: 0.4rem;
  }
  .folder__tabbtn {
    width: 3rem;
    min-height: 3rem;
    flex: none;
    border-radius: 0 0.45rem 0.45rem 0;
    border-left: 0;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  .doc { padding: 3rem 2.5rem 2.25rem; }
  .news__cols { column-count: 2; column-gap: 2rem; }
  .jcard__sides { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .scout__info { grid-template-columns: repeat(4, auto); }
  .scout__info div:nth-child(odd) { border-right: 0; }
  .scout__info div { border-bottom: 0; border-right: 1px solid rgba(0, 0, 0, 0.2) !important; }
  .scout__info div:last-child { border-right: 0 !important; }
  .doc--card { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 0 2.5rem; }
  .doc--card .doc__label { flex-basis: 100%; }
  .bcard__flip { align-self: center; }

  .folder__cover {
    position: absolute;
    top: 2.4rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0 0.8rem 0.8rem 0.8rem;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 3%),
      #EAD6A8;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(120, 90, 40, 0.3);
    cursor: pointer;
    transform-origin: 0 50%;
    transition: transform 0.9s cubic-bezier(0.55, 0, 0.3, 1), opacity 0.4s ease 0.55s;
  }
  .folder__cover:hover { filter: brightness(1.03); }
  .folder__cover:focus-visible { outline: 3px solid #FFE6BE; outline-offset: 6px; }
  .folder.is-open .folder__cover { transform: rotateY(-165deg); opacity: 0; pointer-events: none; }
  .folder.is-instant .folder__cover { transition: none; }

  .cover__title {
    position: absolute;
    top: 38%;
    left: 50%;
    color: #2A2014;
    font-family: "Courier Prime", monospace;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  .cover__stamp--case {
    position: absolute;
    top: 12%;
    right: 8%;
    padding: 0.3rem 0.9rem 0.2rem;
    border: 4px double var(--accent);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(8deg);
    opacity: 0.88;
  }
  .cover__confidential {
    position: absolute;
    top: 56%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transform: translateX(-50%) rotate(-6deg);
  }
  .cover__confidential s {
    padding: 0.2rem 0.8rem 0.1rem;
    border: 3px solid #1A1A1A;
    color: #1A1A1A;
    font-family: var(--font-display);
    font-size: 2.1rem;
    letter-spacing: 0.16em;
    text-decoration: line-through;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 4px;
    text-transform: uppercase;
    opacity: 0.8;
  }
  .cover__open {
    color: var(--accent);
    font-family: "Caveat", cursive;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    transform: rotate(-4deg);
  }
  .cover__hint {
    position: absolute;
    bottom: 7%;
    left: 50%;
    color: #6B5A3A;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transform: translateX(-50%);
  }
}

@media (max-width: 30em) {
  .record td:first-child { white-space: normal; }
  .record th:nth-child(2), .record td:nth-child(2) { display: none; }
}

/* ---------- Motion off: no opening or flipping; both card sides shown ---------- */
@media (prefers-reduced-motion: reduce) {
  .bcard__inner { display: flex; flex-direction: column; gap: 1rem; transform: none !important; transition: none; }
  .bcard__face { backface-visibility: visible; }
  .bcard__back { transform: none; }
  .bcard__flip { display: none; }
  .folder__cover { display: none !important; }
}

/* long tape sides scroll inside the insert card */
.jcard__scroll {
  max-height: 19rem;
  padding-right: 0.5rem !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}
.jcard__scroll:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
