/* The pages' visual parts (includes/visuals.php). Each kind of help has its own colour (--k), set on the page
 * (yc-k-<kind>, yc-f-<family>); everything else is the site's white page, ink and one red. Solid colours and
 * real-looking materials, no glow, no glass; a phone at 375 px first. */
.page { --k: #a8231b; --k-soft: #fbeceb; --k-ink: #fff; }
.yc-f-pension { --k: #8a5a12; --k-soft: #f7efe1; }
.yc-f-cash { --k: #1f6b45; --k-soft: #e8f3ec; }
.yc-f-event { --k: #8c2350; --k-soft: #f8e9ef; }
.yc-f-cover { --k: #1d4f91; --k-soft: #e8eff8; }
.yc-f-goods { --k: #a5520a; --k-soft: #fbefe2; }
.yc-f-build { --k: #7a3b22; --k-soft: #f5ebe6; }
.yc-k-pension-widow { --k: #5b4a8a; --k-soft: #efecf6; }
.yc-k-pension-disability { --k: #1f5f74; --k-soft: #e6f1f4; }
.yc-k-farmer { --k: #4c6b12; --k-soft: #eef4e2; }
.yc-k-education { --k: #1e3a6e; --k-soft: #e7ecf5; }
.yc-k-girl { --k: #a3365a; --k-soft: #f9eaf0; }
.yc-k-lpg { --k: #b3261e; --k-soft: #fbeae8; }
.yc-k-energy { --k: #8a6d00; --k-soft: #f8f2dc; }
.yc-k-insurance { --k: #2b5d8a; --k-soft: #e8f0f7; }
.yc-k-worker { --k: #9a5b00; --k-soft: #fbf0de; }
.yc-f-state { --k: #a8231b; --k-soft: #fbeceb; }

.yc-vis { margin: 28px 0; }
.yc-vis__h, .yc-vis h3 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; color: var(--ink, #1c1b1f); }
.yc-vis.is-pre { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.yc-vis.is-pre.is-in { opacity: 1; transform: none; }
.yc-vis .list-meta { margin-top: 10px; }

/* एक नज़र में */
.yc-glance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yc-glance li { background: var(--k-soft); border-radius: 10px; padding: 12px 12px 10px; border-left: 4px solid var(--k); }
.yc-glance li.is-big { grid-column: 1 / -1; }
.yc-glance b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--k); font-variant-numeric: tabular-nums; }
.yc-glance li.is-big b { font-size: 2.1rem; }
.yc-glance li > span { display: block; margin-top: 2px; font-size: .92rem; color: #4a4952; }
@media (min-width: 700px) { .yc-glance ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } .yc-glance li.is-big { grid-column: span 2; } }

/* The money part, with the 3D object beside it on wide screens */
.yc-money { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .yc-money { grid-template-columns: 280px minmax(0, 1fr); } .yc-v1 .yc-money { grid-template-columns: minmax(0, 1fr) 280px; } .yc-v1 .yc-money > .yc-turn-box { order: 2; } .yc-v2 .yc-money { grid-template-columns: 1fr; } .yc-v2 .yc-money > .yc-turn-box .yc-turn { max-width: 360px; } }
/* Three layouts for pages of one kind: the 3D view first, last, or above the part on a phone too; the glance as tiles or as a band. */
.yc-v1 .yc-money > .yc-turn-box { order: 2; }
.yc-v2 .yc-glance ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yc-v2 .yc-glance li { border-left: 0; border-top: 4px solid var(--k); background: #fff; box-shadow: 0 1px 0 #e6e4ea, 0 0 0 1px #ecebef inset; }
.yc-v1 .yc-glance li { background: var(--k); border-left-color: rgba(0, 0, 0, .25); }
.yc-v1 .yc-glance b, .yc-v1 .yc-glance li > span { color: #fff; }
.yc-turn-box { margin: 0; text-align: center; }
.yc-turn { width: 100%; max-width: 280px; margin: 0 auto; background-repeat: no-repeat; background-color: var(--k-soft); border-radius: 14px; cursor: grab; touch-action: pan-y; outline-offset: 3px; }
.yc-turn.is-drag { cursor: grabbing; }
.yc-turn-box figcaption { margin-top: 6px; font-size: .85rem; color: #4a4952; }
.yc-turn-hint { display: block; font-size: .8rem; color: #6b6a72; }
.yc-calc__row { display: block; margin: 8px 0; font-weight: 600; }
.yc-calc__row select { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; border: 2px solid #d6d4dc; border-radius: 8px; background: #fff; }
.yc-calc__row input[type=range] { display: block; width: 100%; margin-top: 6px; accent-color: var(--k); height: 32px; }
.yc-calc__sum { margin: 6px 0; font-size: 1rem; }
.yc-calc__sum b { font-size: 2.2rem; font-weight: 800; color: var(--k); font-variant-numeric: tabular-nums; }
.yc-coins { display: flex; flex-wrap: wrap; gap: 3px; min-height: 18px; }
.yc-coins i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6dc8f 0 18%, #d9a93a 45%, #9c6d12 100%); box-shadow: inset 0 0 0 1.5px #8b5e0e, 0 1px 1px rgba(0, 0, 0, .25); animation: yc-coin .35s ease both; }
@keyframes yc-coin { from { transform: translateY(-10px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.yc-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 8px 0; }
.yc-months i { height: 26px; border-radius: 4px 4px 6px 6px; background: #c9a46a; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12); }
.yc-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.yc-steps li { counter-increment: s; position: relative; padding: 10px 12px 10px 46px; background: var(--k-soft); border-radius: 10px; }
.yc-steps li::before { content: counter(s); position: absolute; left: 10px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--k); color: #fff; font-weight: 800; text-align: center; line-height: 26px; }

/* The cover card: an enamel card that tilts */
.yc-card3d { perspective: 900px; max-width: 340px; }
.yc-card3d__face { position: relative; display: block; aspect-ratio: 1.586; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid #e2e0e6; box-shadow: 0 1px 0 #fff inset, 0 10px 24px rgba(28, 27, 31, .16), 0 2px 4px rgba(28, 27, 31, .12); transform-style: preserve-3d; transition: transform .2s ease; overflow: hidden; }
.yc-card3d__face::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 56px; background: var(--k); }
.yc-card3d__face > * { position: relative; display: block; }
.yc-card3d__face .yc-card3d__k { color: #fff; font-weight: 700; font-size: .95rem; line-height: 20px; }
.yc-card3d__face b { margin-top: 36px; font-size: 2.4rem; font-weight: 800; color: var(--k); line-height: 1; }
.yc-card3d__face span { color: #4a4952; }
.yc-card3d__n { margin-top: 10px; font-weight: 700; color: #1c1b1f !important; }

/* The tap-through */
.yc-walk ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.yc-walk li { display: grid; gap: 8px; padding: 10px 12px; border: 2px solid #e6e4ea; border-radius: 10px; background: #fff; }
.yc-walk li[data-v="y"] { border-color: #1f7a4a; background: #eef7f1; }
.yc-walk li[data-v="n"] { border-color: #b3261e; background: #fcefee; }
.yc-walk li[data-v="u"] { border-color: #a5730a; background: #fbf4e4; }
.yc-walk__keys { display: flex; gap: 6px; flex-wrap: wrap; }
.yc-walk__keys button { min-height: 40px; padding: 6px 14px; font: inherit; font-weight: 700; border: 2px solid #d6d4dc; border-radius: 8px; background: #fff; color: #1c1b1f; cursor: pointer; }
.yc-walk__keys button[aria-pressed="true"] { border-color: var(--k); background: var(--k); color: #fff; }
.yc-walk__out { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #f3f2f5; font-weight: 700; }
.yc-walk__out.is-yes { background: #e3f3e9; color: #145a35; }
.yc-walk__out.is-no { background: #fbe5e3; color: #8e1c15; }
.yc-walk__out.is-maybe { background: #fbf0d9; color: #6e4b00; }

/* The mind map */
.yc-mm__svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; font-family: inherit; }
.yc-mm__c { fill: var(--k); }
.yc-mm__ct { fill: #fff; font-weight: 800; font-size: 16px; }
.yc-mm__l { fill: none; stroke: var(--k); stroke-width: 2.2; stroke-linecap: round; opacity: .75; }
.yc-vis.is-pre .yc-mm__l { stroke-dasharray: 400; stroke-dashoffset: 400; }
.yc-vis.is-in .yc-mm__l { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease .2s; }
.yc-mm__n { text-decoration: none; }
.yc-mm__d { fill: var(--k); }
.yc-mm__n rect { fill: #fff; stroke: var(--k); stroke-width: 2; }
.yc-mm__n:hover rect, .yc-mm__n:focus rect, .yc-mm__n.is-on rect { fill: var(--k-soft); }
.yc-mm__nt { font-size: 14px; font-weight: 800; fill: #1c1b1f; }
.yc-mm__ns { font-size: 12px; fill: #4a4952; }
.yc-mm__lists details { margin: 6px 0; border: 1px solid #e6e4ea; border-radius: 8px; padding: 8px 12px; background: #fff; }
.yc-mm__lists summary { font-weight: 700; cursor: pointer; }
.yc-mm__lists ul { margin: 8px 0 2px; }

/* India as tiles */
.yc-tiles__svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.yc-t rect { fill: #efeef2; stroke: #fff; stroke-width: 2; }
.yc-t text { font-size: 11px; font-weight: 700; fill: #6b6a72; pointer-events: none; }
.yc-t.is-on rect { fill: var(--k); }
.yc-t.is-on text { fill: #fff; }
.yc-t--v rect { fill: color-mix(in srgb, var(--k) var(--v, 0%), #efeef2); }
.yc-t--v text { fill: #1c1b1f; }
.yc-t--v.is-dark text { fill: #fff; }
.yc-tiles__why { margin: 8px 0 0; font-size: .92rem; }
a.yc-t:hover rect, a.yc-t:focus rect { stroke: #1c1b1f; }
.yc-vis.is-pre .yc-t rect { transform: scale(.6); transform-box: fill-box; transform-origin: center; opacity: 0; }
.yc-vis.is-in .yc-t rect { transform: none; opacity: 1; transition: transform .45s ease, opacity .45s ease; }

/* Bars */
.yc-bars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.yc-bars li { display: grid; gap: 4px; }
.yc-bars__row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.yc-bars__row a { font-weight: 700; }
.yc-bars__row b { flex: none; font-weight: 800; color: var(--k); font-variant-numeric: tabular-nums; }
.yc-bar { position: relative; display: block; height: 12px; background: #f0eff3; border-radius: 6px; overflow: hidden; }
.yc-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--k); border-radius: 6px; }
.yc-vis.is-pre .yc-bar i { width: 0; }
.yc-vis.is-in .yc-bar i { width: var(--w); transition: width .9s ease; }

/* Filters */
.yc-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.yc-filter button { min-height: 38px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: .92rem; border: 2px solid #d6d4dc; border-radius: 8px; background: #fff; color: #1c1b1f; cursor: pointer; }
.yc-filter button.is-on { border-color: var(--k); background: var(--k); color: #fff; }

/* The changes list as a timeline */
.yc-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--k); }
.yc-timeline li { position: relative; margin: 0 0 14px; }
.yc-timeline li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--k); }

@media (prefers-reduced-motion: reduce) { .yc-vis, .yc-vis * { transition: none !important; animation: none !important; } }
/* Printed, or with reduce motion: every part in its finished state. */
@media print, (prefers-reduced-motion: reduce) { .yc-vis.is-pre { opacity: 1; transform: none; } .yc-vis.is-pre .yc-mm__l { stroke-dashoffset: 0; } .yc-vis.is-pre .yc-t rect { transform: none; opacity: 1; } .yc-vis.is-pre .yc-bar i { width: var(--w); } }
