/* astro.css — เมนู Birth Chart (ดวงกำเนิดตะวันตก) · คู่กับ js/m-astro.js */
.as-trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.as-trust span, .as-trust a { padding: 4px 10px; border-radius: 999px; background: var(--soft2); border: 1px solid var(--line); color: var(--muted); }
.as-trust a { color: var(--accent2); font-weight: 600; text-decoration: none; border-color: color-mix(in srgb, var(--accent2) 45%, var(--line)); }
.as-about { scroll-margin-top: 70px; }
.as-reveal { font: inherit; font-size: .78rem; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line); background: var(--soft2); color: var(--muted); cursor: pointer; }
.as-head .b3s { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .as-head .b3s { grid-template-columns: repeat(3, 1fr); } }
.b3 { position: relative; padding: 14px 14px 10px; border-radius: 16px; border: 1px solid color-mix(in srgb, #b8841f 45%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, #1f3a66 10%, var(--card)), var(--card)); }
.b3 small { display: block; color: var(--muted); font-size: .76rem; }
.b3 > b { display: block; font: 700 1.35rem/1.2 var(--fh), sans-serif; color: var(--accent2); margin-top: 2px; }
.b3-en { display: block; font-size: .8rem; color: var(--muted); }
.b3-g { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  font: 600 1.25rem/1 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Noto Sans Symbols', serif; color: #ffe9a8; background: radial-gradient(circle at 35% 30%, #2a4a85, #0b1733); border: 1px solid #e9c46a; }
.b3 p { margin: .5em 0 0; }
.b3-off { opacity: .75; }
.warnline { color: var(--bad); margin: .5em 0 0; }

.as-chart h3 { margin-bottom: 4px; }
.aw-box { max-width: 460px; margin: 6px auto 0; }
@media (max-width: 480px) { .aw-box { margin: 6px -12px 0; } } /* มือถือ: ให้ผังกว้างเต็มการ์ด */
.aw { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 22px rgba(10, 20, 50, .35)); }
.aw text { dominant-baseline: central; text-anchor: middle; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'IBM Plex Sans Thai', serif; }
.aw .aw-sg { font-size: 15px; font-weight: 600; }
.aw .aw-hn { font-size: 10px; fill: #e9c46a; fill-opacity: .8; font-family: 'Chakra Petch', sans-serif; }
.aw .aw-ax { font-size: 10px; font-weight: 700; fill: #ffd978; font-family: 'Chakra Petch', sans-serif; }
.aw .aw-pg { font-size: 18px; fill: #fff4d6; pointer-events: none; }
.aw .aw-pd { font-size: 10.5px; font-weight: 600; font-family: 'Chakra Petch', sans-serif; pointer-events: none; }
.aw .aw-hit { fill: #fff4d6; fill-opacity: 0; stroke: #ffd978; stroke-opacity: 0; transition: fill-opacity .2s, stroke-opacity .2s; }
.aw .aw-p { cursor: pointer; outline: none; }
.aw .aw-p:hover .aw-hit, .aw .aw-p:focus-visible .aw-hit { fill-opacity: .12; stroke-opacity: .7; }
.aw .aw-p.on .aw-hit { fill-opacity: .2; stroke-opacity: 1; }
.aw-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 8px; color: var(--muted); }
.aw-legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.as-pick { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft2); min-height: 44px; }
.pg { font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Noto Sans Symbols', serif; color: var(--accent2); font-weight: 600; }

.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.as-tab { width: 100%; border-collapse: collapse; font-size: .9rem; }
.as-tab th, .as-tab td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.as-tab th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.as-tab td:nth-child(2) { white-space: nowrap; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .72rem; border: 1px solid var(--line); white-space: nowrap; }
.tag.rx { color: var(--bad); border-color: currentColor; }
.tag.dg-dom, .tag.dg-ex { color: var(--good); border-color: currentColor; }
.tag.dg-det, .tag.dg-fall { color: var(--muted); }

.as-bal { display: grid; grid-template-columns: 1fr; gap: 6px 20px; }
@media (min-width: 560px) { .as-bal { grid-template-columns: 1fr 1fr; } }
.as-bar { display: grid; grid-template-columns: 7.2em 1fr 1.6em; align-items: center; gap: 8px; font-size: .85rem; margin: 4px 0; }
.as-bar i { height: 10px; border-radius: 6px; background: var(--soft2); overflow: hidden; }
.as-bar em { display: block; height: 100%; border-radius: 6px; }
.as-bar b { text-align: right; }
.as-list { padding-left: 1.1em; margin: .4em 0; }
.as-list li { margin: 0 0 .7em; }
.pdet { padding: 10px 0; border-bottom: 1px dashed var(--line); scroll-margin-top: 80px; transition: background .4s; border-radius: 8px; }
.pdet:last-child { border-bottom: 0; }
.pdet h4 { margin: 0; }
.pdet p { margin: .25em 0; }
.pdet.flash { background: var(--soft2); }
.as-sub { margin: 18px 0 2px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--accent2); }

.ag-wrap { overflow-x: auto; }
.ag { border-collapse: collapse; margin: 6px 0; font-size: .8rem; }
.ag th, .ag td { width: 30px; height: 30px; text-align: center; border: 1px solid var(--line); padding: 0; }
.ag th { font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Noto Sans Symbols', serif; color: var(--accent2); border: 0; font-size: .9rem; }
.ag td b { display: block; font: 600 .95rem/1 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Noto Sans Symbols', serif; }
.ag td small { display: block; font-size: .6rem; color: var(--muted); line-height: 1; }
.ag tr:last-child th { border: 0; }

.as-about summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.as-about summary::-webkit-details-marker { display: none; }
.as-about summary::after { content: '▾'; color: var(--accent2); transition: transform .2s; }
.as-about[open] summary::after { transform: rotate(180deg); }
.as-about h3 { margin: 1.1em 0 .4em; font-size: 1.02rem; }
.as-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 640px) { .as-parts { grid-template-columns: repeat(4, 1fr); } }
.as-part { padding: 10px; border-radius: 12px; background: var(--soft2); }
.as-part span { font-size: 1.3rem; } .as-part b { display: block; } .as-part small { color: var(--muted); font-size: .76rem; }
.as-time { padding-left: 1.2em; margin: 0; }
.as-time li { margin: 0 0 .6em; }
.as-method li, .as-refs li { margin: 0 0 .4em; }
@media print { .as-about { display: none; } }

/* ---------- Relocation Chart (ถ้าย้ายไปอยู่…) ---------- */
.rl-card { border-color: color-mix(in srgb, #b8841f 40%, var(--line)); scroll-margin-top: 70px; transition: box-shadow .4s; }
.rl-card.flash { box-shadow: 0 0 0 3px color-mix(in srgb, #e9c46a 70%, transparent); }
.rl-teaser { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, #b8841f 55%, var(--line)); background: var(--soft2); }
.rl-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 12px; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  color: var(--accent2); border: 1px solid color-mix(in srgb, #b8841f 55%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, #e9c46a 16%, var(--card)), var(--card)); }
.rl-jump:hover { box-shadow: 0 2px 10px rgba(184, 132, 31, .25); }
.rl-go-wrap { display: flex; align-items: flex-end; }
.rl-go-wrap .btn { margin: 0 0 2px; }
.rl-xy[hidden] { display: none; }
.rl-fun { margin-top: 14px; }
.rl-hero { position: relative; padding: 16px 16px 12px 76px; border-radius: 18px; border: 1px solid color-mix(in srgb, #b8841f 50%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, #1f3a66 14%, var(--card)), var(--card) 70%); }
.rl-emo { position: absolute; left: 14px; top: 16px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d6, #f1d58a); border: 1px solid #e9c46a; }
.rl-hero small { display: block; color: var(--muted); font-size: .8rem; }
.rl-hero > b { display: block; font: 700 1.35rem/1.25 var(--fh), sans-serif; color: var(--accent2); margin: 2px 0; }
.rl-hero p { margin: .35em 0; }
.rl-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 10px 0 4px; }
@media (min-width: 560px) { .rl-tiles { grid-template-columns: 1.4fr 1fr; } }
.rl-tile { padding: 12px 14px; border-radius: 14px; background: var(--soft2); border: 1px solid var(--line); }
.rl-tile > small { display: block; color: var(--muted); font-size: .76rem; margin-bottom: 4px; }
.rl-theme { display: grid; grid-template-columns: 1.8em 1fr; column-gap: 6px; margin: 4px 0; }
.rl-theme span { grid-row: span 2; font-size: 1.3rem; line-height: 1.4; }
.rl-theme em { font-style: normal; color: var(--muted); }
.rl-lv { display: block; font: 700 1.15rem/1.3 var(--fh), sans-serif; color: var(--accent2); }
.rl-meter { display: block; height: 10px; margin: 8px 0 4px; border-radius: 6px; background: var(--card); overflow: hidden; border: 1px solid var(--line); }
.rl-meter em { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #e9c46a, #b8841f); }
.rl-list { padding-left: 1.1em; margin: .4em 0 12px; }
.rl-list li { margin: 0 0 .5em; }
.rl-gate { margin-top: 16px; padding: 14px 16px; border-radius: 16px; border: 1px dashed color-mix(in srgb, #b8841f 60%, var(--line)); background: var(--soft2); }
.rl-gate h4 { margin: 0 0 6px; }
.rl-consent { padding-left: 1.2em; margin: .3em 0 .8em; }
.rl-consent li { margin: 0 0 .35em; }
.rl-gate .btn { margin-top: 10px; }
.rl-gate .btn:disabled { opacity: .45; cursor: not-allowed; }
.rl-serious { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.rl-serious h4 { margin: 18px 0 6px; color: var(--accent2); }
.rl-serious .rl-ok { margin: 0; }
.as-tab tr.rl-mv td { background: color-mix(in srgb, #e9c46a 12%, transparent); }
.rl-arrow { color: #b8841f; font-size: .6rem; vertical-align: middle; }
.rl-strong { color: var(--bad); }
.rl-means li { margin-bottom: .55em; }

/* ---------- แผนที่เส้นดาว (Astro*Carto*Graphy) · js/acg-map.js ---------- */
.rl-h { margin: 14px 0 6px; }
.acg-zoom { margin: 4px 0 8px; }
.acg-box { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, #b8841f 50%, var(--line)); background: #0b1a33; }
.acg-svg { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; --acg-fs: 4.6px; }
.acg-sea { fill: #0b1a33; }
.acg-grid { stroke: #ffffff; stroke-opacity: .07; fill: none; vector-effect: non-scaling-stroke; stroke-width: .6; }
.acg-land { fill: #26436b; stroke: #6f93c2; stroke-opacity: .55; stroke-width: .5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.acg-l path { fill: none; stroke-width: 1.7; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .92; }
.acg-lab { font: 700 var(--acg-fs) 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Chakra Petch', sans-serif; text-anchor: middle; dominant-baseline: hanging;
  paint-order: stroke; stroke: #0b1a33; stroke-width: .6; stroke-opacity: .9; pointer-events: none; }
.acg-cities circle { fill: #fff4d6; stroke: #0b1a33; stroke-width: .8; vector-effect: non-scaling-stroke; cursor: pointer; }
.acg-cities circle:hover { fill: #ffd978; }
.acg-pin[hidden] { display: none; }
.acg-pin circle:first-child { fill: #ffd978; fill-opacity: .25; stroke: #ffd978; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.acg-pin circle:last-child { fill: #ffd978; }
.acg-load { position: absolute; left: 10px; bottom: 8px; color: #cfd8e6; }
.acg-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.acg-k { font: inherit; font-size: .78rem; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--soft2); color: var(--ink, inherit); }
.acg-k i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.acg-k:not(.on) { opacity: .45; text-decoration: line-through; }
.acg-note { margin: 6px 0 0; }
.acg-spot { margin-top: 8px; }
.acg-near { list-style: none; padding: 0; margin: .5em 0; }
.acg-near li { margin: 0 0 .6em; padding-left: 16px; position: relative; }
.acg-dot { position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; }
.acg-ser { display: inline-block; margin-top: 2px; color: var(--muted); }
.acg-rel { margin-top: 6px; }

/* ---------- ดาวจรวันนี้ (Transits) ---------- */
.tr-card { scroll-margin-top: 70px; border-color: color-mix(in srgb, #b8841f 40%, var(--line)); }
.tr-card h3 { margin-bottom: 6px; }
.tr-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tr-nav b { min-width: 9.5em; text-align: center; }
.tr-nav .chip { margin: 0; }
.tr-tone { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, #b8841f 45%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, #1f3a66 12%, var(--card)), var(--card) 75%); }
.tr-emo { font-size: 2.2rem; line-height: 1; }
.tr-tone small { display: block; color: var(--muted); font-size: .76rem; }
.tr-tone b { display: block; font: 700 1.25rem/1.25 var(--fh), sans-serif; color: var(--accent2); }
.tr-tone p { margin: .2em 0 0; }
.tr-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0; }
.tr-day { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--soft2); color: inherit; min-width: 0; }
.tr-day small { font-size: .68rem; color: var(--muted); }
.tr-day span { font-size: 1.15rem; line-height: 1.2; }
.tr-day b { font-size: .8rem; }
.tr-day.on { border-color: var(--accent2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent2) 35%, transparent); }
.tr-day.today b { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }
.tr-moon { padding: 10px 12px; border-radius: 12px; background: var(--soft2); margin: 0 0 6px; }
.tr-card h4 { margin: 14px 0 4px; }
.tr-list { list-style: none; padding: 0; margin: .3em 0; }
.tr-it { padding: 8px 10px 8px 12px; margin: 0 0 8px; border-radius: 12px; border-left: 4px solid var(--line); background: color-mix(in srgb, var(--soft2) 70%, transparent); }
.tr-it.ok { border-left-color: #4caf7a; }
.tr-it.hard { border-left-color: #e0685a; }
.tr-it.cj { border-left-color: #d4a73a; }
.tr-tip { color: var(--muted); }
.tr-about { margin: 12px 0 6px; }
.tr-about summary { cursor: pointer; }
.today-card.tr-today { grid-column: 1 / -1; }
.tr-more { color: var(--accent2); font-weight: 600; }
