/*
 * Delhi Lakshmi — main stylesheet
 * Mobile-first, minimal, accessible (WCAG 2.2 AA aims), original branding.
 * Not a copy of any government website.
 */

/* ---------------------------------------------------------------------------
 * Design tokens
 * ------------------------------------------------------------------------ */
:root {
	--dly-primary: #7a1f5c;
	--dly-primary-600: #6a1a50;
	--dly-primary-700: #5a1444;
	--dly-accent: #c8912a;
	--dly-ink: #1f2430;
	--dly-muted: #5b6472;
	--dly-bg: #ffffff;
	--dly-subtle: #f7f5fa;
	--dly-subtle-2: #f2eef6;
	--dly-border: #e6e2ec;
	--dly-success: #1e7a46;
	--dly-success-bg: #e9f6ef;
	--dly-danger: #b42318;
	--dly-danger-bg: #fdeceb;
	--dly-info-bg: #eef3fb;
	--dly-info-border: #b9cdeb;
	--dly-warn-bg: #fff8e6;
	--dly-warn-border: #f0c14b;
	--dly-demo-bg: #fff7ed;
	--dly-demo-border: #f59e0b;
	--dly-demo-ink: #9a3412;
	--dly-radius: 14px;
	--dly-radius-sm: 10px;
	--dly-shadow: 0 1px 2px rgba(31, 36, 48, .06), 0 10px 30px rgba(31, 36, 48, .07);
	--dly-shadow-sm: 0 1px 2px rgba(31, 36, 48, .08);
	--dly-container: 1140px;
	--dly-narrow: 820px;
	--dly-gap: 1.25rem;
	--dly-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--dly-font);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--dly-ink);
	background: var(--dly-bg);
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { border-radius: inherit; }

a { color: var(--dly-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--dly-primary-700); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--dly-ink); }

p { margin: 0 0 1rem; }

:focus-visible {
	outline: 3px solid var(--dly-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.dly-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--dly-primary);
	color: #fff;
	padding: .75rem 1rem;
	border-radius: 0 0 var(--dly-radius-sm) 0;
	text-decoration: none;
}
.dly-skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------------ */
.dly-container {
	width: 100%;
	max-width: var(--dly-container);
	margin-inline: auto;
	padding-inline: 1rem;
}
.dly-container--narrow { max-width: var(--dly-narrow); }

.dly-main { display: block; }

.dly-layout { display: block; }

@media (min-width: 1000px) {
	.dly-layout--with-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 2.5rem;
		align-items: start;
	}
}

.dly-section { padding: 2.25rem 0; }
.dly-section--alt { background: var(--dly-subtle); }
.dly-section--tight { padding-top: 1.5rem; }

.dly-section-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); margin: 0 0 1.25rem; }
.dly-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dly-section-more { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------------------------------------------------------------------------
 * Reading progress bar
 * ------------------------------------------------------------------------ */
.dly-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 900; background: transparent; display: none; }
.dly-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--dly-primary), var(--dly-accent)); transition: width .1s linear; }
body.single .dly-progress { display: block; }

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------ */
.dly-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .7rem 1.1rem;
	border-radius: var(--dly-radius-sm);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dly-btn--lg { padding: .9rem 1.4rem; font-size: 1.05rem; }
.dly-btn--primary { background: var(--dly-primary); color: #fff; }
.dly-btn--primary:hover { background: var(--dly-primary-700); color: #fff; }
.dly-btn--outline { background: transparent; color: var(--dly-primary); border-color: var(--dly-primary); }
.dly-btn--outline:hover { background: var(--dly-primary); color: #fff; }
.dly-btn--ghost { background: var(--dly-subtle); color: var(--dly-ink); border-color: var(--dly-border); }
.dly-btn--ghost:hover { background: var(--dly-subtle-2); color: var(--dly-ink); }

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------ */
.dly-header {
	position: sticky;
	top: 0;
	z-index: 800;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.1) blur(6px);
	border-bottom: 1px solid var(--dly-border);
}
.dly-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 64px;
	padding-block: .5rem;
}
.dly-branding { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.dly-branding img, .dly-branding .custom-logo { max-height: 46px; width: auto; }
.dly-branding__text { display: flex; flex-direction: column; line-height: 1.15; }
.dly-site-title { font-weight: 800; font-size: 1.15rem; }
.dly-site-title a { color: var(--dly-primary); text-decoration: none; }
.dly-site-desc { font-size: .78rem; color: var(--dly-muted); }

.dly-header__actions { display: flex; align-items: center; gap: .25rem; }

.dly-search-toggle, .dly-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--dly-radius-sm);
	color: var(--dly-ink);
	cursor: pointer;
}
.dly-search-toggle:hover, .dly-nav-toggle:hover { background: var(--dly-subtle); }

