/* ---------- Section IV: Parliaments reference (luxury map) ---------- */
.entry .entry-card:nth-child(3){grid-column:auto}
body.ref-page{background:var(--navy-0) radial-gradient(ellipse at 50% -10%,#123072 0,var(--navy-1) 45%,var(--navy-0) 100%) fixed;color:#e8ecf7;min-height:100vh}
.ref-wrap{max-width:1320px;margin:0 auto;padding:34px 16px 70px}
.ref-head{text-align:center;max-width:820px;margin:0 auto 30px}
.ref-head h1{font-family:var(--serif);font-size:clamp(30px,4.6vw,52px);font-weight:600;color:#fff;margin:0;line-height:1.1}
.ref-head .gold-rule{margin:22px auto;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.ref-head p{color:#aab6d8;line-height:1.65;font-size:15px;margin:0}
.ref-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:22px;align-items:start}
.ref-mapbox{position:relative;padding:18px 18px 14px;border-radius:14px;background:linear-gradient(180deg,#0a1f55 0%,#061433 55%,#030b24 100%);border:1px solid #c9a54b;box-shadow:inset 0 0 0 5px #061433,inset 0 0 0 6px rgba(201,165,75,.55),0 30px 70px rgba(0,0,0,.5)}
.ref-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 14px;background:linear-gradient(180deg,#0b2160,#061433);border:1px solid rgba(201,165,75,.55);border-bottom:0;border-radius:12px 12px 0 0}
.ref-tools input{flex:1 1 220px;min-width:0;padding:10px 14px;border-radius:999px;border:1px solid rgba(201,165,75,.55);background:rgba(255,255,255,.06);color:#fff;font:14px var(--sans)}
.ref-tools input::placeholder{color:#8d99bb}
.ref-count{font:600 12px var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--gold-2)}
.ref-reset{border:1px solid rgba(201,165,75,.6);background:transparent;color:var(--gold-2);font:600 13px var(--sans);padding:8px 14px;border-radius:999px;cursor:pointer}
.ref-map{position:relative;border:1px solid rgba(201,165,75,.55);border-radius:0 0 12px 12px;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#0a1f55 0,#030a20 75%);touch-action:none}
.ref-map::before,.ref-map::after{content:"";position:absolute;width:54px;height:54px;pointer-events:none;z-index:2;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Cg fill='none' stroke='%23c9a54b' stroke-width='1.4'%3E%3Cpath d='M4 50V4h46'/%3E%3Cpath d='M10 50V10h40' stroke-opacity='.6'/%3E%3C/g%3E%3Ccircle cx='18' cy='18' r='3' fill='%23c9a54b'/%3E%3C/svg%3E") no-repeat}
.ref-map::before{top:6px;left:6px}
.ref-map::after{bottom:6px;right:6px;transform:rotate(180deg)}
.ref-map svg{display:block;width:100%;height:auto;cursor:grab}
.ref-map svg:active{cursor:grabbing}
.ref-halo{fill:none;stroke:rgba(201,165,75,.25);stroke-width:14;filter:blur(6px)}
.ref-sphere{fill:url(#refSea)}
.ref-dots{fill:url(#refDots);pointer-events:none}
.ref-rim{fill:none;stroke:#c9a54b;stroke-width:1.4;pointer-events:none}
.ref-map path.c{fill:url(#refLand);stroke:rgba(230,204,133,.38);stroke-width:.5;stroke-linejoin:round;transition:fill .25s,fill-opacity .25s}
.ref-map path.c.has{fill:url(#refGold);fill-opacity:.9;stroke:#fff3c4;stroke-opacity:.55;filter:url(#refGlow);cursor:pointer}
.ref-map path.c[tabindex]{cursor:pointer}
.ref-map path.c:hover{fill:#2f5bb3}
.ref-map path.c.has:hover{fill-opacity:1;fill:url(#refGold);stroke:#fff}
.ref-map path.c.on{fill:#fff6d6!important;fill-opacity:1;stroke:#fff;stroke-opacity:1;filter:url(#refGlow)}
.ref-map path.c:focus{outline:none;stroke:#fff}
.ref-grat{fill:none;stroke:rgba(230,204,133,.18);stroke-width:.4;stroke-dasharray:2 3;pointer-events:none}
.ref-marks .mk{cursor:pointer}
.mk-dot{fill:#fff3c4;stroke:#7a5410;stroke-width:.6}
.mk-ring{fill:none;stroke:#f0d68a;stroke-width:1;transform-box:fill-box;transform-origin:center;animation:mkPulse 2.6s ease-out infinite}
.ref-marks .mk:nth-child(3n) .mk-ring{animation-delay:.9s}.ref-marks .mk:nth-child(3n+1) .mk-ring{animation-delay:1.7s}
.mk.on .mk-dot{fill:#fff;r:3}
.mk.on .mk-ring{stroke:#fff;stroke-width:1.4}
@keyframes mkPulse{0%{transform:scale(.4);opacity:1}100%{transform:scale(2.2);opacity:0}}
@media (prefers-reduced-motion:reduce){.mk-ring{animation:none;opacity:.6}}
.ref-compass{pointer-events:none;opacity:.85}
.ref-compass circle{fill:rgba(6,20,51,.55);stroke:#c9a54b;stroke-width:1}
.ref-compass circle.in{fill:none;stroke-dasharray:2 3;stroke-opacity:.7}
.ref-compass .star{fill:#a77a26}
.ref-compass .star2{fill:#fbe7a6}
.ref-compass text{fill:#e6cc85;font:700 11px var(--serif);text-anchor:middle}
.ref-tip{position:absolute;z-index:3;pointer-events:none;opacity:0;transform:translate(-50%,-150%);display:flex;align-items:center;gap:8px;padding:7px 14px;border-radius:4px;background:linear-gradient(180deg,#0b2160,#061433);border:1px solid var(--gold);box-shadow:0 8px 24px rgba(0,0,0,.45);color:#fff;font:600 13px var(--sans);white-space:nowrap;transition:opacity .15s}
.ref-tip i{font-style:normal;color:var(--gold);font-size:10px}
.ref-cartouche{display:flex;justify-content:center;align-items:center;gap:14px;margin:2px 0 14px;font-family:var(--serif);font-size:clamp(16px,2vw,21px);font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:#f0d68a;text-shadow:0 0 18px rgba(240,214,138,.35)}
.ref-cartouche span{font-size:.7em;color:var(--gold)}
.ref-legend{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 18px;margin-top:10px;padding:8px 14px;border-radius:999px;background:#061433;border:1px solid rgba(201,165,75,.35);color:#dfe5f3;font-size:12.5px}
.ref-legend span{display:inline-flex;align-items:center;gap:7px}
.ref-legend i{width:16px;height:10px;border-radius:2px;display:inline-block}
.lg-gold{background:linear-gradient(180deg,#fbe7a6,#a77a26);box-shadow:0 0 6px rgba(240,214,138,.7)}
.lg-navy{background:#1d3b7e;border:1px solid rgba(230,204,133,.4)}
.ref-legend .ref-hint{margin:0;padding:0;background:none;color:#8d99bb}
.ref-loading{display:grid;place-items:center;min-height:300px;color:var(--gold-2);font-size:24px}
.ref-panel{position:sticky;top:84px;min-height:420px;padding:26px 24px 22px;background:#fffdf7;color:#14203d;border-radius:4px;box-shadow:0 0 0 1px #c9a54b,0 0 0 5px #fffdf7,0 0 0 6px #c9a54b,0 30px 70px rgba(0,0,0,.45)}
.ref-panel::before,.ref-panel::after{content:"";position:absolute;width:46px;height:46px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23c9a54b' stroke-width='1.3'%3E%3Cpath d='M3 43V3h40'/%3E%3Cpath d='M3 3l13 13'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2.5' fill='%23c9a54b'/%3E%3C/svg%3E") no-repeat}
.ref-panel::before{top:6px;left:6px}
.ref-panel::after{bottom:6px;right:6px;transform:rotate(180deg)}
.ref-panel.show{animation:refIn .45s ease both}
@keyframes refIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.ref-x{position:absolute;top:10px;right:14px;border:0;background:transparent;font-size:26px;line-height:1;color:#7a6730;cursor:pointer}
.ref-empty{text-align:center;padding:40px 10px}
.ref-globe{font-size:46px;color:#c9a54b}
.ref-empty h2{font-family:var(--serif);font-size:28px;color:#0b2160;margin:10px 0 8px}
.ref-empty p{color:#5d6782;line-height:1.6;margin:0}
.pr-top{display:flex;gap:16px;align-items:flex-start;padding-bottom:16px;border-bottom:3px double #c9a54b;margin-bottom:16px}
.pr-top img{width:72px;height:48px;object-fit:cover;border-radius:4px;box-shadow:0 0 0 1px #c9a54b,0 4px 12px rgba(0,0,0,.2);flex:0 0 auto}
.pr-k{font:700 11px var(--sans);letter-spacing:.22em;text-transform:uppercase;color:#0d7a4f}
.pr-top h2{font-family:var(--serif);font-size:26px;line-height:1.15;color:#0b2160;margin:4px 0 8px;font-weight:700}
.pr-type{display:inline-block;padding:4px 12px;border-radius:999px;background:#0b2160;color:#e6cc85;font:600 11px var(--sans);letter-spacing:.08em;text-transform:uppercase}
.pr-chs{display:grid;gap:12px}
.pr-ch{padding:14px 16px;background:linear-gradient(180deg,#fbf6e6,#fffdf7);border:1px solid #e3d29c;border-left:4px solid #c9a54b;border-radius:4px}
.pr-ch-n{display:flex;align-items:center;gap:10px;font-family:'PT Serif',Georgia,serif;font-weight:700;font-size:17px;color:#0b2160}
.pr-ch-i{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:#0b2160;color:#e6cc85;font:700 11px var(--sans)}
.pr-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.pr-stats div{text-align:center;padding:8px;background:#fff;border:1px solid #efe4bf;border-radius:4px}
.pr-stats b{display:block;font-family:var(--serif);font-size:26px;color:#0b2160;line-height:1.1}
.pr-stats small{font:600 10.5px var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#7a849a}
.pr-st{margin:10px 0 0;font-size:13.5px;color:#44506b;line-height:1.5}
.pr-m{margin:10px 0 0;font-size:13.5px;line-height:1.5;color:#1c2741}
.pr-m span{color:#7a6730;font-weight:600}
.pr-note{margin:16px 0 0;font-family:'PT Serif',Georgia,serif;font-size:15px;line-height:1.7;color:#1c2741}
.pr-none{font-family:'PT Serif',Georgia,serif;font-size:15px;line-height:1.7;color:#44506b;margin:0}
.pr-sites{margin-top:16px;padding-top:12px;border-top:1px solid #e3d9b8;display:flex;flex-direction:column;gap:6px}
.pr-sites a{color:#1b6fb0;font-size:14px;text-decoration:none;word-break:break-all}
.pr-sites a:hover{text-decoration:underline}
.pr-ver{margin-top:12px;font-size:12px;color:#7a849a}
@media (max-width:980px){.ref-grid{grid-template-columns:1fr}.ref-panel{position:static;min-height:0}}
@media (max-width:560px){.ref-mapbox{padding:8px}.ref-tools{border-radius:10px 10px 0 0}.ref-panel{padding:22px 16px 18px}}
@media (max-width:760px){.mainnav{flex-wrap:wrap;row-gap:4px}}
@media (max-width:560px){.ref-compass{display:none}.ref-cartouche{letter-spacing:.12em;gap:8px}.ref-mapbox{padding:12px 10px 10px}}
@media (max-width:760px){.ref-legend{border-radius:14px;padding:12px 18px;flex-direction:column;gap:8px;text-align:center}.ref-legend .ref-hint{display:block;line-height:1.5}}
@media (max-width:980px){.ref-panel{position:relative;top:auto}}
.ref-cartouche{text-align:center}
