/*
Theme Name: Days Until
Theme URI: https://daysuntil.it.com
Description: Dates, countdowns, calendars, tithis and festival dates for India. Tear off calendar leaf hero, date tickets with live countdowns, month grids drawn from the site's own date data.
Version: 1.0.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: daysuntil
*/

@font-face { font-family: "Darker Grotesque"; src: url(assets/fonts/darker-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Darker Grotesque"; src: url(assets/fonts/darker-grotesque-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Reddit Mono"; src: url(assets/fonts/reddit-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Reddit Mono"; src: url(assets/fonts/reddit-mono-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

@font-face { font-family: "Afacad"; src: url(assets/fonts/afacad-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Afacad"; src: url(assets/fonts/afacad-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Afacad"; src: url(assets/fonts/afacad-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Afacad"; src: url(assets/fonts/afacad-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Deva"; src: url(assets/fonts/glegoo-devanagari-400-normal.woff2) format("woff2"); font-weight: 400 500; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; font-display: swap; }
@font-face { font-family: "Deva"; src: url(assets/fonts/glegoo-devanagari-700-normal.woff2) format("woff2"); font-weight: 600 900; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; font-display: swap; }

:root {
	--night: #101a3a;
	--night-2: #1b2856;
	--saffron: #ff8a00;
	--marigold: #ffc23d;
	--lotus: #ff4f7b;
	--teal: #00a896;
	--sky: #eef3ff;
	--paper: #fbfcff;
	--ink: #16203f;
	--muted: #5b6587;
	--line: #dfe5f5;
	--ac: var(--saffron);
	--r: 22px;
	--r-s: 14px;
	--shadow: 0 1px 2px rgba(16, 26, 58, .06), 0 10px 30px -12px rgba(16, 26, 58, .22);
	--shadow-lift: 0 2px 6px rgba(16, 26, 58, .08), 0 22px 44px -18px rgba(16, 26, 58, .35);
	--disp: "Darker Grotesque", "Deva", system-ui, sans-serif;
	--text: "Afacad", "Deva", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Reddit Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.62 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.du-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.du-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.du-skip:focus { left: 8px; }
.du-ico { width: 20px; height: 20px; flex: none; }

/* ---------- header: date strip + bar */
.du-top { background: var(--night); color: #fff; position: relative; z-index: 20; }
.du-strip { background: linear-gradient(90deg, var(--saffron), var(--lotus)); color: #fff; font: 500 13px/1 var(--mono); letter-spacing: .02em; }
.du-strip-in { display: flex; gap: 18px; align-items: center; min-height: 34px; overflow: hidden; white-space: nowrap; }
.du-strip-tithi { opacity: .92; overflow: hidden; text-overflow: ellipsis; }
.du-strip-next { margin-left: auto; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .6); }
.du-bar { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.du-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin: 0; }
.du-logo-w { font: 900 30px/1 var(--disp); letter-spacing: -.01em; color: #fff; }
.du-logo-w b { color: var(--marigold); font-weight: 900; }
.du-nav { display: flex; gap: 4px; margin-left: auto; }
.du-nav a { text-decoration: none; padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: 15px; color: #d9e1ff; }
.du-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 -2px 0 var(--ac); }
.du-menubtn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--marigold); color: var(--night); font-weight: 700; padding: 10px 16px; border-radius: 12px; cursor: pointer; }
.du-menubtn svg { width: 20px; height: 20px; }
.du-drawer { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink); box-shadow: var(--shadow-lift); max-height: 80vh; overflow: auto; border-bottom: 4px solid var(--marigold); }
.du-drawer-in { padding: 22px 0 28px; }
.du-drawer-grid { columns: 4 220px; column-gap: 28px; margin-top: 18px; }
.du-drawer-col { break-inside: avoid; margin-bottom: 18px; }
.du-drawer-h { display: flex; gap: 8px; align-items: center; font: 800 20px/1.1 var(--disp); margin: 0 0 6px; color: var(--ac); }
.du-drawer-col ul { list-style: none; margin: 0; padding: 0; }
.du-drawer-col a { display: block; padding: 3px 0; text-decoration: none; font-size: 15px; color: var(--ink); }
.du-drawer-col a:hover { color: var(--ac); }
.du-find { display: flex; align-items: center; gap: 10px; background: var(--sky); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.du-find svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.du-find input { border: 0; background: none; padding: 13px 0; width: 100%; outline: none; font-size: 16px; }

/* ---------- home hero with the tear off leaf */
.du-hero { background: radial-gradient(1100px 500px at 85% -10%, rgba(255, 138, 0, .35), transparent 60%), radial-gradient(800px 500px at 0% 110%, rgba(0, 168, 150, .3), transparent 60%), var(--night); color: #fff; padding: 46px 0 70px; overflow: hidden; }
.du-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.du-eyebrow { display: inline-flex; gap: 10px; align-items: center; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--marigold); margin: 0 0 16px; }
.du-eyebrow span { width: 28px; height: 3px; background: var(--marigold); border-radius: 2px; }
.du-hero h1 { font: 900 clamp(44px, 6.6vw, 82px)/.92 var(--disp); margin: 0 0 18px; letter-spacing: -.015em; }
.du-hero-lede { font-size: 20px; color: #cfd8ff; max-width: 36em; margin: 0 0 22px; }
.du-find--hero { background: #fff; color: var(--ink); max-width: 520px; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .5); }
.du-hero-sections { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.du-hero-sections a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.du-hero-sections a:hover { background: rgba(255, 255, 255, .16); }
.du-hero-sections svg { color: var(--ac); width: 18px; height: 18px; }
.du-hero-sections b { font: 700 12px/1 var(--mono); color: #9fb0ea; }
.du-leaf { position: relative; background: #fff; color: var(--ink); border-radius: 26px; padding: 34px 26px 22px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .65); transform: rotate(1.6deg); }
.du-leaf::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; background: rgba(255, 255, 255, .22); border-radius: 26px; z-index: -1; transform: rotate(-3.5deg); }
.du-leaf-rings { position: absolute; top: -12px; left: 0; right: 0; display: flex; justify-content: space-evenly; }
.du-leaf-rings i { width: 14px; height: 30px; border-radius: 9px; background: linear-gradient(#c9d2ea, #8f9bc0); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.du-leaf-page { text-align: center; border-bottom: 2px dashed var(--line); padding-bottom: 16px; }
.du-leaf-m { margin: 0; font: 700 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--lotus); }
.du-leaf-d { margin: 2px 0 0; font: 900 140px/.86 var(--disp); color: var(--night); letter-spacing: -.03em; }
.du-leaf-w { margin: 6px 0 0; font: 800 28px/1 var(--disp); }
.du-leaf-t { margin: 8px 0 0; color: var(--muted); font-size: 15px; min-height: 1.4em; }
.du-next { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.du-next a { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; text-decoration: none; padding: 9px 12px; border-radius: 12px; background: var(--sky); }
.du-next a:hover { background: #ffe9cc; }
.du-next b { font-weight: 700; }
.du-next span { font: 500 13px/1 var(--mono); color: var(--muted); }
.du-next .du-left { color: var(--night); font-weight: 700; }

/* ---------- inner page head */
.du-head { background: linear-gradient(180deg, var(--night) 0, var(--night-2) 100%); color: #fff; padding: 22px 0 76px; position: relative; overflow: hidden; }
.du-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--ac), transparent 65%); opacity: .45; }
.du-head--plain { padding-bottom: 36px; }
.du-head .du-wrap { position: relative; z-index: 1; }
.du-trail { font: 500 13px/1.4 var(--mono); color: #aebbe8; display: flex; flex-wrap: wrap; gap: 8px; }
.du-trail a { text-decoration: none; }
.du-trail a:hover { color: #fff; }
.du-head-sec { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 6px; color: var(--ac); font-weight: 700; }
.du-head-sec a { text-decoration: none; }
.du-head h1 { font: 900 clamp(36px, 5.4vw, 64px)/.95 var(--disp); margin: 6px 0 12px; max-width: 20em; letter-spacing: -.01em; }
.du-head-short { color: #d3dcff; font-size: 19px; margin: 0 0 14px; max-width: 46em; }
.du-head-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.du-head-meta span { font: 500 12px/1 var(--mono); padding: 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #e6ebff; }
.du-head-meta .du-upd { background: none; color: #9fb0ea; padding-left: 0; }

/* ---------- widget area: lifted card over the head */
.du-widget-wrap { margin-top: -54px; position: relative; z-index: 2; }
.du-widget-wrap > .du-wrap > * + * { margin-top: 18px; }
.du-ticket { display: grid; grid-template-columns: 150px 1fr; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lift); overflow: hidden; }
.du-ticket-date { background: linear-gradient(160deg, var(--ac), var(--lotus)); color: #fff; display: grid; place-content: center; text-align: center; padding: 18px 10px; position: relative; }
.du-ticket-date::after { content: ""; position: absolute; right: -9px; top: 0; bottom: 0; width: 18px; background: radial-gradient(circle at 9px 12px, #fff 7px, transparent 7.5px) 0 0 / 18px 24px repeat-y; }
.du-ticket-m { font: 700 16px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.du-ticket-d { font: 900 92px/.82 var(--disp); }
.du-ticket-y { font: 700 15px/1 var(--mono); opacity: .9; }
.du-ticket-body { padding: 22px 26px; }
.du-ticket-name { margin: 0; font: 800 26px/1.05 var(--disp); }
.du-ticket-name span { font-family: "Deva", var(--text); font-weight: 600; font-size: 17px; color: var(--muted); margin-left: 6px; }
.du-ticket-when { margin: 4px 0 6px; font-size: 19px; }
.du-ticket-tithi, .du-ticket-note, .du-ticket-after { margin: 2px 0; color: var(--muted); font-size: 15px; }
.du-clock { display: flex; gap: 8px; margin: 14px 0 8px; flex-wrap: wrap; }
.du-clock span { background: var(--night); color: #9fb0ea; border-radius: 14px; padding: 10px 12px 8px; min-width: 74px; text-align: center; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.du-clock b { display: block; font: 900 38px/.9 var(--disp); color: #fff; letter-spacing: 0; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.du-ticket--tba { display: block; padding: 22px; }

/* tables */
.du-table-w { overflow-x: auto; background: #fff; border-radius: var(--r-s); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.du-table-w table, .du-article table { width: 100%; border-collapse: collapse; font-size: 16px; }
.du-table-w caption, .du-article caption { text-align: left; font: 800 20px/1.2 var(--disp); padding: 14px 16px 6px; }
.du-table-w th, .du-table-w td, .du-article th, .du-article td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.du-table-w th, .du-article th { font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--sky); }
.du-table-w tr.is-past { color: #98a1bf; }
.du-table-w small { display: block; color: var(--muted); font-size: 13px; }
.du-left { font: 700 14px/1 var(--mono); color: var(--night); white-space: nowrap; }
.du-tag { font: 700 11px/1 var(--mono); padding: 3px 6px; border-radius: 6px; background: #ffe2ea; color: #b1184a; text-transform: uppercase; }
.du-empty, .du-noscript { color: var(--muted); }

/* month grid */
.du-month { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lift); padding: 18px; }
.du-month-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.du-month-head h3 { margin: 0; font: 900 32px/1 var(--disp); }
.du-month-nav { display: flex; gap: 6px; }
.du-month-nav button, .du-btn { border: 0; background: var(--night); color: #fff; border-radius: 12px; padding: 9px 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.du-btn--ghost { background: var(--sky); color: var(--night); }
.du-wk, .du-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.du-wk span { font: 700 11px/1 var(--mono); text-transform: uppercase; color: var(--muted); text-align: center; padding: 6px 0; }
.du-cell { min-height: 84px; border-radius: 12px; background: var(--sky); padding: 7px 8px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.du-cell.is-blank { background: none; }
.du-cell b { font: 900 24px/.9 var(--disp); }
.du-cell i { font: 500 10.5px/1.2 var(--mono); color: var(--muted); font-style: normal; }
.du-cell em { font-style: normal; font-size: 12px; line-height: 1.15; color: #b1184a; font-weight: 700; }
.du-cell.is-sun b, .du-cell.is-hol b { color: var(--lotus); }
.du-cell.is-hol { background: #fff0f4; }
.du-cell.has-ev { box-shadow: inset 0 0 0 2px #ffd1de; }
.du-cell.is-today { background: var(--night); color: #fff; }
.du-cell.is-today i { color: #c8d2ff; }
.du-cell.is-today em { color: var(--marigold); }
.du-month-list { columns: 2 260px; margin: 14px 0 0; padding-left: 18px; font-size: 15px; }
.du-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.du-year .du-month { padding: 12px; box-shadow: var(--shadow); }
.du-year .du-month-head h3 { font-size: 24px; }
.du-year .du-cell { min-height: 0; aspect-ratio: 1; padding: 3px; align-items: center; justify-content: center; border-radius: 8px; }
.du-year .du-cell b { font-size: 17px; }
.du-year .du-cell i, .du-year .du-cell em { display: none; }

/* apps (tools) */
.du-app { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lift); padding: 22px; }
.du-app:empty { min-height: 140px; }
.du-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.du-form label { display: grid; gap: 6px; font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.du-form input, .du-form select { width: 100%; padding: 12px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: 600 17px/1.2 var(--text); color: var(--ink); text-transform: none; letter-spacing: 0; }
.du-form input:focus, .du-form select:focus { border-color: var(--saffron); outline: none; }
.du-check { display: flex !important; gap: 8px; align-items: center; text-transform: none !important; font: 600 15px/1.2 var(--text) !important; color: var(--ink) !important; }
.du-check input { width: auto; }
.du-out { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.du-out > div { background: var(--sky); border-radius: 14px; padding: 14px 16px; }
.du-out > div.is-main { background: var(--night); color: #fff; grid-column: 1 / -1; }
.du-out small { display: block; font: 700 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.du-out .is-main small { color: #9fb0ea; }
.du-out b { display: block; font: 900 34px/1 var(--disp); margin-top: 6px; }
.du-out .is-main b { font-size: clamp(34px, 5vw, 54px); }
.du-out span { font-size: 15px; color: var(--muted); }
.du-out .is-main span { color: #cfd8ff; }
.du-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.du-chiprow button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-weight: 700; cursor: pointer; font-size: 14px; }
.du-chiprow button:hover { border-color: var(--saffron); }
.du-big { text-align: center; padding: 10px 0; }
.du-big .du-big-d { font: 900 clamp(70px, 14vw, 150px)/.85 var(--disp); color: var(--night); }
.du-big .du-big-l { font: 800 28px/1.1 var(--disp); }
.du-big p { margin: 6px 0; color: var(--muted); }
.du-moon { width: 150px; height: 150px; margin: 0 auto; }
.du-reg-now { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.du-reg-now .du-big-d { font: 900 96px/.85 var(--disp); color: var(--ac); }

/* reading column */
.du-read { display: block; padding: 34px 0 10px; }
.du-read--narrow { max-width: 820px; }
.du-article { max-width: 780px; }
.du-read--home .du-article { max-width: 860px; }
.du-article > * + * { margin-top: 0; }
.du-article h2 { font: 900 clamp(30px, 3.6vw, 40px)/1 var(--disp); margin: 42px 0 12px; letter-spacing: -.005em; }
.du-article h3 { font: 800 24px/1.1 var(--disp); margin: 24px 0 8px; }
.du-article p { margin: 0 0 14px; }
.du-article ul, .du-article ol { padding-left: 22px; margin: 0 0 14px; }
.du-article li { margin-bottom: 6px; }
.du-article a { color: #0a59d8; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.du-article table { background: #fff; border-radius: var(--r-s); overflow: hidden; box-shadow: var(--shadow); margin: 10px 0 18px; display: block; overflow-x: auto; }
.du-intro p:first-child { font-size: 21px; line-height: 1.5; }
.du-intro p:first-child::first-line { font-weight: 600; }
.du-key { margin: 18px 0 8px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; border-left: 6px solid var(--ac); }
.du-key-h { margin: 0 0 8px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.du-key ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; }
.du-key-name { margin: 0; font: 700 12px/1.2 var(--mono); color: var(--ac); text-transform: uppercase; }
.du-key-val { font-weight: 600; }
.du-toc { margin: 22px 0 8px; padding: 14px 18px; border-radius: var(--r-s); background: var(--sky); }
.du-toc p { margin: 0 0 6px; font: 700 12px/1 var(--mono); text-transform: uppercase; color: var(--muted); }
.du-toc ol { margin: 0; padding-left: 20px; columns: 2 260px; font-size: 16px; }
.du-toc a { text-decoration: none; color: var(--ink); }
.du-toc a[aria-current] { color: var(--lotus); font-weight: 700; }
.du-hero-img { margin: 22px 0 6px; }
.du-hero-img img { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.du-hero-img figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.du-article .example, .du-article .note, .du-article .steps, .du-article .tip { border-radius: var(--r-s); padding: 14px 18px; margin: 0 0 16px; }
.du-article .example { background: #fff7e8; border: 1px solid #ffe0a8; }
.du-article .note { background: #eefaf8; border: 1px solid #bfece5; }
.du-article .steps { background: var(--sky); }
.du-article .tip { background: #fff0f4; border: 1px solid #ffd1de; }
.du-faq details { background: #fff; border-radius: var(--r-s); box-shadow: var(--shadow); margin-bottom: 10px; }
.du-faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; list-style: none; position: relative; }
.du-faq summary::-webkit-details-marker { display: none; }
.du-faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font: 900 26px/1 var(--disp); color: var(--ac); }
.du-faq details[open] summary::after { content: "\2212"; }
.du-faq-a { padding: 0 18px 12px; }
.du-ad { margin: 26px 0; text-align: center; }
.du-tba { color: var(--muted); font-style: italic; }

/* directories */
.du-home-tool { margin-top: -38px; position: relative; z-index: 3; }
.du-home-dir { margin-top: 42px; }
.du-home-dir-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.du-home-dir-head h2 { font: 900 40px/1 var(--disp); margin: 0; }
.du-find--inline { max-width: 320px; flex: 1 1 220px; background: #fff; }
.du-dir-grid { columns: 3 320px; column-gap: 18px; }
.du-dir { break-inside: avoid; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 16px 10px; margin-bottom: 18px; border-top: 5px solid var(--ac); }
.du-dir-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.du-dir-ico { width: 24px; height: 24px; color: var(--ac); }
.du-dir-head h2 { margin: 0; font: 800 23px/1.05 var(--disp); flex: 1; }
.du-count { font: 700 12px/1 var(--mono); background: var(--sky); padding: 5px 8px; border-radius: 8px; }
.du-dir-list { list-style: none; margin: 0; padding: 0; }
.du-dir-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; text-decoration: none; border-bottom: 1px solid var(--line); }
.du-dir-list li:last-child a { border-bottom: 0; }
.du-dir-list b { font-weight: 600; }
.du-dir-list span { font-size: 13px; color: var(--muted); text-align: right; max-width: 55%; }
.du-dir-list .du-dir-when { font: 700 12px/1.6 var(--mono); color: var(--night); white-space: nowrap; }
.du-dir-list a:hover b { color: var(--ac); }
.du-dir-list .is-hub b::after { content: " \2192"; color: var(--ac); }
.du-hub-dir { margin-top: 26px; }
.du-hub-dir .du-dir { columns: 2 300px; }
.du-dir-none { color: var(--muted); }

/* related */
.du-related { margin: 40px 0 10px; }
.du-related h2 { font: 900 34px/1 var(--disp); margin: 0 0 14px; }
.du-related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.du-related a { display: block; text-decoration: none; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; height: 100%; transition: transform .15s, box-shadow .15s; }
.du-related a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.du-related img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.du-related-t { display: grid; gap: 3px; padding: 12px 14px 14px; border-top: 4px solid var(--ac); }
.du-related-t small { font: 700 11px/1 var(--mono); text-transform: uppercase; color: var(--ac); }
.du-related-t b { font: 800 22px/1.05 var(--disp); }
.du-related-t span { font-size: 14px; color: var(--muted); }
.du-related-t .du-related-d { font: 700 13px/1.2 var(--mono); color: var(--night); }

/* blog */
.du-postlist { list-style: none; padding: 0; }
.du-postlist a { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.du-postlist b { font: 800 24px/1.1 var(--disp); }
.du-postlist span { color: var(--muted); }
.du-postlist small { font: 500 12px/1 var(--mono); color: var(--muted); }
.du-latest { margin: 40px auto; }
.du-latest ul { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.du-latest a { display: grid; gap: 4px; background: #fff; border-radius: var(--r-s); padding: 14px; box-shadow: var(--shadow); text-decoration: none; }
.du-post-img { border-radius: var(--r); margin-bottom: 18px; }

/* footer: light, with the year progress band */
.du-foot { margin-top: 70px; background: linear-gradient(180deg, var(--sky), #e3eaff); color: var(--ink); padding: 34px 0 26px; border-top: 1px solid var(--line); }
.du-foot-year { background: var(--night); color: #fff; border-radius: var(--r); padding: 18px 22px; margin-top: -70px; box-shadow: var(--shadow-lift); }
.du-foot-year-t { margin: 0 0 10px; font: 800 24px/1 var(--disp); }
.du-foot-year-t b { color: var(--marigold); font-size: 34px; }
.du-foot-bar { height: 12px; background: rgba(255, 255, 255, .14); border-radius: 999px; overflow: hidden; }
.du-foot-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--marigold), var(--lotus)); border-radius: 999px; }
.du-foot-row { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 26px 0 16px; }
.du-logo--foot .du-logo-w { color: var(--night); font-size: 26px; }
.du-logo--foot .du-logo-w b { color: var(--saffron); }
.du-foot-line { margin: 0; color: var(--muted); font-size: 15px; max-width: 60em; }
.du-foot-sections { display: flex; flex-wrap: wrap; gap: 8px; }
.du-foot-sections a { text-decoration: none; padding: 8px 12px; border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; box-shadow: inset 0 -3px 0 var(--ac); }
.du-foot-sections small { font: 700 11px/1 var(--mono); margin-left: 6px; color: var(--muted); }
.du-foot-legal { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.du-foot-legal a { text-decoration: none; }
.du-foot-legal a:hover { color: var(--ink); text-decoration: underline; }
.du-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; }

/* info pages */
.du-read--narrow .du-article { font-size: 18px; }
.du-article .du-info-card { background: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); margin: 16px 0; }

@media (max-width: 1020px) {
	.du-nav { display: none; }
	.du-menubtn { margin-left: auto; }
	.du-hero-grid { grid-template-columns: 1fr; gap: 34px; }
	.du-leaf { max-width: 460px; transform: none; }
}
@media (max-width: 640px) {
	body { font-size: 17px; }
	.du-strip-tithi { display: none; }
	.du-bar { min-height: 60px; }
	.du-logo-w { font-size: 26px; }
	.du-menubtn span { display: none; }
	.du-hero { padding: 30px 0 60px; }
	.du-hero-lede { font-size: 18px; }
	.du-leaf-d { font-size: 110px; }
	.du-ticket { grid-template-columns: 1fr; }
	.du-ticket-date { grid-auto-flow: column; gap: 10px; align-items: baseline; justify-content: start; padding: 14px 18px; text-align: left; }
	.du-ticket-date::after { display: none; }
	.du-ticket-d { font-size: 60px; }
	.du-ticket-body { padding: 16px 18px; }
	.du-clock span { min-width: 0; flex: 1; padding: 8px 4px 6px; }
	.du-clock b { font-size: 30px; }
	.du-cell { min-height: 58px; padding: 4px; }
	.du-cell b { font-size: 18px; }
	.du-cell i { display: none; }
	.du-cell em { font-size: 9.5px; }
	.du-month { padding: 12px; }
	.du-app { padding: 16px; }
	.du-foot-row { grid-template-columns: 1fr; }
	.du-intro p:first-child { font-size: 19px; }
	.du-dir-list span { display: none; }
	.du-dir-list .du-dir-when { display: inline; }
}
@media print {
	.du-top, .du-foot, .du-related, .du-hub-dir, .du-month-nav, .du-ad { display: none; }
	.du-head { background: none; color: #000; padding: 0; }
	.du-widget-wrap { margin: 0; }
}
.du-article .du-left, .du-head .du-left { font: inherit; font-weight: 700; color: inherit; }
.du-article time { font-weight: 600; }
