/**
 * Desi Date Calendar — front-end styles.
 * Design system: "Harvest Heritage" (warm, earthy, premium, editorial).
 * Tokens set inline in <head> from settings; this file consumes + extends them.
 * Light & dark themes · fully responsive · SVG icons · no external deps.
 */

/* ================================================================== */
/* Fonts                                                               */
/* ================================================================== */
/*
 * Jameel Noori Nastaleeq — proprietary; NOT bundled. Drop the font file at
 * /assets/fonts/jameel-noori-nastaleeq.woff2 (see that folder's README).
 * If it is absent, Urdu gracefully falls back to Noto Nastaliq Urdu
 * (loaded from Google Fonts), which is a genuine Nastaliq typeface.
 */
@font-face {
	font-family: "Jameel Noori Nastaleeq";
	src: url("../fonts/jameel-noori-nastaleeq.woff2") format("woff2"),
		url("../fonts/jameel-noori-nastaleeq.ttf") format("truetype");
	font-weight: 400 700;
	font-display: swap;
}

/* ================================================================== */
/* Tokens & theme                                                      */
/* ================================================================== */
:root {
	/* Brand (overridden inline from settings). */
	--ddc-primary: #b84a2e;
	--ddc-secondary: #0e7c6b;
	--ddc-accent: #e8a02a;
	--ddc-radius: 16px;
	--ddc-font-heading: "Plus Jakarta Sans";
	--ddc-font-body: "Inter";

	/* Derived radii. */
	--ddc-radius-sm: 12px;
	--ddc-radius-lg: 24px;
	--ddc-radius-pill: 999px;

	/* Harvest Heritage — light. */
	--ddc-bg: #fbf7ef;
	--ddc-surface: #ffffff;
	--ddc-surface-2: #f4ecdd;
	--ddc-surface-3: #efe4d2;
	--ddc-text: #23180f;
	--ddc-text-soft: #6e6152;
	--ddc-border: #ebe0cf;
	--ddc-ring: color-mix(in srgb, var(--ddc-primary) 45%, transparent);

	--ddc-shadow-sm: 0 1px 2px rgba(58, 40, 22, .06), 0 2px 6px rgba(58, 40, 22, .05);
	--ddc-shadow: 0 6px 18px rgba(58, 40, 22, .08), 0 2px 6px rgba(58, 40, 22, .05);
	--ddc-shadow-lg: 0 18px 48px rgba(58, 40, 22, .14);

	--ddc-maxw: 1160px;
	--ddc-ease: cubic-bezier(.2, .7, .3, 1);

	/* Chevron used by native selects (dark glyph for light theme). */
	--ddc-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%236e6152' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
	color-scheme: light;
}

/* Explicit dark (toggle) + system dark. */
:root[data-ddc-theme="dark"],
body.ddc-theme-dark,
body.ddc-theme-dark :root {
	color-scheme: dark;
}

.ddc-dark-tokens,
body.ddc-theme-dark {
	--ddc-bg: #1a130d;
	--ddc-surface: #241a12;
	--ddc-surface-2: #2e2217;
	--ddc-surface-3: #38291b;
	--ddc-text: #f5ecdf;
	--ddc-text-soft: #b7a793;
	--ddc-border: #382a1c;
	--ddc-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--ddc-shadow: 0 8px 24px rgba(0, 0, 0, .45);
	--ddc-shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
	--ddc-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23b7a793' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
}

@media (prefers-color-scheme: dark) {
	body:not(.ddc-theme-light) {
		--ddc-bg: #1a130d;
		--ddc-surface: #241a12;
		--ddc-surface-2: #2e2217;
		--ddc-surface-3: #38291b;
		--ddc-text: #f5ecdf;
		--ddc-text-soft: #b7a793;
		--ddc-border: #382a1c;
		--ddc-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
		--ddc-shadow: 0 8px 24px rgba(0, 0, 0, .45);
		--ddc-shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
		--ddc-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23b7a793' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
		color-scheme: dark;
	}
}

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

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

body {
	margin: 0;
	background: var(--ddc-bg);
	color: var(--ddc-text);
	font-family: var(--ddc-font-body), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: clamp(15px, 1vw + 13px, 17px);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background .3s var(--ddc-ease), color .3s var(--ddc-ease);
}

