@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@300;400&display=swap");
@import url("./components.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #f7f6f4 0%, var(--color-background) 48%, #efeeeb 100%);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--color-ai);
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 0, 255, 0.14);
  color: var(--color-ink);
}

body[data-persona] {
  --persona-accent: var(--color-primary);
}

body[data-persona="prospective-student"] {
  --persona-accent: var(--color-terracotta);
}

body[data-persona="current-student"] {
  --persona-accent: var(--color-primary);
}

body[data-persona="faculty"],
body[data-persona="staff"] {
  --persona-accent: var(--color-deep-green);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  min-height: 100vh;
}

.container-wide {
  width: min(calc(100% - clamp(1.25rem, 4vw, 4rem)), var(--page-max-width));
  margin: 0 auto;
}

.portal-google-auth-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.portal-google-auth-toggle .portal-topbar-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.portal-google-auth-toggle [data-google-auth-gis-button] {
  filter: grayscale(1);
  display: flex;
  align-items: center;
}

.portal-google-auth-toggle [data-google-auth-avatar] {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #f5f1ea;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.portal-google-auth-toggle [data-google-auth-avatar] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-google-auth-toggle [data-google-auth-avatar] span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-google-auth-toggle [data-google-auth-signin-link] {
  min-height: 2.8rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .portal-google-auth-toggle [data-google-auth-signin-link] {
    min-height: 2.45rem;
    padding: 0.62rem 0.85rem;
    font-size: 0.7rem;
  }
}

.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transform: translateY(0);
  transition:
    background-color 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    -webkit-backdrop-filter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    backdrop-filter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --site-topbar-scrolled-bg: rgba(255, 255, 255, 0.74);
  --site-topbar-scrolled-shadow: 0 12px 36px rgba(15, 16, 18, 0.035);
  --site-topbar-scrolled-blur: blur(20px);
}

.site-topbar.is-scrolled {
  background: var(--site-topbar-scrolled-bg);
  -webkit-backdrop-filter: var(--site-topbar-scrolled-blur);
  backdrop-filter: var(--site-topbar-scrolled-blur);
  box-shadow: var(--site-topbar-scrolled-shadow);
  animation: site-topbar-slide-down 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-topbar__inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.brand-mark img {
  display: block;
  width: clamp(8.75rem, 16vw, 11.5rem);
  height: auto;
}

.topbar-links,
.side-nav__links,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.topbar-link {
  position: relative;
  padding-bottom: 0.25rem;
  color: rgba(15, 16, 18, 0.72);
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.topbar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 0.25s ease;
}

.topbar-link:hover,
.topbar-link.is-active {
  color: var(--color-ink);
}

.topbar-link:hover::after,
.topbar-link.is-active::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  color: rgba(15, 16, 18, 0.82);
  background: rgba(255, 255, 255, 0.4);
  transition: background-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-ink);
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: inline-flex;
}

.mobile-nav-panel {
  display: none;
  background: rgba(255, 255, 255, 0.92);
  padding: var(--space-4) 0 var(--space-6);
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-panel .topbar-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.page-main {
  padding-top: var(--nav-height);
}

@keyframes site-topbar-slide-down {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

:where(.program-page, .student-works-page, .student-project-page, .faculty-page, .faculty-profile-page, .research-page) {
  --archive-line: var(--editorial-line);
  --archive-muted: var(--editorial-muted);
  --archive-copy: var(--editorial-copy);
  --archive-copy-strong: var(--editorial-copy-strong);
  background: var(--color-editorial-bg);
  color: var(--color-ink);
}

:where(.program-page, .student-works-page, .student-project-page, .faculty-page, .faculty-profile-page, .research-page) :is(h1, h2, h3, p, a, dd, li) {
  overflow-wrap: anywhere;
}

.editorial-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(15, 16, 18, 0.22);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.editorial-link:hover,
.editorial-link:focus-visible {
  color: var(--color-ai);
  text-decoration-color: currentColor;
}

.portal-context-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: min(calc(100% - 2rem), var(--page-max-width));
  margin: var(--space-4) auto 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
}

.portal-context-ribbon__meta {
  display: grid;
  gap: 0.15rem;
}

.portal-context-ribbon__eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-stone-dark);
}

.portal-context-ribbon__title {
  font-family: var(--font-display);
  color: var(--color-ink);
}

