/* Standalone and WordPress: all widget styles are scoped to .msd-geo. */
body.msd-geo-page { margin: 0; background: #f4f6f8; color: #172c43; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
.msd-geo-standalone { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.msd-geo-standalone > header { margin-bottom: 28px; }
.msd-geo-standalone > header > p:first-child { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #52677d; }
.msd-geo-standalone h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; letter-spacing: -.035em; }
.msd-geo-standalone > header > p:last-child { margin: 14px 0 0; color: #52677d; max-width: 680px; }
.msd-geo { --geo-navy: #122d4c; --geo-gold: #e2aa40; --geo-muted: #536276; --geo-line: #dce3eb; color: #1f3249; font: 400 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; margin-block: 24px; }
.msd-geo *, .msd-geo *::before, .msd-geo *::after { box-sizing: border-box; }
.msd-geo [hidden] { display: none !important; }
.msd-geo .msd-geo-editor { padding: clamp(20px, 4vw, 36px); background: #fff; border: 1px solid var(--geo-line); border-radius: 16px; box-shadow: 0 8px 30px #162f4810; }
.msd-geo .msd-geo-kicker { color: #5a6573; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.msd-geo h2 { font: 700 23px/1.3 system-ui, sans-serif; letter-spacing: -.02em; color: var(--geo-navy); margin: 0 0 12px; }
.msd-geo h3 { font: 700 16px/1.45 system-ui, sans-serif; color: var(--geo-navy); margin: 0 0 6px; }
.msd-geo p { margin: 0 0 16px; }
.msd-geo .msd-geo-lead { color: var(--geo-muted); font-size: 15px; max-width: 700px; margin-bottom: 24px; }
.msd-geo label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.msd-geo textarea { display: block; background: #fbfcfe; color: #21374e; border: 1px solid #b9c7d6; border-radius: 10px; width: 100%; max-width: 100%; min-height: 290px; padding: 16px; font: 400 16px/1.65 system-ui, sans-serif; resize: vertical; }
.msd-geo textarea::placeholder { color: #687689; opacity: 1; }
.msd-geo textarea[aria-invalid="true"] { border-color: #a92f2b; }
.msd-geo :is(input, textarea, button, summary):focus-visible { outline: 3px solid #2175aa; outline-offset: 4px; }
.msd-geo .msd-geo-import { padding: 18px; background: #f4f7fb; border: 1px solid var(--geo-line); border-radius: 10px; margin-bottom: 24px; }
.msd-geo .msd-geo-import-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.msd-geo .msd-geo-import input { min-width: 0; width: 100%; border: 1px solid #b9c7d6; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--geo-navy); font: 400 15px/1.5 system-ui, sans-serif; }
.msd-geo .msd-geo-import input[aria-invalid="true"] { border-color: #a92f2b; }
.msd-geo .msd-geo-import-row button { flex: 0 0 auto; }
.msd-geo .msd-geo-import p { margin-bottom: 0; overflow-wrap: anywhere; }
.msd-geo button:disabled { opacity: .65; cursor: wait; }
.msd-geo .msd-geo-input-meta { display: flex; gap: 20px; justify-content: space-between; align-items: start; margin-top: 10px; }
.msd-geo .msd-geo-input-meta p, .msd-geo .msd-geo-input-meta span { color: var(--geo-muted); font-size: 12px; margin: 0; }
.msd-geo .msd-geo-input-meta p { max-width: 520px; }
.msd-geo .msd-geo-input-meta span { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.msd-geo .msd-geo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.msd-geo button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid #bdc9d6; border-radius: 8px; background: #fff; color: var(--geo-navy); font: 600 14px/1.5 system-ui, sans-serif; padding: 11px 16px; cursor: pointer; min-height: 44px; }
.msd-geo button:hover { background: #edf2f7; }
.msd-geo button.msd-geo-primary { background: var(--geo-navy); border-color: var(--geo-navy); color: #fff; }
.msd-geo button.msd-geo-primary:hover { background: #21486d; }
.msd-geo .msd-geo-status { font-size: 13px; color: var(--geo-muted); margin: 12px 0 0; }
.msd-geo-status:empty { display: none; }
.msd-geo .msd-geo-status[data-state="error"] { color: #a32622; }
.msd-geo .msd-geo-status[data-state="success"] { color: #286147; }
.msd-geo .msd-geo-score-panel { display: flex; align-items: center; gap: 28px; padding: 28px; margin-top: 28px; background: var(--geo-navy); border-radius: 16px; color: #fff; }
.msd-geo .msd-geo-score-ring { --geo-score: 0%; flex: 0 0 144px; width: 144px; height: 144px; border-radius: 50%; background: conic-gradient(var(--geo-gold) var(--geo-score), #ffffff26 0); display: grid; place-items: center; }
.msd-geo-score-ring > div { width: 122px; height: 122px; border-radius: 50%; background: var(--geo-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.msd-geo-score-ring strong { font-size: 44px; line-height: 1.1; font-weight: 750; }
.msd-geo-score-ring span { font-size: 12px; color: #c7d4e2; }
.msd-geo .msd-geo-score-panel h2 { color: #fff; font-size: 22px; }
.msd-geo .msd-geo-score-panel .msd-geo-kicker { color: #eac071; }
.msd-geo .msd-geo-band { font-weight: 650; margin: 0 0 8px; font-size: 15px; }
.msd-geo .msd-geo-score-description { color: #d2deeb; font-size: 13px; margin: 0; }
.msd-geo .msd-geo-disclaimer { font-size: 12px; line-height: 1.65; color: var(--geo-muted); margin: 14px 0 24px; }
.msd-geo .msd-geo-sample-note { background: #fff6e4; border-left: 3px solid #be7a13; padding: 12px 16px; font-size: 13px; }
.msd-geo .msd-geo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--geo-line); border-radius: 12px; background: #fff; margin-bottom: 28px; }
.msd-geo-stats > div { padding: 18px 8px; text-align: center; }
.msd-geo-stats strong { display: block; color: var(--geo-navy); font-size: 25px; line-height: 1.3; }
.msd-geo-stats span { color: var(--geo-muted); font-size: 12px; }
.msd-geo .msd-geo-breakdown > p, .msd-geo .msd-geo-improvements > p { font-size: 14px; color: var(--geo-muted); }
.msd-geo .msd-geo-criterion { background: #fff; border: 1px solid var(--geo-line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.msd-geo .msd-geo-criterion summary { display: list-item; padding: 16px 18px; cursor: pointer; font-size: 14px; }
.msd-geo-criterion summary > strong { float: right; margin-left: 12px; font-variant-numeric: tabular-nums; }
.msd-geo .msd-geo-meter { height: 3px; background: #edf1f6; }
.msd-geo-meter span { display: block; height: 100%; background: #65809c; }
.msd-geo .msd-geo-criterion-body { padding: 18px; font-size: 13px; color: var(--geo-muted); }
.msd-geo .msd-geo-criterion-body h3 { font-size: 13px; }
.msd-geo .msd-geo-criterion-body p { margin: 0 0 14px; }
.msd-geo .msd-geo-evidence { list-style: none; padding: 0; margin: 0; }
.msd-geo-evidence li { padding: 10px 12px; background: #f5f7fa; border-left: 2px solid #bbcad9; margin-top: 8px; overflow-wrap: anywhere; }
.msd-geo .msd-geo-small { color: var(--geo-muted); font-size: 12px; line-height: 1.55; }
.msd-geo .msd-geo-improvements { margin-top: 28px; padding: 24px; background: #fffaf0; border: 1px solid #ead9b7; border-radius: 14px; }
.msd-geo .msd-geo-improvements ol { margin: 20px 0 0; padding-left: 23px; }
.msd-geo .msd-geo-improvements li { padding-left: 6px; margin: 0 0 20px; }
.msd-geo .msd-geo-improvements li:last-child { margin-bottom: 0; }
.msd-geo .msd-geo-improvements li::marker { color: #8a5b1b; font-weight: 700; }
.msd-geo .msd-geo-improvements li p { font-size: 14px; margin: 0 0 6px; }
.msd-geo .msd-geo-method { margin-top: 24px; border-block: 1px solid var(--geo-line); padding: 18px 0; font-size: 13px; color: var(--geo-muted); }
.msd-geo .msd-geo-method summary { cursor: pointer; color: var(--geo-navy); font-weight: 600; }
.msd-geo .msd-geo-method p { margin: 14px 0 0; }
.msd-geo .msd-geo-bottom { margin-top: 20px; }
.msd-geo .msd-geo-orientation { font-size: 12px; color: var(--geo-muted); margin-bottom: 16px; }
.msd-geo .msd-geo-privacy { border-top: 1px solid var(--geo-line); padding-top: 16px; margin: 0; font-size: 13px; color: var(--geo-muted); }
.msd-geo-privacy strong { display: block; color: var(--geo-navy); margin-bottom: 4px; }
@media (max-width: 650px) {
  .msd-geo .msd-geo-import-row { flex-direction: column; }
  .msd-geo .msd-geo-input-meta { flex-direction: column; gap: 6px; }
  .msd-geo .msd-geo-score-panel { align-items: flex-start; flex-direction: column; gap: 20px; padding: 24px; }
  .msd-geo .msd-geo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msd-geo .msd-geo-criterion summary { padding-inline: 12px; font-size: 13px; }
  .msd-geo .msd-geo-improvements { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .msd-geo * { scroll-behavior: auto; } }
