.catalog-page { color: #261b36; background: #f7f4fb; }
.catalog-hero {
  color: #fff3ff;
  background: linear-gradient(90deg, #130b22 5%, rgba(19, 9, 33, .77) 57%, rgba(32, 13, 57, .33)), #151022 url("atlas-horizon.webp") center 66% / cover no-repeat;
  border-bottom: 1px solid #684886;
}
.catalog-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(315px, .85fr); align-items: end; gap: 30px clamp(35px, 7vw, 105px); padding-block: clamp(58px, 7vw, 100px); }
.catalog-hero .eyebrow { color: #ddb8ff; }
.catalog-hero h1 { margin-top: 16px; font-size: clamp(3rem, 6.4vw, 6rem); letter-spacing: -.083em; line-height: .96; }
.catalog-hero h1 em { font-style: normal; color: #dfabff; }
.catalog-intro { max-width: 555px; margin-top: 18px; color: #e9d8f3; font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.catalog-hero-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; border: 1px solid #784d99; border-radius: 12px; background: rgba(32, 16, 51, .84); }
.catalog-hero-links a { min-height: 65px; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #644581; border-radius: 6px; background: #2a1b40; color: #f6e8ff; font-weight: 800; font-size: .87rem; line-height: 1.3; }
.catalog-hero-links a:hover { border-color: #bf9ee8; background: #473060; }
.catalog-hero-links .icon { width: 21px; height: 21px; color: #e1baff; }

.catalog-layout { display: grid; grid-template-columns: minmax(200px, 235px) minmax(0, 1fr); align-items: start; gap: clamp(22px, 3.25vw, 50px); padding-block: 34px clamp(55px, 7vw, 102px); }
.catalog-sidebar { align-self: stretch; min-width: 0; }
.catalog-directory-panel { position: sticky; top: calc(var(--header-height) + 17px); z-index: 3; overflow: auto; max-height: calc(100dvh - var(--header-height) - 30px); border: 1px solid #e6deee; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(50, 23, 80, .05); }
.catalog-directory-title { padding: 14px 14px 12px; border-bottom: 1px solid #ede5f1; font-family: var(--display); font-size: 1.07rem; font-weight: 700; }
.catalog-directory-links { display: grid; gap: 13px; padding: 10px; }
.catalog-directory-group p { padding: 0 6px 5px; color: #634277; font-size: .75rem; font-weight: 800; }
.catalog-directory-group ul { padding: 0; margin: 0; list-style: none; }
.catalog-directory-group a { display: block; padding: 4px 6px; min-height: 25px; border-left: 2px solid transparent; border-radius: 3px; color: #483853; font-size: .83rem; font-weight: 750; line-height: 1.36; }
.catalog-directory-group a:hover, .catalog-directory-group a[aria-current="location"] { color: #5e2995; background: #f3e8fa; border-left-color: #a363d2; }
.catalog-directory-mobile { display: none; }
.catalog-content { min-width: 0; }
.catalog-family { --family-ink: #7136a7; --family-tint: #f7ebff; --family-line: #e5d1f6; }
.catalog-operations { --family-ink: #226356; --family-tint: #e8f6f1; --family-line: #cce9df; }
.catalog-finance { --family-ink: #4647a0; --family-tint: #eff0ff; --family-line: #dddef7; }
.catalog-equipes { --family-ink: #854073; --family-tint: #fbeef8; --family-line: #f1d5e9; }
.catalog-family + .catalog-family { margin-top: 36px; }
.catalog-family-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--family-ink); font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -.045em; }
.catalog-family-title > .icon { width: 24px; height: 24px; }

.module-entry { overflow: clip; border: 1px solid #e5deec; border-radius: 14px; background: #fff; box-shadow: 0 12px 29px rgba(50, 23, 80, .045); }
.module-entry + .module-entry { margin-top: 14px; }
.module-entry:target { outline: 2px solid var(--family-ink); outline-offset: 3px; }
.module-entry-header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 13px; padding: clamp(15px, 2.4vw, 28px); background: linear-gradient(105deg, var(--family-tint) 0%, #fff 96%); border-bottom: 1px solid var(--family-line); }
.entry-icon { display: grid; place-items: center; width: clamp(40px, 4vw, 50px); height: clamp(40px, 4vw, 50px); margin-top: 1px; border: 1px solid var(--family-line); border-radius: 10px; color: var(--family-ink); background: #fff; }
.entry-icon .icon { width: 25px; height: 25px; }
.module-entry-header h3 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); letter-spacing: -.065em; line-height: 1.08; }
.module-entry-header p { max-width: 690px; margin-top: 6px; color: #53455f; }
.module-entry-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .85fr); align-items: start; gap: clamp(15px, 2.1vw, 26px); padding: clamp(15px, 2.4vw, 28px); }
.module-entry h4 { margin: 0 0 10px; font-family: var(--display); font-size: 1.14rem; letter-spacing: -.027em; }
.entry-features dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 15px; padding: 0; margin: 0; }
.entry-features dl > div { padding-top: 8px; border-top: 1px solid #eee6f3; }
.entry-features dt { color: #342141; font-size: .92rem; font-weight: 800; line-height: 1.4; }
.entry-features dd { margin: 3px 0 0; color: #56475f; font-size: .91rem; line-height: 1.56; }
.entry-scenario { min-width: 0; padding: 15px; border: 1px solid var(--family-line); border-radius: 10px; background: var(--family-tint); }
.entry-scenario-label { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; color: var(--family-ink); font-size: .78rem; font-weight: 800; }
.entry-scenario-label .icon { width: 16px; height: 16px; }
.entry-scenario h4 { margin-bottom: 8px; font-size: 1.19rem; line-height: 1.12; }
.entry-scenario ol { list-style: none; padding: 0; margin: 0; }
.entry-scenario li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 7px; min-height: 40px; padding: 4px 0; color: #42314e; font-size: .86rem; font-weight: 750; line-height: 1.4; }
.entry-scenario li::before { position: absolute; z-index: 0; content: ""; left: 10px; top: 24px; bottom: -6px; border-left: 1px solid var(--family-line); }
.entry-scenario li:last-child::before { display: none; }
.entry-scenario li > span { position: relative; display: grid; place-items: center; height: 22px; width: 22px; border: 1px solid var(--family-line); border-radius: 50%; color: var(--family-ink); background: #fff; font-family: var(--display); font-weight: 700; }
.entry-scenario li > div { padding-top: 2px; }

.entry-strengths { margin: 0 clamp(15px, 2.4vw, 28px) 13px; padding: 12px 13px; border: 1px solid #eee6f3; border-radius: 8px; background: #fbf9fd; }
.entry-strengths h4 { margin-bottom: 6px; font-size: 1.02rem; }
.entry-strengths ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; padding: 0; margin: 0; list-style: none; }
.entry-strengths li { display: flex; align-items: start; gap: 6px; color: #483751; font-size: .88rem; line-height: 1.45; }
.entry-strengths .icon { width: 17px; height: 17px; margin-top: 1px; stroke-width: 2px; color: var(--family-ink); }
.entry-setup { margin-inline: clamp(15px, 2.4vw, 28px); border-top: 1px solid #eee6f3; border-bottom: 1px solid #eee6f3; }
.entry-setup summary, .catalog-directory-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; font-weight: 800; }
.entry-setup summary { min-height: 43px; padding-block: 8px; color: #392747; font-size: .91rem; }
.entry-setup summary::-webkit-details-marker, .catalog-directory-mobile summary::-webkit-details-marker { display: none; }
.entry-setup .icon { width: 18px; height: 18px; color: var(--family-ink); }
.entry-setup summary .icon:last-child, .catalog-directory-mobile summary .icon:last-child { margin-left: auto; transition: transform .18s ease; }
.entry-setup[open] summary .icon:last-child, .catalog-directory-mobile[open] summary .icon:last-child { transform: rotate(180deg); }
.entry-setup p { padding: 0 0 11px 25px; color: #56475f; font-size: .92rem; }
.entry-related { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 10px clamp(15px, 2.4vw, 28px) 16px; color: #63516e; font-size: .81rem; font-weight: 750; }
.entry-related ul { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0; margin: 0; list-style: none; }
.entry-related a { display: inline-block; padding: 4px 7px; border: 1px solid var(--family-line); border-radius: 5px; color: var(--family-ink); background: var(--family-tint); }
.entry-related a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .module-entry-body { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .catalog-hero-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 48px; }
  .catalog-hero-links a { min-height: 48px; font-size: .8rem; }
  .catalog-layout { grid-template-columns: 1fr; gap: 15px; padding-block-start: 16px; }
  .catalog-sidebar { position: sticky; top: calc(var(--header-height) + 7px); z-index: 4; }
  .catalog-directory-panel { position: static; max-height: min(57dvh, 500px); }
  .catalog-directory-desktop { display: none; }
  .catalog-directory-mobile { display: block; }
  .catalog-directory-mobile summary { min-height: 42px; padding: 7px 10px; color: #512b74; font-size: .87rem; }
  .catalog-directory-mobile summary .icon { width: 18px; height: 18px; }
  .catalog-directory-mobile .catalog-directory-links { border-top: 1px solid #eee6f3; }
  .catalog-directory-group a { min-height: 35px; display: flex; align-items: center; }
  .catalog-family, .module-entry { scroll-margin-top: 40px; }
}

@media (max-width: 450px) {
  .module-entry-header { gap: 9px; }
  .entry-features dl, .entry-strengths ul { grid-template-columns: 1fr; }
  .entry-features dl { gap: 8px; }
  .entry-scenario { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-setup summary .icon, .catalog-directory-mobile summary .icon { transition: none; }
}
