:root {
  color-scheme: dark;
  --background: #101019;
  --surface: #1b1928;
  --line: #454056;
  --text: #fbf8ff;
  --muted: #d3c8df;
  --accent: #e5b8ff;
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .24em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; left: 16px; top: -100px; padding: 12px; background: var(--surface); z-index: 2; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header, .site-footer { border-block-end: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.header-inner nav { display: flex; gap: 18px; align-items: center; }
.header-inner a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { color: var(--text); font-size: 1.3rem; font-weight: 750; text-decoration: none; gap: .25em; }
.brand strong { color: var(--accent); }
main { padding-block: 36px 64px; min-height: 66vh; }
.hero { background: linear-gradient(110deg, #211432 20%, #211432dd 49%, #21143238), #36214d url('/assets/crm-image-0.webp') center 42% / cover; border-radius: 24px; padding: clamp(26px, 6vw, 78px); margin-bottom: 36px; }
h1, h2, h3 { line-height: 1.13; margin: 0 0 .6em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.3rem, 6vw, 4.7rem); letter-spacing: -.055em; max-width: 13ch; }
.hero p { max-width: 45ch; margin: 0; font-size: clamp(1rem, 2vw, 1.22rem); }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 12px; }
label { display: grid; gap: 6px; min-width: 0; font-weight: 650; }
input, select, button, .button { font: inherit; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); color: var(--text); }
input, select { width: 100%; }
button, .button { cursor: pointer; }
.button { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; font-weight: 700; }
.button.primary { background: var(--accent); color: #211432; border-color: var(--accent); }
.button:hover, button:hover { border-color: var(--accent); }
.results, .muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card, .session, .empty { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 22px; overflow-wrap: anywhere; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.card :is(h3, p), .profile-head p { margin: 0; }
.card .button { margin-top: auto; }
.avatar { display: grid; place-items: center; width: 72px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #342144; color: var(--accent); font-size: 1.4rem; font-weight: 750; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .88rem; }
.back { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 14px; }
.profile-head { background: linear-gradient(115deg, #39234d, #20172c); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 5vw, 48px); display: flex; align-items: center; flex-wrap: wrap; gap: 24px; overflow-wrap: anywhere; }
.profile-head .avatar { width: clamp(82px, 16vw, 140px); }
.profile-head h1 { max-width: none; margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.65rem); }
.profile-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; margin-top: 30px; }
.profile-body section + section { margin-top: 28px; }
.session + .session { margin-top: 12px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.site-footer { border-block: 1px solid var(--line) 0; padding-block: 12px; }
@media (max-width: 870px) {
  .grid, .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { background-image: linear-gradient(110deg, #211432 20%, #211432af), url('/assets/crm-image-0.webp'); }
}
@media (max-width: 600px) {
  .grid, .filters, .profile-body { grid-template-columns: minmax(0, 1fr); }
  .wrap { width: calc(100% - 28px); }
  .hero { border-radius: 16px; }
}
.mentor-apply { margin-top: 22px; }
.embedded :is(.site-header, .site-footer, .skip) { display: none; }
.embedded body { background: #101625; }
.embedded .wrap { width: min(1180px, 100%); min-height: 0; padding: 8px 4px 24px; }
.embedded .hero { padding: clamp(22px, 4vw, 42px); }
.embedded .hero h1 { font-size: clamp(2rem, 4.7vw, 3.6rem); }
.application { max-width: 850px; }
.application h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 22ch; }
.application-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(14px, 3vw, 26px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.application-wide { grid-column: 1 / -1; }
.application textarea { font: inherit; width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--background); color: var(--text); resize: vertical; }
.application input { background: var(--background); }
@media (max-width: 600px) { .application-form { grid-template-columns: minmax(0, 1fr); } }

.card { gap: 0; padding: 0; overflow: hidden; }
.card > .avatar { width: 100%; aspect-ratio: 5 / 4; border-radius: 0; font-size: 3rem; background: linear-gradient(140deg, #3f2757, #241934); }
.card > .avatar img { object-position: center 34%; }
.card-details { display: flex; flex-direction: column; gap: 12px; flex: 1; width: 100%; padding: 18px; }
.card-details .button { align-self: flex-start; margin-top: auto; }
.profile-head {
  min-height: clamp(190px, 28vw, 340px); align-content: end;
  background: radial-gradient(ellipse at 100% 0, #604089, transparent 62%), linear-gradient(135deg, #322049, #1c1729);
}
.profile-head .avatar { border: 2px solid #d2a4ed; border-radius: 50%; }
.profile-body { align-items: start; }
.profile-info, .profile-sessions { min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 24px); background: var(--surface); }
.profile-info > section + section { border-top: 1px solid var(--line); padding-top: 22px; }
.profile-sessions .session { background: var(--background); padding: 16px; }
.profile-sessions .session:last-child { margin-bottom: 0; }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); align-items: start; gap: 20px; }
.catalog-layout.catalog-empty { grid-template-columns: 1fr; }
.catalog-layout .filters { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.catalog-results .results { margin: 0 0 12px; }
.catalog-results .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@media (max-width: 750px) {
  .catalog-layout { grid-template-columns: minmax(0,1fr); }
  .catalog-layout .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 460px) {
  .catalog-layout .filters, .catalog-results .grid { grid-template-columns: minmax(0,1fr); }
}

/* Outer gutter follows the full-width portal layout. */
.wrap, .embedded .wrap { width: calc(100% - 2px); max-width: none; margin-inline: auto; }
.embedded .wrap { padding-inline: 0; }

/* Only the member portal scrolls when this page is embedded. */
html.embedded, .embedded body { overflow: hidden; }
.catalog-results .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 310px)); }
.card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; }
.card > .avatar { width: 56px; flex: 0 0 56px; aspect-ratio: 1; border-radius: 12px; font-size: 1.2rem; }
.card-details { padding: 0; min-width: 0; gap: 8px; }
.card-details h3 { font-size: 1.06rem; }
.card-details .muted, .card-details .tags li { font-size: .88rem; }
.card-details .tags li { padding: 3px 8px; }
.mentor-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.mentor-subnav [aria-current="page"] { background: var(--accent); color: #211432; }
.mentor-editor h1 { max-width: none; font-size: clamp(1.75rem, 4vw, 2.7rem); }
.editor-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px; }
.mentor-session-list { display: grid; gap: 8px; margin-bottom: 12px; }
.mentor-session-list button { text-align: left; overflow-wrap: anywhere; }
.mentor-checkbox { display: flex; align-items: center; gap: 10px; }
.mentor-checkbox input { width: 18px; height: 18px; min-height: 0; }
.editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.editor-actions p { width: 100%; margin: 0; }
@media (max-width: 850px) {
  .editor-columns { grid-template-columns: minmax(0,1fr); }
}

.hero, .embedded .hero { border-radius: 16px; padding: clamp(14px,2vw,26px); margin-bottom: 20px; }
.hero > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 18px; row-gap: 7px; }
.hero h1, .embedded .hero h1 { grid-column: 1; max-width: none; margin: 0; font-size: clamp(22px,2.6vw,39px); line-height: 1.07; letter-spacing: -.04em; }
.hero p { grid-column: 1; max-width: 52ch; font-size: clamp(14px,1.15vw,16px); }
.hero .mentor-apply { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; white-space: nowrap; }
@media (max-width: 590px) {
  .hero > div { grid-template-columns: minmax(0,1fr); }
  .hero .mentor-apply { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
}

.card-profile-link { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 0; font-size: .9rem; font-weight: 650; text-underline-offset: .22em; }

/* Mentorias design measurements */
:root { --background:#0e1322; --surface:#161b2e; --line:#262c45; --text:#f2f0f7; --muted:#a9aec4; --accent:#e2bbff; font-size:14px; }
.embedded body { background:var(--background); }
.wrap, .embedded .wrap { max-width:1360px; }
main h1, .mentor-editor h1, .profile-head h1, .application h1 { font-size:clamp(24px,3vw,32px); }
.hero h1, .embedded .hero h1 { font-size:clamp(22px,2.6vw,30px); }
main h2 { font-size:clamp(18px,2vw,20px); }
.catalog-layout { grid-template-columns:280px minmax(0,1fr); gap:28px; }
.catalog-layout.catalog-empty { grid-template-columns:1fr; }
.catalog-results .grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); }
.card { border-radius:20px; padding:22px; }
.card-details { gap:12px; }
.card-identity { display:flex; align-items:center; gap:12px; }
.card-identity > .avatar { width:60px; flex:0 0 60px; border-radius:16px; }
.card-identity h3 { font-size:17px; }
.card-bio { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.card-details .tags li { min-height:28px; display:inline-flex; align-items:center; font-size:12px; }
.featured-session { padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--background); }
.profile-head { min-height:0; background:var(--surface); align-content:center; }
.profile-head .avatar { width:112px; border-radius:20px; }
.profile-body { grid-template-columns:minmax(0,1fr) minmax(280px,380px); }
.editor-session-heading, .editor-session-row, .editor-field-heading { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.editor-session-heading h2, .editor-session-row p { margin:0; }
.editor-session-row { padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.editor-field-heading small { color:var(--muted); font-size:12px; }
.mentor-editor textarea { font:inherit; border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--background); }
@media(max-width:800px) { .catalog-layout, .profile-body { grid-template-columns:minmax(0,1fr); } }
.editor-columns { grid-template-columns:minmax(0,1fr) minmax(280px,330px); gap:28px; }
.editor-main { display:grid; gap:24px; min-width:0; }
.editor-completion { margin-top:16px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.editor-completion progress { width:100%; accent-color:var(--accent); }
.editor-completion ul { list-style:none; padding:0; margin-bottom:0; }
.editor-completion li + li { margin-top:6px; }
.editor-session-row > div { min-width:0; flex:1; }
.editor-visibility { display:flex; align-items:center; gap:6px; }
.editor-visibility input { min-height:0; width:18px; height:18px; accent-color:var(--accent); }
@media(max-width:850px) { .editor-columns { grid-template-columns:minmax(0,1fr); } }
.editor-topic-field { display:grid; gap:8px; }
.editor-topic-controls { display:flex; gap:8px; }
.editor-topic-field .tags li { display:inline-flex; align-items:center; gap:4px; padding:0 5px 0 10px; }
.editor-topic-field .tags button { min-height:28px; min-width:28px; padding:0; border:0; background:transparent; color:var(--accent); }
.mentor-photo-fields { display:grid; gap:8px; }
.mentor-photo-fields input::file-selector-button { font:inherit; color:var(--accent); background:var(--surface); border:1px solid var(--line); border-radius:7px; padding:6px 10px; margin-right:10px; cursor:pointer; }

/* Visual structure of the Mentorias designs */
#mentorias-nav { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; }
#mentorias-nav button { min-height:44px; padding:0 16px; border-radius:10px; background:var(--background); font-weight:650; }
#mentorias-nav [aria-current="page"] { background:var(--accent); color:#211431; border-color:var(--accent); }
main.wrap { padding:24px clamp(12px, 2vw, 24px) 48px; }
.embedded main.wrap { padding:12px 0 48px; }
.hero, .embedded .hero { background:#1a1433; border:1px solid #372857; padding:24px; margin-bottom:24px; border-radius:20px; }
.hero h1, .embedded .hero h1 { margin:0 0 6px; font-weight:800; }
.hero p { margin:0 0 16px; color:var(--muted); }
.hero .mentor-search { display:flex; gap:8px; padding:8px; border-radius:14px; border:1px solid #3f345a; background:var(--background); }
.mentor-search input { min-width:0; flex:1; border:0; background:transparent; }
.mentor-search button { flex:0 0 auto; }
.hero .mentor-quick-search { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; color:var(--muted); font-size:12px; }
.mentor-quick-search button { min-height:34px; border-radius:999px; padding:4px 12px; background:transparent; color:var(--text); }
.filter-heading, .catalog-heading, .mentor-invitation { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.filter-heading h2, .catalog-heading h2, .mentor-invitation h2 { margin:0; }
.filter-heading button { color:var(--accent); background:transparent; border:0; }
.catalog-heading { margin-bottom:16px; }
.catalog-heading .results { margin:4px 0 0; }
.catalog-heading label { display:flex; align-items:center; font-weight:400; color:var(--muted); }
.catalog-heading select { width:auto; }
.filters fieldset { margin:0; padding:0; min-width:0; border:0; }
.filters legend { font-weight:650; margin-bottom:6px; padding:0; }
.price-range { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.price-range label { font-size:12px; color:var(--muted); }
.mentor-invitation { margin-top:24px; border:1px dashed #594373; border-radius:16px; padding:18px 22px; }
.mentor-invitation p { margin:6px 0 0; color:var(--muted); }
.mentor-invitation .mentor-apply { margin:0; color:var(--accent); }
.card-details { gap:16px; }
.card-price { display:grid; gap:1px; }
.card-price small, .featured-session-box small { color:var(--muted); font-size:12px; }
.card-price strong { font-size:20px; line-height:1.1; }
.featured-session-box { padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--background); }
.featured-session-box p { font-weight:700; margin-top:4px; }
.card-profile-link { min-height:44px; padding-inline:12px; }
.profile-info { border:0; background:transparent; padding:0; }
.profile-info > section { margin-top:24px; }
.profile-head .tags { margin-top:12px; }
.profile-head p { overflow-wrap:anywhere; }
.profile-sessions { border-color:#44355f; }
.editor-main > section, .editor-agenda { border:1px solid var(--line); border-radius:16px; background:var(--surface); padding:20px; }
.editor-main > section > .application-form { border:0; padding:0; }
.editor-agenda { background:var(--background); }
.editor-agenda p { margin:0 0 12px; }
.my-mentoring-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,360px); gap:28px; align-items:start; }
.my-mentoring-panel { padding:24px; margin-bottom:20px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.next-mentoring { background:#1a1433; border-color:#44355f; }
@media(max-width:800px) { .my-mentoring-grid { grid-template-columns:1fr; } }
@media(max-width:520px) { .hero .mentor-search { flex-direction:column; } }
.session-options { display:grid; gap:8px; border:0; padding:0; margin:0; min-width:0; }
.session-options legend { position:absolute; clip-path: inset(50%); width:1px; height:1px; overflow:hidden; }
.session-option { position:relative; display:flex; justify-content:space-between; gap:8px; padding:12px; align-items:center; border:1px solid var(--line); border-radius:12px; background:var(--background); cursor:pointer; }
.session-option:has(:checked) { border-color:var(--accent); background:#2c224b; }
.session-option:has(:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.session-option input { position:absolute; width:1px; height:1px; opacity:0; }
.session-option-text { min-width:0; overflow-wrap:anywhere; }
.session-option-text small { display:block; color:var(--muted); font-weight:400; }
.mentor-book { width:100%; min-height:52px; }

/* Mentor approval receives the same rich details eventually shown in the editor. */
.application-form .mentor-application-extra{border:1px solid #40506e;border-radius:14px;padding:16px;margin:8px 0;background:#131c30;min-width:0}
.mentor-application-extra legend{font-weight:750;padding:0 8px;color:#f2e9fc;font-size:15px}
.mentor-application-extra p{font-size:13px;margin:5px 0 13px}
.mentor-application-session{border:1px solid #4b5a75;border-radius:12px;margin:12px 0;padding:15px;background:#11182b}
.mentor-application-session-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.mentor-application-session-header button{font-size:12px;padding:7px 12px}
.mentor-application-session-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mentor-application-session-grid label{display:flex;flex-direction:column;gap:7px;min-width:0}
.mentor-application-session-grid input,.mentor-application-session-grid select,.mentor-application-session-grid textarea{width:100%;min-width:0}
.mentor-application-session-grid label:last-child{grid-column:1/-1}
.mentor-application-photo-preview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:9px}
.mentor-application-photo-preview img{width:76px;height:76px;object-fit:cover;border-radius:50%;border:2px solid #8351a7}
@media(max-width:620px){.mentor-application-session-grid{grid-template-columns:minmax(0,1fr)}.mentor-application-extra{padding:12px}}
