.notebook, .editor-shell {
  padding-block: clamp(3rem, 6vw, 6rem);
}
.notebook { border-top: 1px solid var(--border); }
.notebook-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: 2rem;
}
.notebook-intro h2, .editor-head h1 { color: #143c3b; }
.notebook-intro p, .editor-head p, .lab-model p, .lab-check p {
  color: var(--muted);
  max-width: 58ch;
}
.lab-grid, .reading-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lab-grid > *, .reading-list > a {
  border: 1px solid #c6d9d3;
  border-radius: 1rem;
  padding: clamp(1.25rem, 2.4vw, 2.5rem);
}
.lab-check { background: #eef6f2; align-self: start; }
.lab-check summary, .lab-model h3, .reading-list strong {
  color: #143c3b;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  font-weight: 550;
  line-height: 1.25;
}
.icon-heading { display: flex; align-items: center; gap: .3em; }
.heading-icon { width: .85em; height: .85em; flex: none; color: var(--accent); }
.lab-icon { display: block; width: 2rem; height: 2rem; color: var(--accent); margin-bottom: .8rem; }
.lab-check summary { position: relative; display: block; cursor: pointer; min-height: 44px; list-style: none; }
.lab-check summary::-webkit-details-marker { display: none; }
.lab-check summary::after {
  content: ""; position: absolute; top: .55rem; right: .2rem;
  width: .55rem; height: .55rem; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.lab-check[open] summary::after { transform: rotate(225deg); }
.lab-check fieldset { min-width: 0; margin: 1rem 0; padding: 0; border: 0; }
.lab-check legend { margin-bottom: .5rem; font-weight: 600; }
.lab-check label { display: flex; min-height: 44px; gap: .65rem; align-items: center; cursor: pointer; }
.lab-check input { width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--accent); }
.lab-check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lab-model p, .lab-grid .text-link { margin-top: 1rem; }
.blog-cta {
  margin-top: 1.5rem;
  border-radius: .75rem;
  font-size: 1rem;
}
.lab-upcoming {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 4vw, 4rem); border-top: 1px solid #c6d9d3;
  margin-top: 2rem; padding: 2rem 0 0; color: #143c3b;
}
.lab-upcoming > div:first-child { align-self: end; }
.orquestra-image { grid-column: 1; grid-row: 1 / 3; align-self: center; margin: 0; }
.orquestra-image img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 1rem; }
.orquestra-image figcaption { margin-top: .4rem; font-size: .875rem; color: var(--muted); }
.lab-upcoming .interest-action { align-self: start; justify-items: start; }
@media (max-width: 640px) {
  .lab-upcoming { grid-template-columns: minmax(0, 1fr); }
  .orquestra-image { grid-column: auto; grid-row: auto; }
}
.lab-upcoming h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: 1.5rem; }
.lab-upcoming h3 span { font-size: .875rem; font-weight: 500; border-radius: 1rem; background: #e0eee6; padding: .2rem .7rem; }
.lab-upcoming p { margin-top: .5rem; max-width: 55ch; color: var(--muted); }
.interest-action { display: grid; gap: .4rem; }
.interest-action small { color: var(--muted); font-size: .875rem; }
.reading-list > a { display: block; padding: 0; overflow: hidden; text-decoration: none; }
.reading-copy { display: grid; gap: .5rem; padding: clamp(1rem, 2vw, 1.6rem); }
.reading-list figure { position: relative; margin: 0; }
.reading-list img { display: block; width: 100%; aspect-ratio: 2 / 1; height: auto; }
.reading-list > a:hover strong, .reading-list > a:focus-visible strong { text-decoration: underline; }
.reading-list small { font-size: .875rem; color: var(--accent); }
.contact-actions, .editor-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.contact-actions { margin-top: 1.75rem; }
.contact-actions :focus-visible { outline-color: white; }
.editor-links a, .article-index a { display: inline-flex; min-height: 44px; align-items: center; }
.editor-head, .post, .post-back, .related-post { max-width: 48rem; margin-inline: auto; }
.editor-head h1 { font-size: clamp(3rem, 7vw, 6rem); }
.editor-head p { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-top: 1.25rem; }
.blog-masthead { max-width: 100%; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.blog-masthead .eyebrow { color: var(--accent); font-size: .82rem; margin: 0 0 .75rem; }
.post-list { display: grid; gap: 2rem; padding-top: 2rem; }
.post-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem); padding-bottom: 2rem; border-bottom: 1px solid var(--border); text-decoration: none;
}
.post-card figure { position: relative; margin: 0; }
.post-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 1rem; }
.post-card figcaption, .reading-list figcaption { position: absolute; bottom: .6rem; left: .6rem; padding: .15rem .5rem; border-radius: 4px; background: #143c3b; color: #fff; font-size: .75rem; }
.post-card h2 { margin: .7rem 0; font-size: clamp(1.65rem, 3vw, 2.8rem); }
.post-card .eyebrow, .post .eyebrow { color: var(--accent); }
.post-card div > p { max-width: 58ch; }
.read-story, .related-post a { color: var(--accent); text-decoration: underline; }
.read-story { display: inline-block; margin-top: 1rem; }
.post-back { display: flex; align-items: center; min-height: 44px; color: var(--accent); }
.post { padding-block: 1.75rem; }
.post > h1 { max-width: 24ch; margin-block: .75rem 1.5rem; font-size: clamp(2.25rem, 4.5vw, 4rem); }
.related-post { border-top: 1px solid var(--border); padding-block: 1rem; }
.related-post a { display: inline-flex; align-items: center; min-height: 44px; }
.article-body { max-width: 65ch; line-height: 1.7; font-size: 1.0625rem; }
.article-body > * + *, .article-body li + li { margin-top: 1rem; }
.article-body h2 { margin-top: 1.8rem; font-size: 1.4rem; letter-spacing: -.02em; font-weight: 600; }
.article-body ul { padding-left: 1.4rem; }
@media (max-width: 1100px) {
  .project-indicators { top: 0; height: 44px; }
  .project-indicators button { height: 44px; min-height: 44px; padding-block: 0; }
  .project-tap-zone { top: 44px; }
  .header .menu-button { display: flex; align-items: center; justify-content: space-between; }
  #navigation {
    display: none; position: absolute; inset: 100% 0 auto; padding: .65rem 1.25rem;
    background: var(--paper); border-bottom: 1px solid var(--border);
    max-height: calc(100dvh - 86px); overflow-y: auto;
  }
  #navigation.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #navigation a { padding: .6rem .75rem; font-size: 1rem; }
}
@media (max-height: 540px) and (max-width: 1100px) and (orientation: landscape) {
  .header .header-inner { min-height: 60px; }
  .model-sticky { top: 60px; }
  .model-stage { height: clamp(80px, calc(100svh - 250px), 220px); min-height: 0; }
  .model-topline, .model-state { padding-block: 0; }
  .model-note { margin-top: 2px; }
}

