.module-atlas {
  --ma-ink: #302335;
  --ma-line: #d1c7ce;
  --ma-plum: #61336e;
  --ma-sand: #e2ab62;
  --ma-paper: #f7f5ef;
  padding-block: clamp(60px, 7vw, 110px);
  background: var(--ma-paper);
  color: var(--ma-ink);
}
.module-atlas [hidden] { display: none !important; }
.ma-heading { display: grid; grid-template-columns: 1fr .86fr; gap: 7%; align-items: end; }
.ma-heading h2 { font-size: clamp(39px, 4.6vw, 70px); font-weight: 470; letter-spacing: -.065em; line-height: 1.05; margin: 0; }
.ma-heading > p { max-width: 53ch; margin: 0; color: #5c525b; font-size: clamp(15px, 1.22vw, 18px); line-height: 1.65; }
.ma-spread { margin-top: clamp(25px, 3vw, 55px); }
.ma-enhanced .ma-spread { display: grid; align-items: center; grid-template-columns: minmax(0, 1.24fr) minmax(0, .77fr); gap: clamp(35px, 6.7vw, 115px); }
.ma-diagram { min-width: 0; }
.ma-wheel-face { position: relative; }
.ma-enhanced .ma-wheel-face { max-width: 670px; margin-inline: auto; }
.ma-wheel { display: none; }
.ma-enhanced .ma-wheel { width: 100%; display: block; overflow: visible; user-select: none; }
.ma-guides { stroke: #ad9fa8; stroke-width: .9; fill: none; }
.ma-slice { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ma-slice:focus { outline: none; }
.ma-tile { stroke: var(--ma-paper); stroke-width: 2.7; }
.ma-standard { color: #513d59; }
.ma-standard .ma-tile { fill: #e1d7e6; }
.ma-role { color: #644522; }
.ma-role .ma-tile { fill: #efdec3; }
.ma-slice .ma-icon path { stroke: currentColor; }
.ma-slice .ma-label { fill: currentColor; font-family: inherit; font-size: 12.7px; font-weight: 540; letter-spacing: .005em; }
.ma-role .ma-label { font-size: 14px; }
.ma-slice .ma-icon, .ma-slice .ma-label { pointer-events: none; }
.ma-standard[aria-pressed="true"] { color: #fffaf8; }
.ma-standard[aria-pressed="true"] .ma-tile { fill: var(--ma-plum); }
.ma-role[aria-pressed="true"] { color: #392b1d; }
.ma-role[aria-pressed="true"] .ma-tile { fill: #efa951; }
.ma-slice:focus-visible .ma-tile { stroke: #312337; stroke-width: 3.5; }
.ma-hub { position: relative; width: 6.5rem; aspect-ratio: 1; margin-bottom: 1.4rem; border-radius: 50%; background: #27172b; color: #fff7ef; }
.ma-hub::before { content: ''; position: absolute; inset: 4%; border: 1px dotted #776278; border-radius: 50%; }
.ma-hub-mark { display: block; position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 53%; height: 49%; }
.ma-hub-mark img { width: 100%; height: 100%; object-fit: contain; }
.ma-hub-name { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; }
.ma-hub-name text { font-family: inherit; font-size: 9.6px; font-weight: 500; letter-spacing: .075em; }
.ma-enhanced .ma-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 27.65%; margin: 0; pointer-events: none; }
.ma-legend { margin: 1px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.ma-legend li { display: inline-flex; gap: 6px; align-items: center; color: #463c46; font-size: 13px; line-height: 1.4; }
.ma-legend-ring { color: #716670; }
.ma-key { width: 12px; height: 12px; border: 1px solid; border-radius: 50%; }
.ma-key-standard { border-color: #775783; background: #e1d7e6; }
.ma-key-role { border-color: #9e7845; background: #efdec3; }

.ma-enhanced .ma-reading { min-width: 0; padding: clamp(18px,2vw,31px) 0; align-self: center; border-top: 2px solid #48354b; border-bottom: 1px solid var(--ma-line); display: flex; flex-direction: column; }
.ma-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.ma-enhanced .ma-entries { display: block; min-height: clamp(212px,17vw,264px); }
.ma-kind { display: flex; align-items: center; gap: 9px; color: var(--ma-plum); margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .075em; text-transform: uppercase; }
.ma-kind::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--ma-plum); }
.ma-entry[data-ring="role"] .ma-kind { color: #78552e; }
.ma-entry[data-ring="role"] .ma-kind::before { background: #ad722e; }
.ma-entry h3 { margin: 13px 0 12px; font-size: clamp(26px, 2.7vw, 43px); line-height: 1.09; letter-spacing: -.047em; font-weight: 500; text-wrap: balance; }
.ma-entry > p:last-child { margin: 0; max-width: 43ch; color: #584e58; font-size: clamp(15px,1.17vw,18px); line-height: 1.64; }
.ma-navigation { display: flex; order: 1; align-items: center; gap: 7px; margin-top: 16px; }
.ma-navigation button { width: 43px; height: 43px; display: grid; place-items: center; padding: 0; border: 1px solid #c0b4bd; border-radius: 50%; color: var(--ma-ink); background: transparent; cursor: pointer; font: 21px/1 Arial, sans-serif; }
.ma-navigation button:hover { border-color: #67456c; background: #eee8ee; }
.ma-count { margin-left: 7px; color: #6f646c; font: 12px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .055em; }
.ma-select-row { order: 2; margin-top: 24px; }
.ma-select-row label { display: block; margin-bottom: 5px; color: #574a55; font-size: 13px; }
.ma-select-frame { position: relative; }
.ma-select-frame::after { content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border: solid var(--ma-ink); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ma-select-row select { width: 100%; min-height: 46px; appearance: none; padding: 9px 36px 9px 12px; border: 1px solid #c4b9be; border-radius: 3px; color: var(--ma-ink); background: #fbf9f4; font: inherit; font-size: 15px; cursor: pointer; }
.module-atlas :is(select,button):focus-visible { outline: 2px solid var(--ma-plum); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .ma-tile { transition: fill 180ms ease; }
  .ma-slice { transition: color 160ms ease; }
  .ma-enhanced .ma-entry:not([hidden]) { animation: ma-reveal 180ms ease-out; }
  @keyframes ma-reveal { from { opacity: .66; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
  .ma-heading { grid-template-columns: 1fr 1fr; gap: 6%; }
  .ma-enhanced .ma-spread { grid-template-columns: minmax(0,1.17fr) minmax(0,.83fr); gap: 24px; }
  .ma-legend { gap: 7px 14px; }
  .ma-legend li { font-size: 12px; }
  .ma-enhanced .ma-entries { min-height: 240px; }
}
@media (max-width: 720px) {
  .ma-heading { display: block; }
  .ma-heading > p { margin-top: 13px; }
  .ma-enhanced .ma-spread { display: block; }
  .ma-diagram { max-width: 540px; margin-inline: auto; }
  .ma-reading { margin-top: 27px; }
  .ma-enhanced .ma-reading { padding: 20px 0; }
  .ma-enhanced .ma-entries { min-height: 0; }
  .ma-entry h3 { margin-block: 9px; }
  .ma-select-row { margin-top: 17px; }
  .ma-select-row select { font-size: 16px; }
  .ma-navigation button { width: 45px; height: 45px; }
}
@media (max-width: 460px) {
  .ma-diagram { width: min(100%, 380px); }
  .ma-role .ma-label { font-size: 15.5px; }
  .ma-standard .ma-label { font-size: 13.5px; }
  .ma-hub-name text { font-size: 10.4px; }
  .ma-legend { margin-top: 6px; }
  .ma-legend li { font-size: 11px; }
}
@media (forced-colors: active) {
  .ma-slice .ma-tile { fill: Canvas; stroke: ButtonText; }
  .ma-slice[aria-pressed="true"] .ma-tile { fill: Highlight; }
  .ma-slice, .ma-hub { color: CanvasText; }
  .ma-slice[aria-pressed="true"] { color: HighlightText; }
  .ma-slice .ma-label { fill: currentColor; }
  .ma-hub { background: Canvas; color: CanvasText; border: 1px solid ButtonText; }
}