.dly-nav-toggle__bars { display: inline-block; width: 22px; height: 16px; position: relative; }
.dly-nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; background: var(--dly-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.dly-nav-toggle__bars span:nth-child(1) { top: 0; }
.dly-nav-toggle__bars span:nth-child(2) { top: 7px; }
.dly-nav-toggle__bars span:nth-child(3) { top: 14px; }
.dly-header.dly-nav-open .dly-nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dly-header.dly-nav-open .dly-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.dly-header.dly-nav-open .dly-nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navigation */
.dly-nav { }
.dly-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; flex-wrap: wrap; }
.dly-menu li { position: relative; }
.dly-menu a {
	display: block;
	padding: .5rem .7rem;
	color: var(--dly-ink);
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: .97rem;
}
.dly-menu a:hover, .dly-menu .current-menu-item > a { background: var(--dly-subtle); color: var(--dly-primary); }
.dly-menu .sub-menu {
	list-style: none;
	margin: 0; padding: .35rem;
	position: absolute;
	top: 100%; left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius-sm);
	box-shadow: var(--dly-shadow);
	display: none;
	z-index: 30;
}
.dly-menu li:hover > .sub-menu, .dly-menu li:focus-within > .sub-menu { display: block; }

/* Mobile nav */
.dly-nav-toggle { display: inline-flex; }
@media (max-width: 879px) {
	.dly-nav {
		display: none;
		position: absolute;
		left: 0; right: 0;
		top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--dly-border);
		box-shadow: var(--dly-shadow);
		padding: .5rem 1rem 1rem;
		max-height: calc(100vh - 64px);
		overflow-y: auto;
	}
	.dly-header.dly-nav-open .dly-nav { display: block; }
	.dly-menu { flex-direction: column; gap: 0; }
	.dly-menu a { padding: .8rem .6rem; border-radius: 8px; border-bottom: 1px solid var(--dly-border); }
	.dly-menu li:last-child a { border-bottom: 0; }
	.dly-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: .8rem; }
}
@media (min-width: 880px) {
	.dly-nav-toggle { display: none; }
	.dly-nav { display: block !important; }
}

/* Search panel */
.dly-search-panel { border-top: 1px solid var(--dly-border); background: var(--dly-subtle); padding-block: 1rem; }
.dly-search-panel[hidden] { display: none; }

.dly-searchform__row { display: flex; gap: .5rem; }
.dly-searchform__input {
	flex: 1;
	padding: .7rem .9rem;
	border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius-sm);
	font-size: 1rem;
	background: #fff;
	color: var(--dly-ink);
}
.dly-searchform__btn { flex: 0 0 auto; }

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------ */
.dly-hero {
	background:
		radial-gradient(1200px 400px at 15% -10%, rgba(122, 31, 92, .10), transparent 60%),
		linear-gradient(180deg, var(--dly-subtle), #fff);
	padding: 3rem 0 1.5rem;
}
.dly-hero__inner { text-align: center; max-width: 820px; margin-inline: auto; }
.dly-hero__eyebrow {
	display: inline-block;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--dly-primary);
	background: #fff;
	border: 1px solid var(--dly-border);
	padding: .3rem .7rem;
	border-radius: 999px;
	margin-bottom: 1rem;
}
.dly-hero__title { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
.dly-hero__subtitle { font-size: clamp(1.05rem, .95rem + .6vw, 1.3rem); color: var(--dly-muted); margin: 0 auto 1.5rem; max-width: 640px; }
.dly-hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* Disclaimer */
.dly-disclaimer {
	margin-top: 1.5rem;
	background: var(--dly-info-bg);
	border: 1px solid var(--dly-info-border);
	border-radius: var(--dly-radius);
	padding: 1rem 1.1rem;
	text-align: left;
}
.dly-disclaimer__badge {
	display: inline-block;
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #234;
	background: #fff;
	border: 1px solid var(--dly-info-border);
	border-radius: 999px;
	padding: .2rem .6rem;
	margin-bottom: .5rem;
}
.dly-disclaimer__text { margin: 0; font-size: .95rem; color: #2a3550; }

/* ---------------------------------------------------------------------------
 * Quick actions
 * ------------------------------------------------------------------------ */
.dly-quick { padding: 2rem 0; }
.dly-quick__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--dly-gap);
}
@media (min-width: 620px) { .dly-quick__grid { grid-template-columns: repeat(4, 1fr); } }

.dly-quick__card {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 1.1rem;
	background: #fff;
	border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius);
	text-decoration: none;
	color: var(--dly-ink);
	box-shadow: var(--dly-shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
	min-height: 44px;
}
.dly-quick__card:hover { transform: translateY(-2px); box-shadow: var(--dly-shadow); border-color: #d9cfe4; color: var(--dly-ink); }
.dly-quick__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px;
	background: var(--dly-subtle); color: var(--dly-primary);
}
.dly-quick__label { font-weight: 700; }
.dly-quick__desc { font-size: .85rem; color: var(--dly-muted); }