h1, h2, h3, h4 {
	font-family: var(--ddc-font-heading), var(--ddc-font-body), sans-serif;
	line-height: 1.18;
	letter-spacing: -.02em;
	color: var(--ddc-text);
	margin: 0 0 .4em;
}

a {
	color: var(--ddc-primary);
	text-decoration: none;
	transition: color .2s var(--ddc-ease);
}
a:hover { color: color-mix(in srgb, var(--ddc-primary) 80%, #000); }

img { max-width: 100%; height: auto; }

:focus-visible {
	outline: 3px solid var(--ddc-ring);
	outline-offset: 2px;
	border-radius: 6px;
}

button { cursor: pointer; font: inherit; }

/* ================================================================== */
/* Language-specific typography (pure script, incl. headings)          */
/* ================================================================== */
body.ddc-lang-ur {
	font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
	line-height: 2.35;
}
body.ddc-lang-ur h1,
body.ddc-lang-ur h2,
body.ddc-lang-ur h3,
body.ddc-lang-ur h4,
body.ddc-lang-ur .ddc-hero__date,
body.ddc-lang-ur .ddc-logo__text,
body.ddc-lang-ur button,
body.ddc-lang-ur input,
body.ddc-lang-ur select,
body.ddc-lang-ur .ddc-countdown__value {
	font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
	letter-spacing: 0;
}
/* Give Nastaliq extra vertical room so descenders never clip. */
body.ddc-lang-ur .ddc-hero__date { line-height: 1.9; padding-block: .12em; }
body.ddc-lang-ur .ddc-nav__list a { padding-block: 12px; }

body.ddc-lang-pa,
body.ddc-lang-pa h1,
body.ddc-lang-pa h2,
body.ddc-lang-pa h3,
body.ddc-lang-pa h4,
body.ddc-lang-pa button,
body.ddc-lang-pa input,
body.ddc-lang-pa select {
	font-family: "Noto Sans Gurmukhi", var(--ddc-font-body), sans-serif;
}

/* ================================================================== */
/* Layout primitives                                                   */
/* ================================================================== */
.ddc-container {
	width: 100%;
	max-width: var(--ddc-maxw);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 28px);
}

.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;
}
.ddc-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--ddc-primary); color: #fff;
	padding: 10px 16px; border-radius: 0 0 10px 0;
}
.ddc-skip-link:focus { left: 0; }

.ddc-icon {
	display: inline-block;
	vertical-align: middle;
	flex: 0 0 auto;
}

/* ================================================================== */
/* Cards, buttons, chips                                               */
/* ================================================================== */
.ddc-card {
	background: var(--ddc-surface);
	border: 1px solid var(--ddc-border);
	border-radius: var(--ddc-radius);
	box-shadow: var(--ddc-shadow-sm);
	padding: clamp(20px, 3vw, 30px);
}

.ddc-btn {
	--btn-bg: var(--ddc-surface-2);
	--btn-fg: var(--ddc-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--ddc-radius-pill);
	border: 1px solid var(--ddc-border);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-weight: 600;
	font-size: .98rem;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .2s var(--ddc-ease), box-shadow .2s var(--ddc-ease), background .2s var(--ddc-ease), filter .2s var(--ddc-ease);
}
.ddc-btn:hover { transform: translateY(-2px); box-shadow: var(--ddc-shadow); text-decoration: none; }
.ddc-btn:active { transform: translateY(0); }
.ddc-btn .ddc-icon { width: 20px; height: 20px; }
.ddc-btn--primary {
	--btn-bg: var(--ddc-primary);
	--btn-fg: #fff;
	border-color: transparent;
	box-shadow: 0 8px 20px color-mix(in srgb, var(--ddc-primary) 30%, transparent);
}
.ddc-btn--primary:hover { filter: brightness(1.06); color: #fff; }
.ddc-btn--secondary {
	--btn-bg: var(--ddc-secondary);
	--btn-fg: #fff;
	border-color: transparent;
}
.ddc-btn--block { width: 100%; }

.ddc-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: var(--ddc-radius-pill);
	background: var(--ddc-surface-2);
	color: var(--ddc-text-soft);
	font-size: .84rem;
	font-weight: 600;
	line-height: 1;
}
.ddc-chip .ddc-icon { width: 15px; height: 15px; }

