@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Franklin;
  src: url("assets/franklin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #18362b;
  --forest: #18392e;
  --deep: #123126;
  --leaf: #326b49;
  --muted: #536258;
  --line: #e0e4e1;
  --nav-surface: #f4f5f4;
  --white: #fff;
  --yellow: #f9cd46;
  --sage: #e5ecdf;
  --heading: Bricolage, system-ui, sans-serif;
  font-family: Franklin, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 4px; }
[data-navigation-focus-without-outline]:focus { outline: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip-link:focus { position: fixed; z-index: 6; top: 10px; left: 10px; padding: 12px; background: white; }

.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  padding: 32px 17px 20px;
  border-right: 1px solid var(--line);
  background: var(--nav-surface);
}
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: fit-content;
  padding-left: 13px;
  text-decoration: none;
}
.wordmark strong { font: 800 30px/1 var(--heading); letter-spacing: -.025em; }
.wordmark span { color: var(--leaf); font-size: 15px; font-weight: 670; }
.main-nav { display: grid; gap: 4px; margin-top: 39px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 470;
  text-align: left;
  text-decoration: none;
}
.nav-item:hover, .nav-item.active { background: var(--sage); color: var(--forest); }
.nav-item.active { font-weight: 620; }
.nav-item .icon { width: 19px; height: 19px; color: var(--leaf); }
.sidebar-bottom { display: grid; gap: 3px; margin-top: auto; padding-top: 32px; }
.member-signout { display: none; }
[data-membership-mode="live"] .member-signout { display: block; }

@media (min-width: 761px) {
  html { overscroll-behavior-y: none; }
  .sidebar {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
  }
}