.portal-context-ribbon__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.portal-context-ribbon__links a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  color: rgba(15, 16, 18, 0.78);
  font-family: var(--font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-context-ribbon__links a.is-active {
  background: var(--color-primary);
  color: var(--color-white);
}

.portal-context-ribbon__back {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

[data-api-unavailable="true"] {
  opacity: 0.56;
}

[data-api-unavailable="true"]:is(button, a) {
  pointer-events: none;
}

[data-persona-active="true"] {
  color: var(--persona-accent);
}

[data-studio-bot] {
  position: relative;
  transition: box-shadow var(--motion-base), transform var(--motion-base), border-color var(--motion-base);
}

[data-studio-bot]::before {
  content: "AI";
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--color-ai);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-studio-bot] [data-studio-bot-reply],
[data-studio-bot] [data-studio-bot-status] {
  color: var(--color-ai);
  transition: background-color 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-studio-bot] [data-studio-bot-reply] {
  background:
    linear-gradient(180deg, rgba(0, 0, 255, 0.06), rgba(0, 0, 255, 0.02)),
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 255, 0.08);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.9rem 1rem 1rem;
}

[data-studio-bot] [data-studio-bot-suggestion],
[data-studio-bot] [data-studio-bot-focus] {
  color: var(--color-ai);
}

[data-studio-bot] [data-studio-bot-input]:focus {
  outline: none;
  box-shadow: inset 0 -2px 0 var(--color-ai);
}

/* Non-shell bots (inline prompt surfaces): lift + glow during thinking */
[data-studio-bot][data-ai-state="thinking"]:not([data-studio-chat-shell]) {
  box-shadow: 0 0 0 1px rgba(0, 0, 255, 0.1), 0 16px 42px rgba(0, 0, 255, 0.1);
  transform: translateY(-1px);
}

/* IMPORTANT — .studio-chat-shell has a position:fixed overlay child.
   CSS `transform` creates a new containing block for fixed descendants, which
   collapses the overlay to the size of the trigger button and makes the chat
   panel "disappear" during every API call.
   Apply thinking feedback to the panel itself, NOT to the shell wrapper. */
.studio-chat-shell[data-ai-state="thinking"] .studio-chat-shell__panel {
  box-shadow: 0 0 0 1.5px rgba(0, 0, 255, 0.14), 0 24px 56px rgba(0, 0, 255, 0.1);
}

.studio-chat-shell[data-ai-state="thinking"] .studio-chat-shell__trigger-badge {
  box-shadow: 0 0 0 4px rgba(0, 0, 255, 0.12), 0 8px 24px rgba(0, 0, 255, 0.18);
}

[data-studio-bot][data-ai-state="thinking"] [data-studio-bot-reply],
[data-studio-bot][data-ai-state="thinking"] [data-studio-bot-status] {
  animation: ai-pulse 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

[data-studio-bot] [data-studio-bot-reply][data-ai-generating="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 255, 0) 0%, rgba(0, 0, 255, 0.08) 42%, rgba(255, 255, 255, 0.42) 50%, rgba(0, 0, 255, 0.08) 58%, rgba(0, 0, 255, 0) 100%);
  transform: translateX(-100%);
  animation: ai-shimmer 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

[data-studio-bot][data-ai-state="thinking"] [data-studio-bot-status]::after {
  content: "...";
  display: inline-block;
  width: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  animation: ai-ellipsis 1.2s steps(4, end) infinite;
}

[data-studio-bot][data-ai-state="ready"] [data-studio-bot-reply] {
  box-shadow: inset 3px 0 0 var(--color-ai), 0 14px 34px rgba(0, 0, 255, 0.05);
}

[data-studio-bot][data-ai-state="error"] [data-studio-bot-status] {
  color: #c62828;
}

[data-studio-bot][data-chat-template="true"] {
  display: none !important;
}

.studio-chat-shell[data-studio-bot]::before {
  content: none;
}

.studio-chat-shell {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: var(--z-overlay);
  display: flex;
  justify-content: flex-end;
}

.studio-chat-shell__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-label);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  box-shadow: none;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

.studio-chat-shell__trigger:hover {
  transform: translateY(-1px);
}

.studio-chat-shell__trigger-label {
  position: absolute;
  right: calc(100% + 0.75rem);
  max-width: 13rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 16, 18, 0.92);
  color: var(--color-white);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(0.45rem);
  white-space: nowrap;
  box-shadow: 0 14px 32px rgba(15, 16, 18, 0.16);
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.studio-chat-shell__trigger:hover .studio-chat-shell__trigger-label,
.studio-chat-shell[data-chat-open="true"] .studio-chat-shell__trigger-label {
  opacity: 1;
  transform: translateX(0);
}

.studio-chat-shell__trigger-badge {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  box-shadow: 0 16px 36px rgba(15, 16, 18, 0.22);
  transition: box-shadow var(--motion-fast);
}

.studio-chat-shell__trigger:hover .studio-chat-shell__trigger-badge {
  box-shadow: 0 22px 48px rgba(15, 16, 18, 0.28), 0 0 0 3px rgba(0, 0, 255, 0.1);
}

.studio-chat-shell__trigger-icon {
  width: 1.36rem;
  height: 1.36rem;
  fill: currentColor;
}

.studio-chat-shell__overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) + 1);
}