/* ================================================================== */
/* Header                                                              */
/* ================================================================== */
.ddc-header {
	position: sticky; top: 0; z-index: 200;
	background: color-mix(in srgb, var(--ddc-surface) 85%, transparent);
	backdrop-filter: saturate(150%) blur(12px);
	-webkit-backdrop-filter: saturate(150%) blur(12px);
	border-bottom: 1px solid var(--ddc-border);
}
.ddc-header__inner {
	display: flex; align-items: center; gap: 16px;
	min-height: 70px;
}
.ddc-logo {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--ddc-font-heading);
	font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em;
	color: var(--ddc-text);
}
.ddc-logo__icon {
	display: grid; place-items: center;
	width: 38px; height: 38px; border-radius: 11px;
	background: linear-gradient(135deg, var(--ddc-primary), var(--ddc-accent));
	color: #fff;
}
.ddc-logo__icon .ddc-icon { width: 22px; height: 22px; }

.ddc-nav { margin-inline-start: auto; }
.ddc-nav__list {
	display: flex; gap: 4px;
	list-style: none; margin: 0; padding: 0;
}
.ddc-nav__list a {
	display: block; padding: 9px 15px;
	border-radius: 12px; color: var(--ddc-text); font-weight: 600;
	transition: background .2s var(--ddc-ease);
}
.ddc-nav__list a:hover { background: var(--ddc-surface-2); text-decoration: none; }
.ddc-nav__list .current-menu-item > a { background: var(--ddc-surface-2); color: var(--ddc-primary); }

.ddc-header__tools { display: flex; align-items: center; gap: 8px; }

.ddc-iconbtn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: var(--ddc-radius-pill);
	background: var(--ddc-surface-2); border: 1px solid transparent;
	color: var(--ddc-text); cursor: pointer;
	transition: background .2s var(--ddc-ease), transform .2s var(--ddc-ease);
}
.ddc-iconbtn:hover { background: var(--ddc-surface-3); transform: translateY(-1px); }
.ddc-iconbtn .ddc-icon { width: 20px; height: 20px; }

