/* Linux Flow: a interface acompanha o estudo, com uma decisão por vez. */
@font-face {
  font-family: "Ubuntu Sans";
  src: url("../assets/fonts/UbuntuSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  font-family: "Ubuntu Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  font-synthesis: none;
  --bg: #171c21;
  --panel: #20272e;
  --panel2: #29323a;
  --text: #f2f4ee;
  --muted: #acb8bd;
  --line: #354047;
  --accent: #c1d5a4;
  --good: #c1d5a4;
  --ink: #1c2a1d;
  --error: #efaaa2;
  --gold: #d9b779;
  --shadow: 0 16px 40px #00000021;
  --sidebar-size: 208px;
  --footer-tour-clearance: calc(6.25rem + env(safe-area-inset-right));
}
:root[data-theme="light"] {
  --bg: #f4f6f5;
  --panel: #ffffff;
  --panel2: #e9eeeb;
  --text: #202b29;
  --muted: #5a6967;
  --line: #d1dad5;
  --accent: #345c42;
  --good: #345c42;
  --ink: #ffffff;
  --error: #aa3736;
  --gold: #8a621c;
  --shadow: 0 16px 40px #263a2d0d;
}
body { line-height: 1.6; }
h1, h2, h3 { letter-spacing: -.025em; font-weight: 650; }
h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.16; }
h2 { font-size: 1.4rem; line-height: 1.3; }
h3 { font-size: 1.1rem; line-height: 1.4; }
p { max-width: 72ch; }
button, input, select, textarea { border-radius: 7px; font: inherit; }
button, input, select { min-height: 44px; }
button { padding: .65rem 1rem; line-height: 1.35; }
button, a, summary { touch-action: manipulation; }
button:hover:not(:disabled) { background: var(--panel2); }
button:disabled { opacity: .58; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
a { text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--good); outline-offset: 4px; }
#main:focus { outline: none; }
[hidden] { display: none !important; }
.primary, .primary:hover:not(:disabled) {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
  font-weight: 650;
}
.primary:hover:not(:disabled) { filter: brightness(1.06); }
.eyebrow {
  color: var(--muted);
  font: 500 .86rem/1.5 "Ubuntu Sans", "Trebuchet MS", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: .6rem;
}
.panel { border-radius: 10px; box-shadow: none; padding: 1.5rem; }
.badge { padding: .18rem .6rem; line-height: 1.6; font-size: .78rem; }
.badge.green { color: var(--good); border-color: var(--line); }
.actions { gap: .65rem; }
.page-head { padding: 0; margin-bottom: 1.8rem; align-items: center; }
.page-head h1 { margin-bottom: .6rem; }
.page-head p { margin-bottom: 0; }
.page-head .eyebrow { margin-bottom: .6rem; }
.section-heading { flex-wrap: wrap; justify-content: flex-start; gap: .4rem .85rem; margin-top: 2.5rem; margin-bottom: 1rem; }

