/* V5 — Résonances, portails et carnet. Couche additive; sélecteurs limités au module. */
#mairath-module{--ma5-ivory:#f0e5cf;--ma5-gold:#dbb982;--ma5-line:#ae895858;--ma5-ink:#0a0e18;--ma5-muted:#bdaf9d;--ma5-surface:#131923;--ma5-deep:#0a0d16}
#mairath-module .ma5-site-header{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;padding:13px clamp(18px,3.5%,42px);margin:-12px auto 23px;max-width:1560px;background:linear-gradient(100deg,#131923,#181924,#181c2a);border:1px solid #b4946648;box-shadow:0 12px 42px #05060b66}
#mairath-module .ma5-site-home{display:flex;align-items:center;gap:11px;color:var(--ma5-ivory);text-decoration:none;min-width:226px}
#mairath-module .ma5-site-home>span:first-child{font:31px Georgia,serif;color:var(--ma5-gold)}
#mairath-module .ma5-site-home strong{display:block;font:600 11px 'Segoe UI',sans-serif;letter-spacing:.16em}
#mairath-module .ma5-site-home small{color:#c3ad91;font:10px/1.4 'Segoe UI',sans-serif}
#mairath-module .ma5-site-menu{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}
#mairath-module .ma5-site-menu button{border:1px solid #75654e;background:#131827;color:#e9d4b3;padding:10px 13px;font:11px 'Segoe UI',sans-serif;cursor:pointer}
#mairath-module .ma5-site-menu button:hover,#mairath-module .ma5-site-menu button:focus-visible{background:#3b2b27;border-color:#c49b68}
#mairath-module .ma5-site-status{display:flex;align-items:center;gap:7px;color:#a99d8c;font-size:10px}
#mairath-module .ma5-status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7d9888;box-shadow:0 0 14px #7d9888}
#mairath-module .ma5-observatory,#mairath-module .ma5-portals,#mairath-module .ma5-trails,#mairath-module .ma5-fieldnotes{position:relative;max-width:1530px;margin:45px auto;padding:0 clamp(17px,3vw,40px);scroll-margin-top:80px}
#mairath-module .ma5-observatory{margin-top:51px}
#mairath-module .ma5-obs-title,#mairath-module .ma5-section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #a78c633e;padding-bottom:17px;margin-bottom:24px}
#mairath-module .ma5-obs-title h2{font:normal clamp(35px,4.8vw,65px)/1.05 Georgia,serif;color:#f9e8c5;margin:12px 0}
#mairath-module .ma5-obs-title h2 em{font-weight:normal;color:#c79c81}
#mairath-module .ma5-obs-title p,#mairath-module .ma5-section-heading p{font:13px/1.7 'Segoe UI',sans-serif;color:var(--ma5-muted);max-width:850px}
#mairath-module .ma5-eyebrow{font:10px/1.4 'Segoe UI',sans-serif;letter-spacing:.21em;color:#d9b98a !important;margin:0}
#mairath-module .ma5-orbit-mark{font:86px Georgia,serif;color:#d9ad7470;position:relative}
#mairath-module .ma5-orbit-mark span{font:22px Georgia,serif;color:#e9cea6;position:absolute;inset:38px auto auto 34px}
#mairath-module .ma5-observatory-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);gap:18px;align-items:stretch}
#mairath-module .ma5-lens,#mairath-module .ma5-resonance{min-width:0;overflow:hidden;border:1px solid #bb975f6e;background:linear-gradient(160deg,#1b1b24,#101724 55%,#151a22);box-shadow:0 17px 44px #0007}
#mairath-module .ma5-lens-art{height:247px;position:relative;background:linear-gradient(0deg,#101622 0%,#10162222 48%),linear-gradient(90deg,#141b2977,#15192730),url('./images/ere-4.jpg') center 24%/cover no-repeat;transition:background-image .45s;isolation:isolate}
#mairath-module .ma5-lens-art::after{content:'';position:absolute;inset:10px;border:1px solid #cfab6f50;pointer-events:none}
#mairath-module .ma5-lens-folio{position:absolute;bottom:15px;left:25px;display:flex;gap:14px;align-items:center;color:#fff1d3;background:#17131cde;border:1px solid #bc945d7a;padding:6px 16px;font:10px 'Segoe UI',sans-serif;letter-spacing:.2em}
#mairath-module .ma5-lens-folio strong{font:31px Georgia,serif;color:#f1cc8b}#mairath-module .ma5-lens-folio small{letter-spacing:.06em;color:#d8c7a5}
#mairath-module .ma5-lens-content{padding:23px clamp(18px,3%,30px) 26px}
#mairath-module .ma5-lens-top{display:flex;justify-content:space-between;color:#d8b577;font-size:10px;letter-spacing:.12em}
#mairath-module .ma5-lens-top output{color:#f7e4b7}
#mairath-module .ma5-range-label{display:block;color:#a99f91;font-size:11px;margin-top:22px}
#mairath-module #ma5-era-range{display:block;width:100%;margin:11px 0 1px;accent-color:#d6a765;height:24px;cursor:pointer}
#mairath-module .ma5-range-ticks{display:flex;justify-content:space-between;color:#af9b7f;font:10px Georgia,serif;letter-spacing:.03em}
#mairath-module .ma5-lens h3{font:normal 37px Georgia,serif;color:#f2e2be;margin:18px 0 8px}
#mairath-module .ma5-lens-content>p{font-size:13px;line-height:1.65;color:#c6c1b4;min-height:42px}
#mairath-module .ma5-lens-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
#mairath-module .ma5-lens-actions button{background:#312824;border:1px solid #b69663;color:#f4ddbb;cursor:pointer;padding:12px 16px;font:600 12px 'Segoe UI',sans-serif}
#mairath-module .ma5-lens-actions button:last-child{background:#141d2a;border-color:#5e7391}
#mairath-module p.ma5-lens-note{font-size:10px;color:#a89a83;min-height:0;margin:14px 0 0}
#mairath-module .ma5-resonance{padding:21px clamp(14px,3%,29px)}
#mairath-module .ma5-card-kicker{font-size:10px;letter-spacing:.16em;color:#dcbf8c}
#mairath-module .ma5-resonance h3{font:normal 32px Georgia,serif;color:#f3deba;margin:11px 0}
#mairath-module .ma5-resonance>p{font-size:12px;line-height:1.6;color:#bcb0a0;max-width:650px}
#mairath-module .ma5-network{position:relative;height:clamp(350px,34vw,430px);margin:0 auto;max-width:650px;background:radial-gradient(ellipse at center,#5d43312e 0%,#15192500 48%)}
#mairath-module .ma5-network svg{position:absolute;inset:0;width:100%;height:100%}
#mairath-module .ma5-network .ma5-orbit{fill:none;stroke:#bca06b1e;stroke-width:1.5;stroke-dasharray:5 8}
#mairath-module .ma5-network .ma5-orbit-inner{stroke:#cda27325;stroke-dasharray:3 10}
#mairath-module .ma5-network .ma5-legacy-edge{fill:none;stroke:url(#ma5-etherline);stroke-width:1.8;stroke-dasharray:5 7;opacity:.8}
#mairath-module .ma5-network .ma5-bio-edge{fill:none;stroke:#e9c68b;stroke-width:3;opacity:.92}
#mairath-module .ma5-network-node{position:absolute;left:var(--nx);top:var(--ny);transform:translate(-50%,-50%);z-index:2;border:1px solid #d2af7e87;border-radius:50%;width:81px;height:81px;background:radial-gradient(circle,#2b2934,#101420);color:#eecf98;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:26px Georgia,serif;box-shadow:0 0 0 7px #c39b5110;cursor:pointer}
#mairath-module .ma5-network-node span{font:10px 'Segoe UI',sans-serif;color:#e0d0bd}
#mairath-module .ma5-network-node.breath{color:#d8bfe3;border-color:#a68caf}
#mairath-module .ma5-network-node.bridge{color:#bad1e2;border-color:#849ebc}
#mairath-module .ma5-network-node.north{color:#c7dced;border-color:#88b0bf}
#mairath-module .ma5-network-node:hover,#mairath-module .ma5-network-node:focus-visible,#mairath-module .ma5-network-person:hover,#mairath-module .ma5-network-person:focus-visible{box-shadow:0 0 0 5px #c59e6a42,0 0 32px #d4a9693a;filter:brightness(1.2)}
#mairath-module .ma5-network-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:108px;height:108px;border:1px solid #c7a46c7c;border-radius:50%;background:#28202a;box-shadow:0 0 65px #b78a4a33}
#mairath-module .ma5-network-center strong{font:39px Georgia,serif;color:#f1c98e}
#mairath-module .ma5-network-center small{color:#e4c795;font-size:9px;letter-spacing:.17em}
#mairath-module .ma5-network-person{position:absolute;left:var(--nx);top:var(--ny);transform:translate(-50%,-50%);background:#201c2a;border:1px solid #b29a8b;cursor:pointer;color:#f3e1cc;font:12px Georgia,serif;padding:5px 11px;min-width:97px}
#mairath-module .ma5-network-person.kaervan{border-color:#d3a778;color:#fae3bc}
#mairath-module .ma5-network-legend{display:flex;justify-content:center;gap:24px;color:#b6b0a1;font-size:10px;flex-wrap:wrap}
#mairath-module #ma5-network-detail{min-height:37px;background:#171c28;border-left:2px solid #b79561;padding:9px 12px;margin:16px 0 0;color:#c8c1ae}
#mairath-module .ma5-section-heading h2{font:normal clamp(31px,4vw,49px) Georgia,serif;color:#f5ddae;margin:8px 0}
#mairath-module .ma5-section-heading>span{font:57px Georgia,serif;color:#c6a06d70}
#mairath-module .ma5-portals-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
#mairath-module .ma5-portal-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;min-width:0;padding:17px 15px 19px;min-height:207px;background:linear-gradient(160deg,#251c23,#101925 64%);border:1px solid #95795675;color:#e9d3b5;cursor:pointer;transition:transform .2s,box-shadow .2s}
#mairath-module .ma5-portal-card:hover,#mairath-module .ma5-portal-card:focus-visible{transform:translateY(-4px);box-shadow:0 12px 30px #0008;border-color:#d3af79}
#mairath-module .ma5-portal-symbol{font:34px Georgia,serif;color:#e8bd7d}
#mairath-module .ma5-portal-label{font:23px/1.1 Georgia,serif;color:#fff0d2}
#mairath-module .ma5-portal-card small{color:#bdb5a4;font:11px/1.5 'Segoe UI',sans-serif;flex:1}
#mairath-module .ma5-portal-availability{font:10px 'Segoe UI',sans-serif;letter-spacing:.06em;color:#c3a677}
#mairath-module .ma5-portal-card[data-connected="true"] .ma5-portal-availability{color:#93d1b8}
#mairath-module .ma5-trail-select{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
#mairath-module .ma5-trail-select button{background:#171b25;color:#cdbda4;border:1px solid #8e744c;padding:11px 15px;font:12px 'Segoe UI',sans-serif;cursor:pointer}
#mairath-module .ma5-trail-select button[aria-pressed="true"]{background:#59352d;border-color:#e2b676;color:#fff3de}
#mairath-module .ma5-trail-content{background:linear-gradient(120deg,#261c23,#141c29);border:1px solid #a68a5f7d;padding:23px clamp(17px,3vw,40px)}
#mairath-module .ma5-trail-progress{display:flex;gap:7px;margin-bottom:17px}
#mairath-module .ma5-trail-progress button{height:5px;flex:1;background:#75634e;border:0;cursor:pointer;min-width:14px}
#mairath-module .ma5-trail-progress button[aria-pressed="true"]{background:#f3c988;box-shadow:0 0 14px #e0b66b}
#mairath-module .ma5-trail-presentation{display:grid;grid-template-columns:minmax(200px,.35fr) minmax(0,1fr);gap:clamp(22px,4vw,60px);align-items:center}
#mairath-module .ma5-trail-profile{min-height:244px;position:relative;background:radial-gradient(ellipse at 50% 60%,#73483655,#0b111b 70%);border:1px solid #a98b5a5c;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:20px}
#mairath-module .ma5-trail-profile .symbol{font:70px Georgia,serif;color:#ecc389;filter:drop-shadow(0 0 20px #b17d42)}
#mairath-module .ma5-trail-profile small{font:11px 'Segoe UI',sans-serif;color:#cab69c;margin-top:17px}
#mairath-module .ma5-trail-profile strong{font:18px/1.4 Georgia,serif;color:#e9d6b6;margin-top:9px}
#mairath-module .ma5-trail-aside>span{font:10px 'Segoe UI',sans-serif;letter-spacing:.15em;color:#d4b27e}
#mairath-module .ma5-trail-aside h3{font:normal clamp(29px,3vw,43px) Georgia,serif;color:#f7e0ba;margin:10px 0}
#mairath-module .ma5-trail-aside p{font:14px/1.8 Georgia,serif;color:#d3c8b8;max-width:690px}
#mairath-module .ma5-trail-status{font:11px 'Segoe UI',sans-serif;color:#bcab91}
#mairath-module .ma5-trail-actions{display:flex;gap:9px;margin-top:18px;flex-wrap:wrap}
#mairath-module .ma5-trail-actions button,#mairath-module .ma5-fieldnotes-buttons button{background:#1d2731;border:1px solid #9b805a;color:#e5d4b8;padding:10px 14px;font:11px 'Segoe UI',sans-serif;cursor:pointer}
#mairath-module .ma5-trail-actions button:disabled{opacity:.4;cursor:default}
#mairath-module .ma5-trail-actions button:nth-child(2),#mairath-module #ma5-pin-current{background:#513728;border-color:#c5a16e}
#mairath-module .ma5-fieldnotes{border:1px solid #a286593e;background:#111722c7;padding:25px clamp(15px,3vw,35px)}
#mairath-module .ma5-fieldnotes-title{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap}
#mairath-module .ma5-fieldnotes h2{font:normal 37px Georgia,serif;color:#f2dcab;margin:10px 0}
#mairath-module .ma5-fieldnotes p{font-size:12px;color:#bcafa0;line-height:1.6;max-width:800px}
#mairath-module .ma5-fieldnotes-buttons{display:flex;gap:9px;flex-wrap:wrap}
#mairath-module .ma5-notes-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;margin:18px 0 6px}
#mairath-module .ma5-note-item{padding:12px;background:#1e2331;border:1px solid #82695082;display:flex;flex-direction:column;gap:6px}
#mairath-module .ma5-note-item strong{font:16px Georgia,serif;color:#f7dec0}#mairath-module .ma5-note-item small{font-size:10px;color:#b9af9d}
#mairath-module .ma5-note-item div{display:flex;gap:7px}
#mairath-module .ma5-note-item button{background:#292534;color:#e4c9a5;border:1px solid #685941;padding:6px 9px;font:10px 'Segoe UI',sans-serif;cursor:pointer}
#mairath-module #ma5-notice{color:#a9d5bd;min-height:0;margin:7px 0}
#mairath-module .ma5-drawer-notice{position:fixed;z-index:90;right:15px;bottom:20px;max-width:min(400px,calc(100vw - 40px));padding:16px;background:#222031;color:#e8d4b7;border:1px solid #d1a771;box-shadow:0 15px 32px #0009}
#mairath-module .ma5-portal-card:focus-visible,#mairath-module button:focus-visible,#mairath-module a:focus-visible{outline:2px solid #f6d9a2;outline-offset:3px}
@media(max-width:1120px){#mairath-module .ma5-portals-grid{grid-template-columns:repeat(3,1fr)}#mairath-module .ma5-observatory-grid{grid-template-columns:1fr}#mairath-module .ma5-network{max-width:650px}}
@media(max-width:720px){#mairath-module .ma5-portals-grid{grid-template-columns:repeat(2,1fr)}#mairath-module .ma5-site-header{margin-top:0}#mairath-module .ma5-site-menu{order:3;width:100%;justify-content:start}#mairath-module .ma5-site-status{margin-left:auto}#mairath-module .ma5-trail-presentation{grid-template-columns:1fr;gap:20px}#mairath-module .ma5-trail-profile{min-height:130px;padding:12px}#mairath-module .ma5-trail-profile .symbol{font-size:43px}#mairath-module .ma5-network{height:365px}#mairath-module .ma5-network-node{width:66px;height:66px;font-size:22px}#mairath-module .ma5-network-node span{font-size:9px}#mairath-module .ma5-network-center{width:83px;height:83px}#mairath-module .ma5-network-center strong{font-size:30px}#mairath-module .ma5-obs-title h2{font-size:35px}#mairath-module .ma5-orbit-mark{display:none}#mairath-module .ma4-dock{overflow-x:auto;justify-content:flex-start}}
@media(max-width:460px){#mairath-module .ma5-portals-grid{grid-template-columns:1fr}#mairath-module .ma5-portal-card{min-height:135px}#mairath-module .ma5-network{height:300px}#mairath-module .ma5-network-node{width:57px;height:57px;font-size:17px}#mairath-module .ma5-network-node span{font-size:8px}#mairath-module .ma5-network-person{min-width:75px;padding:4px 6px;font-size:10px}}
@media(prefers-reduced-motion:reduce){#mairath-module .ma5-portal-card,#mairath-module .ma5-lens-art{transition:none}}

#mairath-module #ma5-lens-atlas{background:#202b34;border-color:#879ab0}
#mairath-module #ma5-lens-atlas[hidden]{display:none}

#mairath-module .ma5-network-open{display:inline-block;cursor:pointer;border:1px solid #a58a65;color:#f1ddbf;background:#282b36;margin:10px 4px 0 0;padding:8px 12px;font-size:11px}