.ddc-lang-switch {
	display: inline-flex; gap: 2px; padding: 4px;
	background: var(--ddc-surface-2); border-radius: var(--ddc-radius-pill);
}
.ddc-lang {
	padding: 7px 13px; border-radius: var(--ddc-radius-pill);
	font-size: .84rem; font-weight: 600; color: var(--ddc-text-soft);
	transition: background .2s var(--ddc-ease), color .2s var(--ddc-ease);
}
.ddc-lang:hover { color: var(--ddc-text); text-decoration: none; }
.ddc-lang.is-active { background: var(--ddc-primary); color: #fff; }

.ddc-nav-toggle { display: none; }

/* Search panel */
.ddc-search-panel {
	border-top: 1px solid var(--ddc-border);
	background: var(--ddc-surface);
	padding: 16px 0;
}
.ddc-search-results { margin-top: 10px; display: grid; gap: 6px; }
.ddc-search-result {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px; border-radius: 14px;
	background: var(--ddc-surface-2); color: var(--ddc-text);
	transition: background .2s var(--ddc-ease);
}
.ddc-search-result:hover { background: var(--ddc-surface-3); text-decoration: none; }
.ddc-search-result__meta { margin-inline-start: auto; color: var(--ddc-text-soft); font-size: .85rem; }

/* ================================================================== */
/* Hero                                                                */
/* ================================================================== */
.ddc-hero { padding: clamp(28px, 5vw, 56px) 0 20px; }
.ddc-hero__grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 20px;
	align-items: stretch;
}
.ddc-hero__main {
	position: relative; overflow: hidden;
	padding: clamp(26px, 4vw, 44px);
	background:
		radial-gradient(130% 150% at 100% 0%, color-mix(in srgb, var(--ddc-month-color, var(--ddc-primary)) 18%, transparent), transparent 62%),
		var(--ddc-surface);
	border-top: 4px solid var(--ddc-month-color, var(--ddc-primary));
}
.ddc-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	text-transform: uppercase; letter-spacing: .16em;
	font-size: .74rem; font-weight: 700; color: var(--ddc-text-soft);
}
.ddc-hero__eyebrow .ddc-icon { width: 16px; height: 16px; color: var(--ddc-month-color, var(--ddc-primary)); }
.ddc-hero__date {
	font-size: clamp(2.4rem, 7vw, 4.4rem);
	margin: 12px 0 8px; line-height: 1.02;
	color: var(--ddc-month-color, var(--ddc-primary));
	letter-spacing: -.03em; font-weight: 800;
}
.ddc-hero__greg { font-size: 1.1rem; color: var(--ddc-text-soft); margin: 0 0 20px; }
.ddc-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ddc-hero__festival {
	margin-top: 18px; font-weight: 700;
	color: color-mix(in srgb, var(--ddc-accent) 80%, #000);
}

.ddc-hero__side { display: grid; gap: 20px; align-content: stretch; grid-auto-rows: 1fr; }
.ddc-countdown { text-align: center; display: grid; gap: 3px; align-content: center; }
.ddc-countdown__label {
	text-transform: uppercase; letter-spacing: .12em;
	font-size: .7rem; font-weight: 700; color: var(--ddc-text-soft);
}
.ddc-countdown__month { font-weight: 700; font-size: 1.05rem; }
.ddc-countdown__value {
	font-family: var(--ddc-font-heading);
	font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 800; line-height: 1;
	color: var(--ddc-secondary); margin-top: 6px;
}
.ddc-countdown__unit { color: var(--ddc-text-soft); font-size: .9rem; }

.ddc-progress__label { font-weight: 700; display: block; margin-bottom: 12px; }
.ddc-progress__bar {
	height: 12px; border-radius: var(--ddc-radius-pill);
	background: var(--ddc-surface-2); overflow: hidden;
}
.ddc-progress__fill {
	height: 100%; border-radius: var(--ddc-radius-pill);
	background: linear-gradient(90deg, var(--ddc-primary), var(--ddc-accent));
	transition: width .8s var(--ddc-ease);
}
.ddc-progress__meta { display: block; margin-top: 10px; color: var(--ddc-text-soft); font-size: .88rem; }

/* ================================================================== */
/* Sections                                                            */
/* ================================================================== */
.ddc-section { padding: clamp(26px, 4vw, 44px) 0; }
.ddc-section__title {
	font-size: clamp(1.5rem, 3.5vw, 2.15rem);
	margin: 0 0 22px;
}
.ddc-section__title--center { text-align: center; }

/* Reminder band */
.ddc-reminder-card {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: clamp(20px, 4vw, 40px);
	align-items: center;
	background:
		radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--ddc-secondary) 10%, transparent), transparent 55%),
		var(--ddc-surface);
	border: 1px solid var(--ddc-border);
}
.ddc-reminder-card h2 { margin-top: 0; }
.ddc-reminder-card__intro p { color: var(--ddc-text-soft); margin-bottom: 0; }

/* Facts */
.ddc-facts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}
.ddc-fact__icon {
	display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 13px;
	background: color-mix(in srgb, var(--ddc-accent) 18%, var(--ddc-surface-2));
	color: color-mix(in srgb, var(--ddc-accent) 78%, #000);
	margin-bottom: 14px;
}
.ddc-fact__icon .ddc-icon { width: 24px; height: 24px; }
.ddc-fact h3 { margin: 0 0 8px; font-size: 1.08rem; }
.ddc-fact p { margin: 0; color: var(--ddc-text-soft); }

/* Months grid */
.ddc-months-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
	gap: 14px;
}
.ddc-months-grid--full { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ddc-month-card {
	display: grid; gap: 5px;
	padding: 18px;
	border-radius: var(--ddc-radius);
	background: var(--ddc-surface);
	border: 1px solid var(--ddc-border);
	color: var(--ddc-text);
	position: relative;
	overflow: hidden;
	transition: transform .2s var(--ddc-ease), box-shadow .2s var(--ddc-ease), border-color .2s var(--ddc-ease);
}
.ddc-month-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
	background: var(--ddc-month-color, var(--ddc-primary));
}
.ddc-month-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ddc-shadow);
	border-color: color-mix(in srgb, var(--ddc-month-color, var(--ddc-primary)) 40%, var(--ddc-border));
	text-decoration: none;
}
.ddc-month-card.is-current { box-shadow: 0 0 0 2px var(--ddc-month-color, var(--ddc-primary)); }
.ddc-month-card__icon { font-size: 1.7rem; margin-top: 4px; }
.ddc-month-card__name { font-family: var(--ddc-font-heading); font-weight: 700; font-size: 1.08rem; }
.ddc-month-card__native,
.ddc-month-card__hint,
.ddc-month-card__season { color: var(--ddc-text-soft); font-size: .82rem; }