/* ---------------------------------------------------------------------------
 * Grids & cards
 * ------------------------------------------------------------------------ */
.dly-grid { display: grid; gap: var(--dly-gap); }
.dly-grid--cards { grid-template-columns: 1fr; }
@media (min-width: 560px) { .dly-grid--cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .dly-grid--cards { grid-template-columns: repeat(3, 1fr); } }
.dly-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .dly-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.dly-grid--links { grid-template-columns: 1fr; }
@media (min-width: 620px) { .dly-grid--links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .dly-grid--links { grid-template-columns: repeat(3, 1fr); } }

.dly-card {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius);
	overflow: hidden;
	box-shadow: var(--dly-shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease;
}
.dly-card:hover { transform: translateY(-2px); box-shadow: var(--dly-shadow); }
.dly-card__thumb { display: block; aspect-ratio: 16 / 10; background: var(--dly-subtle-2); overflow: hidden; }
.dly-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dly-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #c9bcd6; }
.dly-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.dly-card__title { font-size: 1.1rem; margin: 0; }
.dly-card__title a { color: var(--dly-ink); text-decoration: none; }
.dly-card__title a:hover { color: var(--dly-primary); }
.dly-card__excerpt { margin: 0; color: var(--dly-muted); font-size: .95rem; }
.dly-card__foot { font-size: .82rem; color: var(--dly-muted); margin-top: auto; }

.dly-tag {
	display: inline-block;
	font-size: .72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .03em;
	color: var(--dly-primary);
	background: var(--dly-subtle);
	border: 1px solid var(--dly-border);
	padding: .2rem .55rem; border-radius: 999px;
	text-decoration: none;
}
.dly-tag:hover { background: var(--dly-subtle-2); }