.header-inner { justify-content: flex-start; gap: clamp(.5rem, 1.6vw, 2rem); }
.header-inner > .brand { margin-right: auto; }
.quick-tools { background: var(--surface, #f1f6f3); border-bottom: 1px solid var(--border); }
.quick-tools-inner { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.75rem, 2.5vw, 2rem); }
.quick-tools a, .quick-tools button {
  min-height: 44px; color: var(--accent); font: inherit; font-size: .9375rem;
}
.quick-phone { display: inline-flex; min-width: 44px; align-items: center; white-space: pre; font-weight: 600; }
.chat-launcher .assistant-entry, .contact .assistant-entry {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .45rem .75rem; border: 0; border-radius: .65rem;
  background: var(--accent); color: var(--paper); font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.chat-launcher {
  position: fixed; z-index: 19;
  bottom: max(.875rem, env(safe-area-inset-bottom));
  right: max(.625rem, env(safe-area-inset-right));
  display: grid; justify-items: end; gap: .5rem;
  max-width: calc(100% - 1.5rem); pointer-events: none;
}
.chat-launcher .assistant-entry {
  position: relative; pointer-events: auto; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--paper); border-radius: 50%;
  box-shadow: 0 3px 14px #0b201e38;
}
.chat-launcher-label {
  position: absolute; right: calc(100% + .5rem); white-space: nowrap;
  padding: .35rem .65rem; border-radius: .5rem; font-size: .875rem;
  background: var(--ink); color: var(--paper); opacity: 0; pointer-events: none;
}
.chat-launcher button:focus-visible .chat-launcher-label { opacity: 1; }
@media (hover: hover) {
  .chat-launcher button:hover .chat-launcher-label { opacity: 1; }
}
.chat-launcher [role="status"]:not(:empty) {
  max-width: 32ch; padding: .6rem .85rem; border: 1px solid var(--border);
  border-radius: .75rem; color: var(--ink); background: var(--paper); pointer-events: auto;
}
.chat-launcher [role="status"]:empty, body:has(.g5-assistant[open]) .chat-launcher { display: none; }
html { scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
body:has(.chat-launcher) .footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
.contact .assistant-entry { background: #dcf4ea; color: #103f35; }
#contact-assistant-status:empty { display: none; }
.theme-control {
  display:inline-flex; flex:none; position:relative; isolation:isolate;
  --theme-rail:#f4f8f5; --theme-edge:#899f92; --theme-active:#d5e6db; --theme-glyph:#254a3b;
}
:root[data-theme="dark"] .theme-control {
  --theme-rail:#172820; --theme-edge:#678373; --theme-active:#344e3e; --theme-glyph:#f9da84;
}
.theme-control::before {
  content:""; position:absolute; inset:4px 0; z-index:-1; border-radius:999px;
  border:1px solid var(--theme-edge); background:var(--theme-rail);
}
.theme-hint {
  position: absolute; z-index: 10; inset: 100% 0 auto auto;
  width: max-content; max-width: min(32ch, 85vw); padding: .35rem .65rem;
  border: 1px solid var(--border); border-radius: .45rem;
  background: var(--ink); color: var(--paper); font-size: .8125rem; line-height: 1.35;
}
.theme-control label { display: grid; place-items: center; width: 44px; height: 44px; position: relative; -webkit-tap-highlight-color: transparent; }
.theme-control input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.theme-control svg {
  box-sizing: border-box; width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
  color: var(--muted); pointer-events: none;
}
.theme-control input:checked + svg { color:var(--theme-glyph); background:var(--theme-active); box-shadow:inset 0 0 0 1px var(--theme-edge); }
.theme-control input:focus-visible + svg { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) {
  .theme-control label:hover input:not(:checked) + svg { background: var(--border); color: var(--ink); }
}
@media (forced-colors: active) {
  .theme-control input:checked + svg { outline: 2px solid Highlight; }
  .theme-control input:focus-visible + svg { outline: 3px double CanvasText; }
}
.case-copy .case-phone { display: flex; width: fit-content; }
@media (max-width: 640px) {
  .quick-tools-inner { width: calc(100% - 24px); justify-content: space-between; gap: .25rem; }
  .quick-phone span { display: none; }
  .quick-tools a, .quick-tools button { font-size: .875rem; }
}
.header .brand-name { white-space: nowrap; }
.language-picker { position: relative; flex: none; color: #143c3b; font-size: .875rem; }
.language-picker summary, .language-options a {
  display: flex; min-height: 44px; align-items: center; gap: .45rem;
}
.language-picker summary { list-style: none; cursor: pointer; padding: .4rem .5rem; border-radius: .55rem; font-weight: 600; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after {
  content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.language-picker[open] summary::after { transform: translateY(2px) rotate(225deg); }
.language-picker img { width: 21px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px #143c3b26; }
.language-picker[open] summary, .language-picker summary:hover { background: #eaf2ee; }
.language-options {
  position: absolute; z-index: 2; top: calc(100% + .25rem); right: 0; width: 10.25rem;
  padding: .3rem; border: 1px solid #c7d8d2; background: white; border-radius: .7rem; box-shadow: 0 5px 18px #143c3b1a;
}
.language-options a { padding: .4rem .65rem; border-radius: .45rem; text-decoration: none; }
.language-options a:hover, .language-options a[aria-current] { background: #eef5f1; }
.language-options a[aria-current]::after { content: "✓"; margin-left: auto; }
.language-options a:focus-visible { outline-offset: -2px; }
.case-files { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.case-files > h3 { color: #143c3b; margin-bottom: .75rem; font-size: 1.2rem; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.case-grid details { border: 1px solid #c6d9d3; border-radius: .85rem; background: #f6faf7; }
.case-grid summary { cursor: pointer; padding: 1rem 1.25rem; color: #143c3b; font-size: 1rem; }
.case-grid summary::marker { color: var(--accent); }
.case-grid summary strong { margin-right: .4rem; }
.case-copy { padding: 0 1.25rem 1rem; max-width: 65ch; }
.case-copy dt { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.case-copy dd { margin: .15rem 0 0; }
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; gap: .5rem; }
}
@media (max-width: 520px) {
  .header .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .35rem; }
  .header .menu-button { min-width: 44px; gap: .25rem; padding-inline: .25rem; }
  .header .language-picker { grid-column: 3; grid-row: 1; justify-self: end; }
  .language-picker summary { padding-inline: .35rem; gap: .3rem; }
  .editor-page .editor-links { grid-column: 1 / -1; grid-row: 2; gap: 1rem; justify-content: start; }
  .editor-page .header .header-inner { row-gap: 0; padding-bottom: .15rem; }
}
@media (max-width: 640px) {
  .notebook-intro, .lab-grid, .reading-list, .post-card { grid-template-columns: minmax(0, 1fr); }
  .editor-links { gap: 0 .8rem; justify-content: flex-end; font-size: .875rem; }
  .editor-page .header-inner { flex-wrap: wrap; gap: 0 1rem; padding-block: .5rem; }
}
@media (max-width: 380px) {
  .header .header-inner { width: calc(100% - 24px); }
  .header .brand { gap: .35rem; }
  .header .brand-symbol { width: 47px; height: 39px; }
  .header .brand-symbol img { width: 80.5px; height: 80.5px; top: -19.1px; left: -17.3px; }
  .header .menu-button { font-size: .875rem; }
}
.letter-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem 4rem;
  padding: clamp(1.35rem, 4vw, 4rem);
  margin-block: 2rem clamp(2.5rem, 6vw, 5rem);
  border-radius: 1rem;
  background: #173e38;
  color: #f4faf7;
}
.letter-feature .eyebrow { color: #b2dfcc; }
.letter-feature h2, .open-letter h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.04em;
}
.letter-feature h2 { font-size: clamp(2.35rem, 4vw, 4.2rem); line-height: 1.06; margin-top: .65rem; }
.letter-feature h2 a { color: inherit; text-decoration: none; }
.letter-feature h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.letter-feature > div > p:not(.eyebrow) { max-width: 42ch; line-height: 1.6; }
.letter-feature .text-link { color: white; margin-top: .65rem; }
.letter-feature :focus-visible { outline-color: #fff; }
.essay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: clamp(1rem, 2.2vw, 2rem); }
.essays > h2, .more-essays { font-size: clamp(1.65rem, 3vw, 2.75rem); margin-bottom: 1.2rem; }
.more-essays { margin-top: clamp(2.5rem, 6vw, 5rem); }
.essay-card { min-width: 0; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; color: var(--ink); text-decoration: none; }
.essay-card > div { padding: 1.1rem 1.25rem 1.5rem; }
.essay-card h3 { margin-top: .6rem; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.22; overflow-wrap: anywhere; }
.essay-card:is(:hover,:focus-visible) h3 { text-decoration: underline; text-underline-offset: .15em; }
.essay-card .eyebrow { color: var(--accent); }
.essay-card figure { position: relative; margin: 0; }
.essay-card img { display: block; width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; }
.essay-card figcaption { position: absolute; bottom: .6rem; left: .6rem; background: #143c3b; color: white; padding: .12rem .45rem; border-radius: .25rem; font-size: .8125rem; }
.editorial-lead { color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; max-width: 58ch; }
.editorial-post { overflow-wrap: break-word; }
.editorial-post .article-body { max-width: 68ch; }
.editorial-post .chapter h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.25; }
.chapter p { margin-top: .9rem; }
.contents { max-width: 68ch; margin-block: 1.6rem 2rem; border-block: 1px solid var(--border); }
.contents summary { color: var(--accent); padding-block: .8rem; cursor: pointer; font-weight: 600; }
.contents ol, .references ol { padding-inline-start: 1.7rem; }
.contents ol { padding-bottom: 1rem; }
.contents li a { display: inline-block; padding-block: .3rem; }
.references { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.references ol { margin-top: 1rem; }
.references li { padding-inline-start: .35rem; }
.editorial-post a { color: var(--accent); }
.ref-call { font-size: .88em; white-space: nowrap; }
.open-letter .salutation { font-weight: 600; }
.open-letter .signature { margin-block: 2rem 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.letter-home, .area-reading { margin-top: 1rem; }
.ai-home { margin-bottom: 1.25rem; }
@media (max-width: 640px) {
  .letter-feature { grid-template-columns: 1fr; gap: 1rem; }
}
.article-figure { margin: 1.5rem 0; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: .75rem; }
.article-figure figcaption { margin-top: .55rem; max-width: 78ch; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.sense-reference { display: inline-block; margin-block-start: 1rem; color: var(--accent); font-size: .875rem; }
#sentidos { scroll-margin-top: 1rem; }
.publication-date { display: block; color: var(--muted); font-size: .875rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.post > .publication-date { margin: -.35rem 0 1.25rem; }
.essay-card .publication-date, .post-card .publication-date { margin-top: .8rem; }
.sensory { margin: 0 0 2rem; padding: clamp(1rem,3vw,2.5rem); border: 1px solid var(--border); border-radius: 1.2rem; }
.sensory > header > p { margin-top: .65rem; max-width: 68ch; color: var(--muted); }
.sensory .sense-details h4 { font-size: clamp(1.15rem,2.2vw,1.7rem); line-height: 1.25; }
.letter-feature .publication-date { color: #c5dfd0; margin-top: .75rem; }
.contact-location {
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1.6fr);
  align-items:center;
  gap:clamp(1.25rem, 4vw, 4rem);
  border-top:1px solid #527368;
  margin-top:2.25rem;
  padding-top:2rem;
}
.contact-location h3 { margin:0 0 .6rem; font-size:1.25rem; color:inherit; }
.contact-location address { font-style:normal; line-height:1.6; }
.contact-location .location-directions {
  display:inline-flex; align-items:center; gap:.5rem; min-height:44px;
  margin-top:.4rem; color:#b1ebd7; font-weight:600; text-decoration:underline; text-underline-offset:.22em;
}
.location-directions:focus-visible,.contact-map:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.contact-map { display:block; width:100%; height:clamp(15rem,27vw,20rem); border:0; border-radius:1rem; background:#dce8e1; }
@media(max-width:44rem) {
  .contact-location { grid-template-columns:minmax(0,1fr); gap:.85rem; padding-top:1.25rem; }
}

.lab-check .brief-kind {display:grid;gap:.5rem;margin-top:1rem}
.brief-kind select {font:inherit;color:inherit;background:var(--paper);border:1px solid var(--muted);border-radius:.5rem;padding:.6rem;min-height:44px;width:100%}
.brief-output {margin-block:1rem;border-top:1px solid var(--muted);padding-top:1rem}
.brief-output p {margin-top:.65rem}
.brief-actions {display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;margin-top:1rem}
.brief-actions .text-link {margin:0}
.brief-entry {margin-block:1.5rem}

.back-to-top {
  position: fixed;
  z-index: 18;
  inset-inline-start: max(.625rem, env(safe-area-inset-left));
  bottom: max(.875rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 3px 12px #0b201e26;
}
.back-to-top[hidden] { display: none; }
.back-to-top::before {
  content: "";
  width: .62rem;
  height: .62rem;
  border: solid currentColor;
  border-width: 2px 0 0 2px;
  transform: translateY(.15rem) rotate(45deg);
}
.back-to-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) {
  .back-to-top:hover { color: var(--paper); background: var(--accent); }
}
@media print {
  .back-to-top { display: none; }
}