.studio-chat-shell__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 16, 18, 0.2);
  backdrop-filter: blur(4px);
}

.studio-chat-shell__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(100%, 34rem);
  background:
    radial-gradient(circle at 0 0, rgba(0, 0, 255, 0.06), transparent 32%),
    linear-gradient(180deg, var(--color-paper), var(--color-surface));
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-panel);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.studio-chat-shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.studio-chat-shell__title {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
}

.studio-chat-shell__kicker {
  margin: 0.35rem 0 0;
  color: rgba(17, 18, 20, 0.62);
  font-family: var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.studio-chat-shell__close {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
}

.studio-chat-shell__messages {
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-10);
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.studio-chat-message {
  display: flex;
  min-width: 0;
}

.studio-chat-message.is-user {
  justify-content: flex-end;
}

.studio-chat-message.is-ai {
  justify-content: flex-start;
}

.studio-chat-message__bubble {
  width: min(100%, 27rem);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--radius-2xl);
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 16, 18, 0.06);
  overflow: hidden;
}

.studio-chat-message.is-user .studio-chat-message__bubble {
  background: var(--color-primary);
  color: var(--color-white);
  border-top-right-radius: var(--radius-md);
}

.studio-chat-message.is-ai .studio-chat-message__bubble {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 240, 0.72)),
    var(--color-surface-strong);
  border: 1px solid var(--color-border);
  color: rgba(15, 16, 18, 0.9);
  border-top-left-radius: var(--radius-md);
  padding-left: 1.3rem;
  padding-right: 1.3rem;
}

.studio-chat-message__label {
  margin-bottom: 0.45rem;
  padding-inline: 0.05rem;
  font-family: var(--font-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.62rem;
  opacity: 0.66;
}

.studio-chat-message__content {
  display: block;
  max-width: 100%;
  margin: 0;
  padding-inline: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.studio-chat-message.is-ai .studio-chat-message__content[data-studio-bot-reply] {
  margin-top: 0.1rem;
}

.studio-chat-message__loading {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.studio-chat-message__loading span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--color-ai);
  animation: studio-chat-bounce 0.9s infinite alternate;
}

.studio-chat-message__loading span:nth-child(2) {
  animation-delay: 0.12s;
}

.studio-chat-message__loading span:nth-child(3) {
  animation-delay: 0.24s;
}

.studio-chat-shell__composer {
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.65);
  padding: var(--space-6) var(--space-8) var(--space-8);
}

.studio-chat-shell__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
}

.studio-chat-shell__chips [data-studio-bot-suggestion] {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 255, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-ai);
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
}

.studio-chat-shell__chips [data-studio-bot-suggestion]:hover,
.studio-chat-shell__chips [data-studio-bot-suggestion]:focus-visible {
  background: rgba(0, 0, 255, 0.07);
  box-shadow: var(--shadow-focus);
}

.studio-chat-shell__status {
  margin: 0 0 0.5rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 16, 18, 0.55);
}

.studio-chat-shell__form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.studio-chat-shell__form [data-studio-bot-input] {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-strong);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.studio-chat-shell__form [data-studio-bot-input]:focus {
  outline: none;
  border-color: var(--color-ai);
  box-shadow: var(--shadow-focus);
}

