:root {
  color-scheme: light;
  --ink: #152821;
  --forest: #102f25;
  --green: #185840;
  --accent: #d7ecae;
  --paper: #f5f5ee;
  --line: #d6ded2;
  --muted: #4d6257;
  --display: "Space Grotesk", Manrope, system-ui, sans-serif;
  font: 100%/1.6 Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.wrap { width: min(1260px, calc(100% - 64px)); margin-inline: auto; }
.site-header { color: var(--forest); background: #eeefe7; border-bottom: 1px solid #b9c9bb; }
.top { min-height: 99px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--forest); text-decoration: none; padding-block: 4px; min-width: 0; }
.brand img { display: block; width: clamp(166px, 21vw, 280px); height: auto; filter: drop-shadow(0 1px 1px #17382950); }
.brand span { font: 700 clamp(1.35rem, 3vw, 2.5rem)/1 var(--display); letter-spacing: -.06em; }
.site-nav { margin-inline-start: auto; display: flex; gap: 22px; }
.site-nav a { color: var(--forest); text-decoration: none; font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #52a773; outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }
.outline, .primary {
  border: 1px solid #abc2b1;
  border-radius: 8px;
  padding: 10px 16px;
  min-height: 44px;
  font-weight: 750;
}
.outline { color: var(--forest); background: #fff; }
.primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.site-header .outline { color: var(--forest); background: transparent; border-color: #96ad9c; }
.site-header .outline:hover { background: #e3f3cb; color: var(--forest); }
main { min-height: 65vh; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(2.15rem, 4.8vw, 4rem); font-weight: 650; margin: 0; }
h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 650; margin: 0; }
h4 { font-size: 1.55rem; font-weight: 650; margin: 0; }
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(550px, 49vw, 720px);
  margin: 12px 0 0;
  background: #103529;
  color: #fff;
}
.masthead::before, .masthead::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.masthead::before { background: #194332 url("academy-hero.webp") center 56% / cover no-repeat; }
.masthead::after { background: linear-gradient(90deg, #071e16fa 0%, #0b261ccc 36%, #0b261c28 75%), linear-gradient(0deg,#071e16cf,transparent 55%); }
.masthead-body { padding: clamp(28px, 5.8vw, 82px); padding-top: 95px; }
.masthead-welcome { color: var(--accent); font-weight: 750; overflow-wrap: anywhere; }
.masthead h1 { display: grid; font-size: clamp(4rem, 10.2vw, 10rem); letter-spacing: -.085em; line-height: .81; margin: 0 0 25px; font-weight: 650; }
.masthead h1 span:last-child { color: var(--accent); }
.masthead-description { color: #f0f4e9; max-width: 45ch; font-size: clamp(1rem, 2vw, 1.2rem); margin: 0 0 23px; }
.masthead-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 19px; background: var(--accent); color: #17271d; text-decoration: none; font-weight: 800; border-radius: 7px; }
.masthead-link:hover { background: #effad5; }
.academy-content { padding: clamp(32px, 6vw, 78px) clamp(0px, 1vw, 14px) 0; }
#catalogo, #professione { scroll-margin-top: 18px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
input:not([type=radio]) { padding: 10px 13px; min-height: 46px; border: 1px solid #98ad9f; border-radius: 7px; width: 100%; background: #fff; }
#search { max-width: 290px; }
.catalog-tools { display: flex; flex-wrap: wrap; gap: 7px; margin: 19px 0 30px; }
.catalog-tools button { padding: 8px 13px; min-height: 44px; text-align: left; border: 1px solid #acbeb0; background: transparent; color: var(--forest); border-radius: 7px; font-weight: 750; font-size: .89rem; }
.catalog-tools button:hover { border-color: var(--green); }
.catalog-tools button[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.catalog-group { margin-bottom: 33px; border-top: 1px solid #a8bba9; padding-top: 16px; }
.catalog-group h3 { margin-bottom: 13px; }
.catalog-grid, .professional-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.catalog-card, .professional-card {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 7px 13px;
  align-content: start;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  padding: 19px;
  background: #fff;
}
.catalog-card > :not(.catalog-icon), .professional-card > :not(.catalog-icon) { grid-column: 2; }
.catalog-card:hover { border-color: #6c9c7e; }
.catalog-card p, .professional-card p { margin: 0; }
.catalog-card p { color: var(--muted); }
.catalog-icon { grid-row: 1 / span 4; width: 43px; height: 43px; display: grid; place-items: center; background: #e3eddf; color: var(--green); font: 700 1.35rem/1 var(--display); }
.catalog-meta { font-size: .85rem; color: #526c60; }
.catalog-open { font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; color: var(--green); margin-top: 2px; }
.professional { margin-top: clamp(36px, 7vw, 86px); padding: clamp(19px, 4vw, 48px); background: #102f25; color: #fff; }
.professional-heading { margin-bottom: 23px; }
.professional-heading p { margin: 10px 0 0; color: #dfe8db; }
.professional-card { background: #193d30; border-color: #53725f; }
.professional-card .catalog-icon { background: #d9e9c3; color: var(--forest); }
.professional-card:first-child .catalog-icon { background: #eedcaa; color: #574411; }
.professional-card p { color: #e2ece4; }
.professional-card:hover { background: #244b3a; border-color: #98b690; }
.professional-card .catalog-open, .professional-type { color: #d7ecae; }
.professional-type { font-size: .83rem; font-weight: 750; }
footer { margin-top: 36px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); }
.back { color: var(--forest); display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 750; text-underline-offset: 3px; }
.manual-hero { background: linear-gradient(115deg,#102f25 60%,#24523a); color: #fff; margin-bottom: 24px; padding: clamp(22px, 5vw, 60px); border-bottom: 4px solid #aac78b; }
.manual-hero h1 { font-size: clamp(2.65rem, 7.6vw, 6rem); max-width: 16ch; margin: 0 0 12px; overflow-wrap: anywhere; }
.manual-hero p { max-width: 62ch; color: #e2eee3; }
.manual-hero .kicker { color: var(--accent); font-weight: 800; margin-bottom: 11px; }
.manual-meta { display: flex; gap: 9px; align-items: center; font-size: .91rem; color: #e0eccc; font-weight: 700; margin-top: 15px; }
.related { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; color: var(--accent); border: 1px solid #d7ecae80; text-decoration: none; }
.related:hover { background: var(--accent); color: var(--forest); }
.read { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 20px; align-items: start; }
.toc, .section { background: #fff; border: 1px solid var(--line); }
.toc { position: sticky; top: 12px; padding: 9px 15px; }
.toc summary { padding: 9px 0; }
.toc a { display: block; padding: 9px 7px; min-height: 44px; color: var(--forest); text-underline-offset: 3px; }
.toc a[aria-current] { background: #e9f0e3; font-weight: 800; }
.section { margin-bottom: 14px; padding: clamp(18px, 4vw, 41px); scroll-margin-top: 16px; }
.section h2 { font-size: clamp(1.75rem, 4vw, 3rem); max-width: 25ch; margin-bottom: 14px; }
.sub { padding: 21px 0; border-top: 1px solid var(--line); }
.sub h3 { font-size: clamp(1.27rem, 2.6vw, 1.72rem); }
.sub p { max-width: 68ch; margin: 13px 0; font-size: 1.0625rem; line-height: 1.7; }
.quiz { padding: 4px 12px; background: #eef4e9; border: 1px solid #d4e3d0; border-radius: 7px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 780; }
.quiz summary { min-height: 44px; padding: 10px 0; color: var(--forest); }
.quiz form { padding-bottom: 12px; }
fieldset { border: 0; padding: 0; margin: 12px 0 18px; min-inline-size: 0; }
legend { font-weight: 750; }
.choice { display: flex; align-items: center; gap: 10px; padding: 8px; min-height: 44px; margin: 7px 0; background: #fff; border-radius: 6px; cursor: pointer; }
.choice:has(input:checked) { background: #d9ebce; }
.choice input { accent-color: var(--green); flex: none; }
.result { margin: 10px 0 0; }
.chapter-next { margin-top: 18px; padding: 11px 13px; color: var(--forest); background: #e7eee3; display: grid; text-decoration: none; }
.chapter-next:hover { background: #d9e8d3; }
.chapter-next small { font-size: .85rem; }
.chapter-next strong { text-decoration: underline; text-underline-offset: 3px; }
.final-test { border-top: 4px solid #5a8a67; }
.sources li { margin-block: 9px; }
.sources a { color: var(--forest); text-underline-offset: 3px; }
#reading-progress { position: fixed; z-index: 5; inset: 0 0 auto; height: 4px; background: #50a964; transform: scaleX(0); transform-origin: left; pointer-events: none; }
dialog { border: 1px solid var(--line); border-radius: 12px; width: min(530px, calc(100% - 28px)); padding: 22px; color: var(--ink); }
dialog::backdrop { background: #10271cab; }
.dialog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dialog-head h2 { font-size: 1.6rem; }
dialog input { margin: 5px 0 12px; }
#share { margin-top: 18px; }

@media (max-width: 1030px) {
  .catalog-grid, .professional-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 799px) {
  .wrap { width: calc(100% - 30px); }
  .top { gap: 8px 12px; flex-wrap: wrap; justify-content: space-between; padding-top: 5px; }
  .site-nav { order: 3; margin-inline-start: 0; width: 100%; gap: 18px; border-top: 1px solid #bccabd; }
  .brand { gap: 4px; }
  .brand img { width: clamp(153px, 42vw, 220px); }
  .brand span { font-size: clamp(1.24rem, 4.2vw, 1.68rem); }
  .read { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .toc { top: 4px; z-index: 2; box-shadow: 0 3px 9px #14392216; }
  .toc nav { max-height: min(49vh, 360px); overflow-y: auto; }
  .section { scroll-margin-top: 70px; }
}
@media (max-width: 545px) {
  .masthead { min-height: 495px; margin-top: 8px; }
  .masthead-body { padding: 90px 19px 28px; }
  .masthead::before { background-position: 63% center; }
  .masthead::after { background: linear-gradient(0deg,#0a241afc 5%,#0a241ad4 47%,#0a241a26 100%); }
  .masthead h1 { font-size: clamp(3.1rem, 13vw, 5rem); margin-bottom: 18px; }
  .masthead-description { margin-bottom: 17px; }
  .site-header .outline { padding: 8px 10px; font-size: .85rem; white-space: nowrap; }
  .catalog-grid, .professional-grid { grid-template-columns: minmax(0, 1fr); }
  #search { max-width: none; }
  .professional-card { padding: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .masthead::before { animation: frame-in 1.5s cubic-bezier(.2,.7,.2,1) both; }
  .masthead-welcome, .masthead h1 span, .masthead-description, .masthead-link { animation: masthead-rise .78s cubic-bezier(.2,.7,.2,1) both; }
  .masthead h1 span:last-child { animation-delay: .12s; }
  .masthead-description { animation-delay: .22s; }
  .masthead-link { animation-delay: .3s; }
  .manual-hero > *, .catalog-card, .professional-card { animation: enter .42s both; }
  .catalog-card:nth-child(3n + 2), .professional-card:nth-child(3n + 2) { animation-delay: .06s; }
  .catalog-card:nth-child(3n), .professional-card:nth-child(3n) { animation-delay: .12s; }
  .catalog-card, .professional-card { transition: translate .2s, background-color .24s, border-color .24s, box-shadow .24s; }
  .masthead-link, .choice, .chapter-next { transition: background-color .22s; }
  .quiz[open] form, .toc[open] nav, .feedback-in, dialog[open] { animation: enter .26s ease-out both; }
  .chapter-current { animation: chapter-focus .9s ease-out; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .catalog-card:hover, .professional-card:hover { translate: 0 -4px; box-shadow: 0 8px 22px #132b211c; }
}
@keyframes frame-in { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes masthead-rise { from { opacity: 0; transform: translateY(19px); } to { opacity: 1; transform: translateY(0); } }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chapter-focus { from { border-color: #54a366; background: #edf5e8; } to { border-color: var(--line); background: #fff; } }

.manual-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.manual-intro { padding: clamp(22px, 5vw, 60px); min-width: 0; }
.manual-photo { display: block; width: 100%; height: 100%; min-height: 340px; max-height: 570px; object-fit: cover; }
.manual-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.manual-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #d7ecae73;
  color: #edf4e5;
  text-decoration: none;
  font-size: .88rem;
}
.manual-links a:hover { color: var(--forest); background: var(--accent); }
.study-panel { background: #edf2e8; border-top: 4px solid #7fa087; }
.study-panel h2 { max-width: 30ch; }
.case-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.case-choices:empty { display: none; }
.case-choices button { min-height: 44px; border: 1px solid #829e8a; background: #fff; color: var(--forest); padding: 7px 11px; border-radius: 5px; font-weight: 750; }
.case-choices button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.chart { padding: clamp(13px, 3vw, 26px); background: #fff; }
.chart-caption { font-weight: 800; font-size: .93rem; color: var(--forest); }
.chart-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.chart-rows li div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; margin-bottom: 3px; }
.chart-track { display: block; height: 10px; background: #dbe7dc; border-radius: 20px; overflow: hidden; }
.chart-bar { width: var(--value); height: 100%; display: block; background: #27734f; border-radius: inherit; }
.chart-rows li:nth-child(even) .chart-bar { background: #79a565; }
.chart-note { color: var(--muted); margin: 17px 0 0; }
.study-terms { padding-top: 12px; }
.study-terms summary { min-height: 44px; padding: 7px 0; }
.study-terms dl { margin: 0; }
.study-terms dt { font-weight: 800; }
.study-terms dd { margin: 0 0 10px; }
.study-flow { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: step; display: grid; gap: 7px; }
.study-flow li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; align-items: center; padding: 10px; background: #fff; }
.study-flow li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; background: #dcebd5; color: var(--forest); font-weight: 850; }
@media (max-width: 799px) {
  .manual-hero { grid-template-columns: minmax(0, 1fr); }
  .manual-photo { min-height: 0; height: clamp(145px, 36vw, 255px); }
}
@media (max-width: 545px) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding-top: 4px; }
  .brand { grid-column: 1 / -1; flex-wrap: wrap; column-gap: 7px; row-gap: 0; }
  .brand img { width: clamp(171px, 48vw, 240px); }
  .brand span { font-size: clamp(1.35rem, 5vw, 1.9rem); padding-bottom: 1px; }
  .site-nav { grid-column: 1; grid-row: 2; gap: 12px; border-top: 0; font-size: .9rem; }
  .site-header #invite { grid-column: 2; grid-row: 2; margin-bottom: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .manual-photo { animation: frame-in 1s cubic-bezier(.2,.7,.2,1) both; }
  .chart-visible .chart-bar { animation: bar-open .65s cubic-bezier(.18,.8,.25,1) both; transform-origin: left; }
  .study-flow li, .study-terms[open] dl { animation: enter .39s ease-out both; }
  .study-flow li:nth-child(2) { animation-delay: .06s; }
  .study-flow li:nth-child(3) { animation-delay: .12s; }
  .study-flow li:nth-child(4) { animation-delay: .18s; }
}
@keyframes bar-open { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Reading room */
.manual-overview { background: #e9efe5; border-top: 4px solid #78a384; }
.manual-pages { min-width: 0; }
.toc nav { max-height: calc(100vh - 95px); overflow-y: auto; }
.toc nav a:has(span), .chapter-cards a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: baseline; }
.toc nav a span, .chapter-cards a span { font: 750 .85rem/1 var(--display); color: var(--green); }
.chapter-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.chapter-cards a {
  align-items: start;
  min-height: 70px;
  padding: 14px 12px;
  border: 1px solid #b7cbb9;
  background: #fff;
  color: var(--forest);
  text-decoration: none;
}
.chapter-cards a span { padding-top: 5px; }
.chapter-cards a strong { font: 650 clamp(1rem, 1.7vw, 1.26rem)/1.2 var(--display); }
.chapter-cards a:hover { border-color: #588c6e; background: #f7faf1; }
.overview-tools, .chapter-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-tools a, .chapter-controls a {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--forest);
  border: 1px solid #94af9a;
  border-radius: 5px;
}
.overview-tools a:hover, .chapter-controls a:hover { background: #dbead3; }
.chapter-count { color: var(--green); font-size: .85rem; font-weight: 850; margin-bottom: 8px; }
.chapter-controls { justify-content: space-between; margin-top: 18px; }
.chapter-controls a:last-child { background: var(--forest); color: #fff; }
.simulation { background: #ecf2e8; border-top: 4px solid #78a384; }
.simulation-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-items: end; }
.simulation-form label { font-size: .9rem; font-weight: 800; }
.simulation-form input { margin-top: 4px; }
.simulation-form .primary { justify-self: start; }
.simulation-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 17px; }
.simulation-results > div { background: #fff; padding: 14px; border: 1px solid #bbcdbd; }
.simulation-results h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
.simulation-results dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; margin: 13px 0 0; font-size: .9rem; }
.simulation-results dd { margin: 0; font-weight: 850; text-align: end; }
.simulation-note { color: var(--muted); font-size: .88rem; margin: 13px 0 0; }
@media (max-width: 799px) { .toc nav { max-height: min(52vh, 420px); } }
@media (max-width: 545px) {
  .chapter-cards a { min-height: 62px; }
  .chapter-cards, .simulation-results { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .chapter-cards a { transition: background-color .2s, border-color .2s; }
  .chapter-current { animation: enter .32s ease-out both; }
}

.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.partner-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 11px; background: #fff; border: 1px solid var(--line); padding: clamp(15px, 3vw, 28px); min-height: 145px; }
.partner-card h2 { font-size: clamp(1.08rem, 2vw, 1.48rem); }
.partner-card a { color: var(--forest); font-weight: 750; font-size: .88rem; padding-block: 7px; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; min-height: 54px; }
.partner-logos img { width: auto; max-width: min(100%, 195px); height: auto; max-height: 50px; object-fit: contain; }
@media (max-width: 840px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 545px) {
  .site-nav { gap: 5px 9px; flex-wrap: wrap; }
  .site-nav a { font-size: .82rem; }
  .partner-card { min-height: 123px; }
  .partner-logos img { max-height: 40px; }
}

.invitation-welcome { min-height: clamp(460px, 52vw, 660px); }
.invitation-welcome .welcome-name { color: var(--accent); font: 700 clamp(1.3rem, 3.8vw, 2.9rem)/1.12 var(--display); overflow-wrap: anywhere; }
.invitation-welcome h1 { display: block; font-size: clamp(2.9rem, 7.4vw, 6.75rem); line-height: .96; letter-spacing: -.065em; }
.invite-preview { display: inline-flex; min-height: 44px; align-items: center; margin-inline-start: 8px; color: var(--forest); font-weight: 750; }
@media (prefers-reduced-motion: no-preference) {
  .invitation-welcome .welcome-name { animation: masthead-rise .65s cubic-bezier(.2,.7,.2,1) both; }
}

.catalog-card, .professional-card { grid-template-columns: 64px minmax(0, 1fr); }
.catalog-illustration { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 15px; }
@media (max-width: 545px) {
  .catalog-card, .professional-card { grid-template-columns: 57px minmax(0, 1fr); }
  .catalog-illustration { width: 57px; height: 57px; border-radius: 12px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .catalog-illustration { transition: transform .25s cubic-bezier(.2,.75,.3,1); }
  .catalog-card:hover .catalog-illustration, .professional-card:hover .catalog-illustration { transform: rotate(-5deg) scale(1.06); }
}
