/* The vrat pages (worker/index.js draws them). They load the calendar section's two
   stylesheets first, for the paper, the tables, the emblem beside a page's name and the
   rest, and add here their own inks and the pieces only they have: the vrat's day as a
   ticket with its Moon, the lists of days that fold into cards on a phone, and the
   thirty days ahead. */

/* Each vrat's ink and emblem, as for the calendars; the g- ones are the groups of yearly vrats. */
[data-cal="vrat"] { --accent: #7B2D12; --accent-on: #FFF3E4; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6C59 21 65 30 65 40A15 15 0 0 1 35 40C35 30 41 21 50 6Z'/%3E%3Cpath d='M10 58H90C86 80 71 92 50 92C29 92 14 80 10 58Z'/%3E%3C/svg%3E"); } /* a lamp */
[data-cal="ekadashi"] { --accent: #1D4B5E; --accent-on: #EAF6F9; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23000' stroke-width='4'/%3E%3Cpath d='M50 10A40 40 0 0 1 50 90A26.8 40 0 0 1 50 10Z'/%3E%3C/svg%3E"); } /* the Moon of the eleventh */
[data-cal="pradosh"] { --accent: #4A3A78; --accent-on: #F1EDFB; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M62 10A27 27 0 1 0 62 64A21 21 0 1 1 62 10Z'/%3E%3Cpath d='M8 82H92' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E"); } /* the crescent at dusk */
[data-cal="sankashti"] { --accent: #A8431A; --accent-on: #FFF1E6; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='44' r='25'/%3E%3Cpath d='M8 82H92' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E"); } /* moonrise */
[data-cal="vinayaka"] { --accent: #8F5410; --accent-on: #FFF5E3; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M56 10A40 40 0 0 1 56 90A25 40 0 0 0 56 10Z'/%3E%3Ccircle cx='30' cy='50' r='8'/%3E%3C/svg%3E"); } /* the young Moon */
[data-cal="shivaratri"] { --accent: #23264F; --accent-on: #ECEEFB; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8V92M24 12C24 42 34 52 50 52C66 52 76 42 76 12M36 68H64' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } /* the trident */
[data-cal="durgashtami"] { --accent: #9E1B32; --accent-on: #FDECEF; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23000' stroke-width='4'/%3E%3Cpath d='M50 10A40 40 0 0 1 50 90Z'/%3E%3C/svg%3E"); } /* the waxing half Moon */
[data-cal="kalashtami"] { --accent: #2A2A30; --accent-on: #F0EFF3; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23000' stroke-width='4'/%3E%3Cpath d='M50 10A40 40 0 0 0 50 90Z'/%3E%3C/svg%3E"); } /* the waning half Moon */
[data-cal="janmashtami"] { --accent: #1F5C86; --accent-on: #EAF4FB; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='44' rx='29' ry='37' fill='none' stroke='%23000' stroke-width='5'/%3E%3Cellipse cx='50' cy='50' rx='15' ry='20'/%3E%3Cpath d='M50 82V97' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); } /* a peacock feather */
[data-cal="skanda"] { --accent: #8B2E5F; --accent-on: #FBECF4; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5C67 25 67 44 50 58C33 44 33 25 50 5Z'/%3E%3Cpath d='M50 58V95M37 66H63' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E"); } /* the vel */
[data-cal="purnima"] { --accent: #3D4A6B; --accent-on: #EEF1F8; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='29'/%3E%3Ccircle cx='50' cy='50' r='42' fill='none' stroke='%23000' stroke-width='3.5'/%3E%3C/svg%3E"); } /* the full Moon */
[data-cal="amavasya"] { --accent: #1B2030; --accent-on: #ECEEF4; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='36' fill='none' stroke='%23000' stroke-width='7'/%3E%3C/svg%3E"); } /* the new Moon */
[data-cal="satyanarayan"] { --accent: #7D6010; --accent-on: #FFF8E1; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M31 44C17 57 22 86 50 90C78 86 83 57 69 44Z'/%3E%3Cpath d='M33 36H67' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M50 30C43 21 43 12 50 5C57 12 57 21 50 30Z'/%3E%3C/svg%3E"); } /* a kalash */
[data-cal="sankranti"] { --accent: #BF4A0F; --accent-on: #FFF2E4; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='17'/%3E%3Cpath d='M50.0 24.0L50.0 7.0M63.0 27.5L71.5 12.8M72.5 37.0L87.2 28.5M76.0 50.0L93.0 50.0M72.5 63.0L87.2 71.5M63.0 72.5L71.5 87.2M50.0 76.0L50.0 93.0M37.0 72.5L28.5 87.2M27.5 63.0L12.8 71.5M24.0 50.0L7.0 50.0M27.5 37.0L12.8 28.5M37.0 27.5L28.5 12.8' fill='none' stroke='%23000' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E"); } /* the Sun */
[data-cal="weekday"] { --accent: #2F6B45; --accent-on: #EEF8F1; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50.0' cy='17.0' r='9'/%3E%3Ccircle cx='75.8' cy='29.4' r='9'/%3E%3Ccircle cx='82.2' cy='57.3' r='9'/%3E%3Ccircle cx='64.3' cy='79.7' r='9'/%3E%3Ccircle cx='35.7' cy='79.7' r='9'/%3E%3Ccircle cx='17.8' cy='57.3' r='9'/%3E%3Ccircle cx='24.2' cy='29.4' r='9'/%3E%3C/svg%3E"); } /* seven days */
[data-cal="annual"] { --accent: #6A3212; --accent-on: #FBF0E4; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50.0' cy='12.0' r='6'/%3E%3Ccircle cx='69.0' cy='17.1' r='6'/%3E%3Ccircle cx='82.9' cy='31.0' r='6'/%3E%3Ccircle cx='88.0' cy='50.0' r='6'/%3E%3Ccircle cx='82.9' cy='69.0' r='6'/%3E%3Ccircle cx='69.0' cy='82.9' r='6'/%3E%3Ccircle cx='50.0' cy='88.0' r='6'/%3E%3Ccircle cx='31.0' cy='82.9' r='6'/%3E%3Ccircle cx='17.1' cy='69.0' r='6'/%3E%3Ccircle cx='12.0' cy='50.0' r='6'/%3E%3Ccircle cx='17.1' cy='31.0' r='6'/%3E%3Ccircle cx='31.0' cy='17.1' r='6'/%3E%3Ccircle cx='50' cy='50' r='11'/%3E%3C/svg%3E"); } /* twelve months */
[data-cal="chaturmas"] { --accent: #23543F; --accent-on: #EBF7F1; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 13C43 28 42 39 30 44C18 39 17 28 30 13Z'/%3E%3Cpath d='M70 13C83 28 82 39 70 44C58 39 57 28 70 13Z'/%3E%3Cpath d='M30 55C43 70 42 81 30 86C18 81 17 70 30 55Z'/%3E%3Cpath d='M70 55C83 70 82 81 70 86C58 81 57 70 70 55Z'/%3E%3C/svg%3E"); } /* four months of rain */
[data-cal="g-shiva"] { --accent: #23264F; --accent-on: #ECEEFB; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8V92M24 12C24 42 34 52 50 52C66 52 76 42 76 12M36 68H64' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-cal="g-teej"] { --accent: #1F6B4A; --accent-on: #EBF8F1; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg%3E%3Cellipse cx='50' cy='27' rx='10' ry='21' transform='rotate(0 50 50)'/%3E%3Cellipse cx='50' cy='27' rx='10' ry='21' transform='rotate(60 50 50)'/%3E%3Cellipse cx='50' cy='27' rx='10' ry='21' transform='rotate(120 50 50)'/%3E%3Cellipse cx='50' cy='27' rx='10' ry='21' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='27' rx='10' ry='21' transform='rotate(240 50 50)'/%3E%3Cellipse cx='50' cy='27' rx='10' ry='21' transform='rotate(300 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='8'/%3E%3C/svg%3E"); }
[data-cal="g-family"] { --accent: #9E1B32; --accent-on: #FDECEF; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23000' stroke-width='6'%3E%3Ccircle cx='37' cy='50' r='24'/%3E%3Ccircle cx='63' cy='50' r='24'/%3E%3C/g%3E%3C/svg%3E"); }
[data-cal="g-ganesha"] { --accent: #A8431A; --accent-on: #FFF1E6; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8C54 24 82 44 82 64A32 26 0 0 1 18 64C18 44 46 24 50 8Z'/%3E%3C/svg%3E"); }
[data-cal="g-devi"] { --accent: #8C1D40; --accent-on: #FCEBF1; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='43' fill='none' stroke='%23000' stroke-width='4'/%3E%3Cpath d='M21 33H79L50 83Z'/%3E%3C/svg%3E"); }
[data-cal="g-vishnu"] { --accent: #1F5C86; --accent-on: #EAF4FB; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23000' stroke-width='5'/%3E%3Ccircle cx='50' cy='50' r='9'/%3E%3Cpath d='M50.0 41.0L50.0 10.0M56.4 43.6L78.3 21.7M59.0 50.0L90.0 50.0M56.4 56.4L78.3 78.3M50.0 59.0L50.0 90.0M43.6 56.4L21.7 78.3M41.0 50.0L10.0 50.0M43.6 43.6L21.7 21.7' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-cal="g-surya"] { --accent: #BF4A0F; --accent-on: #FFF2E4; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='17'/%3E%3Cpath d='M50.0 24.0L50.0 7.0M63.0 27.5L71.5 12.8M72.5 37.0L87.2 28.5M76.0 50.0L93.0 50.0M72.5 63.0L87.2 71.5M63.0 72.5L71.5 87.2M50.0 76.0L50.0 93.0M37.0 72.5L28.5 87.2M27.5 63.0L12.8 71.5M24.0 50.0L7.0 50.0M27.5 37.0L12.8 28.5M37.0 27.5L28.5 12.8' fill='none' stroke='%23000' stroke-width='5.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-cal="g-moon"] { --accent: #3D4A6B; --accent-on: #EEF1F8; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='29'/%3E%3Ccircle cx='50' cy='50' r='42' fill='none' stroke='%23000' stroke-width='3.5'/%3E%3C/svg%3E"); }
[data-cal="g-other"] { --accent: #6A3212; --accent-on: #FBF0E4; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.0,6.0 60.6,35.4 91.8,36.4 67.1,55.6 75.9,85.6 50.0,68.0 24.1,85.6 32.9,55.6 8.2,36.4 39.4,35.4'/%3E%3C/svg%3E"); }
[data-cal="g-regional"] { --accent: #5B3A8C; --accent-on: #F2EDFB; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8L92 50L50 92L8 50Z' fill='none' stroke='%23000' stroke-width='4' stroke-linejoin='round'/%3E%3Ccircle cx='50' cy='30' r='6'/%3E%3Ccircle cx='30' cy='50' r='6'/%3E%3Ccircle cx='50' cy='50' r='6'/%3E%3Ccircle cx='70' cy='50' r='6'/%3E%3Ccircle cx='50' cy='70' r='6'/%3E%3C/svg%3E"); }

.cal-info { --moon-dark: #2B2540; --moon-lit: #F4CE6A; --ink: color-mix(in srgb, var(--accent) 62%, var(--text)); --wash: color-mix(in srgb, var(--accent) 10%, var(--surface)); }

/* ---------- small pieces ---------- */
.vr-moon { flex: none; }
.vr-moon circle { fill: var(--moon-dark); stroke: color-mix(in srgb, var(--moon-lit) 45%, transparent); stroke-width: .7; }
.vr-moon path { fill: var(--moon-lit); }
.vr-chip { display: inline-flex; align-items: center; padding: 2px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.vr-tag { display: inline-block; margin: 4px 6px 0 0; padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.7; text-decoration: none; white-space: nowrap; }
a.vr-tag { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.vr-emblem { position: relative; display: block; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); }
.vr-emblem::after { content: ""; position: absolute; inset: 10px; background: var(--accent-on); -webkit-mask: var(--motif) center / contain no-repeat; mask: var(--motif) center / contain no-repeat; }
.vr-date { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.vr-date b { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 5px; border-radius: 12px; background: var(--wash); color: var(--ink); font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1; }
.vr-date > span { display: grid; font-weight: 600; line-height: 1.35; }
.vr-date small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.cal-prose + .cal-facts, .cal-prose + .vr-table, .cal-prose + .vr-kins, .cal-prose + .vr-groups, .cal-prose + .vr-run { margin-top: 16px; }
.vr-sub { margin: 20px 0 10px; color: var(--muted); font-size: 15px; font-weight: 600; }
.vr-jump { margin: 26px 0 4px; }

/* ---------- the day as a ticket ---------- */
.vr-hero { display: grid; gap: 20px; margin-bottom: 6px; }
.vr-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 26px 44px -30px rgba(70, 30, 10, .55); }
.vr-card-date { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; min-width: 168px; padding: 28px 26px; background: var(--accent); color: var(--accent-on); text-align: center; }
/* the tear line between the stub and the ticket */
.vr-card-date::after { content: ""; position: absolute; top: 0; bottom: 0; right: -7px; width: 14px; background: radial-gradient(circle at 7px 11px, var(--surface) 5px, transparent 5.6px) 0 0 / 14px 22px repeat-y; }
.vr-card-date span:first-child { font-size: 17px; font-weight: 600; }
.vr-card-date b { font-family: var(--font-display); font-size: 88px; font-weight: 400; line-height: 1.05; }
.vr-card-date span:last-child { opacity: .9; font-size: 15px; }
.vr-card-main { display: grid; align-content: center; gap: 5px; padding: 26px 160px 28px 34px; }
.vr-card-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.vr-card h2 { color: var(--cal-heading); font-family: var(--font-display); font-size: clamp(29px, 3.9vw, 44px); font-weight: 400; line-height: 1.3; }
.vr-card h2 a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.vr-card-sub { color: var(--muted); font-size: 16px; }
.vr-card-tags { margin-top: -2px; }
.vr-card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 12px 28px; margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.vr-card dt { color: var(--muted); font-size: 13.5px; }
.vr-card dd { font-size: 16.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.vr-card dd a { color: var(--primary-strong); }
.vr-card-moon { position: absolute; top: 24px; right: 26px; line-height: 0; filter: drop-shadow(0 8px 18px rgba(40, 30, 70, .35)); }

.vr-after { padding: 20px 22px 12px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface-raised); }
.vr-after h3 { margin-bottom: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.vr-after ol { margin: 0; padding: 0; list-style: none; }
.vr-after a { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--border); color: var(--text); font-size: 15.5px; line-height: 1.45; text-decoration: none; }
.vr-after li:first-child a { border-top: 0; }
.vr-after a span { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.vr-after a:hover { color: var(--primary-strong); }

/* ---------- a list of days ---------- */
.vr-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.vr-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums lining-nums; }
.vr-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vr-table th, .vr-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; white-space: nowrap; }
.vr-table thead th { border-bottom: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); background: var(--wash); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.vr-table tbody th { font-weight: 400; }
.vr-table tbody tr:last-child > * { border-bottom: 0; }
.vr-table tbody tr { scroll-margin-top: 96px; }
.vr-table td.vr-what { min-width: 220px; white-space: normal; }
.vr-what > div { display: flex; align-items: center; gap: 12px; }
.vr-what strong { display: block; font-weight: 600; line-height: 1.45; }
.vr-what a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.vr-what a:hover { color: var(--primary-strong); }
.vr-table small { margin-left: 4px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.vr-table .is-past > * { opacity: .5; }
.vr-table .is-next > * { background: var(--wash); }
.vr-table .is-next .vr-date b { background: var(--accent); color: var(--accent-on); }
.vr-table .is-next .vr-date::after { content: "अगला"; padding: 1px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-on); font-size: 12px; font-weight: 600; }
.vr-table + .cal-note { margin-top: 12px; }

/* ---------- the days ahead ---------- */
.vr-days { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); list-style: none; }
.vr-days > li { display: grid; grid-template-columns: 158px 104px minmax(0, 1fr); align-items: center; gap: 10px 16px; padding: 12px 18px; border-top: 1px solid var(--border); }
.vr-days > li:first-child { border-top: 0; }
.vr-days > li.is-today { background: var(--wash); }
.vr-days > li.is-today .vr-date b { background: var(--accent); color: var(--accent-on); }
.vr-days .vr-chip { justify-self: start; }
.vr-days ul { display: flex; flex-wrap: wrap; gap: 7px 8px; margin: 0; padding: 0; list-style: none; }
.vr-days ul a { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 4px 14px 4px 11px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-raised); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: border-color .15s; }
.vr-days ul a::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.vr-days ul a:hover { border-color: var(--gold); }

/* ---------- the other vrats ---------- */
.vr-kins { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.vr-kin { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s; }
.vr-kin:hover { border-color: var(--gold); }
.vr-kin .vr-emblem { grid-row: span 2; }
.vr-kin strong { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.vr-kin strong + span { overflow: hidden; color: var(--muted); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.vr-kin em { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); color: var(--muted); font-size: 14px; font-style: normal; line-height: 1.55; }
.vr-kins.is-wide { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.vr-kins.is-wide .vr-kin { align-content: start; border-top: 4px solid var(--accent); }
.vr-kin.is-today { border-color: var(--accent); background: var(--wash); }
.vr-kins + .cal-pills { margin-top: 16px; }

/* ---------- the yearly vrats, by group ---------- */
.vr-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.vr-group { padding: 16px 18px 8px; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 14px; background: var(--surface); }
.vr-group h3, .vr-yearly h2 { display: flex; align-items: center; gap: 12px; }
.vr-group h3 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.vr-group .vr-emblem { width: 34px; height: 34px; }
.vr-group .vr-emblem::after { inset: 8px; }
.vr-group ul { margin: 0; padding: 0; list-style: none; }
.vr-group li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 15.5px; }
.vr-group li a { color: var(--text); font-weight: 600; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.vr-group li a:hover { color: var(--primary-strong); }
.vr-group li small { flex: none; max-width: 56%; color: var(--muted); font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.vr-groups + .cal-pills { margin-top: 16px; }
.vr-yearly { scroll-margin-top: 90px; }
.vr-yearly .cal-prose { margin-bottom: 12px; }
.vr-yearly .cal-table th small { display: block; margin-left: 0; }
.vr-yearly .cal-table th a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.vr-yearly .cal-table td:nth-child(2) { white-space: normal; min-width: 170px; }
.vr-yearly .cal-table td a { color: var(--primary-strong); }
.vr-yearly .cal-table td[colspan] small { margin-left: 0; font-size: 13.5px; }

/* ---------- the 26 Ekadashis ---------- */
.vr-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 10px; margin-top: 16px; }
.vr-names a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1px 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s; }
.vr-names a:hover { border-color: var(--gold); }
.vr-names svg { grid-row: span 3; }
.vr-names strong { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.vr-names span { color: var(--muted); font-size: 13.5px; }
.vr-names small { color: var(--ink); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- a run of days: the Mondays of Sawan ---------- */
.vr-run { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vr-run li { padding: 8px 16px 8px 9px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.vr-run .is-past { opacity: .5; }

@media (min-width: 980px) {
  .vr-hero { grid-template-columns: minmax(0, 1fr) 330px; align-items: stretch; }
  .vr-hero.is-alone { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .vr-card { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .vr-card-date { display: flex; align-items: baseline; justify-content: center; gap: 10px; min-width: 0; padding: 12px 16px 14px; }
  .vr-card-date::after { top: auto; bottom: -7px; right: 0; left: 0; width: auto; height: 14px; background: radial-gradient(circle at 11px 7px, var(--surface) 5px, transparent 5.6px) 0 0 / 22px 14px repeat-x; }
  .vr-card-date b { font-size: 46px; }
  .vr-card-main { padding: 22px 18px 22px; }
  .vr-card-kicker { padding-right: 76px; }
  .vr-card-moon { top: 86px; right: 16px; }
  .vr-card-moon svg { width: 62px; height: 62px; }
  .vr-card h2 { padding-right: 70px; }
  .vr-card dl { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .vr-card dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
  .vr-card dd { text-align: right; font-size: 15.5px; }

  /* each row of a list becomes a card */
  .vr-table { overflow: visible; border: 0; border-radius: 0; background: none; }
  .vr-table thead { display: none; }
  .vr-table table, .vr-table tbody { display: block; }
  .vr-table tbody tr { display: block; margin-bottom: 10px; padding: 14px 15px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
  .vr-table tbody tr.is-next { border-color: var(--accent); background: var(--wash); }
  .vr-table th, .vr-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .vr-table .is-next > * { background: none; }
  .vr-table td.vr-what { min-width: 0; margin: 12px 0 8px; }
  .vr-table td[data-l] { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px dashed var(--border-strong); font-size: 14.5px; text-align: right; }
  .vr-table td[data-l]::before { content: attr(data-l); flex: none; color: var(--muted); font-size: 13px; text-align: left; }
  /* the days gone by keep only their date and name */
  .vr-table tr.is-past td[data-l] { display: none; }
  .vr-table tr.is-past td.vr-what { margin-bottom: 0; }
  .vr-table tbody tr.is-past { padding-bottom: 14px; }
  .vr-table small { display: inline; }

  .vr-days > li { grid-template-columns: minmax(0, 1fr) auto; padding: 13px 14px; }
  .vr-days .vr-chip { justify-self: end; }
  .vr-days ul { grid-column: 1 / -1; }
  .vr-kins, .vr-kins.is-wide { grid-template-columns: minmax(0, 1fr); }
  .vr-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vr-names a { grid-template-columns: minmax(0, 1fr); padding: 11px 12px; }
  .vr-names svg { display: none; }
  .vr-group li small { max-width: 50%; }
  .vr-after a { grid-template-columns: 96px minmax(0, 1fr); }
}
