/* Landing page CSS (tasteskill 2.5.1). Loaded after the kit in public/assets, which stays unedited.
   The :root block is the dealt palette (card-pastels) and pairing (SUSE + JetBrains Mono) as start.mjs
   printed them; the faces are self-hosted in /landing/fonts. Everything below it sits inside a visual. */
:root {
  --p-bg: #f7f7f5; --p-surface: #ebebe8; --p-ink: #000000; --p-muted: #666662;
  --p-accent: #d0106f; --p-accent-ink: #ffffff; --p-action: #d0106f; --p-action-ink: #ffffff;
  --p-inv-bg: #000000; --p-inv-surface: #010101; --p-inv-ink: #f7f7f5; --p-inv-muted: #828280;
  --p-inv-accent: #d0106f; --p-inv-accent-ink: #ffffff; --p-inv-action: #d0106f; --p-inv-action-ink: #ffffff;
  --font-display: "SUSE", system-ui, sans-serif;
  --font-text: "SUSE", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --ui-font: "SUSE", system-ui, sans-serif;
}

/* the client's own logo in the bar and the footer */
.nav__logo > img { width: 28px; height: 28px; border-radius: 7px; flex: none; }

/* ------------------------------------------------------------ hero window: the weekly timetable */
.tt { --fx-bg: #ffffff; --fx-surface: #f4f4f3; --fx-ink: #111111; --fx-muted: #6b6b6b; --fx-accent: var(--p-accent); background: var(--u-bg); border-radius: 12px; box-shadow: var(--u-shadow); overflow: hidden; }
.tt__bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--u-line); white-space: nowrap; }
.tt__bar b { font-weight: 500; }
.tt__bar .ui-meta { overflow: hidden; text-overflow: clip; }
.tt__body { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 440px; }
.tt__side { border-right: 1px solid var(--u-line); padding: 12px; display: grid; align-content: start; gap: 2px; }
.tt__label { padding: 4px 8px 8px; font-size: 12px; color: var(--u-muted); }
.tt__prog { display: grid; gap: 0 8px; padding: 8px; border-radius: 8px; }
.tt__prog.is-on { background: var(--u-fill-2); }
.tt__prog b { font-weight: 500; white-space: nowrap; }
.tt__prog span { font-size: 12px; line-height: 16px; color: var(--u-muted); white-space: nowrap; }
.tt__grid { display: grid; grid-template-columns: 52px repeat(5, minmax(0, 1fr)); grid-template-rows: 32px; grid-auto-rows: 44px; gap: 0;
  background-image: linear-gradient(var(--u-line), var(--u-line)); background-size: 100% 1px; background-position: 0 32px; background-repeat: no-repeat; }