.dly-mini-card { background: #fff; border: 1px solid var(--dly-border); border-radius: var(--dly-radius); padding: 1.25rem; }
.dly-mini-card h3 { margin: 0 0 .5rem; }
.dly-linkcard {
	display: block; padding: 1rem 1.1rem;
	background: #fff; border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius); text-decoration: none; font-weight: 600; color: var(--dly-ink);
	box-shadow: var(--dly-shadow-sm);
}
.dly-linkcard:hover { border-color: var(--dly-primary); color: var(--dly-primary); }

/* ---------------------------------------------------------------------------
 * Key info
 * ------------------------------------------------------------------------ */
.dly-keyinfo { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .dly-keyinfo { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .dly-keyinfo { grid-template-columns: repeat(4, 1fr); } }
.dly-keyinfo__item { background: #fff; border: 1px solid var(--dly-border); border-radius: var(--dly-radius); padding: 1.1rem; }
.dly-keyinfo__k { display: block; font-size: .8rem; color: var(--dly-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .3rem; }
.dly-keyinfo__v { display: block; font-weight: 700; font-size: 1.05rem; }

/* ---------------------------------------------------------------------------
 * Prose (article & page content)
 * ------------------------------------------------------------------------ */
.dly-prose { font-size: 1.06rem; }
.dly-prose > h2, .dly-prose > h3, .dly-prose h2, .dly-prose h3 { margin: 1.8rem 0 .8rem; scroll-margin-top: 84px; }
.dly-prose h2 { font-size: 1.5rem; }
.dly-prose h3 { font-size: 1.2rem; }
.dly-prose ul, .dly-prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.dly-prose li { margin-bottom: .4rem; }
.dly-prose img { border-radius: var(--dly-radius); }
.dly-prose a { font-weight: 500; }
.dly-prose blockquote { margin: 1.2rem 0; padding: .6rem 1.1rem; border-left: 4px solid var(--dly-primary); background: var(--dly-subtle); border-radius: 0 var(--dly-radius-sm) var(--dly-radius-sm) 0; color: #3a3350; }
.dly-prose code { background: var(--dly-subtle-2); padding: .1rem .35rem; border-radius: 6px; font-size: .92em; }

/* Table of contents */
.dly-toc { background: var(--dly-subtle); border: 1px solid var(--dly-border); border-radius: var(--dly-radius); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.dly-toc__title { font-weight: 700; margin: 0 0 .5rem; }
.dly-toc ul { margin: 0; padding-left: 1.1rem; }
.dly-toc a { text-decoration: none; }
.dly-toc a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
 * Facts blocks
 * ------------------------------------------------------------------------ */
.dly-facts { margin: 1rem 0 1.5rem; }
.dly-two-col { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .dly-two-col { grid-template-columns: repeat(2, 1fr); } }

.dly-check-list, .dly-cross-list, .dly-doc-list { list-style: none; padding-left: 0; margin: 0 0 1rem; }
.dly-check-list li, .dly-cross-list li, .dly-doc-list li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; }
.dly-check-list li::before, .dly-doc-list li::before {
	content: ""; position: absolute; left: 0; top: .35rem;
	width: 1.1rem; height: 1.1rem; border-radius: 50%;
	background: var(--dly-success-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231e7a46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: .8rem;
}
.dly-cross-list li::before {
	content: ""; position: absolute; left: 0; top: .35rem;
	width: 1.1rem; height: 1.1rem; border-radius: 50%;
	background: var(--dly-danger-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: .8rem;
}

.dly-steps { list-style: none; counter-reset: step; padding-left: 0; margin: 0 0 1rem; }
.dly-step { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px dashed var(--dly-border); }
.dly-step:last-child { border-bottom: 0; }
.dly-step-num { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--dly-primary); color: #fff; font-weight: 700; }
.dly-step-body { display: flex; flex-direction: column; }
.dly-step-body strong { color: var(--dly-ink); }
.dly-step-body span:last-child { color: var(--dly-muted); }

.dly-verify-note { font-size: .9rem; color: var(--dly-muted); background: var(--dly-subtle); border-left: 3px solid var(--dly-accent); padding: .6rem .9rem; border-radius: 0 8px 8px 0; }

.dly-timeline { list-style: none; padding-left: 0; margin: 0; }
.dly-timeline li { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--dly-border); }
.dly-timeline__date { flex: 0 0 130px; font-weight: 700; color: var(--dly-primary); }

/* ---------------------------------------------------------------------------
 * Notices
 * ------------------------------------------------------------------------ */
.dly-notice { border-radius: var(--dly-radius); padding: 1rem 1.1rem; margin: 1rem 0; border: 1px solid var(--dly-border); background: var(--dly-subtle); }
.dly-notice--info { background: var(--dly-info-bg); border-color: var(--dly-info-border); }
.dly-notice--success { background: var(--dly-success-bg); border-color: #a9d9be; }
.dly-notice--warning { background: var(--dly-warn-bg); border-color: var(--dly-warn-border); }
.dly-notice--error { background: var(--dly-danger-bg); border-color: #eab3ae; }
.dly-notice--demo { background: var(--dly-demo-bg); border: 2px dashed var(--dly-demo-border); color: var(--dly-demo-ink); font-weight: 500; }

/* ---------------------------------------------------------------------------
 * Demo tools (deliberately distinct from official UI)
 * ------------------------------------------------------------------------ */
.dly-demo {
	background: var(--dly-demo-bg);
	border: 2px dashed var(--dly-demo-border);
	border-radius: var(--dly-radius);
	padding: 1.25rem;
	margin: 1.5rem 0;
	position: relative;
}
.dly-demo__banner { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.dly-demo__tag {
	flex: 0 0 auto;
	background: var(--dly-demo-ink);
	color: #fff;
	font-weight: 800;
	font-size: .72rem;
	letter-spacing: .06em;
	padding: .35rem .6rem;
	border-radius: 6px;
	text-transform: uppercase;
}
.dly-demo__banner-text { margin: 0; font-size: .9rem; color: var(--dly-demo-ink); }
.dly-demo__title { margin: 0 0 1rem; font-size: 1.25rem; color: var(--dly-demo-ink); }
.dly-demo__form { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dly-demo--checker .dly-demo__form { grid-template-columns: repeat(2, 1fr); } .dly-demo--checker .dly-demo__form > button { grid-column: 1 / -1; } }
.dly-demo__result { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--dly-radius-sm); background: #fff; border: 1px solid var(--dly-demo-border); }
.dly-demo__result[hidden] { display: none; }
.dly-demo__result-label { display: inline-block; font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; color: var(--dly-demo-ink); margin-bottom: .35rem; }
.dly-demo__cta { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--dly-demo-border); }
.dly-demo__cta p { font-size: .92rem; color: var(--dly-demo-ink); }
.dly-demo__filter { max-width: 360px; }

/* Fields */
.dly-field { display: flex; flex-direction: column; gap: .35rem; margin: 0; border: 0; padding: 0; }
.dly-field label, .dly-field legend { font-weight: 600; font-size: .92rem; }
.dly-field input, .dly-field select, .dly-field textarea {
	width: 100%;
	padding: .65rem .8rem;
	border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius-sm);
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: var(--dly-ink);
}
.dly-field textarea { resize: vertical; }
.dly-req { color: var(--dly-danger); }

/* ---------------------------------------------------------------------------
 * FAQ accordion
 * ------------------------------------------------------------------------ */
.dly-faq { border: 1px solid var(--dly-border); border-radius: var(--dly-radius); overflow: hidden; background: #fff; }
.dly-faq__item { border-bottom: 1px solid var(--dly-border); }
.dly-faq__item:last-child { border-bottom: 0; }
.dly-faq__q { cursor: pointer; padding: 1rem 1.1rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; }
.dly-faq__q::-webkit-details-marker { display: none; }
.dly-faq__q:hover { background: var(--dly-subtle); }
.dly-faq__icon { flex: 0 0 auto; width: 18px; height: 18px; position: relative; }
.dly-faq__icon::before, .dly-faq__icon::after { content: ""; position: absolute; background: var(--dly-primary); transition: transform .2s ease; }
.dly-faq__icon::before { top: 8px; left: 0; right: 0; height: 2px; }
.dly-faq__icon::after { left: 8px; top: 0; bottom: 0; width: 2px; }
.dly-faq__item[open] .dly-faq__icon::after { transform: scaleY(0); }
.dly-faq__a { padding: 0 1.1rem 1.1rem; color: var(--dly-muted); }
.dly-faq__a p { margin: 0; }

/* ---------------------------------------------------------------------------
 * Official source box
 * ------------------------------------------------------------------------ */
.dly-official {
	background: linear-gradient(180deg, #fff, var(--dly-subtle));
	border: 1px solid var(--dly-border);
	border-left: 5px solid var(--dly-primary);
	border-radius: var(--dly-radius);
	padding: 1.3rem 1.4rem;
	box-shadow: var(--dly-shadow-sm);
}
.dly-official__head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.dly-official__badge { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--dly-success); padding: .25rem .55rem; border-radius: 999px; }
.dly-official__title { margin: 0; font-size: 1.25rem; }
.dly-official__text { margin: .7rem 0 1rem; color: var(--dly-muted); }
.dly-official__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.dly-official__note { margin: .8rem 0 0; font-size: .82rem; color: var(--dly-muted); }

/* ---------------------------------------------------------------------------
 * Feedback widget
 * ------------------------------------------------------------------------ */
.dly-feedback { margin: 2rem 0 0; padding: 1.1rem 1.2rem; background: var(--dly-subtle); border: 1px solid var(--dly-border); border-radius: var(--dly-radius); }
.dly-feedback__q { font-weight: 700; margin: 0 0 .6rem; }
.dly-feedback__actions { display: flex; gap: .6rem; }
.dly-feedback__thanks { margin: .7rem 0 0; color: var(--dly-success); font-weight: 600; }
.dly-feedback__note { margin: .7rem 0 0; font-size: .88rem; color: var(--dly-muted); }

/* ---------------------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------------------ */
.dly-form { display: grid; gap: 1.1rem; max-width: 640px; }
.dly-form .dly-field { margin: 0; }

/* ---------------------------------------------------------------------------
 * Breadcrumbs
 * ------------------------------------------------------------------------ */
.dly-breadcrumbs { margin: 1.2rem 0; font-size: .88rem; }
.dly-breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.dly-breadcrumbs__item { display: flex; align-items: center; color: var(--dly-muted); }
.dly-breadcrumbs__item + .dly-breadcrumbs__item::before { content: "/"; margin-right: .35rem; color: var(--dly-border); }
.dly-breadcrumbs a { text-decoration: none; color: var(--dly-muted); }
.dly-breadcrumbs a:hover { color: var(--dly-primary); }
.dly-breadcrumbs [aria-current="page"] { color: var(--dly-ink); font-weight: 600; }

/* ---------------------------------------------------------------------------
 * Article & listings
 * ------------------------------------------------------------------------ */
.dly-page-header { margin: 0 0 1.5rem; }
.dly-page-title { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.4rem); margin: 0 0 .5rem; }
.dly-page-updated, .dly-page-intro { color: var(--dly-muted); }

.dly-article__cat { margin-bottom: .6rem; }
.dly-article__title { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.5rem); margin: 0 0 .8rem; }
.dly-article__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--dly-muted); font-size: .9rem; margin-bottom: 1.2rem; }
.dly-article__dot { color: var(--dly-border); }
.dly-article__figure { margin: 0 0 1.5rem; }
.dly-article__figure img { width: 100%; border-radius: var(--dly-radius); }
.dly-date-updated { font-weight: 600; color: var(--dly-primary); }
.dly-article__tags { margin: 1.5rem 0; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.dly-tags-label { font-weight: 700; }

.dly-updatebox { display: flex; gap: .9rem; background: var(--dly-warn-bg); border: 1px solid var(--dly-warn-border); border-radius: var(--dly-radius); padding: 1rem 1.1rem; margin: 0 0 1.5rem; }
.dly-updatebox__label { flex: 0 0 auto; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #7a5b00; background: #fff; border: 1px solid var(--dly-warn-border); padding: .3rem .55rem; border-radius: 6px; height: fit-content; }
.dly-updatebox__body { display: flex; flex-direction: column; gap: .2rem; }
.dly-updatebox__date { color: var(--dly-ink); }
.dly-updatebox__note { color: #5a4b1f; }
.dly-updatebox__src { font-weight: 600; text-decoration: none; }

.dly-list { display: flex; flex-direction: column; gap: 1.5rem; }
.dly-list-item { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--dly-border); }
@media (min-width: 620px) { .dly-list-item { grid-template-columns: 220px 1fr; } }
.dly-list-item__thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--dly-radius); overflow: hidden; background: var(--dly-subtle-2); }
.dly-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dly-list-item__body { display: flex; flex-direction: column; gap: .5rem; }
.dly-list-item__title { font-size: 1.3rem; margin: 0; }
.dly-list-item__title a { color: var(--dly-ink); text-decoration: none; }
.dly-list-item__title a:hover { color: var(--dly-primary); }
.dly-list-item__dates { font-size: .82rem; color: var(--dly-muted); }
.dly-list-item__excerpt { color: var(--dly-muted); margin: 0; }
.dly-readmore { font-weight: 600; text-decoration: none; width: fit-content; }

.dly-author { display: flex; gap: 1rem; background: var(--dly-subtle); border: 1px solid var(--dly-border); border-radius: var(--dly-radius); padding: 1.2rem; margin: 2rem 0; }
.dly-author__avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid var(--dly-border); display: flex; align-items: center; justify-content: center; color: var(--dly-primary); }
.dly-author__name { font-weight: 700; margin: 0 0 .2rem; }
.dly-author__bio { margin: 0 0 .4rem; color: var(--dly-muted); font-size: .95rem; }
.dly-author__resp { margin: 0; font-size: .85rem; color: var(--dly-muted); }
.dly-author__updated { display: block; }

.dly-related { margin-top: 2.5rem; }

/* ---------------------------------------------------------------------------
 * Hub filters & chips
 * ------------------------------------------------------------------------ */
.dly-hub-filters { display: flex; flex-direction: column; gap: 1rem; margin: 0 0 1.75rem; }
.dly-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.dly-chip { padding: .4rem .8rem; background: #fff; border: 1px solid var(--dly-border); border-radius: 999px; text-decoration: none; color: var(--dly-ink); font-size: .9rem; font-weight: 600; }
.dly-chip:hover { border-color: var(--dly-primary); color: var(--dly-primary); }

/* ---------------------------------------------------------------------------
 * Tables
 * ------------------------------------------------------------------------ */
.dly-table-wrap { overflow-x: auto; }
.dly-table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: #fff; }
.dly-table th, .dly-table td { text-align: left; padding: .7rem .8rem; border: 1px solid var(--dly-border); }
.dly-table thead th { background: var(--dly-subtle); font-size: .88rem; }
.dly-prose table { width: 100%; border-collapse: collapse; }
.dly-prose th, .dly-prose td { border: 1px solid var(--dly-border); padding: .6rem .7rem; text-align: left; }
.dly-prose thead th { background: var(--dly-subtle); }

.dly-badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; background: var(--dly-subtle); border: 1px solid var(--dly-border); }

@media (max-width: 600px) {
	.dly-prose table { display: block; overflow-x: auto; white-space: nowrap; }
	.dly-demo__table thead { position: absolute; left: -9999px; }
	.dly-demo__table tr { display: block; border: 1px solid var(--dly-border); border-radius: var(--dly-radius-sm); margin-bottom: .8rem; padding: .5rem; }
	.dly-demo__table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; border-bottom: 1px dashed var(--dly-border); padding: .5rem .3rem; }
	.dly-demo__table td:last-child { border-bottom: 0; }
	.dly-demo__table td::before { content: attr(data-label); font-weight: 700; color: var(--dly-muted); }
}

/* ---------------------------------------------------------------------------
 * Ads (clearly labelled, distinct)
 * ------------------------------------------------------------------------ */
.dly-ad { margin: 1.75rem 0; padding: .5rem; border: 1px dashed var(--dly-border); border-radius: var(--dly-radius-sm); background: #fcfbfd; text-align: center; }
.dly-ad__label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dly-muted); margin-bottom: .4rem; }
.dly-ad__body { min-height: 0; }

/* ---------------------------------------------------------------------------
 * Sidebar & widgets
 * ------------------------------------------------------------------------ */
.dly-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1000px) { .dly-sidebar { position: sticky; top: 84px; } }
.dly-widget { background: #fff; border: 1px solid var(--dly-border); border-radius: var(--dly-radius); padding: 1.1rem 1.2rem; }
.dly-widget .widget-title, .widget-title { font-size: 1.05rem; margin: 0 0 .8rem; }
.dly-widget__links { list-style: none; padding: 0; margin: 0; }
.dly-widget__links li { border-bottom: 1px solid var(--dly-border); }
.dly-widget__links li:last-child { border-bottom: 0; }
.dly-widget__links a { display: block; padding: .55rem 0; text-decoration: none; color: var(--dly-ink); }
.dly-widget__links a:hover { color: var(--dly-primary); }

/* ---------------------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------------------ */
.pagination, .dly-pagination { margin: 2rem 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 .6rem; border: 1px solid var(--dly-border); border-radius: var(--dly-radius-sm); text-decoration: none; color: var(--dly-ink); background: #fff; font-weight: 600; }
.page-numbers.current { background: var(--dly-primary); color: #fff; border-color: var(--dly-primary); }
.page-numbers:hover:not(.current) { border-color: var(--dly-primary); color: var(--dly-primary); }

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */
.dly-footer { background: #1b1220; color: #d8cfe2; margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
.dly-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .dly-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .dly-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }
.dly-footer__title { font-size: 1rem; color: #fff; margin: 0 0 .9rem; }
.dly-footer a { color: #d8cfe2; text-decoration: none; }
.dly-footer a:hover { color: #fff; text-decoration: underline; }
.dly-footer__about p { color: #b6a9c4; font-size: .92rem; }
.dly-footer__more { font-weight: 600; }
.dly-footer__list { list-style: none; padding: 0; margin: 0; }
.dly-footer__list li { margin-bottom: .5rem; font-size: .92rem; }
.dly-social { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1rem 0 0; }
.dly-social a { font-size: .85rem; border: 1px solid #3a2c44; padding: .3rem .6rem; border-radius: 999px; }
.dly-footer__disclaimer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #33263d; }
.dly-footer__disclaimer p { color: #b6a9c4; font-size: .88rem; margin: 0; }
.dly-footer__bottom { margin-top: 1rem; }
.dly-footer__copy { color: #9a8bab; font-size: .85rem; margin: 0; }

/* ---------------------------------------------------------------------------
 * 404
 * ------------------------------------------------------------------------ */
.dly-404 { text-align: center; padding: 2rem 0; }
.dly-404__code { font-size: clamp(3rem, 2rem + 8vw, 6rem); font-weight: 800; color: var(--dly-subtle-2); margin: 0; line-height: 1; }
.dly-404__search { max-width: 480px; margin: 1.5rem auto; }

/* ---------------------------------------------------------------------------
 * Misc
 * ------------------------------------------------------------------------ */
.dly-empty { padding: 2rem; text-align: center; color: var(--dly-muted); background: var(--dly-subtle); border-radius: var(--dly-radius); }
.dly-noresults { padding: 1rem 0; }
.dly-page-links { margin: 1.5rem 0; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===========================================================================
 * Editorial components
 * Answer-first boxes, source tags, TOC lists, checklists, bank lists,
 * comments and print rules.
 * ======================================================================== */

/* Screen-reader-only alias used by theme-generated markup (table captions
 * etc.) alongside the WordPress-standard .screen-reader-text. */
.dly-screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
 * Answer-first box (opens every article)
 * ------------------------------------------------------------------------ */
.dly-answer {
	background: linear-gradient(180deg, var(--dly-subtle) 0%, #fff 100%);
	border: 1px solid var(--dly-border);
	border-left: 4px solid var(--dly-primary);
	border-radius: 0 var(--dly-radius) var(--dly-radius) 0;
	padding: 1.1rem 1.2rem .5rem;
	margin: 0 0 1.5rem;
	box-shadow: var(--dly-shadow-sm);
}
.dly-answer__label {
	display: inline-block;
	margin: 0 0 .4rem;
	font-size: .7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--dly-primary);
}
.dly-answer__body p { margin: 0 0 .6rem; font-size: 1.08rem; }
.dly-answer__body p:last-child { margin-bottom: .6rem; }

/* ---------------------------------------------------------------------------
 * Source provenance tags
 * ------------------------------------------------------------------------ */
.dly-tag--official {
	color: var(--dly-success);
	background: var(--dly-success-bg);
	border-color: #a9d9be;
}
.dly-tag--reported {
	color: var(--dly-demo-ink);
	background: var(--dly-demo-bg);
	border-color: var(--dly-demo-border);
}
.dly-source-tag {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	font-size: .9rem;
	color: var(--dly-muted);
	margin: 0 0 .8rem;
}
.dly-table--sources th[scope="row"] { font-weight: 600; }
.dly-table--sources .dly-tag { margin-left: .4rem; vertical-align: middle; }
.dly-table caption { caption-side: top; }

/* ---------------------------------------------------------------------------
 * Table of contents (ordered list variant)
 * ------------------------------------------------------------------------ */
.dly-toc ol, .dly-toc__list { margin: 0; padding-left: 1.2rem; }
.dly-toc__item { margin-bottom: .3rem; }
.dly-toc__item--h3 { list-style: none; padding-left: .9rem; font-size: .95rem; }
.dly-toc__item--h3::before { content: "\2013"; margin-right: .45rem; color: var(--dly-muted); }
.dly-toc__title { font-size: 1.05rem; }

/* ---------------------------------------------------------------------------
 * Bank list & checklist
 * ------------------------------------------------------------------------ */
.dly-bank-list {
	list-style: none;
	padding-left: 0;
	margin: 0 0 1rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: .4rem;
}
@media (min-width: 560px) { .dly-bank-list { grid-template-columns: repeat(2, 1fr); } }
.dly-bank-list li {
	background: #fff;
	border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius-sm);
	padding: .5rem .75rem;
	font-size: .95rem;
}

.dly-checklist {
	background: var(--dly-subtle);
	border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius);
	padding: 1.1rem 1.2rem;
	margin: 1.2rem 0;
}
.dly-checklist__title { margin: 0 0 .7rem; font-size: 1.1rem; }
.dly-checklist__list { list-style: none; padding-left: 0; margin: 0; }
.dly-checklist__list li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: .5rem;
}
.dly-checklist__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3rem;
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid var(--dly-primary);
	border-radius: 4px;
	background: #fff;
}

/* ---------------------------------------------------------------------------
 * Facts sub-blocks
 * ------------------------------------------------------------------------ */
.dly-facts h3 { margin: 0 0 .7rem; }
.dly-facts h4 { margin: 1.2rem 0 .6rem; font-size: 1.02rem; }
.dly-facts--bank .dly-notice { margin-top: 1rem; }

/* ---------------------------------------------------------------------------
 * Demo tools: no-JS fallback notice
 * ------------------------------------------------------------------------ */
.dly-demo__noscript {
	margin: 1rem 0 0;
	padding: .7rem .9rem;
	background: #fff;
	border: 1px solid var(--dly-demo-border);
	border-radius: var(--dly-radius-sm);
	font-size: .92rem;
	color: var(--dly-demo-ink);
}

/* ---------------------------------------------------------------------------
 * Official-source box when rendered as a sidebar widget (h3 variant)
 * ------------------------------------------------------------------------ */
.dly-widget .dly-official { margin: 0; }
.dly-widget .dly-official__title { font-size: 1.05rem; }

/* ---------------------------------------------------------------------------
 * Archive description
 * ------------------------------------------------------------------------ */
.dly-archive-desc { color: var(--dly-muted); max-width: 70ch; }
.dly-archive-desc p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
 * Comments (only used if an editor enables them)
 * ------------------------------------------------------------------------ */
.dly-comments { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--dly-border); }
.dly-comments__title { font-size: 1.3rem; margin: 0 0 1.2rem; }
.dly-comments__list { list-style: none; padding: 0; margin: 0 0 2rem; }
.dly-comments__list .children { list-style: none; padding-left: 1.25rem; margin-top: 1rem; }
.dly-comments__list li.comment { margin-bottom: 1.25rem; }
.dly-comments__list article {
	background: #fff;
	border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius);
	padding: 1rem 1.1rem;
}
.dly-comments__list .comment-meta { font-size: .85rem; color: var(--dly-muted); margin-bottom: .5rem; }
.dly-comments__list .avatar { border-radius: 50%; margin-right: .6rem; vertical-align: middle; }
.dly-comments__closed { color: var(--dly-muted); font-size: .92rem; }
.dly-comment-form .comment-notes,
.dly-comment-form .comment-form-cookies-consent { font-size: .88rem; color: var(--dly-muted); }
.dly-comment-form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .3rem; }
.dly-comment-form input[type="text"],
.dly-comment-form input[type="email"],
.dly-comment-form input[type="url"],
.dly-comment-form textarea {
	width: 100%;
	padding: .65rem .8rem;
	border: 1px solid var(--dly-border);
	border-radius: var(--dly-radius-sm);
	font: inherit;
	background: #fff;
	color: var(--dly-ink);
}
.dly-comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .7rem 1.2rem;
	border: 1px solid var(--dly-primary);
	border-radius: var(--dly-radius-sm);
	background: var(--dly-primary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.dly-comment-form .submit:hover { background: var(--dly-primary-700); }

/* ---------------------------------------------------------------------------
 * Print: keep the important things, drop the furniture
 * ------------------------------------------------------------------------ */
@media print {
	.dly-header,
	.dly-footer__grid,
	.dly-sidebar,
	.dly-ad,
	.dly-progress,
	.dly-skip-link,
	.dly-feedback,
	.dly-related,
	.dly-comments,
	.dly-search-panel { display: none !important; }

	body { font-size: 12pt; color: #000; background: #fff; }
	.dly-container { max-width: none; padding: 0; }
	.dly-answer, .dly-notice, .dly-demo, .dly-official { border: 1px solid #999 !important; background: #fff !important; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
	.dly-footer { background: #fff; color: #000; margin-top: 1rem; }
	.dly-footer__disclaimer p, .dly-footer__copy { color: #000; }
}
