/*
 * The "renkli-yetenek" design of the web panel. Loaded only for a school it is open to and set on
 * (lib/school-design/designs, components/school-design), and every rule hangs on the marker drawn there, so nothing
 * here can reach another school. Which school it draws is the catalogue's business: no name or logo in this file.
 *
 * World: a school's working desk. Quiet neutrals carry the long working day, an ink side menu holds the sections, and
 * the four colours of the school's logo mark departments and the charts, nothing else. The only rich moment is the
 * enrolment flow on the sign-in page. Archivo throughout (a wider cut for titles and the day's figures), with tabular
 * figures that leave the punctuation alone.
 * Every colour pair is measured in lib/school-design/__tests__/theme-isolation.
 */
@font-face {
  font-family: "RY Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("./fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "RY Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("./fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens: light */
html:has([data-school-design="renkli-yetenek"]) {
  --font-sans: "RY Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "RY Sans", ui-sans-serif, system-ui, sans-serif;
  --font-weight-medium: 550;
  --tracking-tight: -0.015em;
  --shell-bar: calc(4rem + env(safe-area-inset-top, 0px));

  --ds-band: #0e1625;
  --ds-band-fg: #ffffff;
  --ds-band-muted: #b4bdcb;
  --ds-band-hover: rgb(255 255 255 / 0.1);
  --ds-hero: #0d1a33;
  --ds-hero-2: #14264a;
  --ds-hero-fg: #ffffff;
  --ds-hero-muted: #d3dbe8;
  --ds-reg: #a0368f;
  --ds-fin: #0069b4;
  --ds-ops: #d99a00;
  --ds-sch: #3f9a3b;
  --ds-now: #b3202c;
  /* The assistant and what it filled: the logo's magenta, on nothing else. Counts that ask for attention: red. */
  --ds-ai: #a0368f;
  --ds-ai-hover: #872c78;
  --ds-ai-ink: #a0368f;
  --ds-ai-soft: #f7ecf5;
  --ds-alert: #c41f2e;
  --ds-on-strong: #ffffff;
  /* The assistant panel's header: the logo's navy; its status cell light blue. */
  --assistant-head: #0a2f5e;
  --assistant-ring: #a9cdf6;

  --background: #f3f4f6;
  --foreground: #0d1524;
  --card: #ffffff;
  --card-foreground: #0d1524;
  --popover: #ffffff;
  --popover-foreground: #0d1524;
  --primary: #0a4a94;
  --primary-foreground: #ffffff;
  --secondary: #eceef2;
  --secondary-foreground: #0d1524;
  --muted: #eceef2;
  --muted-foreground: #4a5566;
  --accent: #eceef2;
  --accent-foreground: #0d1524;
  --destructive: #b3202c;
  --success: #0d7446;
  --warning: #8a5a00;
  --info: #0a5fa8;
  --border: #e2e5ea;
  --input: #7c8594;
  --ring: #0a4a94;
  --honey: #0a5fa8;
  --honey-strong: #0a4a94;
  --honey-soft: #e4eef8;
  --honey-foreground: #0a3f7f;
  --on-honey: #ffffff;
  --chart-1: #0069b4;
  --chart-2: #a0368f;
  --chart-3: #e0a100;
  --chart-4: #3f9a3b;
  --chart-5: #6a2c91;
  --chart-other: #cfd4dc;
  --radius: 0.625rem;
  --sidebar: #0e1625;
  --sidebar-foreground: #eef1f6;
  --sidebar-primary: #ffffff;
  --sidebar-primary-foreground: #0d1524;
  --sidebar-accent: #172134;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: rgb(255 255 255 / 0.09);
  --sidebar-ring: #8cc7f7;
  --elev-card: 0 0 0 1px var(--border);
  --elev-card-hover: 0 0 0 1px #cfd4dc;
  --elev-raised: 0 0 0 1px rgb(13 21 36 / 0.08), 0 12px 32px -8px rgb(13 21 36 / 0.2);
}

/* Tokens: the warm light theme a person may have picked elsewhere reads as the light theme here. */
html.honey:has([data-school-design="renkli-yetenek"]) {
  --background: #f3f4f6;
  --card: #ffffff;
  --popover: #ffffff;
}

/* Tokens: dark */
html.dark:has([data-school-design="renkli-yetenek"]) {
  --ds-band: #070b12;
  --ds-band-fg: #eef1f6;
  --ds-band-muted: #a9b3c2;
  --ds-band-hover: rgb(255 255 255 / 0.08);
  --ds-hero: #12203c;
  --ds-hero-2: #1a2c50;
  --ds-hero-fg: #ffffff;
  --ds-hero-muted: #d3dbe8;
  --ds-reg: #d873c6;
  --ds-fin: #4ea3e6;
  --ds-ops: #efc04e;
  --ds-sch: #6fc26a;
  --ds-now: #f0868f;
  --ds-ai-hover: #b5459f;
  --ds-ai-ink: #e39bd6;
  --ds-ai-soft: #2a1830;
  --ds-alert: #d02a37;
  --assistant-head: #0a1d38;
  --assistant-ring: #84c2f5;

  --background: #0a0f18;
  --foreground: #eef1f6;
  --card: #131b29;
  --card-foreground: #eef1f6;
  --popover: #182233;
  --popover-foreground: #eef1f6;
  --primary: #a9cdf6;
  --primary-foreground: #0a1c33;
  --secondary: #1d2839;
  --secondary-foreground: #eef1f6;
  --muted: #1d2839;
  --muted-foreground: #aeb8c7;
  --accent: #222e42;
  --accent-foreground: #eef1f6;
  --destructive: #f0868f;
  --success: #62cf9d;
  --warning: #ecbc5a;
  --info: #84c2f5;
  --border: rgb(238 241 246 / 0.11);
  --input: #72809a;
  --ring: #84c2f5;
  --honey: #62b2f2;
  --honey-strong: #8cc7f7;
  --honey-soft: #16304c;
  --honey-foreground: #bcdcf9;
  --on-honey: #08223a;
  --chart-1: #4ea3e6;
  --chart-2: #d873c6;
  --chart-3: #efc04e;
  --chart-4: #6fc26a;
  --chart-5: #a98be0;
  --chart-other: #3f4c62;
  --sidebar: #070b12;
  --sidebar-foreground: #eef1f6;
  --sidebar-primary: #eef1f6;
  --sidebar-primary-foreground: #0d1524;
  --sidebar-accent: #151e2e;
  --sidebar-accent-foreground: #eef1f6;
  --sidebar-border: rgb(238 241 246 / 0.1);
  --sidebar-ring: #84c2f5;
  --elev-card: 0 0 0 1px var(--border);
  --elev-card-hover: 0 0 0 1px rgb(238 241 246 / 0.2);
  --elev-raised: 0 0 0 1px rgb(238 241 246 / 0.1), 0 12px 32px -8px rgb(0 0 0 / 0.6);
}

/* Type: one family, a sturdy body and a wider cut for titles. Numbers line up; their punctuation keeps its own width. */
html:has([data-school-design="renkli-yetenek"]) body {
  font-feature-settings: normal;
  font-size: 0.9375rem;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
html:has([data-school-design="renkli-yetenek"]) .font-display {
  font-stretch: 112%;
  font-weight: 650;
  letter-spacing: -0.015em;
}
html:has([data-school-design="renkli-yetenek"]) .tabular {
  font-variant-numeric: tabular-nums lining-nums;
}
html:has([data-school-design="renkli-yetenek"]) table {
  font-variant-numeric: tabular-nums lining-nums;
}
html:has([data-school-design="renkli-yetenek"]) .text-xs {
  font-size: 0.8125rem;
}

/* The frame: the ink colours the side menu and the phone's top bar share. */
html:has([data-school-design="renkli-yetenek"]) .ds-band {
  background: var(--ds-band);
  color: var(--ds-band-fg);
  --foreground: var(--ds-band-fg);
  --muted-foreground: var(--ds-band-muted);
  --accent: var(--ds-band-hover);
  --accent-foreground: var(--ds-band-fg);
  --muted: var(--ds-band-hover);
  --ring: #8cc7f7;
  --border: rgb(255 255 255 / 0.14);
}
/* The marks that tell a department apart: a small square from the school's logo, nothing more. */
html:has([data-school-design="renkli-yetenek"]) .ds-tick {
  display: inline-block;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 2px;
  flex: none;
}
html:has([data-school-design="renkli-yetenek"]) .ds-tick-reg {
  background: var(--ds-reg);
}
html:has([data-school-design="renkli-yetenek"]) .ds-tick-fin {
  background: var(--ds-fin);
}
html:has([data-school-design="renkli-yetenek"]) .ds-tick-ops {
  background: var(--ds-ops);
}
html:has([data-school-design="renkli-yetenek"]) .ds-tick-sch {
  background: var(--ds-sch);
}
/* A phone's pages of the open section: scrolling words, the next one peeking past the edge. */
html:has([data-school-design="renkli-yetenek"]) .ds-strip {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
}
html:has([data-school-design="renkli-yetenek"]) .ds-strip::-webkit-scrollbar {
  display: none;
}

/* The sign-in page: one unit (--u, px per unit of the drawing) fits the flow between the words and the form. */
html:has([data-school-design="renkli-yetenek"]) .ds-door {
  --door-w: 400px;
  --door-gap: 64px;
  --u: min(calc((100vw - var(--door-w) - var(--door-gap) + 10px) / 990), calc((50dvh - 220px) / 200), calc(100dvh / 900), 1.25px);
}
html:has([data-school-design="renkli-yetenek"]) .ds-door-art {
  position: absolute;
  inset-block: 0;
  left: 0;
  right: calc(var(--door-gap) + var(--door-w) / 2);
  overflow: hidden;
  pointer-events: none;
}
html:has([data-school-design="renkli-yetenek"]) .ds-door-art > svg {
  position: absolute;
  left: 0;
  top: calc(50dvh - var(--u) * 200);
  inline-size: calc(var(--u) * 1440);
  block-size: calc(var(--u) * 650);
  overflow: visible;
}
html:has([data-school-design="renkli-yetenek"]) .ds-door-panel {
  inline-size: var(--door-w);
}
html:has([data-school-design="renkli-yetenek"]) .ds-flow text {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums lining-nums;
}
html:has([data-school-design="renkli-yetenek"]) .ds-flow-n {
  font-size: 15px;
  font-weight: 600;
  fill: var(--foreground);
}
html:has([data-school-design="renkli-yetenek"]) .ds-flow-v {
  font-size: 15px;
  font-weight: 550;
  fill: var(--muted-foreground);
}
html:has([data-school-design="renkli-yetenek"]) .ds-flow-big {
  font-size: 26px;
  font-weight: 650;
  font-stretch: 112%;
  fill: var(--foreground);
}
html:has([data-school-design="renkli-yetenek"]) .ds-flow-s {
  font-size: 14px;
  font-weight: 550;
  fill: var(--foreground);
}
html:has([data-school-design="renkli-yetenek"]) .ds-flow-t {
  font-size: 13px;
  fill: var(--muted-foreground);
}
html:has([data-school-design="renkli-yetenek"]) .ds-flow-now {
  font-size: 12px;
  font-weight: 600;
  fill: var(--ds-now);
}
html:has([data-school-design="renkli-yetenek"]) .ds-flow-line {
  stroke: var(--card);
}
@media (max-width: 1279px), (max-height: 820px) {
  html:has([data-school-design="renkli-yetenek"]) .ds-door {
    --door-w: 360px;
    --door-gap: 40px;
  }
  html:has([data-school-design="renkli-yetenek"]) .ds-door-art .ds-flow-n,
  html:has([data-school-design="renkli-yetenek"]) .ds-door-art .ds-flow-v {
    font-size: 17px;
  }
  html:has([data-school-design="renkli-yetenek"]) .ds-door-art .ds-flow-big {
    font-size: 30px;
  }
  html:has([data-school-design="renkli-yetenek"]) .ds-door-art .ds-flow-s {
    font-size: 16px;
  }
  html:has([data-school-design="renkli-yetenek"]) .ds-door-art .ds-flow-t {
    font-size: 15px;
  }
  html:has([data-school-design="renkli-yetenek"]) .ds-door-art .ds-flow-now {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has([data-school-design="renkli-yetenek"]) .ds-flow-dots {
    display: none;
  }
}

/* The product's marks stay out of this design. */
html:has([data-school-design="renkli-yetenek"]) div:has(> svg[viewBox="0 0 136 104"]) > svg,
html:has([data-school-design="renkli-yetenek"]) section > svg[viewBox="0 0 560 440"] {
  display: none;
}
html:has([data-school-design="renkli-yetenek"]) div:has(> svg[viewBox="0 0 136 104"])::before {
  content: "";
  position: absolute;
  inset: 26% 22%;
  border-radius: 0.375rem;
  border: 1.5px solid color-mix(in oklab, currentColor 30%, transparent);
}
/* The assistant's mark: the sparkle everyone reads as AI, not the product's cell; the same sparkle marks what it filled. */
html:has([data-school-design="renkli-yetenek"]) [data-slot="ai-mark"] {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2.5c.5 4.6 2.9 7 7.5 7.5-4.6.5-7 2.9-7.5 7.5-.5-4.6-2.9-7-7.5-7.5 4.6-.5 7-2.9 7.5-7.5Z'/%3E%3Cpath d='M18.5 13c.3 2.6 1.6 3.9 4.2 4.2-2.6.3-3.9 1.6-4.2 4.2-.3-2.6-1.6-3.9-4.2-4.2 2.6-.3 3.9-1.6 4.2-4.2Z'/%3E%3C/svg%3E") center / 88% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2.5c.5 4.6 2.9 7 7.5 7.5-4.6.5-7 2.9-7.5 7.5-.5-4.6-2.9-7-7.5-7.5 4.6-.5 7-2.9 7.5-7.5Z'/%3E%3Cpath d='M18.5 13c.3 2.6 1.6 3.9 4.2 4.2-2.6.3-3.9 1.6-4.2 4.2-.3-2.6-1.6-3.9-4.2-4.2 2.6-.3 3.9-1.6 4.2-4.2Z'/%3E%3C/svg%3E") center / 88% no-repeat;
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="ai-mark"] > * {
  display: none;
}

/* Quiet icons: the coloured tiles are the product's way of telling modules apart; here the words do. */
html:has([data-school-design="renkli-yetenek"]) [data-slot="icon-tile"] {
  background: transparent;
  color: var(--muted-foreground);
  border-radius: 0;
  inline-size: 1.25rem;
  block-size: 1.25rem;
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="icon-tile"] > svg {
  inline-size: 1.125rem;
  block-size: 1.125rem;
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="page-header"] [data-slot="icon-tile"] {
  display: none;
}

/* Surfaces: one radius, hairlines instead of shadows, the same title on every page. */
html:has([data-school-design="renkli-yetenek"]) .rounded-3xl {
  border-radius: 0.875rem;
}
html:has([data-school-design="renkli-yetenek"]) .rounded-2xl {
  border-radius: 0.875rem;
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="page-header"] h1 {
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.75rem);
  line-height: 1.15;
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="button"] {
  border-radius: 0.625rem;
  font-weight: 600;
}
html:has([data-school-design="renkli-yetenek"]) .rounded-full[data-slot="button"] {
  border-radius: 999px;
}
html:has([data-school-design="renkli-yetenek"]) :is(button, a, [role="button"], [data-slot="button"]).rounded-full:not(.size-9, .size-10, .size-11, .size-12, .touch-hit) {
  border-radius: 0.625rem;
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="sheet-overlay"],
html:has([data-school-design="renkli-yetenek"]) [data-slot="dialog-overlay"] {
  background: rgb(10 16 28 / 0.42);
}
/* The list's categories: the ink line under the open one, no colour on the counts. */
html:has([data-school-design="renkli-yetenek"]) [data-slot="category-tabs"] a {
  border-block-end-color: transparent;
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="category-tabs"] a.font-semibold {
  border-block-end-color: var(--foreground);
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="category-tabs"] a > span {
  border-radius: 0.25rem;
  background: var(--muted);
  color: var(--muted-foreground);
}
/* New leads nobody has opened in a category: the red balloon, like the menu's. */
html:has([data-school-design="renkli-yetenek"]) [data-slot="category-tabs"] a > [data-slot="new-count"] {
  border-radius: 9999px;
  background: var(--ds-alert);
  color: var(--ds-on-strong);
}

/* Public pages (a payment link, a quote): plain paper, no wash of colour. */
html:has([data-school-design="renkli-yetenek"]) [class*="radial-gradient"] {
  background-image: none;
}

/* Sentence case everywhere: no tracked capitals, and no dotted capital I on a foreign word in Turkish. */
html:has([data-school-design="renkli-yetenek"]) .uppercase {
  text-transform: none;
  letter-spacing: 0;
}
/* The product's warm accents in its own components read as this design's blue. */
html:has([data-school-design="renkli-yetenek"]) .text-amber-700,
html:has([data-school-design="renkli-yetenek"]) .text-amber-800,
html:has([data-school-design="renkli-yetenek"]) .text-honey-strong {
  color: var(--honey-strong);
}
html.dark:has([data-school-design="renkli-yetenek"]) .dark\:text-amber-300 {
  color: var(--honey-strong);
}

html:has([data-school-design="renkli-yetenek"]) .bg-amber-50 {
  background-color: var(--honey-soft);
}

/* A field the assistant filled: the magenta frame and, after its label, the words, until the person edits it. */
html:has([data-school-design="renkli-yetenek"]) .ai-filled {
  border-color: var(--ds-ai-ink);
  background-color: var(--ds-ai-soft);
  box-shadow: inset 0 0 0 1px var(--ds-ai-ink);
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="ai-filled-mark"] {
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: 0.5rem;
  padding: 0.0625rem 0.4375rem 0.0625rem 0.3125rem;
  border-radius: 999px;
  background: var(--ds-ai-soft);
  color: var(--ds-ai-ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.125rem;
  vertical-align: 0.0625rem;
  white-space: nowrap;
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="ai-filled-mark"]::after {
  content: attr(aria-label);
}

/* Counts that ask for attention (a tab's waiting count, the bell): red balloons; other counts stay quiet. */
html:has([data-school-design="renkli-yetenek"]) [data-slot="nav-count"][data-tone="strong"],
html:has([data-school-design="renkli-yetenek"]) [data-slot="bell-count"] {
  background: var(--ds-alert);
  color: var(--ds-on-strong);
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="nav-count"]:not([data-tone="strong"]) {
  background: transparent;
  color: var(--muted-foreground);
}
html:has([data-school-design="renkli-yetenek"]) [data-slot="bell-count"] {
  min-inline-size: 1.125rem;
  block-size: 1.125rem;
  inset-block-start: 0.125rem;
  inset-inline-end: 0.125rem;
  font-size: 0.6875rem;
}

/* The API reference names the product; its page sends back to the keys, so no link leads there. */
html:has([data-school-design="renkli-yetenek"]) a[href$="/api-keys/docs"] {
  display: none;
}

/* A phone: the keyboard does not zoom the page. */
@media (pointer: coarse) {
  html:has([data-school-design="renkli-yetenek"]) input:not([type="checkbox"], [type="radio"]),
  html:has([data-school-design="renkli-yetenek"]) textarea,
  html:has([data-school-design="renkli-yetenek"]) select {
    font-size: 16px;
  }
}
