/* Accent colours (requested November 29, 2026): one hue per landing wordmark letter and per student library action.
   The library actions use OWEN's own palette in its soft card style (softened the same day from flat bright fills).
   Loaded after the illustrated and chat-slim sheets so it settles their landing and library button rules without
   editing them. Sheets loaded after it (faculty-organize.css; nav-layout.css in the checkout) set nothing on these
   landing or library elements. */
:root {
  --kz-cyan: #42c9e8;
  --kz-pink: #ff5c8a;
  --kz-orange: #ff9f43;
  --kz-yellow: #ffd166;
}

/* ---- Landing: a multicolour wordmark, and the tagline's four words in the same four colours ---- */
/* Warm and cool alternate and lightness zigzags (light, dark, light, mid); orange and yellow sit apart so no two
   neighbouring letters are analogous, and the near-complementary cyan/orange pair meets at E/N. */
body[data-route='landing'] .landing-wordmark__letter--o { fill: var(--kz-yellow); }
body[data-route='landing'] .landing-wordmark__letter--w { fill: var(--kz-pink); }
body[data-route='landing'] .landing-wordmark__letter--e { fill: var(--kz-cyan); }
body[data-route='landing'] .landing-wordmark__letter--n { fill: var(--kz-orange); }
/* Structured / Clarity / Refined / Together follow O / W / E / N, so each tagline line repeats half of the wordmark. */
body[data-route='landing'] .landing-tagline__word--o { color: var(--kz-yellow); }
body[data-route='landing'] .landing-tagline__word--w { color: var(--kz-pink); }
body[data-route='landing'] .landing-tagline__word--e { color: var(--kz-cyan); }
body[data-route='landing'] .landing-tagline__word--n { color: var(--kz-orange); }

/* Wide (full-window) layouts: the wordmark leads the page and the header rule moves down with it. The 320px floor on
   the width term keeps 1001-1333 px windows from shrinking below the half-screen size at 1000 px; height still caps it. */
@media (min-width: 1001px) {
  body[data-route='landing'] .landing-wordmark { width: clamp(240px, min(max(24vw, 320px), 44vh), 480px); }
  body[data-route='landing'] .landing-canvas__header { padding-bottom: clamp(20px, 1.8vw, 34px); }
}
/* Half-screen layouts (two columns, 801-1000 px; the illustrated sheet sets 158 px and a 20px rule padding, kept here):
   the same treatment at this width. In windows 800 px or taller it meets the wide size (320px) at 1000 px; shorter
   windows cap it at 40vh, a little below the wide rule's 44vh. */
@media (min-width: 801px) and (max-width: 1000px) {
  body[data-route='landing'] .landing-wordmark { width: clamp(220px, min(32vw, 40vh), 340px); }
}
/* 701-800 px stacks the mascot under the cards (landing-canvas.css), which already fills an 800 px-tall window,
   so the wordmark grows less there and is capped by the window height. */
@media (min-width: 701px) and (max-width: 800px) {
  body[data-route='landing'] .landing-wordmark { width: clamp(158px, min(30vw, 24vh), 240px); }
}

/* ---- Student library actions: OWEN's soft module style (as the welcome cards: tinted card, soft border, 4px coloured
   left edge) with one OWEN hue per action. Mixed against the theme surface, so dark theme gets dark tints and light text. ---- */
html body[data-route="student"] #libraryPanelBody .student-library__action-primary > #practiceTestBuilderBtn { --kz-fill: var(--owen-teal, #35c6ae); }
html body[data-route="student"] #libraryPanelBody .student-library__action-primary > #practiceTestHistoryBtn { --kz-fill: var(--owen-violet, #7864e8); }
html body[data-route="student"] #libraryPanelBody .student-library__action-primary > #libraryGeminiBtn { --kz-fill: var(--owen-cyan, #42c9e8); }
html body[data-route="student"] #libraryPanelBody .student-library__action-primary > #studentAnkiDownloadBtn { --kz-fill: var(--owen-orange, #ff9f43); }

html body[data-route="student"] #libraryPanelBody .student-library__action-primary > :is(#practiceTestBuilderBtn, #practiceTestHistoryBtn, #libraryGeminiBtn, #studentAnkiDownloadBtn),
html body[data-route="student"] #libraryPanelBody .student-library__action-primary > :is(#practiceTestBuilderBtn, #practiceTestHistoryBtn, #libraryGeminiBtn, #studentAnkiDownloadBtn):is(:active, :focus-visible) {
  background: color-mix(in srgb, var(--kz-fill) 16%, var(--owen-surface, #fff));
  border: 1px solid color-mix(in srgb, var(--kz-fill) 42%, var(--owen-surface, #fff));
  border-left: 4px solid var(--kz-fill);
  color: var(--owen-text, #172044);
  font-weight: 750;
}
html body[data-route="student"] #libraryPanelBody .student-library__action-primary > :is(#practiceTestBuilderBtn, #practiceTestHistoryBtn, #libraryGeminiBtn, #studentAnkiDownloadBtn):hover:not(:disabled) {
  background: color-mix(in srgb, var(--kz-fill) 26%, var(--owen-surface, #fff));
  border-color: color-mix(in srgb, var(--kz-fill) 65%, var(--owen-surface, #fff));
  border-left: 4px solid var(--kz-fill); /* full shorthand: chat-slim's hover `border: 1px solid` would otherwise thin it */
  color: var(--owen-text, #172044);
}
html body[data-route="student"] #libraryPanelBody .student-library__action-primary > :is(#practiceTestBuilderBtn, #practiceTestHistoryBtn, #libraryGeminiBtn, #studentAnkiDownloadBtn):active:not(:disabled) {
  background: color-mix(in srgb, var(--kz-fill) 34%, var(--owen-surface, #fff));
}
