/* BirthChartMaker: midnight navy, parchment and brass. */
:root {
  --ink: #1f2240; --muted: #5d5f7a; --navy: #141a3c; --navy2: #232c62; --gold: #b8892f; --gold2: #f3e7c6; --plum: #6b3f7a; --plum2: #f1e9f5;
  --paper: #faf7f0; --card: #fffdf8; --line: #e1dbcc; --link: #3b3f9a; --warn: #8a4a12; --warnbg: #fdf1dc;
  --r: 14px; --shadow: 0 1px 2px rgba(20, 26, 60, .07), 0 6px 18px rgba(20, 26, 60, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--plum); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-weight: 600; }
h1 { font-size: clamp(1.65rem, 5vw, 2.5rem); margin: .3rem 0 .5rem; letter-spacing: -.3px; }
h2 { font-size: 1.35rem; margin: 0 0 .7rem; }
h3 { font-size: 1.08rem; margin: 1.2rem 0 .45rem; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.gl { font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "Apple Symbols", "DejaVu Sans", sans-serif; font-variant-emoji: text; }

/* header */
.top { background: var(--navy) radial-gradient(circle at 12% 30%, rgba(255,255,255,.5) 0 1px, transparent 1.5px) 0 0/90px 70px, radial-gradient(circle at 60% 70%, rgba(255,255,255,.35) 0 1px, transparent 1.5px) 0 0/130px 90px; background-color: var(--navy); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: Georgia, serif; font-size: 1.2rem; }
.brand b { color: #e9c975; font-weight: 600; }
.top nav { display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: .9rem; }
.top nav a { color: #d9dcf3; text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.top nav a:hover, .top nav a[aria-current] { background: var(--navy2); color: #fff; }

main.wrap { padding-bottom: 32px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.lede { font-size: 1.07rem; color: #393c5c; max-width: 780px; margin: 0 0 18px; }

/* panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0 0 18px; box-shadow: var(--shadow); min-width: 0; }
.tool-panel { border-top: 5px solid var(--gold); }
.note { font-size: .88rem; color: var(--muted); }
.big { font-size: 1.08rem; }
.by { display: block; font-size: .8rem; color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; line-height: 1.3; padding: 1px 7px; border-radius: 99px; background: var(--plum2); color: var(--plum); white-space: nowrap; }
.warn { background: var(--warnbg); color: var(--warn); border-radius: 8px; padding: 8px 12px; font-size: .92rem; }
.err { background: #fde3e0; color: #8f2318; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; }

/* forms */
.bf .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.bf label, .bf .field > span { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; font-weight: 600; color: var(--navy); min-width: 0; }
.bf .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.bf input, .bf select { font: inherit; font-weight: 400; color: var(--ink); width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #bdb6a3; border-radius: 9px; background: #fff; }
.bf input[type=checkbox] { width: auto; }
.bf input:focus, .bf select:focus { outline: 3px solid rgba(184, 137, 47, .35); border-color: var(--gold); }
.bf input:disabled { background: #f1efe8; color: #999; }
.bf fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 2px; margin: 0 0 12px; min-width: 0; }
.bf legend { font-weight: 700; color: var(--plum); padding: 0 4px; }
.field { position: relative; min-width: 0; }
.place { grid-column: span 2; }
@media (max-width: 420px) { .place { grid-column: auto; } }
.sugg { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #bdb6a3; border-radius: 9px; box-shadow: var(--shadow); max-height: 300px; overflow-y: auto; }
.sugg li { padding: 7px 12px; cursor: pointer; font-size: .92rem; }
.sugg li[aria-selected], .sugg li:hover { background: var(--gold2); }
.sugg li.none { color: var(--muted); cursor: default; }
.pinfo { display: block; font-size: .78rem; color: var(--muted); min-height: 1.1em; font-weight: 400; }
.manual { font-size: .88rem; margin: -4px 0 12px; }
.manual summary { cursor: pointer; color: var(--link); }
.manual .grid { margin-top: 8px; }
.go { font: inherit; font-weight: 700; padding: 11px 22px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; cursor: pointer; }
.go:hover { background: var(--plum); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.share { font: inherit; font-size: .88rem; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--navy2); background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; }
.share:hover { background: var(--gold2); }

/* results */
.out { margin-top: 16px; min-width: 0; }
.out.example { position: relative; }
.exlabel { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--plum); background: var(--plum2); border-radius: 99px; padding: 2px 10px; margin-bottom: 6px; }
.rh { margin-top: .4rem; }
.bline { font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.hero { background: var(--navy); color: #fff; border-radius: 12px; padding: 16px 18px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.hero span { font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: #c9cdf0; }
.hero b { font-family: Georgia, serif; font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 600; color: #f1d58c; line-height: 1.2; }
.hero small { color: #dfe2f7; font-size: .88rem; }
.hero .amp { color: #fff; font-size: .8em; }
.tone { align-self: flex-start; margin-top: 6px; text-transform: capitalize !important; background: rgba(255,255,255,.14); border-radius: 99px; padding: 1px 10px; letter-spacing: 0 !important; color: #fff !important; }
.big3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 14px; }
.b3 { background: var(--gold2); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.b3x { background: #eeeaf3; }
.b3l { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .5px; color: var(--plum); font-weight: 700; }
.b3 b { display: block; font-family: Georgia, serif; font-size: 1.3rem; color: var(--navy); line-height: 1.3; }
.b3 small { display: block; font-size: .8rem; color: var(--muted); }
.b3 p { margin: .4rem 0 0; font-size: .92rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 10px 0; }
.chartgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .chartgrid { grid-template-columns: minmax(0, 1fr); } }
.wheelbox { text-align: center; min-width: 0; }
.wheel, .si { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; }
.wheel text { font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "Apple Symbols", "DejaVu Sans", sans-serif; text-anchor: middle; dominant-baseline: central; }
.wz { font-size: 17px; } .wp { font-size: 17px; fill: #141a3c; } .wp2 { fill: #6b3f7a; } .wr { font-size: 8px; fill: #8f2318; font-style: italic; } .wn { font-size: 9px; fill: #8a86a8; } .wa { font-size: 9px; font-weight: 700; fill: #b8892f; font-family: system-ui, sans-serif !important; }
.si text { font-family: system-ui, sans-serif; } .sis { font-size: 9px; fill: #8a86a8; } .sip { font-size: 13px; font-weight: 600; fill: #141a3c; } .sia { fill: #b8892f; } .sic { font-size: 14px; text-anchor: middle; fill: #232c62; font-family: Georgia, serif !important; } .sic.sm { font-size: 10px; fill: #8a86a8; }
.legend { font-size: .8rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 4px; }
.lg-t::before { border-color: #2f6fb0; } .lg-x::before { border-color: #2f9a8a; border-top-style: dashed; } .lg-s::before { border-color: #c2412d; }
.angles { font-size: .92rem; }
.asp { white-space: nowrap; font-size: .85rem; color: var(--muted); }
.asp-trine, .asp-sextile { color: #2f6fb0; } .asp-square, .asp-opposition { color: #c2412d; }
.calcline { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; background: #f4f1ea; border-radius: 8px; padding: 8px 10px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--navy); margin: 10px 0; }

/* tables */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 12px; max-width: 100%; }
table.ref { border-collapse: collapse; width: 100%; font-size: .88rem; }
table.ref th, table.ref td { text-align: left; vertical-align: top; padding: 7px 9px; border-bottom: 1px solid #eee8da; }
table.ref thead th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
table.ref tbody th { font-weight: 600; color: var(--navy); }
table.ref tbody tr:nth-child(even) { background: #f9f5ec; }
table.ref .gl { color: var(--plum); }

/* lists */
.dl { list-style: none; padding: 0; margin: 0 0 12px; }
.dl li { display: grid; grid-template-columns: minmax(110px, 190px) 1fr; gap: 4px 14px; padding: 9px 0; border-top: 1px solid #eee8da; }
.dl li b { color: var(--navy); }
.dl li span { min-width: 0; }
.dl em { display: block; font-style: normal; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.plain { padding-left: 1.2rem; margin: .3rem 0 .8rem; }
.plain li { margin: .3rem 0; }
.faq details { border-top: 1px solid #eee8da; padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: .5rem 0 0; }
.links { list-style: none; padding: 0; margin: .3rem 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.prose p, .prose li { max-width: 780px; }
.srcs { padding-left: 1.2rem; font-size: .9rem; }
.srcs li { margin: .35rem 0; }
.signgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.signgrid a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.signgrid a:hover { border-color: var(--gold); }
.signgrid b { display: block; color: var(--navy); font-family: Georgia, serif; }
.signgrid small { color: var(--muted); }
.signgrid .gl { font-size: 1.4rem; color: var(--plum); float: right; }
.formula { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; background: #f4f1ea; border-radius: 8px; padding: 8px 10px; overflow-x: auto; white-space: pre-wrap; }

/* shop cards */
.shop { border-top: 5px solid var(--plum); }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.pimg { display: flex; justify-content: center; padding: 10px; background: #f6f3fa; }
.pimg img { width: 96px; height: 96px; }
.pbody { padding: 8px 10px 10px; font-size: .85rem; line-height: 1.4; }
.pbody b { display: block; color: var(--navy); font-size: .92rem; margin-bottom: 2px; }
.pbody span { color: var(--muted); }
.pbody em { display: block; margin-top: 6px; font-style: normal; font-weight: 600; color: var(--plum); }

/* footer */
footer { background: var(--navy); color: #cdd0ea; font-size: .88rem; padding: 26px 0 18px; }
footer a { color: #eef0ff; }
footer b { color: #f1d58c; display: block; margin-bottom: 4px; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 12px; }
footer .links { flex-direction: column; gap: 3px; }

@media (max-width: 560px) {
  .panel { padding: 14px 12px; }
  .wrap { padding: 0 12px; }
  .dl li { grid-template-columns: 1fr; }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pimg img { width: 72px; height: 72px; }
  .top nav { font-size: .82rem; }
  .bf .grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .top nav, .shop, footer, .tools, .bf { display: none; }
  body { background: #fff; }
  .panel { box-shadow: none; border-color: #bbb; }
}