/* Calendar preview */
.ddc-cal-preview__head {
	display: flex; justify-content: space-between; align-items: baseline;
	margin-bottom: 18px; flex-wrap: wrap; gap: 6px;
}
.ddc-cal-preview__month { font-family: var(--ddc-font-heading); font-weight: 700; font-size: 1.2rem; }
.ddc-cal-preview__hint { color: var(--ddc-text-soft); font-size: .85rem; }
.ddc-cal-preview__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ddc-cal-day {
	display: grid; gap: 2px; padding: 9px 4px;
	border-radius: 12px; background: var(--ddc-surface-2); text-align: center;
	transition: transform .15s var(--ddc-ease);
}
.ddc-cal-day:hover { transform: translateY(-2px); }
.ddc-cal-day__num { font-weight: 700; }
.ddc-cal-day__greg { font-size: .66rem; color: var(--ddc-text-soft); }
.ddc-cal-day.is-today {
	background: var(--ddc-month-color, var(--ddc-primary)); color: #fff;
	box-shadow: 0 6px 14px color-mix(in srgb, var(--ddc-month-color, var(--ddc-primary)) 40%, transparent);
}
.ddc-cal-day.is-today .ddc-cal-day__greg { color: rgba(255, 255, 255, .85); }

/* Articles */
.ddc-articles-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.ddc-article-card {
	background: var(--ddc-surface); border: 1px solid var(--ddc-border);
	border-radius: var(--ddc-radius); overflow: hidden;
	transition: transform .2s var(--ddc-ease), box-shadow .2s var(--ddc-ease);
}
.ddc-article-card:hover { transform: translateY(-3px); box-shadow: var(--ddc-shadow); }
.ddc-article-card a { color: var(--ddc-text); }
.ddc-article-card__thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ddc-article-card__title { font-size: 1.12rem; margin: 15px 16px 6px; }
.ddc-article-card__excerpt { margin: 0 16px 16px; color: var(--ddc-text-soft); font-size: .9rem; }

/* FAQ */
.ddc-faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.ddc-faq__item {
	background: var(--ddc-surface); border: 1px solid var(--ddc-border);
	border-radius: var(--ddc-radius); padding: 4px 22px;
	transition: box-shadow .2s var(--ddc-ease);
}
.ddc-faq__item[open] { box-shadow: var(--ddc-shadow-sm); }
.ddc-faq__q {
	cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
	display: flex; align-items: center; gap: 12px;
}
.ddc-faq__q::-webkit-details-marker { display: none; }
.ddc-faq__q::before {
	content: ""; width: 22px; height: 22px; flex: 0 0 auto;
	background: var(--ddc-primary); color: #fff; border-radius: 7px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'><path d='M8 4v8M4 8h8'/></svg>");
	background-repeat: no-repeat; background-position: center;
	transition: transform .2s var(--ddc-ease);
}
.ddc-faq__item[open] .ddc-faq__q::before { transform: rotate(45deg); }
.ddc-faq__a { padding: 0 0 18px 34px; color: var(--ddc-text-soft); }

/* ================================================================== */
/* Forms & the reminder form (responsive dropdowns)                    */
/* ================================================================== */
.ddc-reminder-form { display: grid; gap: 14px; }
.ddc-field-label {
	display: block; font-size: .82rem; font-weight: 600;
	color: var(--ddc-text-soft); margin-bottom: 6px;
}
.ddc-input,
.ddc-select {
	width: 100%;
	min-height: 50px;
	padding: 13px 16px;
	border-radius: var(--ddc-radius-sm);
	border: 1px solid var(--ddc-border);
	background: var(--ddc-surface);
	color: var(--ddc-text);
	font: inherit;
	transition: border-color .2s var(--ddc-ease), box-shadow .2s var(--ddc-ease);
}
.ddc-input::placeholder { color: color-mix(in srgb, var(--ddc-text-soft) 85%, transparent); }
.ddc-input:focus,
.ddc-select:focus {
	outline: none;
	border-color: var(--ddc-primary);
	box-shadow: 0 0 0 4px var(--ddc-ring);
}
/* Native select: custom chevron, never truncates text awkwardly. */
.ddc-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-inline-end: 44px;
	background-image: var(--ddc-chevron);
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px 20px;
	text-overflow: ellipsis;
	cursor: pointer;
}
body.ddc-dir-rtl .ddc-select { background-position: left 12px center; padding-inline-end: 16px; padding-inline-start: 44px; }