/* Marque e navegação usam a mesma hierarquia em todas as telas. */
.topbar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(200px, 300px) auto;
  gap: 1rem;
  padding: .85rem 1.6rem;
  min-height: 76px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.brand { font-size: 1.25rem; gap: .7rem; letter-spacing: -.045em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 7px;
  background: var(--accent);
  box-shadow: none;
  font-size: 1.2rem;
}
.brand-accent { color: var(--text); font-weight: 450; }
.topbar .edition { display: none; }
.header-search { grid-column: 2; grid-row: 1; width: 100%; height: 42px; border-radius: 7px; background: transparent; }
.header-search input { font-size: .9rem; }
.header-search button { background: transparent; flex-basis: 42px; border-left: 0; }
.tools { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: .55rem; }
.tools .profile-button { padding: .5rem .85rem; min-height: 42px; font-size: .88rem; }
.settings-menu summary, .account-menu summary { width: 42px; height: 42px; background: transparent; border-radius: 7px; }
.settings-panel, .account-panel { padding: .8rem; border-radius: 9px; box-shadow: var(--shadow); }
.settings-panel { max-height: calc(100dvh - 6rem); overflow-y: auto; overscroll-behavior: contain; }
.settings-panel .control-label { font-size: .9rem; }
.layout { display: grid; grid-template-columns: var(--sidebar-size) minmax(0, 1fr); min-height: calc(100dvh - 160px); }
.sidebar, .sidebar:hover, .sidebar:focus-within {
  position: sticky;
  top: 0;
  align-self: start;
  width: var(--sidebar-size);
  height: calc(100dvh - 1px);
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.7rem .85rem;
  border-right: 1px solid var(--line);
  background: var(--bg);
  box-shadow: none;
  transition: none;
}
.sidebar nav { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: visible; }
.nav-core, .nav-secondary { display: flex; flex-direction: column; gap: .35rem; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  min-height: 44px;
  padding: .65rem .8rem;
  color: var(--muted);
  font-size: .92rem;
  border-radius: 6px;
  box-shadow: none;
}
.sidebar nav a:hover { color: var(--text); background: var(--panel); }
.sidebar nav a.active { color: var(--text); background: var(--panel2); box-shadow: none; font-weight: 600; }
.sidebar nav a.active .nav-icon { color: var(--good); }
.sidebar .nav-icon { width: 20px; height: 20px; font-size: 1rem; transition: none; }
.sidebar .nav-icon svg { width: 20px; height: 20px; }
.sidebar nav a:hover .nav-icon, .sidebar nav a:focus-visible .nav-icon { transform: none; }
.sidebar nav a .nav-text, .sidebar .nav-text {
  display: inline;
  width: auto;
  flex: 1;
  opacity: 1;
  transition: none;
}
.sidebar .nav-short-text { display: none; }
.nav-more { display: block; margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.nav-more > summary { display: none; }
.nav-secondary hr { width: calc(100% - 1.5rem); margin: .8rem auto; border: 0; border-top: 1px solid var(--line); }
.nav-secondary .nav-divider { height: 1px; margin: .8rem; background: var(--line); }
.nav-extra { display: flex; flex-direction: column; gap: .35rem; margin-top: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  :root { --sidebar-size: 72px; --sidebar-open-size: 208px; }
  .sidebar, .sidebar:hover, .sidebar:focus-within { z-index: 6; transition: width .18s ease, box-shadow .18s ease; }
  .sidebar { width: var(--sidebar-size); }
  .sidebar:hover, .sidebar:focus-within { width: var(--sidebar-open-size); box-shadow: 8px 0 24px #0000001a; }
  .sidebar nav a { width: 100%; min-width: 0; gap: 0; padding-inline: .65rem; border: 1px solid transparent; overflow: hidden; }
  .sidebar nav a.active { border-color: color-mix(in srgb, var(--area-color, var(--good)) 55%, var(--line)); }
  .sidebar:hover nav a, .sidebar:focus-within nav a { gap: .7rem; padding-inline: .8rem; }
  .sidebar .nav-icon { flex: 0 0 20px; }
  .sidebar nav a .nav-text { flex: 0 0 0; width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: opacity .12s ease; }
  .sidebar:hover nav a .nav-text, .sidebar:focus-within nav a .nav-text { flex: 1; width: auto; opacity: 1; }
}
.content-column { min-width: 0; }
.section-nav, .sidebar:hover + .content-column .section-nav, .sidebar:focus-within + .content-column .section-nav {
  min-height: 48px;
  height: auto;
  padding: .35rem 2rem;
  gap: .3rem;
  background: var(--bg);
  transition: none;
}
.section-nav a { font-size: .86rem; border-radius: 5px; padding: .45rem .7rem; }
.content-column main, main {
  width: 100%;
  max-width: 1200px;
  padding: 2.5rem clamp(1.5rem, 4.2vw, 4.5rem) 4rem;
  margin: 0 auto;
  background: var(--bg);
  background-image: none;
}
:root[data-theme="light"] main { background: var(--bg); background-image: none; }

/* A abertura reúne lição, terminal e equipe; os assuntos dão caminhos de entrada. */
.content-column main.is-home { max-width: 1560px; padding-inline: clamp(1.5rem, 3vw, 3.5rem); }
.study-home { min-width: 0; margin: 0 auto; }
.home-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.8rem; }
.home-intro > div { min-width: 0; }
.home-intro > div > p { margin-bottom: 0; color: var(--muted); }
.home-room-entry { align-self: center; width: 100%; max-width: 520px; min-width: 0; padding: 1rem 1.15rem; border: 1px solid color-mix(in srgb, var(--play-coral, var(--good)) 45%, var(--line)); border-radius: 13px; background: var(--panel); }
.home-room-entry h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.home-room-entry p { margin: 0 0 .8rem; color: var(--muted); font-size: .82rem; }
.home-room-entry form { display: flex; align-items: stretch; gap: .55rem; }
.home-room-entry input { flex: 1; min-width: 0; width: 100%; padding-inline: .7rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.home-room-entry button { flex: none; font-size: .82rem; padding-inline: .8rem; }
.home-intro > .eyebrow, .home-intro > .greeting { color: var(--muted); margin: 0 0 .55rem; font-size: .9rem; }
.home-intro h1 { max-width: 23ch; margin: 0 0 .75rem; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.14; }
.home-intro > div > p:last-child { color: var(--muted); font-size: 1.03rem; margin: 0; }
.home-opening { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1.4rem; align-items: stretch; }
.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.home-lesson { min-width: 0; padding: clamp(1.4rem, 2vw, 2rem); }
.home-lesson > .eyebrow, .home-lesson > small, .lesson-label { color: var(--good); font-size: .84rem; font-weight: 550; }
.home-lesson h2 { margin: .75rem 0 .7rem; max-width: 22ch; font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
.home-lesson > p { max-width: 35ch; color: var(--muted); line-height: 1.65; margin: 0 0 1.3rem; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin-bottom: 1.5rem; color: var(--muted); font-size: .84rem; }
.lesson-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.lesson-meta svg { width: 15px; height: 15px; }
#landing-start { display: inline-flex; align-items: center; gap: .65rem; min-height: 46px; padding-inline: 1.2rem; }
#landing-start svg { width: 17px; height: 17px; }
.lesson-footer { color: var(--muted); margin: .8rem 0 0; font-size: .78rem; }
.lesson-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lesson-footer a { text-decoration: underline; text-underline-offset: .2em; }
.lesson-footer img { width: 42px; height: 42px; opacity: .9; margin-top: -.9rem; }
.home-terminal {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #141b1f;
  color: #ecf0e8;
  border-left: 1px solid var(--line);
}
.home-terminal button:focus-visible { outline-color: #c1d5a4; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem 1.35rem; border-bottom: 1px solid #303b41; color: #a6b2b8; font-size: .78rem; }
.demo-bar > span { display: inline-flex; align-items: center; gap: .5rem; }
.demo-bar svg { width: 15px; height: 15px; }
.demo-dots { display: flex; gap: 5px; }
.demo-dots i { width: 6px; height: 6px; border-radius: 50%; background: #69787c; }
.demo-lights { display: flex; gap: 5px; }
.demo-lights i { width: 6px; height: 6px; border-radius: 50%; background: #69787c; }
.demo-status { color: #a6b2b8; font-size: .7rem; border: 1px solid #354047; border-radius: 4px; padding: .05rem .4rem; }
.demo-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: 1rem 1.2rem 0; }
.demo-choices button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .3rem; min-width: 0; min-height: 62px; padding: .5rem .25rem; background: transparent; border: 1px solid #354047; color: #ecf0e8; }
.demo-choices button[aria-pressed="true"] { background: #26322c; border-color: #c1d5a4; }
.demo-choices button:hover:not(:disabled) { background: #29323a; }
.demo-choices code { color: #ecf0e8; font-size: .8rem; }
.demo-choices button span { color: #acb8bd; font-size: .68rem; line-height: 1.35; }
.demo-body { flex: 1; padding: 1.2rem 1.4rem; font: .88rem/1.85 Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
.demo-body > p { margin: 0 0 .5rem; }
.demo-prompt, .demo-command .prompt { color: #c1d5a4; }
.demo-command { color: #ecf0e8; }
.demo-command { display: flex; align-items: center; gap: .7rem; margin-top: 1.25rem; }
.demo-command > span:first-child { color: #c1d5a4; }
.demo-result { color: #a6b2b8; margin-bottom: 1.1rem; }
.demo-result { padding-left: 1.2rem; min-height: 1.8em; white-space: pre-wrap; }
.demo-placeholder { color: #8e9ba2; font-size: .78rem; }
.demo-explained { color: #acb8bd; font: .83rem/1.65 "Ubuntu Sans", "Trebuchet MS", sans-serif; margin-top: .75rem; }
.demo-result.folder, .demo-result .folder { color: #d9b779; }
.demo-bottom { margin-top: auto; padding: .8rem 1.35rem; border-top: 1px solid #303b41; color: #a6b2b8; font-size: .77rem; line-height: 1.55; }
.demo-bottom code { color: #c1d5a4; }
.demo-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .7rem 1rem; }
.demo-bottom button { color: #e8ede5; background: #26322c; border-color: #465347; font-size: .8rem; min-height: 44px; padding: .45rem .7rem; }
.demo-bottom button:hover:not(:disabled) { color: #ecf0e8; background: #334237; border-color: #72856d; }
.demo-bottom > span { font-size: .7rem; white-space: nowrap; }
.home-lab { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.home-lab-scene { display: block; width: 100%; height: 160px; object-fit: cover; object-position: center 34%; }
.home-lab-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.25rem 1.4rem; }
.home-lab h2 { margin: 0 0 .6rem; font-size: 1.35rem; }
.home-lab p { margin: 0 0 .8rem; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.home-lab-count { margin-bottom: 1rem; color: var(--muted); font-size: .78rem; }
.home-lab-action { display: inline-flex; align-items: center; min-height: 44px; margin-top: .25rem; padding: .55rem .9rem; border: 1px solid var(--good); border-radius: 7px; color: var(--good); font-size: .88rem; font-weight: 550; text-decoration: none; }
.home-lab-action:hover { color: var(--text); background: var(--panel2); }
.home-subjects { margin-top: 2.2rem; }
.home-section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin-bottom: 1.1rem; }
.home-section-heading h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.home-section-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.home-section-heading > a { display: inline-flex; align-items: center; flex: none; min-height: 44px; color: var(--good); font-size: .88rem; text-decoration: underline; }
.home-subject-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.home-subject { display: flex; flex-direction: column; min-width: 0; padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.home-subject:hover { border-color: var(--good); background: var(--panel); }
.home-subject-heading { display: flex; align-items: center; gap: .65rem; }
.home-subject-heading > svg { flex: none; width: 21px; height: 21px; color: var(--good); }
.home-subject h3 { margin: 0; font-size: 1rem; }
.home-subject > p { margin: .75rem 0 1rem; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.home-subject-commands { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }
.home-subject-commands code { padding: .1rem .4rem; border-radius: 4px; background: var(--panel); color: var(--muted); font-size: .74rem; }
.home-subject-action { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: .4rem .85rem; margin-top: 1.2rem; padding-top: .7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.home-subject-action > span { display: inline-flex; align-items: center; gap: .2rem; color: var(--good); font-weight: 550; }
.home-subject-action svg { width: 14px; height: 14px; }
.home-options { margin-top: 2.5rem; }
.home-options > h2 { font-size: 1.14rem; font-weight: 600; margin-bottom: 1.1rem; }
.practice-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem; }
.practice-option { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: start; gap: .85rem; min-width: 0; padding: 1.2rem 0 1rem; border-top: 1px solid var(--line); }
.practice-option > svg { width: 23px; height: 23px; margin-top: .15rem; color: var(--muted); }
.practice-icon, .practice-icon svg { display: block; width: 23px; height: 23px; color: var(--muted); }
.practice-icon { margin-top: .15rem; }
a.practice-option { text-decoration: none; }
a.practice-option:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
a.practice-option:hover .practice-icon { color: var(--good); }
a.practice-option > span:last-child { color: var(--muted); font-size: 1.2rem; align-self: center; }
.practice-option h3 { margin: 0 0 .4rem; font-size: 1.03rem; }
.practice-option p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.55; }
.practice-option > a, .practice-option > button { align-self: center; color: var(--good); font-size: .85rem; white-space: nowrap; padding: .45rem .15rem; border: 0; background: transparent; min-height: 44px; }
.practice-option > a:hover, .practice-option > button:hover { text-decoration: underline; background: transparent; }
.practice-option .text-button { margin-top: .6rem; font-size: .86rem; }
.home-support { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; margin-top: 1.5rem; padding: 1rem 1.15rem; border-radius: 8px; background: var(--panel); color: var(--muted); font-size: .84rem; }
.home-support > div { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.home-support svg { flex: none; width: 21px; height: 21px; }
.home-support p { margin: 0; }
.home-support a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; color: var(--text); }
.home-support .home-support-links { gap: 1.2rem; }
.home-support button { font-size: .82rem; }

@media (min-width: 651px) and (max-width: 1199px) {
  .home-opening { grid-template-columns: 1fr; }
  .home-lab { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .home-lab-scene { height: 100%; min-height: 220px; }
  .home-lab-content { padding: 1.5rem; }
  .home-subject-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .study-home .home-subject-list { grid-template-columns: 1fr; }
  .study-home .home-subject-heading { flex-direction: row; align-items: center; }
  .study-home .home-subject-action { flex-direction: row; align-items: center; }
}

/* Trilhas são uma sequência; os demais assuntos ficam em uma lista. */
.study-catalog { max-width: 1040px; margin: 0 auto; }
.study-catalog .page-head { margin-bottom: 1.9rem; }
.catalog-search { max-width: 640px; margin: 0 0 2rem; }
.catalog-search-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .85rem; margin-bottom: .5rem; }
.catalog-search-heading label { margin: 0; font-size: .9rem; font-weight: 550; }
.catalog-search-heading > span { color: var(--muted); font-size: .78rem; }
.catalog-search .search-field { display: flex; align-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.catalog-search .search-field:focus-within { border-color: var(--good); }
.catalog-search .search-field:has(input:focus-visible) { outline: 2px solid var(--good); outline-offset: 3px; }
.catalog-search .search-field input { width: 100%; min-width: 0; border: 0; background: transparent; padding-right: .75rem; font-size: 1rem; }
.catalog-search .search-field input:focus-visible { outline: none; }
.catalog-search .search-field input::-webkit-search-cancel-button { display: none; }
.catalog-search .search-field button { flex: none; margin-right: .3rem; padding: .55rem .65rem; min-height: 40px; border: 0; background: transparent; color: var(--muted); font-size: .78rem; }
.catalog-search .search-field button:hover { color: var(--text); }
.catalog-empty { padding-block: 1.5rem 3rem; border-top: 1px solid var(--line); }
.catalog-empty h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.catalog-empty p { margin: 0; color: var(--muted); }
.journey-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 1.5rem 1.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.journey-spotlight h2 { margin: .35rem 0 .55rem; font-size: 1.45rem; overflow-wrap: normal; }
.journey-spotlight p { margin-bottom: 1rem; max-width: 50ch; font-size: .95rem; }
.journey-checkpoints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.journey-checkpoints div { padding: .8rem .5rem; border: 0; border-left: 1px solid var(--line); border-radius: 0; text-align: center; }
.journey-checkpoints strong { color: var(--text); font-size: 1.5rem; font-weight: 550; }
.journey-checkpoints strong small { font-size: .75rem; color: var(--muted); font-weight: 400; }
.journey-checkpoints span { font-size: .78rem; margin-top: .35rem; }
.course-list { margin: 1rem 0 2.6rem; }
.course-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: .7rem 1.1rem; padding: 1.4rem .25rem; border-bottom: 1px solid var(--line); }
.course-row:first-child { border-top: 1px solid var(--line); }
.course-number { color: var(--muted); font-size: 1.1rem; align-self: start; padding-top: .15rem; }
.course-row h3 { margin: 0 0 .35rem; font-size: 1.12rem; }
.course-row p { margin: 0 0 .5rem; max-width: 62ch; color: var(--muted); font-size: .91rem; }
.course-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--muted); font-size: .78rem; }
.course-tags .badge { padding: .1rem .5rem; }
.course-meta, .topic-meta { display: inline-block; color: var(--muted); font-size: .78rem; margin-top: .35rem; }
.course-row > button, .course-row > a { grid-column: 2; justify-self: start; font-size: .86rem; }
.catalog-quiz {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem 2rem;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.catalog-quiz h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.catalog-quiz p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.catalog-quiz > button { flex-shrink: 0; min-height: 46px; padding: .7rem 1.1rem; font-size: .92rem; }
.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: .5rem 0 1.5rem; }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; justify-items: start; gap: .75rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.topic-row h3 { margin: 0 0 .35rem; font-size: 1.02rem; }
.topic-row p { color: var(--muted); font-size: .88rem; margin: 0; }
.topic-row .badge { margin-top: .45rem; }
.topic-row > button, .topic-row > a { padding: .55rem .75rem; font-size: .83rem; }
.progress-summary { margin: 1.5rem 0; font-size: .9rem; color: var(--muted); }
.progress-summary summary { cursor: pointer; padding: .55rem 0; min-height: 44px; }
.progress-summary[open] > :not(summary) { margin-top: 1rem; }

/* Componentes das lições, quiz, manuais e comunidade. */
.welcome, .cloud-card, .learning-feature, .landing-bottom, .access-card,
.track-card, .arena-header, .arena-waiting,
:root[data-theme="light"] .landing-hero, :root[data-theme="light"] .feature-card {
  background: var(--panel);
  box-shadow: none;
  border-color: var(--line);
}
.track-card:hover, .access-card:hover, .community-grid .panel:hover { transform: none; box-shadow: none; border-color: var(--muted); }
.track-card .mascot-art, .community-feature-art, .landing-orbit, .feature-card img, .community-loading-orbit img { animation: none; filter: none; }
.landing-art:hover .landing-terminal { transform: none; box-shadow: none; }
.track-card { transition: border-color .15s ease; }
.stats { gap: 1.5rem; margin: 1.5rem 0; }
.stat { background: transparent; border: 0; padding: .4rem 0; border-radius: 0; }
.stat strong { color: var(--text); font-size: 1.7rem; font-weight: 550; }
.stat span { font-size: .82rem; }
.learning-panel { max-width: 790px; margin-top: 1.7rem; padding: clamp(1.3rem, 3vw, 2.5rem); }
.learning-content { margin-top: 1.8rem; line-height: 1.75; }
.learning-content > p { font-size: 1.04rem; line-height: 1.75; margin-bottom: 1.25rem; }
.learning-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.3; margin-bottom: 1.2rem; }
.learning-content .code-block { margin-block: 1.4rem; }
.journey-marks { gap: .35rem; }
.journey-marks li { height: 27px; border-radius: 4px; font-size: .73rem; }
.learning-choices button { min-height: 56px; padding: .85rem 1rem; }
.learning-choices button.is-correct { color: #deedcf; background: #284134; border-color: #76956d; }
.learning-choices button.is-incorrect { color: #f2ceca; background: #482e30; border-color: #b77a73; }
:root[data-theme="light"] .learning-choices button.is-correct { color: #26472f; background: #e6f0df; border-color: #76956d; }
:root[data-theme="light"] .learning-choices button.is-incorrect { color: #823c37; background: #f8e8e5; border-color: #b77a73; }
.learning-feedback.is-incorrect { color: var(--error); }
.learning-loop li { border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.learning-loop li span { font-family: inherit; color: var(--muted); font-weight: 500; }
.setup { max-width: 760px; }
.setup > p, .availability { max-width: 62ch; }
.quiz-reassurance { max-width: 58ch; margin: -.1rem 0 1.3rem; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.question-panel { padding: clamp(1.25rem, 3vw, 2rem); }
.question-panel h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.45; }
.answers { gap: .75rem; margin-block: 1.5rem; }
.answer { padding: .95rem 1rem; min-height: 62px; }
.answer, .community-options button, .learning-choices button, .mission-button { transition: background-color .15s ease, border-color .15s ease; }
.answer:hover:not(:disabled), .community-options button:hover:not(:disabled), .learning-choices button:hover:not(:disabled), .mission-button:hover:not(:disabled),
.answer:active:not(:disabled), .community-options button:active:not(:disabled), .learning-choices button:active:not(:disabled) { transform: none; }
.answer .letter { color: var(--muted); border-color: var(--line); background: transparent; }
.feedback { padding: 1.15rem 1.25rem; line-height: 1.7; }
.result-share > summary { cursor: pointer; padding-block: .65rem; min-height: 44px; font-weight: 550; }
.result-share[open] > p { margin-top: .8rem; }
.score-cell { background: transparent; border: 1px solid var(--line); border-radius: 7px; }
.score-cell strong { font-weight: 550; }
.manual-grid { gap: 1rem; }
.manual-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem; }
.manual-card p { font-size: .95rem; line-height: 1.65; }
.terminal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; }
.terminal-window { border-radius: 9px; border-color: var(--line); }
.terminal-bar { background: #20272e; color: #acb8bd; border-color: #354047; }
.terminal-output, .terminal-form { background: #141b1f; color: #ecf0e8; }
.terminal-output { line-height: 1.75; min-height: 300px; }
.terminal-output .command, .terminal-form label { color: #c1d5a4; }
.terminal-form input { color: #ecf0e8; background: #141b1f; }
.mission-button { border-radius: 5px; }
.mission-button.active { border-color: var(--good); background: var(--panel2); }
.mission-picker > summary { display: none; }
.mission-picker > h2 { font-size: 1.08rem; margin-bottom: .65rem; }
.mission-picker > progress { display: block; width: 100%; height: .35rem; margin: .8rem 0 1.2rem; accent-color: var(--good); }
.terminal-references { background: transparent; border: 0; border-top: 1px solid var(--line); padding-inline: 0; border-radius: 0; }
.community-grid { gap: 1.3rem; }
.community-grid .panel, .access-card { box-shadow: none; border-color: var(--line); }
.community-grid .panel p { line-height: 1.65; }
.community-feature-art { width: 2.5rem; height: 2.5rem; }
.community-result { background: var(--panel2); }
.arena-live.is-live::before { animation: none; box-shadow: none; }
.arena-score .community-score li.is-leading { background: var(--panel2); }
.arena-score .community-score li, .arena-question .arena-option { box-shadow: none; }
.institution-mark { background: var(--panel); box-shadow: none; }
.about-grid.profile-layout { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; max-width: 900px; margin: 0 auto; }
.profile-layout > * { min-width: 0; width: 100%; }
.profile-layout .account-card { grid-column: auto; padding: 1.7rem; background: var(--panel); border-color: var(--line); }
.profile-layout .account-card > p { max-width: 65ch; margin-bottom: 1.25rem; }
.profile-layout .account-card > p.small { font-size: .84rem; margin-top: .8rem; margin-bottom: .5rem; }
.profile-choices { background: transparent; border: 0; border-radius: 0; padding: 1rem 0 .4rem; }
.profile-choices > h2 { font-size: 1.2rem; margin-bottom: 1.3rem; }
.profile-choices > .check { gap: .8rem; margin: 1.2rem 0 .4rem; font-size: .95rem; }
.profile-choices > .check input { margin-top: .22rem; }
.profile-choices > .check + p { margin: 0 0 1.4rem 2.05rem; max-width: 65ch; font-size: .84rem; line-height: 1.65; }
.about-detail.panel { padding: .7rem 1.3rem; background: transparent; border-color: var(--line); }
.about-detail > summary { font-size: .95rem; color: var(--text); padding-block: .55rem; }
.about-detail[open] > summary { margin-bottom: .55rem; }
.about-detail .disclosure-body { padding-block: .9rem .5rem; border-top: 1px solid var(--line); }
.about-detail .disclosure-body > p { max-width: 70ch; }
.about-detail .disclosure-body ol { color: var(--muted); font-size: .91rem; padding-left: 1.3rem; margin-top: .2rem; }
.about-detail .disclosure-body li { padding: .2rem 0 .2rem .25rem; }
.about-detail .institution { margin: .3rem 0 1.5rem; }
.about-detail .institution-mark { flex: 0 0 88px; width: 88px; min-height: 88px; padding: .65rem; border-radius: 8px; }
.about-detail .institution-mark img { width: 100%; filter: none; }
.about-detail .institution h2 { font-size: 1.25rem; }
.code-block { border-radius: 6px; }

/* A preferência de salvamento ocupa seu espaço e não cobre ações. */
.cookie-banner {
  position: static;
  z-index: auto;
  inset: auto;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
  padding: .85rem 1.6rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
  font-size: .82rem;
}
.cookie-banner strong { font-size: .85rem; font-weight: 550; }
.cookie-banner p { display: inline; margin: 0 .5rem 0 0; font-size: .82rem; line-height: 1.6; }
.cookie-banner a { display: inline; font-size: .8rem; text-decoration: underline; }
.cookie-banner.data-notice { border-color: var(--line); }
.data-notice-copy strong { margin-right: .45rem; }
.cookie-actions { flex: none; gap: .65rem; flex-wrap: nowrap; }
.cookie-actions button { min-height: 38px; font-size: .8rem; padding: .5rem .8rem; }
.cookie-actions #cookie-details { border-color: transparent; background: transparent; }
/* O canto do chat fica reservado mesmo quando os links quebram de linha. */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding: 1.2rem var(--footer-tour-clearance) 1.2rem calc(var(--sidebar-size) + 3rem); border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.site-footer > div { gap: .1rem; }
.site-footer .footer-contact { flex: 1 1 13rem; }
.site-footer .footer-contact a { width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.site-footer strong { font-weight: 450; color: var(--muted); }
.site-footer .footer-links { flex: 0 1 auto; min-width: 0; gap: .2rem 1rem; align-items: center; }
.site-footer .footer-links > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-button { min-height: 44px; font-size: inherit; }
dialog { border-radius: 11px; padding: 1.8rem; box-shadow: var(--shadow); }
dialog p { line-height: 1.7; }
dialog::backdrop { background: #101619b3; backdrop-filter: blur(3px); }
.account-panel, #sign-out-dialog[open] { animation: none; }
#toast { border-radius: 7px; box-shadow: var(--shadow); }
.disclosure { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.disclosure summary { cursor: pointer; color: var(--muted); font-size: .88rem; padding-block: .35rem; min-height: 44px; }
.disclosure-body { padding-block: .6rem; }
.disclosure-body p { margin-bottom: .8rem; color: var(--muted); font-size: .9rem; }
.storage-options { display: grid; gap: 1rem; margin-block: 1.3rem; }
.storage-options section { border-left: 2px solid var(--line); padding-left: 1rem; }
.storage-options h3 { margin-bottom: .3rem; font-size: .99rem; }
.storage-options p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.access-other { margin-top: .3rem; border-bottom: 0; }
.access-other .disclosure-body button { display: grid; gap: .3rem; width: 100%; text-align: left; }
.access-other .disclosure-body button span { font-size: .83rem; color: var(--muted); }

@media (max-width: 1150px) {
  .topbar { grid-template-columns: minmax(170px, 1fr) minmax(160px, 260px) auto; }
  .content-column main, main { padding-inline: 2rem; }
  .home-lesson { padding: 1.7rem; }
  .practice-options { gap: 1.2rem; }
  .practice-option { grid-template-columns: 23px minmax(0, 1fr) auto; gap: .7rem; }
  .practice-option > a, .practice-option > button { grid-column: 2; justify-self: start; padding: .35rem 0; }
  .journey-spotlight { grid-template-columns: minmax(0, 1fr); }
  .journey-checkpoints { max-width: 360px; }
  .journey-checkpoints div:first-child { border-left: 0; }
  .terminal-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .site-footer { padding-inline-start: calc(var(--sidebar-size) + 2rem); }
}
@media (max-width: 899px) {
  :root { --sidebar-size: 0px; }
  .topbar { grid-template-columns: minmax(0, 1fr) minmax(150px, 240px) auto; padding: .8rem 1rem; gap: .7rem; min-height: 68px; }
  .topbar .tools { grid-column: 3; }
  .topbar .header-search { grid-column: 2; grid-row: 1; }
  .layout { display: block; min-height: calc(100dvh - 210px); }
  .sidebar, .sidebar:hover, .sidebar:focus-within {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: none;
    padding: .3rem .5rem calc(.3rem + env(safe-area-inset-bottom));
    overflow: visible;
    background: var(--panel);
    border: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar nav { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr); gap: 0; padding: 0; }
  .nav-core { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .sidebar .nav-core a, .nav-more > summary { display: flex; flex-direction: column; justify-content: center; gap: .2rem; min-width: 0; min-height: 56px; padding: .3rem .1rem; text-align: center; font-size: .69rem; border-radius: 5px; }
  .sidebar nav a .nav-text { display: block; flex: none; width: auto; opacity: 1; line-height: 1.35; }
  .sidebar nav a[data-view="cybersecurity"] .nav-text { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .sidebar .nav-short-text { display: block; line-height: 1.35; }
  .sidebar .nav-icon { display: inline-grid; width: 20px; height: 20px; }
  .sidebar nav a.active { background: transparent; color: var(--good); font-weight: 600; }
  .nav-more { position: relative; margin: 0; padding: 0; border: 0; }
  .nav-more > summary { display: flex; cursor: pointer; color: var(--muted); list-style: none; }
  .nav-more > summary::-webkit-details-marker { display: none; }
  .nav-more > summary .nav-icon { color: inherit; }
  .nav-more[open] > summary { color: var(--good); background: var(--panel2); }
  .nav-more:not([open]) .nav-secondary { display: none; }
  .nav-secondary {
    position: absolute;
    right: 0;
    bottom: calc(100% + .85rem);
    width: min(260px, calc(100vw - 2rem));
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    gap: .2rem;
    padding: .6rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: var(--shadow);
  }
  .sidebar .nav-secondary a { min-height: 44px; justify-content: flex-start; padding: .7rem .8rem; font-size: .9rem; }
  .sidebar .nav-secondary .nav-text { flex: 1; text-align: left; }
  .nav-secondary hr { margin-block: .4rem; }
  .section-nav, .sidebar:hover + .content-column .section-nav, .sidebar:focus-within + .content-column .section-nav { padding-inline: 1.5rem; }
  .content-column main, main { padding: 2rem 1.5rem 3rem; max-width: 850px; }
  .terminal-layout { grid-template-columns: minmax(0, 1fr); }
  .mission-sidebar { padding: .65rem 1rem; }
  .mission-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .4rem; min-height: 44px; cursor: pointer; font-size: .93rem; list-style: none; }
  .mission-picker > summary::-webkit-details-marker { display: none; }
  .mission-picker > summary > span { color: var(--muted); font-size: .83rem; }
  .mission-picker > summary > span::after { content: "+"; display: inline-block; width: 1rem; margin-left: .8rem; font-size: 1rem; }
  .mission-picker[open] > summary > span::after { content: "−"; }
  .mission-picker[open] > summary { margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
  .mission-picker .mission-list { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .5rem; }
  .mission-picker .mission-button { min-width: 175px; flex: 0 0 auto; }
  .home-intro h1 { max-width: 28ch; }
  .home-feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .home-lesson { padding: 1.7rem; }
  .demo-body { padding-inline: 1.1rem; font-size: .8rem; }
  .demo-bar, .demo-bottom { padding-inline: 1.1rem; }
  .cookie-banner { padding: .85rem 1rem; }
  .site-footer { padding: 1.2rem var(--footer-tour-clearance) calc(6rem + env(safe-area-inset-bottom)) 1.5rem; }
  #toast { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 650px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: .65rem 1rem; }
  .topbar .tools { grid-column: 2; grid-row: 1; }
  .settings-menu { position: static; }
  .topbar .header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 40px; }
  .brand { font-size: 1.16rem; }
  .brand-mark { width: 31px; height: 31px; }
  .tools .profile-button { max-width: 104px; }
  .home-room-entry { padding: .9rem 1rem; }
  .content-column main, main { padding: 1.8rem 1.15rem 2.5rem; }
  .content-column main.is-home { padding-inline: 1.15rem; }
  .home-opening { grid-template-columns: 1fr; gap: 1.25rem; }
  .home-lab-scene { height: 170px; }
  .home-lab-content { padding: 1.25rem; }
  .home-subjects { margin-top: 2rem; }
  .home-section-heading { align-items: flex-start; flex-wrap: wrap; gap: .4rem; }
  .home-section-heading h2 { font-size: 1.25rem; }
  .home-subject-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .home-subject { padding: .9rem; }
  .home-subject-heading { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .home-subject h3 { font-size: .95rem; }
  .home-subject > p { font-size: .82rem; }
  .home-subject-action { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .home-support { align-items: flex-start; padding: .9rem 1rem; }
  .home-support > div:first-child { display: grid; grid-template-columns: 21px minmax(0, 1fr); align-items: start; }
  .home-support > div:first-child svg { margin-top: .6rem; }
  .home-support .home-support-links { gap: .65rem 1rem; }
  .home-intro { margin-bottom: 1.6rem; }
  .home-intro h1 { font-size: 2.05rem; max-width: 22ch; }
  .home-intro > div > p:last-child { font-size: .98rem; max-width: 34ch; }
  .home-feature { grid-template-columns: 1fr; }
  .home-lesson { padding: 1.5rem; }
  .home-lesson h2 { font-size: 1.6rem; }
  .home-lesson > p { max-width: 36ch; }
  .lesson-meta { gap: .55rem 1rem; margin-bottom: 1.2rem; }
  .home-terminal { border-left: 0; border-top: 1px solid var(--line); }
  .demo-bar { padding-block: .7rem; }
  .demo-body { padding: 1.15rem 1.25rem; font-size: .83rem; }
  .demo-bottom { padding: .65rem 1.25rem; }
  .home-options { margin-top: 2rem; }
  .practice-options { grid-template-columns: 1fr; gap: .25rem; }
  .practice-option { grid-template-columns: 25px minmax(0, 1fr) auto; padding-block: 1.25rem; gap: .65rem; }
  .practice-option > a, .practice-option > button { grid-column: 3; justify-self: end; padding: .4rem .1rem; }
  .practice-option p { font-size: .85rem; }
  .practice-option h3 { font-size: .99rem; }
  .page-head { margin-bottom: 1.5rem; }
  .page-head h1 { font-size: 2rem; }
  .page-head p { font-size: .94rem; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .section-heading h2 { max-width: none; font-size: 1.3rem; }
  .section-heading > span, .section-heading > a { font-size: .83rem; line-height: 1.6; }
  .journey-spotlight { padding: 1.3rem; gap: 1.2rem; }
  .journey-spotlight h2 { font-size: 1.3rem; }
  .journey-checkpoints { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .journey-checkpoints div { display: block; text-align: center; padding: .5rem .4rem; }
  .journey-checkpoints span { margin-top: .35rem; font-size: .74rem; }
  .course-row { grid-template-columns: 24px minmax(0, 1fr); gap: .7rem; align-items: start; padding-block: 1.3rem; }
  .course-row > button, .course-row > a { grid-column: 2; justify-self: start; }
  .course-row h3 { font-size: 1.08rem; }
  .course-row p { font-size: .88rem; }
  .course-number { font-size: .95rem; }
  .catalog-quiz { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem; }
  .catalog-quiz > button { width: 100%; }
  .topic-list { grid-template-columns: 1fr; }
  .topic-row { padding-block: 1.15rem; }
  .terminal-layout { grid-template-columns: 1fr; }
  .mission-list { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .4rem; }
  .mission-list .mission-button { min-width: 175px; flex: 0 0 auto; }
  .terminal-output { min-height: 260px; }
  .terminal-form { gap: .4rem; }
  .terminal-form button { padding-inline: .65rem; }
  .question-panel { padding: 1.2rem; }
  .answer { padding: .9rem .8rem; gap: .65rem; }
  .panel { padding: 1.25rem; }
  .learning-panel { padding: 1.3rem; }
  .learning-content { margin-top: 1.5rem; }
  .learning-content > p { font-size: 1rem; }
  .cookie-banner { align-items: start; flex-direction: column; gap: .5rem; padding: .8rem 1rem; }
  .cookie-banner p { display: block; margin-top: .2rem; }
  .profile-layout .account-card { padding: 1.3rem; }
  .profile-choices { padding-inline: 0; }
  .about-detail.panel { padding: .6rem 1rem; }
  .about-detail .institution { gap: .8rem; align-items: flex-start; }
  .about-detail .institution-mark { flex-basis: 64px; width: 64px; min-height: 64px; }
  .about-detail .institution h2 { font-size: 1.1rem; }
  .cookie-actions { width: 100%; justify-content: flex-start; }
  .site-footer { padding-inline-start: 1.15rem; font-size: .74rem; }
  dialog { padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 380px) {
  .topbar:has(.account-menu:not([hidden])) .brand > span:last-child { display: none; }
  .nav-core { grid-template-columns: .85fr .85fr .8fr 1.25fr 1.25fr; }
  .sidebar .nav-core a, .nav-more > summary { font-size: .63rem; }
}

@media print {
  .topbar, .sidebar, .cookie-banner { display: none !important; }
  .layout { display: block; }
  .content-column main, main { padding: 0; max-width: none; }
  .site-footer { padding: 1rem 0; }
  .home-feature { break-inside: avoid; }
}
