/* Arkanova · mandala do mapa natal como medalhão 3D (wheel-medallion.js) */
.ob-chart.md-stage{perspective:1400px;perspective-origin:50% 45%;flex-wrap:wrap;align-content:center;padding-bottom:58px}
.ob-wheel.md-coin{position:relative;transform-style:preserve-3d;transform-origin:50% 50%;align-items:center;transition:transform .08s linear;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.ob-wheel.md-coin:active{cursor:grabbing}
.md-coin>svg{position:relative}
.md-edge{position:absolute;transform-style:preserve-3d;pointer-events:none}
/* the edge is a stack of gold rings (not discs), so the face can stay see-through */
.md-edge i{position:absolute;inset:0;border-radius:50%;border:5px solid #b98a45;background:none;box-shadow:0 0 0 1px rgba(60,40,12,.5)}
.md-edge i:nth-child(odd){border-color:#d9ab62}
.md-edge i:first-child{border:3px solid #e2b874;background:radial-gradient(circle at 50% 45%,rgba(17,37,58,.55) 0,rgba(8,19,31,.62) 70%,rgba(5,12,21,.75) 100%)}
.md-edge i:last-child{box-shadow:0 30px 60px rgba(0,0,0,.45)}
/* front rim: a thin gold bezel so the face reads as struck metal */
.md-coin svg.reference-wheel{filter:drop-shadow(0 0 1px rgba(243,213,162,.55))}
/* touch screens: no filter on the turning coin (some Android graphics chips garble a filtered SVG in 3D) */
@media (pointer:coarse){.md-coin svg.reference-wheel{filter:none}}
.md-bar{position:relative;z-index:5;flex-basis:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 8px;margin:10px 12px 0;padding:8px 10px;border:1px solid rgba(214,182,122,.25);border-radius:14px;background:rgba(6,15,28,.5);font:600 12.5px/1 Manrope,system-ui,sans-serif;color:#aab8c9}
.md-bar .md-lbl{color:#d6b67a;letter-spacing:.12em;text-transform:uppercase;font-size:10.5px;margin-right:4px}
.md-bar button{appearance:none;border:1px solid rgba(214,182,122,.3);background:rgba(6,15,28,.55);color:var(--ak2-ivory,#f2ece1);font:inherit;min-width:32px;height:32px;padding:0 10px;border-radius:999px;cursor:pointer}
.md-bar button:hover{border-color:#d6b67a}
.md-bar button:focus-visible{outline:2px solid #f0cf95;outline-offset:2px}
.md-bar .md-seg{display:inline-flex;gap:2px;padding:2px;border:1px solid rgba(214,182,122,.3);border-radius:999px}
.md-bar .md-seg button{border:0;height:28px}
.md-bar .md-seg button[aria-pressed="true"]{background:linear-gradient(110deg,#f3d5a2,#d9a85c);color:#1a1408}
.md-bar output{min-width:42px;text-align:center;color:var(--ak2-ivory,#f2ece1)}
.md-bar .md-hint{flex-basis:100%;text-align:center;font-weight:500;font-size:11.5px;color:#8d9bb0;line-height:1.4}
.md-angels{margin:12px 0 0;border:1px solid rgba(214,182,122,.25);border-radius:14px;background:rgba(6,15,28,.45);color:var(--ak2-ivory,#f2ece1)}
.md-angels summary{cursor:pointer;padding:12px 14px;font:600 18px/1.2 'Cormorant Garamond',Georgia,serif;color:#f3d5a2}
.md-angels summary:focus-visible{outline:2px solid #f0cf95;outline-offset:2px;border-radius:14px}
.md-angels .md-tw{overflow-x:auto;padding:0 14px}
.md-angels table{width:100%;border-collapse:collapse;font:500 13px/1.4 Manrope,system-ui,sans-serif}
.md-angels th{text-align:left;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#d6b67a;padding:6px 6px;border-bottom:1px solid rgba(214,182,122,.25)}
.md-angels td{padding:6px;border-bottom:1px solid rgba(214,182,122,.1);white-space:nowrap}
.md-angels .md-g{font-family:'Segoe UI Symbol','Noto Sans Symbols 2',serif;font-size:17px;color:#f3d5a2;width:24px}
.md-angels .md-n{font-variant-numeric:tabular-nums}
.md-angels .md-note{margin:8px 14px 14px;font-size:12px;color:#8d9bb0}
@media(max-width:720px){.md-stage{perspective:900px}.md-bar{gap:6px}.md-bar button{height:36px;min-width:36px}}
@media(prefers-reduced-motion:reduce){.ob-wheel.md-coin{transition:none}}
.md-angels{margin:16px 0 0}
@media print{.ob-wheel.md-coin{transform:none!important}.md-edge,.md-bar,.md-tip{display:none!important}.md-stage{overflow:visible;perspective:none}.md-angels{break-inside:avoid}}
/* when the medallion is enlarged, the panel title, the page zoom, the filters and this bar stay on top and readable */
.md-stage .ob-chart-head,.md-stage .ob-zoom,.md-stage>.wheel-filters,.md-stage>.md-bar{z-index:6}
.md-stage>.md-bar{background:rgba(6,15,28,.86);backdrop-filter:blur(6px)}
.md-legend{position:absolute;z-index:4;pointer-events:none;overflow:visible}
@media print{.md-legend{display:none}}
.md-coin>svg.biwheel>text{visibility:hidden}
@media print{.md-coin>svg.biwheel>text{visibility:visible}}

/* lock (face on, zoom and move only) */
.md-bar .md-lock{display:inline-flex;align-items:center;gap:6px}
.md-bar .md-lock svg{width:14px;height:14px}
.md-bar button:disabled{opacity:.35;cursor:not-allowed}
/* phones and tablets: flat chart, no 3D */
.ob-chart.md-stage.md-flat{perspective:none}
.md-flat .ob-wheel.md-coin{transform-style:flat;cursor:default}
.md-flat .md-edge{display:none}