.studio-chat-shell__send {
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0.95rem;
  box-shadow: 0 12px 26px rgba(15, 16, 18, 0.16);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

.studio-chat-shell__send:hover,
.studio-chat-shell__send:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 16, 18, 0.22);
}

@keyframes studio-chat-bounce {
  from {
    transform: translateY(0);
    opacity: 0.45;
  }

  to {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes ai-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 255, 0.08);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(0, 0, 255, 0.02);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 255, 0);
  }
}

@keyframes ai-ellipsis {
  0% {
    width: 0;
  }

  100% {
    width: 1.2em;
  }
}

@keyframes ai-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.site-sidenav {
  display: none;
}

.footer-shell {
  background: linear-gradient(180deg, #f0efec 0%, #e8e6e2 100%);
  color: rgba(15, 16, 18, 0.78);
}

.footer-shell__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding: var(--space-16) 0;
}

.footer-brand {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-columns {
  display: grid;
  gap: var(--space-8);
}

.footer-column-title {
  margin-bottom: var(--space-4);
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .topbar-links {
    display: flex;
  }

  .studio-chat-shell {
    right: var(--space-8);
    bottom: var(--space-8);
  }

  .mobile-nav-toggle,
  .mobile-nav-panel {
    display: none !important;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body {
    line-height: 1.65;
  }

  .container-wide {
    width: min(calc(100% - 1.25rem), var(--page-max-width));
  }

  .studio-chat-shell {
    right: var(--space-4);
    bottom: var(--space-4);
    left: var(--space-4);
    width: auto;
    max-height: min(74vh, 42rem);
  }

  .studio-chat-shell__panel {
    width: 100%;
  }

  .studio-chat-shell__header,
  .studio-chat-shell__messages,
  .studio-chat-shell__composer {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }


  .studio-chat-shell__form [data-studio-bot-input] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 1024px) {
  .page-shell--with-sidenav {
    --side-nav-clearance: calc(var(--side-nav-width) + clamp(1rem, 2vw, 2rem) + 2rem);
  }

  .page-shell--with-sidenav .page-main {
    margin-left: 0;
    padding-top: 0;
  }

  .page-shell--with-sidenav .site-sidenav {
    position: fixed;
    top: 50%;
    left: clamp(1rem, 2vw, 2rem);
    z-index: 40;
    display: block;
    width: var(--side-nav-width);
    height: auto;
    padding: 0;
    border-right: 0;
    background: transparent;
    transform: translateY(-50%);
  }

  .page-shell--with-sidenav .site-sidenav__head,
  .page-shell--with-sidenav .side-nav__accent {
    display: none;
  }

  .page-shell--with-sidenav .side-nav__links {
    display: grid;
    gap: 0.65rem;
    padding: 0;
  }

  .page-shell--with-sidenav .side-nav__link {
    display: inline-flex;
    align-items: center;
    width: auto;
    padding: 0.1rem 0;
    border-radius: 0;
    background: transparent;
    color: rgba(15, 16, 18, 0.48);
    font-family: var(--font-label);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }

  .page-shell--with-sidenav .side-nav__link:hover,
  .page-shell--with-sidenav .side-nav__link.is-active {
    background: transparent;
    color: var(--color-primary);
  }

  .page-shell--with-sidenav .side-nav__link::before {
    content: "";
    width: 1.65rem;
    height: 1px;
    margin-right: 0.65rem;
    background: currentColor;
    opacity: 0.3;
    transform: scaleX(0.52);
    transform-origin: left;
    transition: transform var(--motion-fast), opacity var(--motion-fast);
  }

  .page-shell--with-sidenav .side-nav__link:hover::before,
  .page-shell--with-sidenav .side-nav__link.is-active::before {
    opacity: 1;
    transform: scaleX(1);
  }

  .page-shell--with-sidenav .side-nav__link .material-symbols-outlined {
    display: none;
  }

  .page-shell--with-sidenav .page-main > section,
  .page-shell--with-sidenav .page-main > article {
    padding-left: max(var(--side-nav-clearance), env(safe-area-inset-left));
  }

  .page-shell--with-sidenav .side-nav__assistant {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-terracotta);
  }

  .page-shell--with-sidenav .footer-shell {
    margin-left: 0;
    padding-left: max(var(--side-nav-clearance), env(safe-area-inset-left));
  }

  .footer-shell__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 4rem;
  }
}