.ddc-reminder-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}
.ddc-reminder-form__field { min-width: 0; }
.ddc-reminder-form__submit { min-height: 52px; margin-top: 2px; }
.ddc-reminder-form__note {
	font-size: .82rem; color: var(--ddc-text-soft); margin: 2px 0 0;
	display: flex; align-items: center; gap: 7px;
}
.ddc-reminder-form__note .ddc-icon { width: 15px; height: 15px; color: var(--ddc-secondary); }
.ddc-reminder-form__message { font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.ddc-reminder-form__message.is-success { color: var(--ddc-secondary); }
.ddc-reminder-form__message.is-error { color: #c0392b; }
.ddc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================================================================== */
/* Blog / content / sidebar                                            */
/* ================================================================== */
.ddc-main-with-sidebar {
	display: grid; grid-template-columns: minmax(0, 1fr) 330px;
	gap: 34px; padding-block: 36px;
}
.ddc-page-title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 22px; }
.ddc-post-list { display: grid; gap: 20px; }
.ddc-post-card {
	display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px;
	background: var(--ddc-surface); border: 1px solid var(--ddc-border);
	border-radius: var(--ddc-radius); overflow: hidden;
	transition: box-shadow .2s var(--ddc-ease);
}
.ddc-post-card:hover { box-shadow: var(--ddc-shadow); }
.ddc-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ddc-post-card__body { padding: 20px 20px 20px 0; }
.ddc-post-card__title { margin: 0 0 6px; font-size: 1.25rem; }
.ddc-post-card__meta { color: var(--ddc-text-soft); font-size: .85rem; margin-bottom: 8px; }
.ddc-readmore { font-weight: 700; }

.ddc-prose { line-height: 1.85; }
.ddc-prose h2 { margin-top: 1.6em; }
.ddc-prose img { border-radius: var(--ddc-radius); }

.ddc-sidebar { display: grid; gap: 20px; align-content: start; }
.ddc-widget {
	background: var(--ddc-surface); border: 1px solid var(--ddc-border);
	border-radius: var(--ddc-radius); padding: 22px;
}
.ddc-widget__title { margin: 0 0 14px; font-size: 1.08rem; }
.ddc-widget-today__date { font-size: 1.7rem; font-weight: 800; color: var(--ddc-primary); font-family: var(--ddc-font-heading); }
.ddc-widget-today__greg { color: var(--ddc-text-soft); }
.ddc-widget-today__meta { margin-top: 6px; color: var(--ddc-text-soft); font-size: .9rem; }

/* ================================================================== */
/* Month / today / notice / 404 views                                  */
/* ================================================================== */
.ddc-breadcrumb { padding: 22px 0 4px; color: var(--ddc-text-soft); font-size: .9rem; }
.ddc-month-view { padding-block: 10px 44px; }
.ddc-month-view__header { text-align: center; border-top: 4px solid var(--ddc-month-color, var(--ddc-primary)); margin-top: 12px; }
.ddc-month-view__icon { font-size: 3rem; }
.ddc-month-view__title { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 6px 0; }
.ddc-month-view__names { color: var(--ddc-text-soft); }
.ddc-month-view__chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.ddc-month-view__status { margin-top: 18px; font-size: 1.05rem; }
.ddc-month-view__status.is-current { color: var(--ddc-secondary); font-weight: 700; }
.ddc-month-view__body { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 26px; margin-top: 26px; }
.ddc-month-view__aside { display: grid; gap: 20px; align-content: start; }
.ddc-month-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ddc-month-nav__link { font-weight: 700; }

.ddc-today-view { padding-block: 36px; display: grid; gap: 24px; }
.ddc-today-view__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 26px 0 0; }
.ddc-today-view__facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ddc-text-soft); }
.ddc-today-view__facts dd { margin: 3px 0 0; font-weight: 700; font-size: 1.12rem; }

.ddc-notice-page, .ddc-404 { padding-block: 64px; display: flex; justify-content: center; }
.ddc-notice, .ddc-404__card { text-align: center; max-width: 520px; }
.ddc-notice__msg { font-size: 1.2rem; margin-bottom: 22px; }
.ddc-404__title { font-size: clamp(3rem, 12vw, 5rem); margin: 0; color: var(--ddc-primary); font-weight: 800; }
.ddc-404__actions { display: flex; gap: 12px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }

