/* VastuIQ – Vastu Score & Compass. GPLv2 or later. Fonts: Marcellus and Mukta, SIL Open Font License (assets/fonts). */
@font-face { font-family: "VastuIQ Marcellus"; src: url(../fonts/Marcellus-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VastuIQ Mukta"; src: url(../fonts/Mukta-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VastuIQ Mukta"; src: url(../fonts/Mukta-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "VastuIQ Mukta"; src: url(../fonts/Mukta-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

.vastuiq {
	--viq-ink: #2b2222;
	--viq-muted: #5f534e;
	--viq-soft: #6b5f5a;
	--viq-line: #e4d3b4;
	--viq-line2: #efe3cc;
	--viq-bg: #fffbf4;
	--viq-bg2: #fbf3e4;
	--viq-page: #fff6e6;
	--viq-maroon: #7a1f2b;
	--viq-deep: #4e0f1a;
	--viq-gold: #b8892f;
	--viq-gold-ink: #8a5a1e;
	--viq-green: #2e6b4f;
	--viq-wa: #1f7a4d;
	--viq-display: "VastuIQ Marcellus", Georgia, serif;
	--viq-body: "VastuIQ Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--viq-ink);
	font-family: var(--viq-body);
	font-size: 16px;
	line-height: 1.45;
	box-sizing: border-box;
	margin: 1.6em 0;
}
.vastuiq *, .vastuiq *::before, .vastuiq *::after { box-sizing: inherit; }
.vastuiq--neutral {
	--viq-ink: inherit;
	--viq-muted: inherit;
	--viq-soft: inherit;
	--viq-line: rgba(127, 127, 127, .28);
	--viq-line2: rgba(127, 127, 127, .18);
	--viq-bg: transparent;
	--viq-bg2: rgba(127, 127, 127, .06);
	--viq-page: transparent;
	--viq-maroon: currentColor;
	--viq-deep: inherit;
	--viq-gold: rgba(127, 127, 127, .55);
	--viq-gold-ink: inherit;
	--viq-display: inherit;
	--viq-body: inherit;
	font-size: inherit;
}
.vastuiq p { margin: 0; }
.vastuiq a { color: var(--viq-maroon); }
.vastuiq-auto > .vastuiq { margin: 1.2em 0; }
.vastuiq-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* card */
.vastuiq-card {
	position: relative;
	overflow: hidden;
	max-width: 720px;
	border-radius: 18px;
	background: var(--viq-bg);
	border: 1px solid var(--viq-line);
	box-shadow: 0 10px 30px rgba(78, 15, 26, .08);
}
.vastuiq--neutral.vastuiq-card { box-shadow: none; }
.vastuiq-mandala { position: absolute; right: -110px; top: -120px; width: 340px; height: 340px; color: var(--viq-gold); opacity: .14; pointer-events: none; }
.vastuiq-head { position: relative; padding: 24px 28px 16px; border-bottom: 1px solid var(--viq-line2); }
.vastuiq-eyebrow, .vastuiq-label { font-size: 12px; letter-spacing: .15em; font-weight: 600; color: var(--viq-gold-ink); text-transform: uppercase; }
.vastuiq-name { font-family: var(--viq-display); font-size: 28px; line-height: 1.15; color: var(--viq-deep); margin-top: 4px !important; overflow-wrap: anywhere; }
.vastuiq-sub { font-size: 15px; color: var(--viq-muted); margin-top: 2px !important; }
.vastuiq-body { position: relative; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; padding: 20px 28px; }
.vastuiq-score { flex: 0 0 180px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin: 0 auto; }
.vastuiq-detail { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.vastuiq-dial { width: 180px; height: 180px; }
.vastuiq-dial-face { fill: var(--viq-page); stroke: var(--viq-line); }
.vastuiq-dial-ticks line { stroke: var(--viq-gold); stroke-width: 2; stroke-linecap: round; }
.vastuiq-dial-track { fill: none; stroke: #eadcc3; stroke-width: 12; }
.vastuiq--neutral .vastuiq-dial-track { stroke: rgba(127, 127, 127, .2); }
.vastuiq-dial-arc { fill: none; stroke-width: 12; stroke-linecap: round; }
.vastuiq-dial-ticks .vastuiq-dial-north { stroke: var(--viq-maroon); stroke-width: 3; }
.vastuiq-dial-num { font: 400 50px var(--viq-display); fill: var(--viq-ink); }
.vastuiq--neutral .vastuiq-dial-num { fill: currentColor; }
.vastuiq-dial-of { font: 400 12px var(--viq-body); fill: var(--viq-soft); }
.vastuiq-band { font-family: var(--viq-display); font-size: 23px; line-height: 1.2; }
.vastuiq-band-hl { color: var(--viq-deep); font-size: 20px; }
.vastuiq-cap { font-size: 13px; color: #9a3226; max-width: 180px; }
.vastuiq-emblem { width: 150px; height: 150px; color: var(--viq-gold); }
.vastuiq-emblem circle:first-child { fill: var(--viq-page); }
.vastuiq-mandala-num { font: 400 40px var(--viq-display); fill: var(--viq-deep); stroke: none; }
.vastuiq-strengths, .vastuiq-majors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vastuiq-strengths li, .vastuiq-majors li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.35; margin: 0; }
.vastuiq-strengths .vastuiq-ico { color: var(--viq-green); width: 22px; height: 22px; margin-top: 1px; }
.vastuiq-strengths strong { font-weight: 600; display: block; }
.vastuiq-note { display: block; color: var(--viq-soft); font-size: 14px; }
.vastuiq-label-warn { color: #9a3226; margin-top: 4px; }
.vastuiq-majors .vastuiq-ico { color: #b03a2e; width: 20px; height: 20px; margin-top: 2px; }
.vastuiq-maplink { font-size: 15px; font-weight: 600; text-decoration: none; }
.vastuiq-maplink:hover { text-decoration: underline; }
.vastuiq-factors { border-top: 1px solid var(--viq-line2); padding-top: 8px; font-size: 15px; }
.vastuiq-factors summary { cursor: pointer; font-weight: 600; color: var(--viq-maroon); padding: 6px 0; }
.vastuiq-factors ul { list-style: none; margin: 0; padding: 0; }
.vastuiq-factors li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 2.4em; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--viq-line); margin: 0; }
.vastuiq-f-label { font-weight: 600; }
.vastuiq-f-answer { color: var(--viq-soft); }
.vastuiq-f-score { text-align: right; font-weight: 700; }

/* footer and share */
.vastuiq-foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; padding: 12px 28px; background: var(--viq-bg2); border-top: 1px solid var(--viq-line2); }
.vastuiq-trust { font-size: 14px; color: var(--viq-soft); }
.vastuiq-trust strong { color: var(--viq-maroon); font-weight: 600; }
.vastuiq-verified { display: inline-flex; align-items: center; gap: 6px; color: var(--viq-green); font-weight: 600; }
.vastuiq-verified a { color: var(--viq-green); }
.vastuiq-share { position: relative; display: flex; gap: 8px; align-items: center; }
.vastuiq-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.vastuiq a.vastuiq-btn-wa, .vastuiq-btn-wa { background: var(--viq-wa); color: #fff; }
.vastuiq a.vastuiq-btn-wa:hover { background: #17633e; color: #fff; }
.vastuiq-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid #d9c6a3; background: #fff; color: var(--viq-maroon); cursor: pointer; }
.vastuiq--neutral .vastuiq-icon-btn { background: transparent; border-color: currentColor; color: inherit; }
.vastuiq-icon-btn:hover, .vastuiq-icon-btn[aria-expanded="true"] { background: var(--viq-bg2); }
.vastuiq-icon-btn:focus-visible, .vastuiq-btn:focus-visible, .vastuiq-panel a:focus-visible, .vastuiq-panel button:focus-visible { outline: 3px solid var(--viq-gold); outline-offset: 2px; }
.vastuiq-panel { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20; min-width: 230px; display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--viq-line); box-shadow: 0 12px 32px rgba(43, 34, 34, .18); }
.vastuiq-panel[hidden] { display: none; }
.vastuiq-panel a, .vastuiq-panel button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: #2b2222; font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.vastuiq-panel a:hover, .vastuiq-panel button:hover { background: #fbf3e4; }
.vastuiq-panel button[hidden] { display: none; }
.vastuiq-toast { position: absolute; right: 0; top: -34px; padding: 4px 10px; border-radius: 8px; background: #2b2222; color: #fff; font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.vastuiq-toast.is-on { opacity: 1; }
.vastuiq-request { flex-direction: column; align-items: flex-start; gap: 14px; }
.vastuiq-req-text { font-size: 16px; color: var(--viq-muted); }

/* compass direction map */
.vastuiq-map { max-width: 720px; padding: 20px 24px; border-radius: 18px; background: var(--viq-bg); border: 1px solid var(--viq-line); }
.vastuiq-map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.vastuiq-map-title { font-family: var(--viq-display); font-size: 22px; color: var(--viq-deep); }
.vastuiq-map-sub { font-size: 14px; color: var(--viq-soft); }
.vastuiq-map-wrap { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; }
.vastuiq-rosebox { position: relative; flex: 1 1 320px; max-width: 440px; aspect-ratio: 1 / 1; margin: 0 auto; container-type: inline-size; }
.vastuiq-rose-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vastuiq-rose-ring { fill: var(--viq-page); stroke: var(--viq-maroon); stroke-width: 2.5; }
.vastuiq-rose-core { fill: #f6ead3; stroke: #d9c6a3; stroke-width: 1.2; }
.vastuiq--neutral .vastuiq-rose-core { fill: rgba(127, 127, 127, .08); }
.vastuiq-rose-lines line { stroke: #e2cfac; stroke-width: 1.2; }
.vastuiq-rose-letters text { font: 700 13px var(--viq-body); fill: var(--viq-gold-ink); }
.vastuiq--neutral .vastuiq-rose-letters text { fill: currentColor; }
.vastuiq-rose-letters .vastuiq-rose-n { fill: var(--viq-maroon); font-size: 16px; }
.vastuiq-pin { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; max-width: 34%; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #d9c6a3; color: #2b2222; font-size: clamp(10px, 3.1cqi, 13px); font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vastuiq-pin i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.vastuiq-pin-door { background: var(--viq-deep); border-color: var(--viq-deep); color: #fff; }
.vastuiq--neutral .vastuiq-pin-door { background: #333; border-color: #333; }
.vastuiq-pin-warn { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: #b03a2e; color: #fff; font-size: .85em; }
.vastuiq-rooms { flex: 1 1 200px; list-style: none; margin: 0; padding: 0; }
.vastuiq-rooms li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--viq-line); font-size: 15px; margin: 0; }
.vastuiq-rooms strong { font-weight: 600; }
.vastuiq-room-score { font-weight: 700; }
.vastuiq-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--viq-soft); }
.vastuiq-legend span { display: inline-flex; align-items: center; gap: 5px; }
.vastuiq-legend i { width: 9px; height: 9px; border-radius: 50%; }

/* chip */
.vastuiq.vastuiq-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 11px 4px 5px; border-radius: 999px; background: #fffbf4; border: 1px solid #e4d3b4; font-size: 14px; font-weight: 700; line-height: 1.2; color: #2b2222; white-space: nowrap; }
.vastuiq-chip-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 12px; }
.vastuiq.vastuiq-chip-hl { padding-left: 8px; }
.vastuiq-chip-hl .vastuiq-ico { color: var(--viq-gold); width: 20px; height: 20px; }
.vastuiq.vastuiq-chip-verified { background: #eaf3ec; border-color: #b9d6c2; color: #1f5a3c; }

@media (max-width: 520px) {
	.vastuiq-head { padding: 20px 18px 14px; }
	.vastuiq-name { font-size: 24px; }
	.vastuiq-body { padding: 16px 18px; }
	.vastuiq-foot { padding: 12px 18px; }
	.vastuiq-map { padding: 16px; }
	.vastuiq-share { width: 100%; }
	.vastuiq-share .vastuiq-btn-wa { flex: 1 1 auto; justify-content: center; }
}

/* compass */
.vastuiq-compass { max-width: 360px; text-align: center; padding: 16px; border: 1px solid var(--viq-line); border-radius: 12px; background: var(--viq-bg); }
.vastuiq-compass .vastuiq-dial { position: relative; width: 240px; height: auto; max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.vastuiq-rose { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--viq-maroon); background: radial-gradient(circle, #fff 0 56%, rgba(184, 137, 47, .12) 57%); transition: transform .08s linear; }
.vastuiq--neutral .vastuiq-rose { background: none; }
.vastuiq-rose-l { position: absolute; inset: 0; display: block; transform: rotate(var(--vastuiq-r, 0deg)); }
.vastuiq-rose-l b { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); font: 700 15px/1 var(--viq-body); color: var(--viq-ink); }
.vastuiq-rose-l:first-child b { color: #b03a2e; font-size: 19px; }
.vastuiq-needle { position: absolute; left: 50%; top: 18%; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--viq-maroon); }
.vastuiq-needle::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--viq-gold); }
.vastuiq-readout { margin: 12px 0 8px; }
.vastuiq-heading { font: 700 2em/1.1 var(--viq-body); }
.vastuiq-zone { font-weight: 600; color: var(--viq-maroon); min-height: 1.4em; }
.vastuiq-decl, .vastuiq-note { font-size: .8em; color: var(--viq-muted); }
.vastuiq-start { font: inherit; font-weight: 700; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--viq-maroon); color: #fff; cursor: pointer; }
.vastuiq--neutral .vastuiq-start { color: inherit; background: transparent; border: 2px solid currentColor; }
.vastuiq-start[hidden] { display: none; }
.vastuiq-editor-note { padding: 12px; border: 1px dashed #c3c4c7; color: #646970; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .vastuiq-rose { transition: none; } }