.tt__day { display: flex; align-items: center; padding: 0 8px; font-size: 12px; color: var(--u-muted); border-left: 1px solid var(--u-line); }
.tt__hour { grid-column: 1; padding: 6px 8px 0; font: 400 11px/16px var(--font-mono); color: var(--u-muted); text-align: right; }
.tt__b { margin: 2px; padding: 6px 8px; border-radius: 6px; display: grid; align-content: start; min-width: 0; font-size: 11px; background: var(--tone); }
.tt__b b { font-weight: 500; font-size: 11.5px; line-height: 16px; }
.tt__b span { font: 400 11px/16px var(--font-mono); color: var(--u-text-2); white-space: nowrap; }
.tt__b[data-tone="1"] { --tone: #efe4d0; }
.tt__b[data-tone="2"] { --tone: #dbe6f0; }
.tt__b[data-tone="3"] { --tone: #dde6d6; }
.tt__b[data-tone="4"] { --tone: #f4dbe4; }
@media (max-width: 1279px) { .tt__body { grid-template-columns: minmax(0, 1fr); } .tt__side { display: none; } }
@media (max-width: 639px) {
  .tt__bar .ui-meta { display: none; }
  .tt__grid { grid-template-columns: 44px repeat(3, minmax(0, 1fr)); }
  .tt__grid > [data-day="4"], .tt__grid > [data-day="5"] { display: none; }
}

/* ------------------------------------------------------------ app-frame (sections-library.md, app-frame) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* the open item: the conflict report */
.rep { background: var(--u-bg); }
.rep__body { padding: 4px 16px 16px; display: grid; gap: 12px; }
.rep__label { display: flex; gap: 8px; align-items: baseline; padding-top: 8px; font-size: 12px; color: var(--u-muted); }
.rep__item { display: grid; gap: 8px; padding: 12px; border-radius: var(--u-r2); box-shadow: inset 0 0 0 1px var(--u-line-2); }
@media (max-width: 639px) { .rep .ui-head .ui-meta { display: none; } }
.rep__top { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.rep__top b { font-weight: 500; }
.rep__why { display: grid; gap: 4px; color: var(--u-text-2); }
.rep__why li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; }
.rep__why li::before { content: ""; width: 4px; height: 4px; margin: 8px 0 0 4px; border-radius: 50%; background: var(--u-muted); }
.rep__fix { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--u-line); }
.rep__fix > span:first-child { font-size: 12px; color: var(--u-muted); }
.rep__fix > span:nth-child(2) { flex: 1; min-width: 0; font-weight: 500; }
.rep__rows li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 36px; border-bottom: 1px solid var(--u-line); }
.rep__rows li > :first-child, .rep__rows li > :last-child { font: 400 12px/16px var(--font-mono); color: var(--u-muted); }
.rep__rows li > :nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: clip; }

/* ------------------------------------------------------------ card group, statement, close */
#features .panel { --p-h: 336px; }
@media (max-width: 639px) { #features .panel { --p-h: 156px; } #features .ui-chat__day { display: none; } #features .stage { --fade-h: 40px; } }
#exams .facts { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
#pricing .plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
#faq .faq--more > :first-child { padding-top: var(--s-5); }
#faq .formats { display: grid; gap: var(--s-4); }
#faq .formats > div { display: flex; gap: var(--s-2); }
#pricing .plan-note { display: grid; gap: var(--s-2); margin-top: var(--s-5); max-width: 760px; }
/* the name across the .wrap: twelve letters, hand-set per breakpoint (close-word) */
/* The name takes the height the screen has left over the heading, the links and the legal row
   (about 740px of them), so it is always whole: smaller on a shorter window, and left out where
   it would be under 64px rather than cut in half. */
.close__word { flex: none; font-size: min(16.6vw, 100svh - 740px, 240px); line-height: 1; }
@media (max-height: 804px) and (min-width: 640px) { .close__word { display: none; } }
@media (max-width: 639px) { .close__word { font-size: min(16.6vw, 12svh); } }

/* ------------------------------------------------------------ living beside Tailwind
   The app's stylesheet also loads here. Its utilities sit in a cascade layer, so the kit wins wherever
   both set a property; `start-N` is the one kit class Tailwind reads as its own (inset-inline-start). */
.grid > [class*="start-"] { inset-inline-start: auto; }

/* ------------------------------------------------------------ screens at the tablet and the phone */
@media (min-width: 1024px) and (max-width: 1279px) { #features .panel { --p-h: 329px; } }
@media (min-width: 640px) and (max-width: 1023px) { #features { --h: 2; } #pricing .grid > .card { grid-column: auto / span 4; } }
/* the chat's input row lies under the panel's fade in the tall second row: the answer is the point */
#features .ui-chat__input { display: none; }
/* 320px: the bar holds the logo and the menu; the main action is the hero's first button */
@media (max-width: 359px) { .nav__actions > .btn { display: none; } }

/* Japanese breaks between phrases, never inside a word (時間割 stays whole) */
html[lang="ja"] :is(h1, h2, h3, .mo-wh__text, .hero__lead) { word-break: auto-phrase; }
/* The hero's ground is held still (speed 0, still grain: see data-fx-params), so the pause
   button the kit gives every moving ground has nothing to pause. */
.hero__window > button.loop-pause.loop-pause { display: none; }
/* the language switch in the bar */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: var(--s-2); background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
.lang__btn > svg { flex: none; width: 16px; height: 16px; }
.lang__btn > .chev { width: 12px; height: 12px; }
.lang__menu { position: absolute; top: calc(100% + var(--s-2)); right: 0; z-index: 20; display: grid; min-width: 184px; margin: 0; padding: var(--s-2); list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.28); }
/* closed by an attribute of its own: Tailwind's base layer makes [hidden] win over everything */
.lang__menu:not([data-open="true"]) { display: none; }
.lang__menu a { display: flex; align-items: center; min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-sm); font-size: 15px; color: var(--ink); text-decoration: none; }
.lang__menu a:hover, .lang__menu a:focus-visible { background: var(--surface); }
.lang__menu a[aria-current] { font-weight: 500; }
/* 1024 to 1279: the bar is too narrow for the words in the middle and a third item on the right.
   The words move next to the logo and the switch shows its globe only. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav--centre .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--s-5); }
  .nav--centre .nav__links { justify-content: flex-start; }
  .nav--centre .nav__actions { gap: var(--s-2); }
  .lang__btn > span, .lang__btn > .chev { display: none; }
}
/* in the phone's menu sheet the languages are simply listed, two to a row */
@media (max-width: 639px) {
  .nav.is-open .lang { order: 3; display: block; width: 100%; }
  .nav.is-open .nav__actions .lang__btn { display: none; }
  .nav.is-open .lang__menu, .nav.is-open .lang__menu:not([data-open="true"]) { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; min-width: 0; border: 0; box-shadow: none; padding: 0; }
  .nav.is-open .lang__menu a { justify-content: center; min-height: 44px; }
}

/* A wide but short window (a laptop with the browser's bars, a split screen): a section that
   needs more than the screen grows with its content, as the kit already does below 1280px,
   instead of being cut by the next section's ground. */
@media (min-width: 1280px) and (max-height: 899px) {
  main > section:not(.hero), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100svh);
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; grid-auto-rows: auto;
  }
  main > section:not(.hero) > .wrap, footer.closing > .wrap { height: auto; }
}
