/* Visual Center on the dashboard: the invitation to My Videos. Sits between the Curiosity notebook and the Learning
 * Center, mirrored (board on the left, words on the right) so the two paper sections read as a pair, not a repeat.
 * Every colour takes the theme's value when a theme is on (--th-*) and the default paper/navy/gold otherwise. */
.gm-visual-center {
  --vc-outline: var(--th-outline, #13233f);
  --vc-ink: var(--th-ink, #13233f);
  --vc-ink-2: var(--th-ink-2, #46566b);
  --vc-paper: var(--gm-paper-fill, var(--th-paper, #fbf6ea));
  --vc-sticky: var(--th-sticky, #edcf83);
  --vc-sticky-ink: var(--th-sticky-ink, #13233f);
  --vc-slab: var(--th-slab, #13233f);
  --vc-accent-ink: var(--th-accent-ink, #806020);
  --vc-rule: color-mix(in srgb, var(--vc-outline) 22%, var(--vc-paper));
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  margin: 0 8px 0 0; border: 1.5px solid var(--vc-outline); border-radius: 18px 5px 5px 18px;
  background: var(--vc-paper); color: var(--vc-ink); box-shadow: 6px 7px 0 var(--vc-slab);
}
.gm-page .gm-study-transition + .gm-visual-center { margin-top: 0; }

/* ---------- the board: one lesson frame, as the videos draw it ---------- */
.gm-vc-stage { min-width: 0; display: grid; align-content: center; gap: 14px; padding: 40px clamp(20px, 2.6vw, 40px) 34px;
  border-right: 1px solid var(--vc-rule); }
.gm-vc-board { position: relative; display: block; border: 1.5px solid var(--vc-outline); border-radius: 10px; overflow: hidden;
  background: #fffdf8; color: #13233f; text-decoration: none; box-shadow: 4px 4px 0 var(--vc-sticky), 5px 5px 0 var(--vc-outline); }
.gm-vc-board:focus-visible { outline: 2px solid var(--vc-outline); outline-offset: 5px; }
.gm-vc-page { display: grid; grid-template-columns: 26px minmax(0, 1fr); }
.gm-vc-margin { border-right: 1px solid #e3d9bf; background: #f6efdd;
  background-image: radial-gradient(circle, #fffdf8 3.5px, #d9c79c 3.6px, #d9c79c 4.4px, transparent 4.6px);
  background-size: 26px 25%; background-position: center 12%; }
.gm-vc-sheet { min-width: 0; padding: 14px 18px 12px; }
.gm-vc-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 8px;
  border-bottom: 3px double #c39a4c; }
.gm-vc-brand { font: 600 13px/1.2 "Space Grotesk", sans-serif; }
.gm-vc-ribbon { margin-top: -14px; padding: 12px 12px 14px; background: #13233f; color: #fbf6ea;
  font: 600 10px/1 "Space Grotesk", sans-serif; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.gm-vc-lesson { margin: 10px 0 2px; font: 600 clamp(15px, 1.5vw, 19px)/1.2 "Space Grotesk", sans-serif; letter-spacing: -.01em; }
.gm-vc-graph { display: block; width: 100%; height: auto; }
.gm-vc-graph text { font: 500 9px "Hanken Grotesk", sans-serif; fill: #13233f; }
.gm-vc-graph .vc-axis { fill: none; stroke: #13233f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gm-vc-graph .vc-d { stroke: #13233f; }
.gm-vc-graph .vc-s { stroke: #2f7d6b; }
.gm-vc-graph .vc-cap { stroke: #a87e33; }
.gm-vc-graph .vc-line { fill: none; stroke-width: 2; stroke-linecap: round; }
.gm-vc-graph .vc-guide { fill: none; stroke: #13233f; stroke-width: .8; stroke-dasharray: 2 3; opacity: .55; }
.gm-vc-graph .vc-gap { fill: none; stroke: #a87e33; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.gm-vc-graph .vc-gold { fill: #806020; font-weight: 700; }
.gm-vc-graph .vc-green { fill: #2f7d6b; font-weight: 700; }
.gm-vc-graph .vc-bold { font-weight: 700; }
.gm-vc-graph .vc-dot { fill: #13233f; }

/* The player bar under the board: a play mark, the lesson's beats, its length. */
.gm-vc-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1.5px solid var(--vc-outline);
  background: #13233f; color: #fbf6ea; font: 600 11px/1 "Space Grotesk", sans-serif; }
.gm-vc-play { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--vc-sticky); }
.gm-vc-play svg { width: 11px; height: 11px; margin-left: 2px; fill: #13233f; }
.gm-vc-beats { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr 1.3fr .9fr 1fr; gap: 4px; }
.gm-vc-beats i { height: 4px; border-radius: 2px; background: rgb(251 246 234 / 28%); }
.gm-vc-beats i:nth-child(-n+3) { background: #fbf6ea; }
.gm-vc-caption { margin: 0; font-size: 12px; line-height: 1.5; color: var(--vc-ink-2); }

/* The frame draws itself once, when the student scrolls to it (visual-center.js adds .is-drawing). Without the class,
 * or with reduced motion, it is simply drawn. */
.gm-vc-board.is-drawing .vc-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vc-draw 900ms cubic-bezier(.4,0,.2,1) forwards; animation-delay: var(--at, 0ms); }
.gm-vc-board.is-drawing .vc-show { opacity: 0; animation: vc-show 400ms ease-out forwards; animation-delay: var(--at, 0ms); }
@keyframes vc-draw { to { stroke-dashoffset: 0; } }
@keyframes vc-show { to { opacity: 1; } }

/* ---------- the words ---------- */
.gm-vc-leaf { min-width: 0; position: relative; padding: 46px clamp(24px, 3vw, 52px) 34px; }
.gm-vc-leaf h2 { margin: 0 0 20px; font: 700 clamp(34px, 3.6vw, 58px)/1.04 "Space Grotesk", sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.gm-vc-leaf h2 > span { position: absolute; top: -15px; right: 28px; padding: 8px 16px;
  background: var(--vc-sticky); color: var(--vc-sticky-ink); border: 1.5px solid var(--vc-outline); border-radius: 5px 5px 0 0;
  font: 600 14px/1.2 "Space Grotesk", sans-serif; letter-spacing: 0; }
.gm-vc-leaf em { font-style: normal; color: var(--vc-accent-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.gm-vc-leaf > p { max-width: 40ch; margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: var(--vc-ink-2); }
.gm-vc-ways { list-style: none; margin: 0 0 26px; padding: 0; max-width: 44ch; border-top: 1px solid var(--vc-rule); }
.gm-vc-ways li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--vc-rule);
  font-size: 14px; line-height: 1.45; color: var(--vc-ink-2); }
.gm-vc-ways strong { font: 600 14px/1.45 "Space Grotesk", sans-serif; color: var(--vc-ink); }
.gm-vc-open { display: inline-flex; gap: 14px; align-items: center; min-height: 48px; padding: 10px 14px;
  background: var(--vc-sticky); border: 1.5px solid var(--vc-outline); border-radius: 6px; box-shadow: 3px 3px 0 var(--vc-slab);
  color: var(--vc-sticky-ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.gm-vc-open svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gm-vc-open:hover { color: var(--vc-sticky-ink); background: color-mix(in srgb, var(--vc-sticky) 74%, var(--vc-paper)); }
.gm-vc-open:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--vc-slab); }
.gm-vc-open:focus-visible { outline: 2px solid var(--vc-outline); outline-offset: 5px; }
.gm-vc-leaf small { display: block; margin-top: 15px; font-size: 12px; line-height: 1.5; color: var(--vc-ink-2); }

@media (max-width: 900px) {
  .gm-visual-center { grid-template-columns: 1fr; border-radius: 18px 5px 5px 18px; }
  .gm-vc-leaf { order: -1; padding: 38px 22px 8px; }
  .gm-vc-leaf h2 { font-size: clamp(36px, 8vw, 52px); }
  .gm-vc-leaf h2 > span { right: auto; left: 22px; }
  .gm-vc-leaf > p { font-size: 16px; }
  .gm-vc-stage { border-right: 0; padding: 18px 22px 28px; }
  .gm-vc-ways li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-vc-board.is-drawing .vc-draw, .gm-vc-board.is-drawing .vc-show { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; }
}