[data-membership-mode="live"] .sidebar {
  border-color: #173d31;
  background: #15352a;
  color: #f2f8f1;
}
[data-membership-mode="live"] .sidebar .wordmark span,
[data-membership-mode="live"] .sidebar .nav-item .icon { color: #b9d7c3; }
[data-membership-mode="live"] .sidebar .nav-item { color: #f2f8f1; }
[data-membership-mode="live"] .sidebar .nav-item:hover { background: #2d5142; }
[data-membership-mode="live"] .sidebar .nav-item.active { background: #34604d; color: #fff; }
[data-membership-mode="live"] .sidebar :focus-visible { outline-color: var(--yellow); }

.workspace { min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(22px, 3.4vw, 55px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.topbar-heading, .topbar-controls { display: flex; align-items: center; gap: 14px; }
.topbar-brand { font-size: 16px; font-weight: 640; letter-spacing: -.015em; }
.preview-label { color: var(--muted); font-size: 13px; }
.profile-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid #e0e4d8;
  border-radius: 9px;
  background: #f2f4eb;
}
.profile-switch label { position: relative; }
.profile-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.profile-switch span {
  display: block;
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.profile-switch input:checked + span { background: var(--forest); color: var(--white); }
.profile-switch input:focus-visible + span { outline: 2px solid var(--leaf); outline-offset: 2px; }
.avatar, .menu-toggle {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 1px solid #d6e1d0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-weight: 760;
}
.menu-toggle { display: none; }

.content {
  max-width: 1330px;
  margin: 0 auto;
  padding: 32px clamp(22px, 3.4vw, 55px) 32px;
  outline: 0;
}
.greeting { margin-bottom: 25px; }
.start-summary h2, .panel h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 800;
  letter-spacing: -.035em;
}
.greeting h1 { margin: 0; font-size: clamp(29px, 3.4vw, 40px); font-weight: 650; line-height: 1.12; letter-spacing: -.035em; }

.start-card {
  display: grid;
  grid-template-columns: minmax(238px, .84fr) minmax(0, 2.55fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 7px 24px #1c382009;
}
.start-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 27px clamp(21px, 2.35vw, 34px);
  background: linear-gradient(145deg, #214636, var(--deep) 89%);
  color: var(--white);
}
.start-summary h2 { max-width: 245px; font-size: clamp(29px, 2.3vw, 34px); line-height: 1.04; text-wrap: balance; }
.start-summary p { margin: 17px 0 8px; color: #e2e9da; font-size: 15px; font-weight: 650; }
.progress-track { display: flex; gap: 5px; width: min(155px, 100%); }
.progress-track span { flex: 1; height: 5px; border-radius: 4px; background: #91aa9666; }
.progress-track .fill { background: var(--yellow); }

.steps { display: grid; align-content: center; margin: 0; padding: 10px 16px; list-style: none; }
.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 76px minmax(168px, auto);
  align-items: center;
  gap: 11px;
  min-height: 59px;
  padding: 7px 11px;
}
.step + .step { border-top: 1px solid #e7e9df; }
.step-priority { border-radius: 8px 8px 0 0; background: #faf2d9; }
.step-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #edf1e8;
  color: var(--leaf);
}
.step-priority .step-icon { background: #f6e5aa; color: #695017; }
.step-icon .icon { width: 18px; height: 18px; }
.step-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.step-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 3px;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 730;
  white-space: nowrap;
}
.step-status .icon { width: 13px; height: 13px; stroke-width: 2; }
.step-status.todo { background: #f6dfda; color: #8a352d; }
.step-status.done { background: #dcebdc; color: #245b3d; }
.step-action, .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #cbd7c9;
  border-radius: 7px;
  background: var(--white);
  color: var(--forest);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.step-action:hover, .action-secondary:hover { background: #edf2e8; }
.step-action.prominent, .action:not(.action-secondary) { border-color: transparent; background: var(--yellow); color: var(--deep); }
.step-action.prominent:hover, .action:not(.action-secondary):hover { background: #ffdb65; }

.resources {
  container-type: inline-size;
  margin-top: 28px;
  border: 1px solid #d6e1d1;
  border-radius: 14px;
  background: #edf3e9;
}
.resources h2 {
  margin: 0;
  padding: 15px 20px 16px;
  border-radius: 13px 13px 0 0;
  background: #1b4537;
  color: var(--white);
  font: 800 clamp(23px, 2.3vw, 30px)/1.15 var(--heading);
  letter-spacing: -.025em;
}
.resource-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 16px;
}
.resource-card {
  min-width: 0;
  border: 1px solid #d1ded1;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 4px #18362b0b;
  scroll-margin-top: 20px;
}
.resource-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  min-height: 86px;
  padding: 12px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
}
summary.resource-heading { cursor: pointer; list-style: none; }
summary.resource-heading::-webkit-details-marker { display: none; }
.resource-heading:hover, .resource-card[open] .resource-heading { background: #f3f7f0; }
.resource-heading:focus-visible { outline-offset: -3px; }
.resource-heading .resource-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e4efe0;
  color: #2a5b41;
}
.resource-heading .resource-icon .icon { width: 21px; height: 21px; }
.resource-heading > .icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: #ecf3e9;
  color: #2a5b41;
}
summary.resource-heading > .icon { transform: rotate(90deg); }
.resource-card[open] > summary > .icon { transform: rotate(270deg); }
.resource-copy { display: grid; gap: 3px; }
.resource-title { font: 800 17px/1.23 var(--heading); }
.resource-summary { color: #47594e; font-size: 14px; line-height: 1.35; }
.resource-card .resource-list { margin: 0 12px 5px; }
.resource-card .resource-item { min-height: 43px; font-size: 14px; font-weight: 490; }
.resource-card > .view-badge { margin: 0 13px 10px; }

@container (max-width: 825px) {
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 550px) {
  .resource-grid { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 8px; }
  .resource-heading {
    grid-template-columns: 36px minmax(0, 1fr) 26px;
    gap: 9px;
    min-height: 72px;
    padding: 9px;
  }
  .resource-heading .resource-icon { width: 36px; height: 36px; }
  .resource-heading .resource-icon .icon { width: 19px; height: 19px; }
  .resource-heading > .icon { width: 26px; height: 26px; }
  .resource-title { font-size: 16px; }
  .resource-summary { font-size: 13px; }
}

.resource-icon { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 8px; }
.resource-icon .icon { width: 19px; height: 19px; }
.tone-sage { background: var(--sage); color: #295b41; }
.tone-yellow { background: #f7ebbc; color: #624b18; }
.tone-clay { background: #f1e7d7; color: #674d31; }
.resource-list { margin: 0; padding: 0; list-style: none; }
.resource-list li { border-top: 1px solid #e7e9df; }
.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 7px 3px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.25;
  text-align: left;
}
.resource-item:hover { padding-inline: 6px; background: #edf2e9; }
.resource-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; font-weight: 480; }
.resource-item .icon { width: 15px; height: 15px; color: var(--leaf); }
.data-note { margin: 19px 0 0; color: var(--muted); font-size: 12px; }

.panel {
  width: min(515px, calc(100% - 30px));
  max-height: calc(100% - 38px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 22px 90px #102a2460;
}
.panel::backdrop { background: #102a2480; }
.panel-inner { position: relative; padding: 32px; }
.panel-close { position: absolute; right: 13px; top: 13px; }
.panel-close button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--sage); color: var(--ink); }
.panel h2 { padding-right: 24px; font-size: 33px; line-height: 1.06; }
.panel p { color: var(--muted); line-height: 1.5; }
.panel p:last-child { margin-bottom: 0; }
.panel-list { display: grid; gap: 8px; margin: 17px 0; padding: 13px 16px 13px 36px; border-radius: 9px; background: var(--sage); }
.panel-list li { padding-left: 2px; line-height: 1.4; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 19px; }
.panel .action { padding-inline: 14px; }
.text-action { min-height: 38px; padding: 6px; border: 0; background: transparent; color: var(--leaf); font-weight: 670; text-decoration: underline; }
.panel a.text-action { display: inline-flex; align-items: center; padding-inline: 0; }
a.resource-item { text-decoration: none; }
.panel .panel-note { font-size: 13px; }

@media (max-width: 1150px) {
  .shell { grid-template-columns: 197px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .start-card { grid-template-columns: minmax(185px, .82fr) minmax(0, 2.6fr); }
  .step { gap: 8px; }
  .step-title { font-size: 15px; }
}

@media (max-width: 960px) {
  .start-card { grid-template-columns: 1fr; }
  .start-summary { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 9px 16px; padding: 20px; }
  .start-summary h2 { max-width: none; }
  .start-summary p { margin: 0; }
}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar {
    display: none;
    position: absolute;
    z-index: 3;
    inset: 64px auto auto 0;
    width: min(270px, 90vw);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 0 0 13px 0;
    box-shadow: 0 12px 28px #15352719;
  }
  .sidebar.is-open { display: flex; }
  .wordmark { display: none; }
  .main-nav { margin: 0; }
  .sidebar-bottom { padding-top: 8px; }
  .topbar { min-height: 65px; }
  .menu-toggle { display: grid; width: 35px; height: 35px; border: 0; border-radius: 8px; }
  [data-membership-mode="live"] .topbar {
    border-color: #173d31;
    background: #15352a;
    color: #f2f8f1;
  }
  [data-membership-mode="live"] .topbar .menu-toggle,
  [data-membership-mode="live"] .topbar .avatar {
    border-color: #52715f;
    background: #34604d;
    color: #fff;
  }
  [data-membership-mode="live"] .topbar :focus-visible { outline-color: var(--yellow); }
  .preview-label { display: none; }
  .topbar-heading, .topbar-controls { gap: 8px; }
}

@media (max-width: 510px) {
  .topbar { gap: 8px; padding: 10px 14px; }
  .topbar-brand { font-size: 16px; }
  .profile-switch span { padding: 8px 7px; font-size: 12px; }
  .avatar { display: none; }
  .content { padding: 24px 15px 22px; }
  .greeting { margin-bottom: 17px; }
  .start-summary { display: grid; gap: 6px; padding: 16px 17px; }
  .start-summary h2 { font-size: 27px; }
  .progress-track { margin-top: 2px; }
  .steps { padding: 6px; }
  .step {
    grid-template-columns: 31px minmax(0, 1fr) auto;
    grid-template-areas: "icon title status" ". action action";
    gap: 5px 8px;
    padding: 7px 8px;
  }
  .step-icon { grid-area: icon; width: 29px; height: 29px; }
  .step-title { grid-area: title; }
  .step-status { grid-area: status; justify-self: end; }
  .step-action { grid-area: action; justify-self: start; min-height: 38px; padding: 5px 9px; }
  .resource-item { min-height: 43px; }
  .panel-inner { padding: 27px 20px; }
}

@media (max-width: 350px) {
  .topbar { flex-wrap: wrap; }
  .topbar-controls, .profile-switch { width: 100%; }
  .profile-switch label { flex: 1; text-align: center; }
  .sidebar { inset-block-start: 103px; }
}

.detail-view { max-width: 1160px; margin: 0 auto; }
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--leaf);
  font-weight: 680;
  text-underline-offset: 3px;
}
.detail-intro { margin-bottom: 24px; }
.detail-intro h1 {
  margin: 0;
  font: 800 clamp(34px, 4.25vw, 57px)/1.02 var(--heading);
  letter-spacing: -.035em;
}
.detail-intro p { margin: 9px 0 0; color: var(--muted); font-size: 17px; }

.avatar { flex: 0 0 auto; text-decoration: none; }
.membership-view { max-width: 1040px; }
.membership-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.membership-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 5vw, 54px);
  background: linear-gradient(150deg, #24503c, var(--deep) 80%);
  color: var(--white);
}
.membership-eyebrow { margin: 0 0 13px; color: var(--yellow); font-size: 13px; font-weight: 750; letter-spacing: .1em; }
.membership-intro h1 { margin: 0; font: 800 clamp(37px, 4.2vw, 61px)/1.02 var(--heading); letter-spacing: -.04em; }
.membership-intro h1 + p { margin: 17px 0 0; color: #e9eee3; line-height: 1.55; }
.membership-demo-note { margin: 22px 0 0; color: #d8e4d3; font-size: 13px; }
.membership-content, .membership-account { padding: clamp(22px, 4vw, 43px); }
.membership-content fieldset { min-inline-size: 0; margin: 0 0 20px; padding: 0; border: 0; }
.membership-content legend, .membership-content h2, .membership-account h2 {
  margin: 0 0 14px;
  padding: 0;
  font: 800 clamp(24px, 3vw, 34px)/1.08 var(--heading);
  letter-spacing: -.03em;
}
.membership-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.membership-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--leaf); }
.membership-option:has(:checked) { border-color: var(--leaf); background: var(--sage); }
.membership-option span { display: flex; flex: 1; justify-content: space-between; align-items: baseline; gap: 10px; }
.membership-option small { color: var(--muted); font-size: 14px; }
.membership-content p, .membership-account p { color: var(--muted); line-height: 1.5; }
.membership-content p { margin: 0 0 10px; }
.membership-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.membership-account { max-width: 740px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.account-overview:has(.account-profile:not([hidden])) { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: start; gap: 18px; }
.account-profile, .account-overview:has(.account-profile:not([hidden])) .membership-account { padding: clamp(19px, 3vw, 28px); }
.account-profile { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.account-profile h2 { font: 800 23px/1.13 var(--heading); margin: 0 0 17px; letter-spacing: -.025em; }
.account-photo-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.account-photo { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; background: var(--sage); color: var(--forest); font: 800 28px/1 var(--heading); }
.account-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-email-label { color: var(--muted); margin: 0 0 5px; font-size: 14px; }
.account-email { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.account-feedback { margin: 12px 0 0; font-size: 14px; }
.account-feedback:empty { display: none; }
.membership-cancel-link { color: var(--muted); }
.membership-plan-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; margin: 8px 0 13px; }
.membership-plan-options .membership-option { position: relative; align-items: flex-start; flex-direction: column; gap: 8px; margin: 0; min-width: 0; background: var(--white); }
.membership-plan-options .membership-option:has(:checked) { background: var(--sage); }
.membership-plan-options .membership-option:has(:focus-visible) { outline: 2px solid var(--leaf); outline-offset: 2px; }
.membership-plan-options .membership-option > span { display: grid; gap: 2px; }
.membership-plan-options .membership-option strong { color: var(--forest); font-family: var(--heading); }
.membership-plan-options .membership-option .membership-plan-price { font-weight: 750; }
.membership-plan-options .membership-option .membership-current-plan { color: var(--leaf); font-size: 12px; font-weight: 750; }
.membership-management-footer { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.membership-account #membership-plan-change { padding: 0; }
#membership-plan-change fieldset { margin-bottom: 0; }
#membership-plan-change .membership-actions { margin-top: 12px; }
#membership-plan-timing { font-size: 13px; }
#membership-plan-submit:disabled { opacity: .6; cursor: default; }
.account-overview:has(.account-profile:not([hidden])) .membership-account #membership-account-plan { color: var(--forest); font-weight: 750; }
.account-overview:has(.account-profile:not([hidden])) .membership-content { padding: 17px 0 0; background: transparent; }
@media (max-width: 870px) {
  .account-overview:has(.account-profile:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
}
.membership-account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.member-access-message { margin: 8px 0 0; color: var(--leaf); font-weight: 650; }
.payment-notice { display: grid; justify-items: start; gap: 12px 20px; margin-top: 18px; padding: 16px 18px; border: 1px solid #e8d49a; border-radius: 12px; background: #faf2db; }
.payment-notice p { margin: 4px 0 0; color: var(--muted); }
.payment-notice-wide { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0 0 22px; }
@media (max-width: 620px) {
  .payment-notice-wide { grid-template-columns: 1fr; }
}
.membership-account h2 { margin-bottom: 6px; }
.membership-account-head p { margin: 0; }
.membership-status { padding: 6px 10px; border-radius: 20px; background: #f0ebe2; color: #59493b; font-size: 14px; font-weight: 700; }
.membership-status.is-active { background: var(--sage); color: var(--forest); }
.membership-cancel, .membership-test-controls { margin-top: 23px; padding-top: 13px; border-top: 1px solid var(--line); }
.membership-test-controls summary { cursor: pointer; color: var(--leaf); font-weight: 650; }
.membership-test-controls .action:disabled { opacity: .55; cursor: default; }

@media (max-width: 700px) {
  .membership-layout { grid-template-columns: 1fr; }
}
#outils, #communaute { container: qg-cards / inline-size; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6cqi, 19px);
  margin-bottom: 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 5px 14px -11px #17362b78;
  text-decoration: none;
}
.product-card:hover { border-color: var(--product-accent); box-shadow: 0 4px 14px #19392b14; }
button.product-card { padding: 0; color: inherit; text-align: left; }
.product-facto { --product-cover: #1d3553; --product-accent: #142848; }
.product-site { --product-cover: #183c31; --product-accent: #2e5b3e; }
.product-factopub { --product-cover: #243b74; --product-accent: #1947ba; --product-position: right top; }
.product-academie { --product-cover: #384526; --product-accent: #2e5039; }
.product-rate { --product-cover: #513618; --product-accent: #725017; --product-position: 62% 67%; }
.product-discord { --product-cover: #372b67; --product-accent: #403589; --product-position: 85% 28%; }
.discord-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.discord-open, .discord-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.25;
  text-decoration: none;
}
.discord-open span, .discord-download span { min-width: 0; overflow-wrap: anywhere; }
.discord-open .icon, .discord-download .icon { flex: none; width: 16px; height: 16px; }
.discord-open { background: #403589; color: #fff; }
.discord-open:hover { background: #34296f; }
.discord-download { border-color: #ddd5f3; background: #f4f1fc; color: #403589; }
.discord-download:hover { background: #e9e3fa; }
.home-adoption-discord .discord-download {
  position: relative;
  z-index: 1;
  margin-top: 8px;
}
.resource-list .discord-download { margin-block: 5px; }
.product-map { --product-cover: #245149; --product-accent: #235a46; }
.product-map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: auto; }
.product-map-actions .action { min-height: 44px; padding: 6px 10px; font-size: 14px; }
.product-quote { --product-cover: #61392c; --product-accent: #80462f; }
.product-cesu { --product-cover: #283b2b; --product-accent: #326b49; }
.product-brand {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  gap: 10px;
  min-height: 112px;
  padding: 13px 16px;
  background: var(--product-cover);
  color: white;
}
.product-brand::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--product-cover) 27%, color-mix(in srgb, var(--product-cover) 82%, transparent) 53%, transparent 93%);
}
.product-facto .product-brand::before {
  background: linear-gradient(90deg, var(--product-cover) 27%, color-mix(in srgb, var(--product-cover) 92%, transparent) 43%,
    color-mix(in srgb, var(--product-cover) 36%, transparent) 61%, transparent 88%);
}
.product-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 76%;
  height: 100%;
  object-fit: cover;
  object-position: var(--product-position, 66% 49%);
}
.product-facto .product-photo,
.product-map .product-photo {
  object-fit: contain;
  object-position: right center;
}
.product-facto .product-photo { width: 84%; background: #e8f1f9; }
.product-brand :is(strong, h2) {
  margin: 0;
  min-width: 0;
  font: 800 clamp(18px, 2vw, 23px)/1.08 var(--heading);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 7px var(--product-cover);
}
.facto-app-icon, .product-site-logo, .academie-symbol, .product-discord-logo {
  display: block;
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 7px;
  outline: 1px solid #ffffff55;
  object-fit: contain;
}
.factopub-symbol-frame {
  display: grid;
  flex: none;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #b7c8f0;
  border-radius: 7px;
  background: #fff;
}
.factopub-symbol {
  position: relative;
  display: block;
  overflow: hidden;
  width: 68%;
  aspect-ratio: 180 / 211;
  clip-path: polygon(0 0, 100% 0, 100% 24%, 90% 34%, 90% 100%, 0 100%);
}
.factopub-symbol img {
  position: absolute;
  top: calc(-100% * 40 / 211);
  left: calc(-100% * 23 / 180);
  width: calc(100% * 900 / 180);
  max-width: none;
  height: auto;
}
.product-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 7px;
  background: #fffdf4;
  color: var(--product-accent);
}
.product-mark .icon { width: 19px; height: 19px; }
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 9px;
}
.product-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.product-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  min-height: 38px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
  color: var(--product-accent);
  font-size: 14px;
  font-weight: 730;
  overflow-wrap: anywhere;
}
.product-card:hover .product-link { text-decoration: underline; text-underline-offset: 3px; }
.product-link .icon { flex: none; width: 14px; height: 14px; }
.product-grid-featured .product-brand {
  min-height: clamp(128px, 14cqi, 174px);
  padding-inline: clamp(14px, 2.2cqi, 26px);
}
.product-grid-featured .product-brand :is(strong, h2) { font-size: clamp(22px, 2.7cqi, 32px); }
.product-grid-featured .product-body { padding: 13px clamp(14px, 2.2cqi, 26px) 10px; }
.product-grid-featured .product-description { font-size: 15px; }
.product-grid-featured .product-link { min-height: 44px; font-size: 15px; }
.product-grid-secondary .product-brand { min-height: 78px; padding: 9px 12px; }
.product-grid-secondary .product-brand strong { font-size: clamp(15px, 1.7cqi, 19px); }
.product-grid-secondary .product-body { gap: 6px; padding: 9px 11px 6px; }
.product-grid-secondary .product-description { font-size: 13px; }
.product-grid-secondary .product-link { min-height: 34px; }
@container qg-cards (max-width: 720px) {
  .product-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container qg-cards (max-width: 460px) {
  .product-grid { gap: 10px; }
  .product-grid-featured { grid-template-columns: minmax(0, 1fr); margin-bottom: 17px; }
  .product-grid-secondary .product-brand { gap: 6px; padding: 8px; }
}
@container qg-cards (max-width: 320px) {
  .product-grid-secondary { grid-template-columns: minmax(0, 1fr); }
}
.workspace:has(#devis:not([hidden])) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.content:has(> #devis:not([hidden])) {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: none;
  padding-inline: clamp(15px, 2vw, 26px);
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
#devis { display: flex; flex: 1; flex-direction: column; width: 100%; max-width: none; }
.devis-main {
  container-type: inline-size;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto clamp(20px, 3vw, 36px);
}
.devis-back { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; margin-bottom: 10px; font-size: 14px; }
.devis-back .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.devis-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 168px;
  align-items: center;
  overflow: hidden;
  padding: 22px clamp(15px, 4cqw, 44px);
  border-radius: 15px;
  background: var(--deep);
}
.devis-cover img { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 75%; height: 100%; object-fit: cover; object-position: 55% 14%; }
.devis-cover::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #123126 24%, #123126f2 38%, #1231266b 66%, #12312622 100%); content: ""; }
.devis-heading {
  margin: 0;
  color: var(--white);
  font: 800 clamp(26px, 4.4cqw, 42px)/1.06 var(--heading);
  letter-spacing: -.035em;
}
.devis-heading::before { display: block; width: 30px; height: 3px; margin-bottom: 10px; border-radius: 3px; background: var(--yellow); content: ""; }
.devis-heading:focus-visible { outline-color: var(--yellow); }
.devis-discord { align-self: flex-end; width: min(100%, 330px); margin-top: auto; }
.quote-flow {
  min-width: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 10px 28px -24px #17362b85;
}
.quote-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: #f3f6f1;
}
.quote-tabs button {
  display: flex;
  min-height: 54px;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #dbe4d8;
  border-radius: 9px;
  background: var(--white);
  color: var(--forest);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}
.quote-tab-icon { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border-radius: 7px; background: #edf2e9; color: var(--leaf); }
.quote-tab-icon .icon { width: 17px; height: 17px; }
.quote-tabs button:hover { border-color: #b9cdbb; background: #f9fbf7; }
.quote-tabs button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--white); }
.quote-tabs button[aria-pressed="true"] .quote-tab-icon { background: #ffffff19; color: #ffe184; }
.quote-stage { padding: clamp(14px, 2.4cqw, 26px); }
.stage-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.quote-stage h2 {
  margin: 0;
  font: 800 clamp(22px, 3cqw, 32px)/1.1 var(--heading);
  letter-spacing: -.028em;
}
.stage-progress { padding: 5px 9px; border-radius: 6px; background: #e5f0e3; color: var(--forest); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-stage:has(.visit-list input:not(:checked)) .stage-progress { background: #f1f4ee; color: var(--muted); }
.visit-list, .quote-messages { display: grid; gap: 9px; margin-top: 16px; }
.visit-list, .quote-messages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visit-list, .quote-resource-list { margin-bottom: 0; padding: 0; list-style: none; }
.visit-list label {
  display: flex;
  min-height: 57px;
  height: 100%;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #dce5da;
  border-radius: 9px;
  background: #f8faf6;
  font-size: 15px;
  font-weight: 580;
  line-height: 1.3;
  cursor: pointer;
}
.visit-list input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--leaf); }
.visit-list label:hover, .visit-list label:has(input:checked) { border-color: #bbcfbe; background: #edf4ea; }
.visit-list label:has(input:checked) { color: var(--forest); font-weight: 650; }
.quote-resource-list { display: grid; gap: 6px; margin-top: 16px; }
.quote-resource-list .resource-item { display: grid; min-height: 56px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; padding: 8px 9px; border: 1px solid #e0e8dd; border-radius: 8px; background: #f8faf6; }
.quote-resource-list .resource-item:hover { border-color: #bbcfbe; background: #edf4ea; }
.quote-resource-list .quote-tool-icon { width: 20px; height: 20px; }
.field-label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 730; }
.quote-stage textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 11px 12px;
  border: 1px solid #cdd8cb;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  resize: vertical;
}
.quote-stage textarea::placeholder { color: #667469; }
.stage-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.stage-footer .action { min-height: 44px; gap: 5px; }
.stage-footer .icon { width: 16px; height: 16px; }
#devis-prix .stage-footer { justify-content: flex-end; }
.draft-note { margin: 0; color: var(--muted); font-size: 13px; }
.quote-stage > p { color: var(--muted); line-height: 1.48; }
.quote-messages { gap: 12px; }
.message-template { min-width: 0; padding: 12px; border: 1px solid #e0e8dd; border-radius: 10px; background: #f8faf6; }
.message-template .action { margin-top: 8px; }
.saved-annual-quotes { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.saved-annual-quotes:empty, #saved-annual-quote-status:empty { display: none; }
.saved-annual-quotes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 12px; border: 1px solid #dce5da; border-radius: 9px; background: #f8faf6; }
.saved-annual-quotes li > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.saved-annual-quotes strong { color: var(--forest); font-size: 16px; }
.saved-annual-quotes p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.saved-annual-quotes button { min-height: 44px; gap: 4px; }
.saved-annual-quotes .icon { width: 15px; height: 15px; }
.saved-quote-actions, .quote-delete-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.quote-delete-button { border-color: transparent; background: transparent; color: #7e322a; }
.quote-delete-button:hover { background: #f7eae6; }
.quote-delete-dialog {
  width: min(400px, calc(100% - 24px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
}
.quote-delete-dialog::backdrop { background: #102a2480; }
.quote-delete-dialog h2 { margin: 0; font: 800 24px/1.15 var(--heading); }
.quote-delete-dialog p { margin: 9px 0 16px; color: var(--muted); overflow-wrap: anywhere; }
.quote-delete-actions { justify-content: flex-end; }
.quote-delete-actions .action { min-height: 44px; }
.quote-delete-confirm { border-color: #84392f; background: #84392f; color: var(--white); }
.quote-delete-confirm:hover { background: #6e2a23; }
@container (max-width: 720px) {
  .quote-flow { margin-top: 10px; }
  .devis-cover { min-height: 124px; }
  .devis-cover img { width: 78%; }
  .quote-messages { grid-template-columns: 1fr; }
  .quote-tabs button { flex-direction: column; justify-content: center; gap: 3px; text-align: center; }
}
@container (max-width: 440px) {
  .devis-cover { min-height: 96px; padding-block: 14px; }
  .devis-cover img { object-position: 66% 48%; }
  .quote-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 7px; }
  .quote-tabs button { min-height: 43px; flex-direction: row; justify-content: flex-start; text-align: left; }
  .quote-tab-icon { width: 24px; height: 24px; }
  .quote-tab-icon .icon { width: 15px; height: 15px; }
  .visit-list { grid-template-columns: 1fr; gap: 6px; }
  .visit-list label { min-height: 45px; }
}

.benefits-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 228px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--deep);
  color: var(--white);
}
.benefits-hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 53%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 47%;
}
.benefits-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #123126 47%, #123126a8 62%, #12312610 88%);
  content: "";
}
.benefits-hero-copy { width: min(61%, 655px); padding: clamp(23px, 3.5vw, 43px); }
.benefits-hero h1 {
  margin: 0;
  max-width: 530px;
  font: 800 clamp(34px, 4.2vw, 54px)/1.02 var(--heading);
  letter-spacing: -.037em;
  text-wrap: balance;
}
.benefits-hero p { margin: 11px 0 0; color: #e5ecdf; font-size: 16px; line-height: 1.44; }
.benefits-hero h1:focus-visible { outline-color: var(--yellow); }

.benefits-section { margin-top: 29px; }
.benefits-section > h2 {
  margin: 0 0 13px;
  font: 800 clamp(25px, 2.7vw, 35px)/1.07 var(--heading);
  letter-spacing: -.03em;
}
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.partner-card {
  --offer-accent: var(--forest);
  --offer-wash: #eff3e8;
  --offer-line: #e0e7d7;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--offer-line);
  border-radius: 12px;
  background: var(--white);
}
.partner-catalogue { --offer-line: #9cad94; }
.partner-catalogue-figure {
  position: relative;
  margin: 0 0 13px;
  overflow: hidden;
  border-radius: 8px;
}
.partner-catalogue-photo {
  display: block;
  width: 100%;
  height: clamp(100px, 10vw, 146px);
  object-fit: cover;
  object-position: 50% 36%;
}
.partner-catalogue-price {
  position: absolute;
  bottom: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 8px 12px 9px;
  border-radius: 8px 0 0 0;
  background: var(--yellow);
  color: var(--deep);
  box-shadow: 0 2px 15px #102a2440;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}
.partner-catalogue-price strong { font: 800 24px/1 var(--heading); letter-spacing: -.025em; }
.partner-catalogue-price small { font-size: 15px; letter-spacing: 0; }
.partner-catalogue .partner-benefit { font-size: clamp(25px, 2.3vw, 32px); }
.partner-ars { --offer-accent: #822f2c; --offer-wash: #faeee9; --offer-line: #ebcac0; }
.partner-kebtek { --offer-accent: #6a431b; --offer-wash: #f9f1e0; --offer-line: #edd8b9; }
.partner-allo { --offer-accent: #55316f; --offer-wash: #f4eff7; --offer-line: #e4d8ec; }
.partner-unipros { --offer-accent: #17556a; --offer-wash: #eaf4f5; --offer-line: #cfe3e7; }
.partner-coaching { --offer-line: #e1dbba; --offer-wash: #f6f2e4; }
.partner-identity { display: flex; align-items: center; gap: 9px; min-height: 46px; margin-bottom: 12px; }
.partner-logo, .partner-name { margin: 0; }
.partner-logo { display: flex; align-items: center; min-width: 0; }
.partner-logo img { display: block; width: auto; max-width: min(182px, 100%); height: auto; max-height: 33px; object-fit: contain; object-position: left; }
.partner-logo-ars img { max-height: 29px; }
.partner-logo-kebtek img { max-height: 35px; }
.partner-name { font: 800 19px/1.1 var(--heading); letter-spacing: -.02em; }
.partner-portrait { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 13%; }
.partner-benefit {
  margin: 0;
  color: var(--offer-accent);
  font: 800 clamp(27px, 2.65vw, 38px)/1.05 var(--heading);
  letter-spacing: -.035em;
}
.partner-benefit span { white-space: nowrap; font-size: .61em; letter-spacing: -.02em; }
.partner-benefit .partner-benefit-detail { font-size: .9375rem; letter-spacing: normal; }
.partner-description { margin: 8px 0 13px; color: var(--muted); font-size: 15px; line-height: 1.42; }
.partner-vouchers { display: grid; gap: 6px; margin: 0 0 12px; }
.partner-code {
  display: flex;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  padding: 5px 5px 5px 9px;
  border: 1px solid var(--offer-line);
  border-radius: 7px;
  background: var(--offer-wash);
  color: var(--offer-accent);
}
.partner-code-discount { flex-shrink: 0; font-size: 13px; font-weight: 740; }
.partner-code code { font-size: 14px; font-weight: 800; letter-spacing: .025em; overflow-wrap: anywhere; }
.partner-code .action { flex-shrink: 0; min-height: 33px; margin-left: auto; padding: 4px 8px; }
.partner-condition { margin: -5px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.partner-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; }
.partner-actions .text-action { display: inline-flex; align-items: center; min-height: 34px; padding-inline: 0; font-size: 14px; }

.material-catalogue {
  width: min(1140px, calc(100% - 32px));
  max-width: none;
  max-height: min(860px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 20px 80px #102a2457;
}
.material-catalogue[open] { display: flex; flex-direction: column; }
.material-catalogue::backdrop { background: #102a2486; }
.material-catalogue-header {
  position: relative;
  padding: 22px 67px 18px 24px;
  background: var(--deep);
  color: var(--white);
}
.material-catalogue-header h2 {
  margin: 0;
  font: 800 clamp(24px, 4vw, 37px)/1.06 var(--heading);
  letter-spacing: -.03em;
}
.material-catalogue-header p { margin: 7px 0 0; color: #e5ecdf; font-size: 14px; line-height: 1.42; }
.material-catalogue-close {
  position: absolute;
  display: grid;
  place-items: center;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #f3f5f56b;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
}
.material-catalogue-close:hover { background: #ffffff20; }
.material-catalogue-close:focus-visible { outline-color: var(--yellow); }
.material-catalogue-navigation {
  flex: none;
  border-bottom: 1px solid var(--line);
}
.material-catalogue-toggle { display: none; }
.material-catalogue-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px 24px;
}
.material-catalogue-filters button {
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  background: var(--white);
  font-size: 14px;
  font-weight: 740;
  line-height: 1.2;
}
.material-catalogue-filters button[aria-pressed="true"] {
  border-color: var(--yellow);
  background: var(--yellow);
}
.material-catalogue-scroll {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px 26px;
}
.material-catalogue-scroll h3 { margin: 0 0 11px; font: 800 22px/1.12 var(--heading); }
.material-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.material-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.material-product-photo { display: grid; place-items: center; height: 150px; border-bottom: 1px solid var(--line); }
.material-product-photo img { display: block; width: 100%; height: 150px; padding: 8px; object-fit: contain; }
.material-product-photo-cover img { padding: 0; object-fit: cover; object-position: 50% 32%; }
.material-product-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 13px; }
.material-product-body h4 { margin: 0; font: 800 17px/1.16 var(--heading); letter-spacing: -.02em; }
.material-product-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.material-variant { display: grid; gap: 3px; color: var(--muted); font-size: 13px; }
.material-variant select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--forest);
  font: inherit;
}
.material-product-footer { margin-top: auto; padding-top: 3px; }
.material-product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 9px;
  margin-bottom: 7px;
}
.material-product-price strong { font: 800 20px/1.12 var(--heading); white-space: nowrap; }
.material-product-price strong small { color: var(--muted); font-size: 14px; font-weight: 750; }
.material-product-price span {
  padding: 4px 7px;
  border-radius: 5px;
  background: #fbefbf;
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.material-product-body .material-product-model { font-weight: 700; }
.material-product-footer .partner-actions .action { min-height: 38px; }

@media (max-width: 860px) {
  .material-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .material-catalogue { width: calc(100% - 16px); max-height: calc(100% - 16px); }
  .material-catalogue-header { padding: 17px 52px 14px 14px; }
  .material-catalogue-close { top: 10px; right: 9px; width: 36px; height: 36px; }
  .material-catalogue-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 36px;
    padding: 6px 14px 2px;
    border: 0;
    border-radius: 0;
    background: var(--white);
    color: var(--forest);
    font-size: 14px;
    font-weight: 750;
  }
  .material-catalogue-toggle .icon { width: 16px; height: 16px; transform: rotate(90deg); }
  .material-catalogue-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
  .material-catalogue-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px 14px 10px;
    overscroll-behavior-x: contain;
  }
  .material-catalogue-filters button {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
  }
  .material-catalogue-filters.is-expanded {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(52dvh, 390px);
    padding-inline: 9px;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .material-catalogue-filters.is-expanded button {
    min-width: 0;
    padding-inline: 5px;
    white-space: normal;
  }
  .material-catalogue-scroll { padding: 13px 14px 18px; }
  .material-products { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1020px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 610px) {
  .detail-intro h1 { font-size: 36px; }
  .partner-grid { grid-template-columns: 1fr; }
  .benefits-hero { min-height: 243px; }
  .benefits-hero-copy { width: min(100%, 440px); padding: 22px; }
  .benefits-hero-image { width: 85%; object-position: 54% 48%; }
  .benefits-hero::before { background: linear-gradient(90deg, #123126 8%, #123126e8 48%, #12312662); }
  .benefits-section { margin-top: 22px; }
  .partner-card { padding: 16px; }
  .quote-tabs button { padding-inline: 5px; font-size: 14px; }
}
@media (max-width: 510px) {
  .product-grid-secondary :is(.academie-symbol, .factopub-symbol-frame, .product-mark) {
    width: 23px;
    height: 23px;
    border-radius: 5px;
  }
  .product-grid-secondary .product-mark .icon { width: 14px; height: 14px; }
  .product-grid-secondary .product-link { font-size: 13px; }
}
