/* Cedar Gold Group Learning Center. Edit colours here. */
:root {
  --cedar: #1f3d2b; --cedar-2: #2c5a3f; --gold: #c9a227; --gold-soft: #f3e7c1;
  --ink: #1b1f1d; --muted: #5d6b63; --line: #dfe5e1; --bg: #f7f6f1; --card: #fff;
  --c2: #4a6fa5; --c3: #9b9b9b; --good: #3c7d4f; --warn: #c08a1e; --bad: #a8432f;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--ink); background: var(--bg); }
.sans, button, select, input, svg text { font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--cedar-2); }
header.top { background: var(--cedar); color: #fff; }
.bar { max-width: 1140px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-size: 22px; letter-spacing: .5px; color: #fff; text-decoration: none; }
.brand b { color: var(--gold); font-weight: normal; }
.brand small { display: block; font-size: 11px; opacity: .75; letter-spacing: 2.5px; text-transform: uppercase; }
.call { font-size: 13px; text-align: right; }
.call a { color: var(--gold); font-size: 20px; text-decoration: none; font-weight: 600; display: block; }
nav.tools { background: var(--cedar-2); }
nav.tools .bar { padding: 0 20px; gap: 0; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
nav.tools a { color: #e8efe9; text-decoration: none; padding: 12px 14px; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
nav.tools a:hover { color: #fff; }
nav.tools a.on { border-bottom-color: var(--gold); color: #fff; }
main { max-width: 1140px; margin: 0 auto; padding: 28px 20px 40px; }
h1 { font-weight: normal; font-size: 34px; margin: 0 0 6px; }
h1 span { color: var(--gold); }
h2 { font-weight: normal; font-size: 22px; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 24px; max-width: 780px; line-height: 1.55; }
.grid { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.step { margin-bottom: 20px; }
.step:last-child { margin-bottom: 0; }
.step h3 { margin: 0 0 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cedar); }
.step h3 i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--cedar); font-style: normal; margin-right: 8px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 11px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ink); transition: .12s; }
.chip:hover { border-color: var(--cedar-2); }
.chip.on { background: var(--cedar); color: #fff; border-color: var(--cedar); }
.money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.money span { padding: 0 10px; color: var(--muted); }
.money input { border: 0; padding: 10px 10px 10px 0; font-size: 18px; width: 100%; outline: none; }
.custom { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
select { padding: 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: #fff; cursor: pointer; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.res { border-radius: 10px; padding: 16px 18px; border: 1px solid var(--line); background: #fff; }
.res .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.res .val { font-size: 30px; margin: 4px 0; }
.res .sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.verdict { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 15px; line-height: 1.5; }
.chartwrap { position: relative; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin: 8px 0 0; flex-wrap: wrap; }
.legend b { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; }
.tip { position: absolute; pointer-events: none; background: var(--cedar); color: #fff; padding: 8px 10px; border-radius: 6px; font-size: 12px; display: none; white-space: nowrap; line-height: 1.5; z-index: 2; }
.explain { margin-top: 22px; line-height: 1.6; }
.notes { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 14px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.t th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
table.t tr.hit td { background: var(--gold-soft); font-weight: 600; }
.big { font-size: 54px; line-height: 1; margin: 6px 0; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 13px; color: #fff; }
.gauge { height: 14px; border-radius: 7px; position: relative; margin: 18px 0 30px; display: flex; overflow: visible; }
.gauge div { height: 100%; }
.gauge .mark { position: absolute; top: -6px; width: 3px; height: 26px; background: var(--ink); border-radius: 2px; }
.gauge .mark span { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: 12px; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.tile { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; transition: .15s; }
.tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.tile h3 { margin: 0 0 6px; font-weight: normal; font-size: 21px; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tile .go { color: var(--gold); font-size: 13px; margin-top: 12px; display: block; font-family: -apple-system, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
footer.legal { border-top: 1px solid var(--line); padding: 22px 20px; font-size: 11.5px; color: var(--muted); line-height: 1.6; max-width: 1140px; margin: 30px auto 0; }

/* ---- Calculate + dark results panel ---- */
.calc { display: block; width: 100%; margin-top: 6px; padding: 14px; border: 0; border-radius: 8px; background: var(--gold); color: var(--cedar); font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: .15s; }
.calc:hover { background: #d8b43a; transform: translateY(-1px); }
.calc:disabled { opacity: .6; cursor: default; }
.calc.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,162,39,.55); } 50% { box-shadow: 0 0 0 9px rgba(201,162,39,0); } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--cedar-2); text-decoration: underline; cursor: pointer; font-size: 13px; margin-top: 10px; }
.panel { background: linear-gradient(160deg, #183224, #10241a); color: #eef3ef; border-radius: 12px; padding: 24px 22px; min-height: 420px; }
.panel h2.pt { text-align: center; font-size: 26px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 10px; }
.panel h2.pt span { color: var(--gold); font-size: 18px; margin: 0 6px; }
.panel .about { text-align: center; color: rgba(255,255,255,.75); max-width: 640px; margin: 0 auto 16px; line-height: 1.55; font-size: 15px; }
.panel .hint { text-align: center; color: var(--gold); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 6px; }
.prun { grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 700px) { .prun { grid-template-columns: 1fr; } }
.side h3 { text-align: center; margin: 0 0 10px; font-weight: normal; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.side.m h3 { color: var(--gold); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; font-size: 13px; }
.kv .k { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.kv .v { font-size: 15px; margin-top: 2px; }
.v.up { color: #8fd19e; } .v.down { color: #f19a86; }
.side .tr { text-align: center; font-size: 13px; color: rgba(255,255,255,.75); margin-top: 8px; }
.side .tr b { color: #fff; }

.side .val { text-align: center; font-size: 38px; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.side.m .val { color: var(--gold); }
.panel .tip { background: #fff; color: var(--ink); }
svg.anim .area { opacity: 0; animation: fadeIn .9s ease .9s forwards; }
svg .mark { animation: none; }
svg.anim .mark { opacity: 0; animation: fadeIn .4s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.liveBadge { display: none; background: #c0392b; color: #fff; font-size: 10.5px; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 99px; vertical-align: middle; margin-left: 8px; font-family: -apple-system, sans-serif; }
.liveBadge::before { content: ""; display: inline-block; width: 6px; height: 6px; background: #fff; border-radius: 50%; margin-right: 5px; vertical-align: middle; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---- Now card ---- */
.nowcard { text-align: center; }
.nowcard .q { font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cedar); margin-bottom: 12px; }
.nowcard .out { visibility: hidden; margin-top: 16px; }
.nowcard .out.show { visibility: visible; }
.nowcard .asof { font-size: 13px; color: var(--muted); }
.nowcard .big { font-variant-numeric: tabular-nums; }
.refcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.refcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; }
.refcard .k { font-size: 12.5px; color: var(--muted); line-height: 1.4; min-height: 34px; }
.refcard .v { font-size: 28px; color: var(--bad); margin: 6px 0 2px; }
.refcard .z { font-size: 12px; color: var(--bad); }