/* ================================================================== */
/* Footer                                                              */
/* ================================================================== */
.ddc-footer { margin-top: 52px; background: var(--ddc-surface); border-top: 1px solid var(--ddc-border); }
.ddc-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 48px 0; }
.ddc-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ddc-footer__bar { border-top: 1px solid var(--ddc-border); padding: 18px 0; }
.ddc-footer__bar .ddc-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ddc-footer__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.ddc-copyright { color: var(--ddc-text-soft); font-size: .85rem; margin: 0; }

/* ================================================================== */
/* Search form                                                         */
/* ================================================================== */
.ddc-searchform { display: flex; gap: 8px; }
.ddc-searchform__input {
	flex: 1; min-width: 0; min-height: 50px; padding: 12px 16px;
	border-radius: var(--ddc-radius-sm); border: 1px solid var(--ddc-border);
	background: var(--ddc-surface); color: var(--ddc-text); font: inherit;
}
.ddc-searchform__input:focus { outline: none; border-color: var(--ddc-primary); box-shadow: 0 0 0 4px var(--ddc-ring); }
.ddc-searchform__submit {
	display: inline-grid; place-items: center;
	min-width: 50px; padding: 0 16px; border-radius: var(--ddc-radius-sm);
	border: none; background: var(--ddc-primary); color: #fff; cursor: pointer;
}
.ddc-searchform__submit .ddc-icon { width: 20px; height: 20px; }

/* ================================================================== */
/* Mobile drawer & responsive                                          */
/* ================================================================== */
.ddc-drawer-backdrop {
	position: fixed; inset: 0; z-index: 250;
	background: rgba(20, 12, 6, .5);
	opacity: 0; visibility: hidden;
	transition: opacity .25s var(--ddc-ease), visibility .25s var(--ddc-ease);
}
.ddc-drawer-backdrop.is-open { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
	.ddc-hero__grid,
	.ddc-reminder-card,
	.ddc-main-with-sidebar,
	.ddc-month-view__body {
		grid-template-columns: 1fr;
	}
	.ddc-post-card { grid-template-columns: 1fr; }
	.ddc-post-card__thumb img { max-height: 220px; }
	.ddc-post-card__body { padding: 20px; }

	/* Collapse desktop nav + inline lang switch; show hamburger. */
	.ddc-nav { display: none; }
	.ddc-header__tools .ddc-lang-switch { display: none; }
	.ddc-nav-toggle { display: inline-grid; margin-inline-start: auto; }

	/* Slide-in drawer holds nav + language + tools on mobile. */
	.ddc-nav.is-drawer {
		display: block;
		position: fixed; top: 0; inset-inline-end: 0; z-index: 260;
		width: min(84vw, 340px); height: 100dvh;
		background: var(--ddc-surface);
		border-inline-start: 1px solid var(--ddc-border);
		box-shadow: var(--ddc-shadow-lg);
		padding: 76px 22px 28px;
		transform: translateX(100%);
		transition: transform .3s var(--ddc-ease);
		overflow-y: auto;
	}
	body.ddc-dir-rtl .ddc-nav.is-drawer { transform: translateX(-100%); }
	.ddc-nav.is-drawer.is-open { transform: translateX(0); }
	.ddc-nav.is-drawer .ddc-nav__list { flex-direction: column; gap: 4px; }
	.ddc-nav.is-drawer .ddc-nav__list a { padding: 13px 14px; border-radius: 12px; }
	.ddc-drawer-lang {
		display: flex; gap: 8px; flex-wrap: wrap;
		margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ddc-border);
	}
	.ddc-drawer-lang .ddc-lang { background: var(--ddc-surface-2); }
	.ddc-drawer-close { position: absolute; top: 18px; inset-inline-end: 18px; }
}

@media (min-width: 901px) {
	.ddc-drawer-lang, .ddc-drawer-close { display: none; }
}

@media (max-width: 560px) {
	.ddc-cal-preview__grid { grid-template-columns: repeat(5, 1fr); }
	.ddc-footer__bar .ddc-container { flex-direction: column; align-items: flex-start; }
	.ddc-btn { width: 100%; }
	.ddc-reminder-form__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}
