#mairath-module{color-scheme:dark;--bg:#090c14;--panel:#0f1520;--panel2:#151b29;--ink:#f5e9d1;--muted:#a9a5a0;--gold:#d6b774;--gold2:#eed7a2;--wine:#8f353d;--line:rgba(212,180,111,.28);--dim:rgba(212,180,111,.12);color:var(--ink);font:400 15px/1.65 'Segoe UI',system-ui,sans-serif;background:var(--bg);isolation:isolate;min-height:100vh;position:relative;overflow:hidden}
#mairath-module *,#mairath-module *:before,#mairath-module *:after{box-sizing:border-box}
#mairath-module .ma-ambient{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 15% 0,rgba(129,40,39,.14),transparent 45%),radial-gradient(ellipse at 90% 30%,rgba(17,57,90,.23),transparent 38%),radial-gradient(1px 1px at 10% 13%,#dec18d 99%,transparent),radial-gradient(2px 2px at 80% 5%,#dec18d 99%,transparent),radial-gradient(1px 1px at 44% 21%,#dec18d 99%,transparent),linear-gradient(165deg,#0b0f19,#050812 75%);background-repeat:no-repeat}
#mairath-module button,#mairath-module input{font:inherit}
#mairath-module button{cursor:pointer;transition:background .2s,border-color .2s,color .2s}
#mairath-module button:focus-visible,#mairath-module input:focus-visible,#mairath-module svg:focus-visible{outline:2px solid #ffda94;outline-offset:3px}
#mairath-module .ma-sr{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
#mairath-module .ma-skip{position:absolute;top:-200px;z-index:30;background:#fff;color:#111;padding:8px 12px}#mairath-module .ma-skip:focus{top:0}
#mairath-module .ma-header,#mairath-module .ma-nav,#mairath-module .ma-context,#mairath-module .ma-workspace,#mairath-module .ma-clarification,#mairath-module .ma-gallery,#mairath-module .ma-footer{max-width:1660px;margin-left:auto;margin-right:auto;padding-left:clamp(16px,3.3vw,54px);padding-right:clamp(16px,3.3vw,54px)}
#mairath-module .ma-header{padding-top:30px;padding-bottom:26px;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 70% 30%,rgba(157,115,52,.06),transparent)}
#mairath-module .ma-brandline{display:flex;align-items:center;gap:13px;letter-spacing:.24em;font-size:10px;font-weight:700;color:#c9b483}
#mairath-module .ma-emblem{display:grid;place-items:center;width:33px;height:33px;border:1px solid var(--gold);transform:rotate(45deg);color:var(--gold2);font-size:19px}#mairath-module .ma-emblem::first-letter{transform:rotate(-45deg)}
#mairath-module .ma-divider-dot{margin:0 7px;color:var(--wine)}
#mairath-module .ma-header-main{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:220px}
#mairath-module .ma-overline{color:var(--gold);text-transform:uppercase;letter-spacing:.20em;font-size:10px;font-weight:700;margin:0 0 10px}
#mairath-module h1,#mairath-module h2,#mairath-module h3{font-family:Georgia,'Times New Roman',serif;font-weight:500;margin:0;line-height:1.22}
#mairath-module h1{font-size:clamp(40px,5.5vw,76px);text-transform:uppercase;letter-spacing:.017em;color:#f0dfc2}#mairath-module h1 em{font-size:.78em;font-weight:400;text-transform:none;color:var(--gold2);font-style:italic}
#mairath-module .ma-intro{color:#c8c0b3;max-width:715px;font-size:15px;line-height:1.75;margin:15px 0 0}
#mairath-module .ma-head-seal{width:184px;height:184px;flex-shrink:0;border:double 5px #785e37;border-radius:50%;display:flex;justify-content:center;align-items:center;flex-direction:column;outline:1px solid rgba(221,174,82,.25);outline-offset:10px;box-shadow:inset 0 0 60px #201824,0 0 45px #100c08}#mairath-module .ma-head-seal span{font-size:72px;line-height:1;color:var(--gold)}#mairath-module .ma-head-seal small{font-size:9px;letter-spacing:.22em;color:#bfa677;text-align:center;line-height:1.35;margin-top:5px}
#mairath-module .ma-statline{display:flex;align-items:center;flex-wrap:wrap;gap:10px 32px;color:#aa9e8c;font-size:12px;letter-spacing:.03em}#mairath-module .ma-statline b{font-family:Georgia,serif;color:var(--gold2);font-size:21px;margin-right:5px}
#mairath-module .ma-muted{color:#817f83!important}
#mairath-module .ma-nav{padding-top:11px;padding-bottom:11px;border-bottom:1px solid var(--line);position:relative}
#mairath-module .ma-nav-scroller{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#715a3b transparent;padding:5px 0 8px}
#mairath-module .ma-scene-tab{flex:0 0 auto;border:1px solid transparent;background:transparent;color:#afa79a;border-radius:3px;letter-spacing:.09em;font-size:11px;padding:10px 13px;white-space:nowrap}#mairath-module .ma-scene-tab:hover{background:rgba(228,198,136,.10);color:#f9e9c6}#mairath-module .ma-scene-tab.active{background:linear-gradient(130deg,rgba(142,41,47,.33),rgba(164,126,70,.13));border-color:#966647;color:#f5d6a1}
#mairath-module .ma-context{display:flex;gap:24px;justify-content:space-between;align-items:center;min-height:185px;padding-top:22px;padding-bottom:22px}#mairath-module .ma-context-text{max-width:850px}#mairath-module .ma-context h2{font-size:clamp(25px,2.6vw,37px);color:#f5e4cb}#mairath-module .ma-context p:last-child{font-size:13px;color:var(--muted);line-height:1.75;max-width:800px;margin:10px 0 0}
#mairath-module .ma-artwork-open{height:132px;width:278px;flex:0 0 278px;border:1px solid var(--line);padding:0;overflow:hidden;position:relative;background:#090c14;text-align:left;border-radius:3px}#mairath-module .ma-artwork-open img{width:100%;height:100%;object-fit:cover;object-position:center 22%;opacity:.75;filter:saturate(.85)}#mairath-module .ma-artwork-open>span{position:absolute;inset:auto 0 0;padding:18px 12px 10px;display:flex;justify-content:space-between;align-items:center;letter-spacing:.12em;font-size:11px;color:#f5e3c8;background:linear-gradient(transparent,#03060de8)}#mairath-module .ma-open-mark{font-size:22px}#mairath-module .ma-artwork-open:hover{border-color:var(--gold2)}
#mairath-module .ma-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,345px);gap:16px;align-items:start;padding-bottom:26px}
#mairath-module .ma-chart-wrap,#mairath-module .ma-profile{background:linear-gradient(150deg,#121723,#080c14);border:1px solid var(--line);box-shadow:0 17px 40px #0004;min-width:0}
#mairath-module .ma-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 21px 14px;border-bottom:1px solid var(--dim)}#mairath-module .ma-tools-title h3{font-size:19px;color:#ead6b6}#mairath-module .ma-tools-title span{font-size:11px;color:var(--muted)}#mairath-module .ma-tools-controls{display:flex;align-items:center;gap:8px}
#mairath-module .ma-search-wrap{position:relative}#mairath-module input[type=search]{width:min(24vw,230px);min-width:125px;background:#070b13;border:1px solid #4b443b;padding:9px 10px;color:#faf0d9;border-radius:3px;font-size:13px}#mairath-module input[type=search]::placeholder{color:#777779}
#mairath-module .ma-search-results{position:absolute;z-index:12;left:0;right:0;min-width:260px;max-height:310px;overflow-y:auto;background:#141b27;border:1px solid #745c42;box-shadow:0 18px 30px #0009;padding:4px}#mairath-module .ma-search-results[hidden]{display:none}#mairath-module .ma-result{display:block;width:100%;text-align:left;background:transparent;border:0;color:#e4d4bc;padding:9px}#mairath-module .ma-result:hover,#mairath-module .ma-result:focus{background:#303344}#mairath-module .ma-result strong{display:block;font-size:12px}#mairath-module .ma-result small{font-size:10px;color:#c5a87c}
#mairath-module .ma-btn{background:linear-gradient(150deg,#6f3036,#411f2a);border:1px solid #996344;border-radius:3px;padding:10px 15px;color:#f3dbbd;font-size:12px;font-weight:700;letter-spacing:.02em}#mairath-module .ma-btn:hover{background:#733b3f;border-color:#ceaa6e}#mairath-module .ma-btn-small{padding:8px 10px;white-space:nowrap}
#mairath-module .ma-filterbar{display:flex;gap:8px 21px;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid var(--dim);font-size:11px;color:#b7aea2}#mairath-module .ma-filterbar label{display:flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap}#mairath-module .ma-filterbar input{accent-color:#bb945c;width:14px;height:14px;margin:0}#mairath-module .ma-key-line{width:20px;border-top:2px solid #d6bd7f;display:inline-block;margin:0 3px}#mairath-module .ma-key-line.key-union{border-top-color:#b4535e}#mairath-module .ma-key-line.key-desc{border-top-color:#8f9da9;border-top-style:dashed}#mairath-module .ma-key-line.key-succ{border-top-color:#7f8fc4;border-top-style:dotted}#mairath-module .ma-key-line.key-heritage{border-top-color:#b395ca;border-top-style:dashed}#mairath-module .ma-key-line.key-adopt{border-top-color:#84bea3;border-top-style:dashed}
#mairath-module .ma-canvas-box{height:min(72vh,700px);min-height:460px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 15%,rgba(91,63,52,.17),transparent 63%),repeating-linear-gradient(0deg,transparent 0,transparent 54px,rgba(190,158,107,.022) 55px),repeating-linear-gradient(90deg,transparent 0,transparent 54px,rgba(190,158,107,.023) 55px),#070b13;border-bottom:1px solid var(--line)}#mairath-module #ma-canvas{height:100%;width:100%;display:block;touch-action:none;cursor:grab;user-select:none}#mairath-module #ma-canvas.grabbing{cursor:grabbing}
#mairath-module #ma-canvas .edge{fill:none;pointer-events:none;stroke-width:2.2}#mairath-module #ma-canvas .edge-parent{stroke:#d7b778}#mairath-module #ma-canvas .edge-union{stroke:#b96472;stroke-width:3}#mairath-module #ma-canvas .edge-descendance{stroke:#9cabb1;stroke-dasharray:8 8}#mairath-module #ma-canvas .edge-succession{stroke:#7486ad;stroke-dasharray:3 9;stroke-width:2.4}#mairath-module #ma-canvas .edge-heritage{stroke:#af86c3;stroke-dasharray:5 9}#mairath-module #ma-canvas .edge-adoption{stroke:#81c1ab;stroke-dasharray:10 5}#mairath-module #ma-canvas .edge-fratrie{stroke:#ac85c5;stroke-dasharray:4 8}#mairath-module #ma-canvas .edge.propose{opacity:.68}#mairath-module #ma-canvas .edge.incertain{opacity:.44}#mairath-module #ma-canvas .person-node{cursor:pointer;outline:none}#mairath-module #ma-canvas .person-node rect.node-bg{fill:#151e2d;stroke:#9b865e;stroke-width:1.8;rx:7}#mairath-module #ma-canvas .person-node.branch-nord rect.node-bg{fill:#10233a;stroke:#719bb2}#mairath-module #ma-canvas .person-node.branch-ouest rect.node-bg{fill:#122542;stroke:#8cafd8}#mairath-module #ma-canvas .person-node.branch-aelirath rect.node-bg{fill:#271b35;stroke:#ad7cb9}#mairath-module #ma-canvas .person-node.branch-origine rect.node-bg{fill:#2a2119;stroke:#bc9257}#mairath-module #ma-canvas .person-node.branch-est rect.node-bg{fill:#301823;stroke:#ba675b}#mairath-module #ma-canvas .person-node.active rect.node-bg{stroke:#f5e2ab;stroke-width:3;filter:drop-shadow(0 0 9px #bd925ca0)}#mairath-module #ma-canvas .person-node:hover rect.node-bg{stroke:#f9dda2;stroke-width:2.8}#mairath-module #ma-canvas .node-symbol{font-family:Georgia,serif;fill:#e3bb78;font-size:29px}#mairath-module #ma-canvas .node-title{fill:#f1e3ce;font-family:Georgia,serif;font-size:16px}#mairath-module #ma-canvas .node-role{fill:#acb6bf;font-size:11px}#mairath-module #ma-canvas .node-status{font-size:10px;fill:#a5a6a6}#mairath-module #ma-canvas .node-era{font-size:10px;fill:#c09e63}
#mairath-module .ma-canvas-controls{position:absolute;right:15px;bottom:57px;display:flex;flex-direction:column;background:#0d121ddf;border:1px solid #8f744e}#mairath-module .ma-canvas-controls button{background:transparent;border:0;color:#e4d2b0;width:36px;height:35px;font-size:23px}#mairath-module .ma-canvas-controls button+button{border-top:1px solid #4a4033}#mairath-module .ma-canvas-controls button:hover{background:#49403a}
#mairath-module .ma-pan-hint{position:absolute;bottom:6px;left:15px;right:70px;color:#8b8783;font-size:11px;pointer-events:none}#mairath-module .ma-chart-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;padding:15px 19px}#mairath-module .ma-branches{display:flex;flex-wrap:wrap;gap:7px 15px;font-size:11px;color:#aea79b}#mairath-module .ma-branches span{display:flex;align-items:center;gap:5px}#mairath-module .dot{width:8px;height:8px;border-radius:50%;display:inline-block}#mairath-module .dot-est{background:#aa555a}#mairath-module .dot-ouest{background:#8ca8d2}#mairath-module .dot-nord{background:#67a0b9}#mairath-module .dot-aelirath{background:#aa7bc1}#mairath-module .ma-subtle-btn{background:transparent;border:0;color:#cdb27c;font-size:11px;text-decoration:underline;text-underline-offset:4px}#mairath-module .ma-subtle-btn:hover{color:#f3dca2}
#mairath-module .ma-profile{padding:25px 24px;position:sticky;top:12px;max-height:calc(100vh - 25px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#6b5541 transparent}#mairath-module .ma-profile-symbol{height:90px;width:90px;display:grid;place-items:center;border-radius:50%;border:1px solid #ac814a;background:radial-gradient(circle at 35% 25%,#4e3430,#111a29 75%);box-shadow:0 0 25px #ad70351c;color:#e3be83;font-size:54px;margin:14px 0 18px}#mairath-module .ma-profile h2{font-size:28px;color:#f5e4c9;margin-bottom:6px}#mairath-module .ma-profile .role{color:#cdb47f;font:italic 15px Georgia,serif;margin:0 0 17px}#mairath-module .ma-profile .bio{font-size:13px;line-height:1.85;color:#c3beb5}
#mairath-module .ma-pills{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}#mairath-module .ma-pill{font-size:10px;text-transform:uppercase;letter-spacing:.07em;padding:4px 7px;color:#d5d6db;border:1px solid #5b6271;border-radius:2px}#mairath-module .ma-pill.pill-propose{color:#efd2a1;border-color:#916d3f}#mairath-module .ma-pill.pill-incertain{color:#ced0d3;border-color:#646d78}#mairath-module .ma-pill.pill-etabli{color:#a1d2b5;border-color:#5c8978}
#mairath-module .ma-profile h3{font-size:17px;color:#f0dbb2;margin:20px 0 8px;padding-top:17px;border-top:1px solid var(--line)}#mairath-module .ma-profile .ma-fact{font-size:13px;color:#b4bbc2;margin-bottom:8px}#mairath-module .ma-fact strong{color:#dcc28e}
#mairath-module .ma-rel-list{display:flex;flex-direction:column;gap:7px}#mairath-module .ma-rel-list button{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#111c2b;border:1px solid #323a48;color:#e4d6bf;border-radius:2px;padding:8px 10px;text-align:left}#mairath-module .ma-rel-list button:hover{border-color:#bca16b;background:#1f2a3b}#mairath-module .ma-rel-list button span{font-size:10px;color:#c0a477;white-space:nowrap}
#mairath-module .ma-empty-rel{font-size:12px;color:#969ca5;font-style:italic}#mairath-module .ma-sources{color:#999491;font-size:11px;line-height:1.6;margin-top:15px}
#mairath-module .ma-clarification{display:flex;align-items:flex-start;gap:21px;padding-top:20px;padding-bottom:34px}#mairath-module .ma-note-symbol{display:grid;place-items:center;flex:0 0 49px;height:49px;border:1px solid #ab8856;color:#e9bb7c;border-radius:50%;font-size:27px}#mairath-module .ma-clarification h2{font-size:20px;color:#dbc397}#mairath-module .ma-clarification p{font-size:13px;color:#bcb5ac;max-width:1140px;margin:7px 0 0;line-height:1.85}#mairath-module .ma-clarification strong{color:#e9d3b3}
#mairath-module .ma-gallery{padding-top:46px;padding-bottom:48px;border-top:1px solid var(--line)}#mairath-module .ma-section-intro{max-width:850px}#mairath-module .ma-section-intro h2{font-size:34px;color:#e9d5ae}#mairath-module .ma-section-intro p:last-child{color:#a9a39c;font-size:13px;line-height:1.8}
#mairath-module .ma-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:24px}#mairath-module .ma-gallery-card{position:relative;background:#111721;border:1px solid var(--line);color:#e5d2ae;text-align:left;padding:0;overflow:hidden;border-radius:3px}#mairath-module .ma-gallery-card img{width:100%;height:230px;object-fit:cover;object-position:top;display:block;filter:saturate(.82);transition:transform .3s}#mairath-module .ma-gallery-card:hover{border-color:#cfac71}#mairath-module .ma-gallery-card:hover img{transform:scale(1.04)}#mairath-module .ma-gallery-card span{display:block;padding:10px 11px 12px}#mairath-module .ma-gallery-card strong{display:block;font:17px Georgia,serif}#mairath-module .ma-gallery-card small{display:block;color:#aaa19a;font-size:11px;line-height:1.5}
#mairath-module .ma-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:30px;padding-top:35px;padding-bottom:55px}#mairath-module .ma-footer strong{font:19px Georgia,serif;color:#dfc497}#mairath-module .ma-footer-mark{color:#e1ba6e;margin-right:12px}#mairath-module .ma-footer p{font-size:12px;color:#b6ada1;max-width:980px;line-height:1.8}#mairath-module .ma-footer .ma-btn{flex-shrink:0}
.ma-lightbox{position:fixed!important;inset:0;z-index:99999;background:rgba(4,6,11,.96);color:#f1e2c8;display:flex;flex-direction:column;font:14px 'Segoe UI',sans-serif}.ma-lightbox[hidden]{display:none!important}.ma-lightbox-bar{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 22px;border-bottom:1px solid #645039;font-family:Georgia,serif;font-size:21px}.ma-lightbox-bar div{display:flex;gap:7px}.ma-lightbox-bar button{background:#191b22;border:1px solid #76654c;color:#f5e4c9;width:38px;height:38px;font-size:23px;cursor:pointer}.ma-lightbox-main{flex:1;min-height:0;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:18px;cursor:zoom-in}.ma-lightbox-main img{display:block;height:auto;width:auto;max-width:100%;max-height:calc(100vh - 140px);object-fit:contain;transform-origin:top center}.ma-lightbox-caption{text-align:center;padding:8px 16px 14px;font-size:12px;color:#ad9f89}
@media(max-width:1070px){#mairath-module .ma-workspace{grid-template-columns:minmax(0,1fr)}#mairath-module .ma-profile{position:static;max-height:none}#mairath-module .ma-profile .ma-profile-symbol{float:right;width:73px;height:73px;margin:0 0 10px 12px;font-size:39px}#mairath-module .ma-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#mairath-module .ma-gallery-card img{height:200px}}
@media(max-width:650px){#mairath-module .ma-header{padding-top:19px}#mairath-module .ma-header-main{min-height:0;padding:26px 0 18px}#mairath-module .ma-head-seal{display:none}#mairath-module .ma-brandline{font-size:8px;letter-spacing:.08em}#mairath-module .ma-divider-dot{margin:0 3px}#mairath-module h1{font-size:38px}#mairath-module .ma-intro{font-size:13px}#mairath-module .ma-statline{gap:7px 19px}#mairath-module .ma-context{min-height:0;display:block}#mairath-module .ma-artwork-open{width:100%;height:108px;margin-top:12px;display:block}#mairath-module .ma-tools{flex-direction:column;align-items:stretch;padding:13px}#mairath-module .ma-tools-controls{justify-content:space-between}#mairath-module input[type=search]{width:100%}#mairath-module .ma-search-wrap{flex:1}#mairath-module .ma-canvas-box{height:60vh;min-height:430px}#mairath-module .ma-filterbar{padding:10px 14px;gap:8px 12px}#mairath-module .ma-pan-hint{font-size:10px;bottom:8px;max-width:80%}#mairath-module .ma-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#mairath-module .ma-gallery-card img{height:230px}#mairath-module .ma-clarification{gap:12px}#mairath-module .ma-note-symbol{flex-basis:35px;height:35px}#mairath-module .ma-footer{display:block}#mairath-module .ma-footer .ma-btn{margin-top:14px}#mairath-module .ma-profile{padding:20px}}
@media(prefers-reduced-motion:reduce){#mairath-module *,#mairath-module *:before{transition:none!important;animation:none!important}}
@media print{#mairath-module{color:#181818;background:#fff}#mairath-module .ma-nav,#mairath-module .ma-tools-controls,#mairath-module .ma-canvas-controls,#mairath-module .ma-gallery,#mairath-module .ma-artwork-open{display:none!important}#mairath-module .ma-workspace{display:block}#mairath-module .ma-canvas-box{height:570px}#mairath-module .ma-profile{position:static}#mairath-module .ma-header{color:#fff;background:#10131a}}

/* ===== V2 : huit arbres d’époque, navigation impériale et modes de lecture ===== */
#mairath-module .ma-era-atlas{padding:30px 36px 23px;margin:0 auto 24px;max-width:var(--max,1500px);border:1px solid #53442f;background:linear-gradient(125deg,#151522,#0b101b 63%,#1a1518);box-shadow:inset 0 0 0 1px #30281f}
#mairath-module .ma-era-atlas-head{display:flex;justify-content:space-between;gap:20px;align-items:center}
#mairath-module .ma-era-atlas-head h2{margin:4px 0;font:normal clamp(25px,3vw,38px) Georgia,serif;color:#efdaad}
#mairath-module .ma-era-atlas-head p:last-child{font-size:13px;color:#bcb0a1;max-width:800px;line-height:1.8}
#mairath-module .ma-era-atlas-seal{font:21px Georgia,serif;color:#bba06e;text-align:center;border:1px solid #68533b;padding:12px;min-width:98px;background:#15151b}
#mairath-module .ma-era-atlas-seal span{display:block;color:#e2bc72;font-size:28px}
#mairath-module .ma-era-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:18px}
#mairath-module .ma-era-tile{min-width:0;display:flex;align-items:flex-start;gap:10px;padding:16px 12px;text-align:left;border:1px solid #514633;color:#d7c6ad;background:linear-gradient(135deg,#201d23,#111823);border-radius:3px;cursor:pointer;transition:transform .18s,background .2s,border-color .2s}
#mairath-module .ma-era-tile:hover{transform:translateY(-2px);background:#29262a;border-color:#c4a170}
#mairath-module .ma-era-tile.active{border-color:#d9b67b;background:linear-gradient(150deg,#463125,#201827);box-shadow:inset 0 0 0 1px #ac804a66,0 4px 18px #0008}
#mairath-module .ma-era-number{font:28px Georgia,serif;color:#e2bc78;min-width:33px;line-height:1}
#mairath-module .ma-era-tile-body{display:grid;gap:3px;min-width:0}
#mairath-module .ma-era-tile-body strong{color:#f0ddbf;font:16px Georgia,serif}
#mairath-module .ma-era-tile-body small{color:#c7a773;font-size:11px}
#mairath-module .ma-era-tile-body em{color:#aba6a7;font-size:10px;font-style:normal;line-height:1.45}
#mairath-module .ma-era-arr{margin-left:auto;color:#d4ae6b;font-size:17px}
#mairath-module .ma-era-meta{display:flex;align-items:center;gap:18px;margin-top:17px;padding:18px 22px;border-top:1px solid #69573d;background:linear-gradient(90deg,#392626,#161826 75%);border-left:2px solid #c6a066;min-height:95px}
#mairath-module .ma-era-meta-roman{font:46px Georgia,serif;color:#efce95;min-width:70px;text-align:center}
#mairath-module .ma-era-meta strong{font:19px Georgia,serif;color:#f2ddbb}
#mairath-module .ma-era-meta p{color:#c7bcb0;font-size:12px;line-height:1.65;margin:7px 0}
#mairath-module .ma-era-meta small{color:#c5a06d;font-size:11px}
#mairath-module .ma-era-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:1500px;margin:0 auto 18px;padding:12px 24px;border:1px solid #4b3f30;background:#131926;color:#e2c496}
#mairath-module .ma-era-pager button{padding:8px 10px;background:transparent;border:1px solid #6f573a;color:#e7d0a2;font-size:12px;cursor:pointer}
#mairath-module .ma-era-pager button:hover:not(:disabled){background:#57412b}
#mairath-module .ma-era-pager button:disabled{color:#77706a;border-color:#39383b;cursor:not-allowed}
#mairath-module .ma-era-position{font:15px Georgia,serif;color:#efd2a5;text-align:center}
#mairath-module .ma-viewmodes{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 19px 8px;background:#111b29;border-top:1px solid #3a3840}
#mairath-module .ma-viewmode-label{font-size:10px;letter-spacing:.11em;color:#b89a69;margin-right:6px}
#mairath-module .ma-viewmodes button{background:#1d2430;border:1px solid #5a5060;color:#c8bbaf;font-size:12px;padding:7px 12px;cursor:pointer;border-radius:3px}
#mairath-module .ma-viewmodes button:hover{border-color:#bfa16f}
#mairath-module .ma-viewmodes button.active{border-color:#dbb779;background:#40312e;color:#ffe2ae}
#mairath-module .ma-era-chain{background:#111a27;padding:10px 19px;border-bottom:1px solid #4b4037}
#mairath-module .ma-era-chain>strong{font:14px Georgia,serif;color:#e3c693}
#mairath-module .ma-era-chain>strong small{font:11px 'Segoe UI',sans-serif;color:#b0a9a2}
#mairath-module .ma-era-chain>p{font-size:11px;color:#b7aead;margin:6px 0}
#mairath-module .ma-era-succ-list{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding-top:10px}
#mairath-module .ma-era-succ-list button{font-size:11px;color:#d8c7b6;background:#222532;border:1px solid #50483e;padding:7px 10px;border-radius:3px;cursor:pointer}
#mairath-module .ma-era-succ-list button:hover{border-color:#d8b47d;background:#36303b}
#mairath-module .ma-era-succ-list span{color:#b39363}
#mairath-module .ma-requiem-note{display:flex;gap:20px;align-items:flex-start;margin:28px auto;padding:24px 26px;border:1px solid #706459;background:linear-gradient(110deg,#232637,#171320 85%);max-width:1500px}
#mairath-module .ma-requiem-note h2{font:23px Georgia,serif;color:#e8d7b5}
#mairath-module .ma-requiem-note p{font-size:13px;color:#c3c0c7;max-width:1000px;line-height:1.8}
#mairath-module .ma-requiem-note strong{color:#e9d6a9}
#mairath-module .ma-requiem-note button{background:transparent;border:1px solid #b39a75;color:#e9d3ac;padding:9px 12px;cursor:pointer}
#mairath-module .ma-requiem-note button:hover{background:#54412b}
@media(max-width:1070px){#mairath-module .ma-era-rail{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#mairath-module .ma-era-atlas{padding:20px 14px;margin:0 12px 16px}#mairath-module .ma-era-atlas-seal{display:none}#mairath-module .ma-era-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#mairath-module .ma-era-tile{padding:12px 8px;gap:7px}#mairath-module .ma-era-number{font-size:23px;min-width:24px}#mairath-module .ma-era-tile-body strong{font-size:13px}#mairath-module .ma-era-tile-body small{font-size:9px}#mairath-module .ma-era-tile-body em{font-size:9px}#mairath-module .ma-era-arr{display:none}#mairath-module .ma-era-meta{padding:12px;gap:8px}#mairath-module .ma-era-meta-roman{font-size:32px;min-width:43px}#mairath-module .ma-era-pager{margin:0 12px 14px;padding:10px 7px}#mairath-module .ma-era-pager button{font-size:10px;padding:7px 6px}#mairath-module .ma-era-position{font-size:11px}#mairath-module .ma-requiem-note{margin:20px 12px;padding:16px;gap:10px}#mairath-module .ma-viewmodes{padding:10px;gap:6px}#mairath-module .ma-viewmodes button{font-size:10px;padding:6px}#mairath-module .ma-era-chain{padding:10px}#mairath-module .ma-era-succ-list button{font-size:10px}}

/* V3 — Concordances et trajectoire de Thoryen III */
#mairath-module .ma-canon-fix, #mairath-module .ma-timeline{border:1px solid #ab875a88;border-radius:13px;background:linear-gradient(130deg,#1b1a22,#101825 56%,#141c2c);box-shadow:0 12px 40px #0004;margin:25px 34px;padding:23px 28px;color:#e6dfd2}
#mairath-module .ma-canon-fix h2,#mairath-module .ma-timeline h2{font-family:Georgia,serif;font-size:clamp(23px,3vw,34px);line-height:1.2;color:#e7cc8e;margin:6px 0 12px}
#mairath-module .ma-canon-fix p,#mairath-module .ma-timeline p{max-width:980px;line-height:1.65;color:#d2d0cb}
#mairath-module .ma-canon-fix strong,#mairath-module .ma-timeline strong{color:#f0d9a2}
#mairath-module .ma-canon-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:15px}
#mairath-module .ma-canon-actions button,#mairath-module .ma-timeline-footer button{border:1px solid #bc9667;background:#261b21;color:#f5ddae;padding:11px 13px;cursor:pointer;border-radius:6px;font-weight:600;min-height:40px}
#mairath-module .ma-canon-actions button:hover,#mairath-module .ma-timeline-footer button:hover{background:#47303b}
#mairath-module .ma-timeline{border-color:#a58880a8}
#mairath-module .ma-timeline-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:23px 0 13px}
#mairath-module .ma-timeline-buttons button{background:#111727;color:#d0b78e;border:1px solid #766248;border-radius:7px;padding:13px 8px;min-height:78px;cursor:pointer;text-align:left;line-height:1.35}
#mairath-module .ma-timeline-buttons button b{display:block;font-family:Georgia,serif;font-size:21px;margin-bottom:7px}
#mairath-module .ma-timeline-buttons button[aria-pressed="true"]{background:linear-gradient(130deg,#653a36,#3d293a);border-color:#e7bc80;color:#ffe4af;box-shadow:0 0 0 1px #b88d66}
#mairath-module .ma-timeline-detail{min-height:150px;border:1px solid #675741;background:#121a28cc;padding:20px 22px;border-radius:9px}
#mairath-module .ma-timeline-detail .ma-step-count{letter-spacing:.14em;font-size:10px;font-weight:700;color:#c9a77e}
#mairath-module .ma-timeline-detail h3{font-family:Georgia,serif;font-size:26px;color:#e9d5ae;margin:7px 0 6px}
#mairath-module .ma-timeline-detail p{margin:6px 0}
#mairath-module .ma-timeline-footer{display:flex;gap:10px;margin-top:17px;flex-wrap:wrap}
#mairath-module .person-node.kind-heritage_collectif .node-bg{stroke:#c4a0dd;fill:#1f1832}
#mairath-module .person-node.kind-inconnu .node-bg{stroke:#9b9fac;stroke-dasharray:4 4;fill:#1a1c23}
@media(max-width:800px){#mairath-module .ma-timeline-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){#mairath-module .ma-canon-fix,#mairath-module .ma-timeline{margin:16px 12px;padding:16px 13px}#mairath-module .ma-timeline-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#mairath-module .ma-timeline-buttons button{min-height:63px}#mairath-module .ma-timeline-detail{padding:13px 12px}}

#mairath-module a.ma-sourcelink{color:#e6c889;text-decoration:underline;text-underline-offset:4px}
#mairath-module a.ma-sourcelink:hover{color:#ffe5af}

#mairath-module .ma-portal-return{font:13px/1.5 system-ui;padding:0 0 14px;color:#d7bd87}#mairath-module .ma-portal-return a{color:inherit}
