/**
 * Moodfex AstroCartography Calculator — premium card styling.
 * Palette: linden green #234236 / #52644d, soft gold #C8A96A, light paper ground.
 * Mobile-first single column; controlled grid on desktop. Shared field
 * normalization (heights, iOS date/time) comes from moodfex-calc-common.css.
 */

.mfx-acg { --acg-green:#234236; --acg-green2:#52644d; --acg-gold:#C8A96A;
	--acg-ink:#3a5347; --acg-line:rgba(200,169,106,.45); --acg-paper:#fffdf7;
	max-width: 900px; margin: 0 auto; color: var(--acg-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.mfx-acg__card { background: linear-gradient(180deg,#ffffff, #fffdf7);
	border: 1px solid var(--acg-line); border-radius: 26px; padding: 34px 30px;
	box-shadow: 0 18px 46px rgba(35,66,54,.09); }

.mfx-acg__title { font-size: 30px; font-weight: 700; color: var(--acg-green);
	margin: 0 0 8px; letter-spacing: .01em; }
.mfx-acg__lead { font-size: 16px; line-height: 1.55; margin: 0 0 26px; color: var(--acg-green2); }

/* ---- Form ---- */
.mfx-acg__form { display: block; }
.mfx-acg__field { margin-bottom: 18px; }
.mfx-acg__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mfx-acg__label { display: block; font-weight: 600; font-size: 14px; color: var(--acg-green);
	margin-bottom: 7px; letter-spacing: .01em; }
.mfx-acg__opt { font-weight: 400; color: #9a8f7a; font-size: 13px; }
.mfx-acg__input { width: 100%; box-sizing: border-box; border: 1px solid rgba(35,66,54,.22);
	border-radius: 14px; padding: 12px 14px; font-size: 16px; color: var(--acg-green);
	background: #fff; transition: border-color .15s, box-shadow .15s; }
.mfx-acg__input:focus { outline: none; border-color: var(--acg-gold);
	box-shadow: 0 0 0 3px rgba(200,169,106,.18); }
.mfx-acg__check { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
	font-size: 14px; color: var(--acg-green2); cursor: pointer; }
.mfx-acg__hint { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #aa8f58;
	background: rgba(200,169,106,.10); border-left: 3px solid var(--acg-gold);
	padding: 10px 12px; border-radius: 8px; }
.mfx-acg__error { color: #b0402f; font-size: 14px; min-height: 20px; margin: 6px 0 0; }
.mfx-acg__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.mfx-acg__btn { appearance: none; border: 0; border-radius: 999px; padding: 13px 26px;
	font-size: 15px; font-weight: 600; cursor: pointer; min-height: 48px; letter-spacing: .01em;
	display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.mfx-acg__btn--primary { background: linear-gradient(180deg,#2c4f40,#234236); color: #fff;
	box-shadow: 0 10px 22px rgba(35,66,54,.22); }
.mfx-acg__btn--primary:hover { filter: brightness(1.06); }
.mfx-acg__btn--ghost { background: transparent; color: var(--acg-green);
	border: 1px solid rgba(35,66,54,.28); }
.mfx-acg__btn:disabled { opacity: .6; cursor: default; }
.mfx-acg__privacy { margin-top: 16px; font-size: 12.5px; color: #9a8f7a; }

/* ---- Result ---- */
.mfx-acg__result { margin-top: 12px; }
.mfx-acg__loading { text-align: center; padding: 26px; font-size: 15px; color: var(--acg-green2); }
.mfx-acg__block { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(200,169,106,.28); }
.mfx-acg__block:first-child { border-top: 0; padding-top: 0; }
.mfx-acg__block-title { font-size: 20px; font-weight: 700; color: var(--acg-green); margin: 0 0 6px; }
.mfx-acg__block-intro { font-size: 14.5px; line-height: 1.55; color: var(--acg-green2); margin: 0 0 16px; }

/* Map + filters */
.mfx-acg__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mfx-acg__chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
	border-radius: 999px; border: 1px solid rgba(35,66,54,.18); background: #fff;
	font-size: 13px; color: #6b7a70; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.mfx-acg__chip.is-on { opacity: 1; color: var(--acg-green); border-color: var(--acg-gold); }
.mfx-acg__chip-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mfx-acg__map { height: 460px; width: 100%; border-radius: 18px; overflow: hidden;
	border: 1px solid var(--acg-line); background: #eef1ee; }
.mfx-acg__map .leaflet-container { border-radius: 18px; font: inherit; }

/* Nearest line cards */
.mfx-acg__nearest { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.mfx-acg__line-card { position: relative; background: linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,253,247,.7));
	border: 1px solid var(--acg-line); border-radius: 16px; padding: 16px 16px 14px; }
.mfx-acg__line-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-bottom: 8px; }
.mfx-acg__line-name { font-size: 17px; font-weight: 700; color: var(--acg-green); }
.mfx-acg__line-dist { font-size: 13px; color: #aa8f58; margin-top: 4px; text-transform: capitalize; }
.mfx-acg__line-card.is-very-strong { border-color: #C8A96A; box-shadow: 0 6px 16px rgba(200,169,106,.18); }

/* Scores */
.mfx-acg__score-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.mfx-acg__score-label { width: 140px; font-size: 14px; font-weight: 600; color: var(--acg-green); }
.mfx-acg__score-track { flex: 1; height: 14px; background: rgba(35,66,54,.10); border-radius: 999px; overflow: hidden; }
.mfx-acg__score-fill { height: 100%; min-width: 6px; border-radius: 999px;
	background: linear-gradient(90deg,#52644d,#8C9A66 45%,#C8A96A); }
.mfx-acg__score-val { width: 40px; text-align: right; font-weight: 700; font-size: 15px; color: var(--acg-green2); }

/* Interpretation + tags */
.mfx-acg__interp { font-size: 15.5px; line-height: 1.65; color: var(--acg-ink); }
.mfx-acg__free-summary>p{max-width:72ch;font-size:16px;line-height:1.75;color:var(--acg-green2)}
.mfx-acg__free-section{margin-top:34px}
.mfx-acg__free-section>h4,.mfx-acg__free-guidance h4,.mfx-acg__free-actions h4{font-size:21px;color:var(--acg-green);margin:0 0 14px}
.mfx-acg__free-lines{display:grid;gap:16px}
.mfx-acg__free-lines article{padding:22px;border-radius:16px;background:#fbfaf5;border:1px solid var(--acg-line);min-width:0}
.mfx-acg__free-lines header,.mfx-acg__free-areas header{display:flex;justify-content:space-between;align-items:baseline;gap:14px}
.mfx-acg__free-lines h5,.mfx-acg__free-areas h5{font-size:18px;color:var(--acg-green);margin:0}
.mfx-acg__free-lines header span{font-size:13px;font-weight:700;color:#8b754c}
.mfx-acg__free-lines p{max-width:72ch;margin:10px 0;line-height:1.68;color:var(--acg-green2);overflow-wrap:anywhere}
.mfx-acg__free-areas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mfx-acg__free-areas article{padding:19px;border-radius:14px;background:#f2f5f1;min-width:0}
.mfx-acg__free-areas p{line-height:1.6;color:var(--acg-green2)}
.mfx-acg__free-areas .mfx-acg__level{font-weight:700;color:#8b754c;text-transform:capitalize}
.mfx-acg__evidence-list{margin:10px 0 0;padding-top:10px;border-top:1px solid rgba(35,66,54,.1);font-size:13.5px;list-style:none}
.mfx-acg__evidence-list li{margin:6px 0;line-height:1.55;color:var(--acg-green2)}
.mfx-acg__evidence-list strong{color:#8b754c}
.mfx-acg__free-guidance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:34px}
.mfx-acg__free-guidance section{min-width:0}
.mfx-acg__free-guidance li,.mfx-acg__free-actions li{margin:9px 0;line-height:1.65;color:var(--acg-green2)}
.mfx-acg__free-actions{margin-top:32px;padding:22px;border-radius:16px;background:#ece8dc}
.mfx-acg__free-method{margin-top:26px}
.mfx-acg__free-method p{max-width:72ch;line-height:1.65;color:var(--acg-green2)}
.mfx-acg__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.mfx-acg__tag { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.mfx-acg__tag.is-support { background: rgba(79,107,91,.12); color: #3c5a49; }
.mfx-acg__tag.is-caution { background: rgba(176,64,47,.10); color: #9a3a2b; }

/* Premium + comparison */
.mfx-acg__prem-city { padding: 14px 0; border-bottom: 1px dashed rgba(200,169,106,.35); }
.mfx-acg__prem-city h4 { margin: 0 0 6px; font-size: 17px; color: var(--acg-green); }
.mfx-acg__prem-line { margin: 0; font-size: 14px; color: var(--acg-green2); }
.mfx-acg__compare { margin-top: 16px; overflow-x: auto; }
.mfx-acg__compare table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.mfx-acg__compare th, .mfx-acg__compare td { padding: 9px 12px; text-align: center; border-bottom: 1px solid rgba(35,66,54,.10); }
.mfx-acg__compare th:first-child, .mfx-acg__compare td:first-child { text-align: left; font-weight: 600; color: var(--acg-green); }
.mfx-acg__compare thead th { color: #aa8f58; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.mfx-acg__premium{margin-top:40px;padding-top:34px;border-top:1px solid rgba(200,169,106,.35)}
.mfx-acg__premium-head{padding:clamp(24px,4vw,38px);border-radius:16px;background:#234236;color:#fff}
.mfx-acg__premium-head .mfx-acg__block-title{color:#fff;font-size:clamp(25px,4vw,38px)}
.mfx-acg__premium-head p{max-width:72ch;margin:12px 0 0;color:#dce6df;line-height:1.75}
.mfx-acg__premium-city{margin-top:44px}
.mfx-acg__premium-city>h3{font-size:clamp(25px,4vw,36px);color:var(--acg-green);margin:0 0 10px}
.mfx-acg__premium-city section{margin-top:36px}
.mfx-acg__premium-city h4{font-size:22px;color:var(--acg-green);margin:0 0 15px}
.mfx-acg__premium-overview,.mfx-acg__relocation-note{max-width:72ch;line-height:1.75;color:var(--acg-green2)}
.mfx-acg__relocation-note{padding:16px 18px;border-radius:12px;background:#edf2ee}
.mfx-acg__premium-lines{display:grid;gap:18px}
.mfx-acg__premium-line{padding:24px;border-radius:16px;background:#fbfaf5;border:1px solid var(--acg-line);min-width:0}
.mfx-acg__premium-line header,.mfx-acg__premium-categories header{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.mfx-acg__premium-line h5,.mfx-acg__premium-categories h5{font-size:18px;color:var(--acg-green);margin:0}
.mfx-acg__premium-line header span{font-size:13px;color:#8b754c;text-align:right}
.mfx-acg__premium-line p{max-width:72ch;line-height:1.68;color:var(--acg-green2);overflow-wrap:anywhere}
.mfx-acg__premium-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.mfx-acg__premium-categories article{padding:20px;border-radius:14px;background:#f3f5f1;min-width:0}
.mfx-acg__premium-categories p{line-height:1.6;color:var(--acg-green2)}
.mfx-acg__premium-categories .mfx-acg__level{font-weight:700;color:#8b754c;text-transform:capitalize}
.mfx-acg__evidence{padding-top:10px;border-top:1px solid rgba(35,66,54,.1);font-size:14px}
.mfx-acg__premium-guidance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.mfx-acg__premium-guidance li,.mfx-acg__premium-actions li{margin:10px 0;color:var(--acg-green2);line-height:1.6}
.mfx-acg__premium-actions{padding:24px;border-radius:16px;background:#ece8dc}
.mfx-acg__premium-city details{margin-top:30px}
.mfx-acg__premium-city details p{max-width:72ch;line-height:1.65;color:var(--acg-green2)}
.mfx-acg__table-wrap{overflow-x:auto}

/* CTA */
.mfx-acg__cta { margin-top: 30px; text-align: center; background: linear-gradient(180deg,#fbf7ee,#fffdf7);
	border: 1px solid var(--acg-line); border-radius: 20px; padding: 28px 24px; }
.mfx-acg__cta-title { font-size: 21px; color: var(--acg-green); margin: 0 0 8px; }
.mfx-acg__cta-text { font-size: 14.5px; line-height: 1.6; color: var(--acg-green2); margin: 0 auto 18px; max-width: 560px; }

/* ---- Fix the page's calculator box overflow on tablet/mobile (sitewide popup .mfx-box class collision) ---- */
@media (max-width: 800px) {
	.mfx-wrap > .mfx-box {
		min-width: 0 !important;
		max-width: 100% !important;
		width: auto !important;
	}
}

@media (max-width: 620px) {
	.mfx-acg__card { padding: 24px 18px; border-radius: 20px; }
	.mfx-acg__row { grid-template-columns: 1fr; }
	.mfx-acg__map { height: 340px; }
	.mfx-acg__score-label { width: 110px; font-size: 13px; }
	.mfx-acg__title { font-size: 25px; }
	.mfx-acg__premium-categories,.mfx-acg__premium-guidance{grid-template-columns:1fr}
	.mfx-acg__free-areas,.mfx-acg__free-guidance{grid-template-columns:1fr}
	.mfx-acg__free-lines article{padding:18px}
	.mfx-acg__premium-line{padding:19px}
	.mfx-acg__premium-line header{display:grid;gap:5px}
	.mfx-acg__premium-line header span{text-align:left}
}

/* Best places by life area */
.mfx-acg__best{display:flex;flex-direction:column;gap:16px;}
.mfx-acg__best-cat{padding:16px 18px;background:#fbfcfa;border:1px solid #edf2e9;border-radius:14px;}
.mfx-acg__best-cat-title{margin:0 0 3px;font-size:16px;font-weight:700;color:#4a3fb0;}
.mfx-acg__best-cat-desc{margin:0 0 10px;font-size:13px;color:#7c7594;line-height:1.45;}
.mfx-acg__best-list{margin:0;padding:0;list-style:none;counter-reset:bl;display:flex;flex-direction:column;gap:7px;}
.mfx-acg__best-item{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;counter-increment:bl;}
.mfx-acg__best-item::before{content:counter(bl);flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:#52644d;color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;}
.mfx-acg__best-city{font-weight:600;color:#2b3527;font-size:14.5px;}
.mfx-acg__best-score{font-size:12.5px;font-weight:700;color:#52644d;}
.mfx-acg__best-line{flex-basis:100%;padding-left:28px;font-size:12.5px;color:#687066;}

.mfx-acg__preview{width:100%;max-width:340px;margin:0 auto;}
.mfx-acg__card-img{display:block;width:100%;height:auto;border-radius:18px;border:1px solid var(--acg-line);box-shadow:0 14px 36px rgba(40,50,38,.12);}
.mfx-acg__share{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:18px;}
.mfx-acg__share .mfx-acg__btn{min-width:180px;}
.mfx-acg__share-status{flex-basis:100%;margin:4px 0 0;min-height:1.1em;font-size:.88rem;color:var(--acg-muted,#687066);}
.mfx-acg__share-status:empty{min-height:0;}
