/* ==========================================================================
   Inner pages: page hero, entries, prose, case timeline, fact sheet, forms, 404
   ========================================================================== */
.container--read { max-width: calc(var(--maxw-read) + var(--gutter) * 2); }
.container--wide { max-width: calc(1040px + var(--gutter) * 2); }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current] { color: var(--ink); font-weight: 550; }

/* ---------- Page hero ---------- */
.page-hero {
	--c: var(--green); --c-soft: var(--green-soft);
	position: relative; overflow: hidden;
	padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px);
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(ellipse 60% 80% at 100% 0%, var(--c-soft), transparent 60%),
		var(--paper);
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero__icon {
	position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(-10deg);
	color: var(--c); opacity: .09;
	animation: bob 8s ease-in-out infinite;
}
.page-hero__icon .icon { width: clamp(180px, 26vw, 340px); height: auto; stroke-width: 1; }
.page-hero__inner { position: relative; }

/* Photo variant: image on the right, fading into ivory behind the text */
.page-hero--photo { min-height: clamp(340px, 34vw, 460px); display: flex; align-items: center; }
.page-hero--photo .page-hero__inner { width: 100%; }
.page-hero__photo {
	position: absolute; top: 0; right: 0; bottom: 0; width: 64%; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);
}
.page-hero__img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1%); } }
.page-hero--photo .page-hero__title, .page-hero--photo .page-hero__lead { max-width: 18ch; }
.page-hero--photo .page-hero__lead { max-width: 46ch; }
@media (max-width: 860px) {
	.page-hero--photo { min-height: 0; display: block; padding-top: 0; }
	.page-hero__photo { position: relative; width: auto; height: 200px; margin-bottom: -40px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
}
.page-hero__title { font-size: var(--fs-h1); max-width: 20ch; margin-bottom: 8px; }
.page-hero__ur { font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); color: var(--c); margin: 0 0 12px; }
.page-hero__lead { max-width: 60ch; font-size: 1.1rem; }
.page-hero__count { display: inline-flex; gap: 6px; margin: 6px 0 0; padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); }
.page-hero__count strong { font-family: var(--font-mono); color: var(--ink); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chips .ur { font-size: .85rem; line-height: 1; }

/* ---------- Entry head ---------- */
.entry-head { padding: clamp(32px, 5vw, 64px) 0 28px; }
.entry-head__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.entry-head__chips .chip .ur { font-size: .8rem; line-height: 1; }
.entry-title { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 10px; }
.entry-ur { margin: 0 0 10px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); color: var(--green); line-height: 2; }
.entry-ur-summary { font-size: 1.15rem; color: var(--ink-2); line-height: 2.1; padding: 14px 18px; border-radius: 14px; background: var(--green-soft); }
.entry-lead { font-size: 1.2rem; color: var(--ink-2); }
.entry-meta {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
	font-size: var(--fs-sm); color: var(--ink-3);
}
.entry-meta__info { display: flex; align-items: center; gap: 12px; }
.entry-meta__info strong { color: var(--ink); }
.entry-meta__avatar img { border-radius: 50%; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
.entry-media { margin-block: 12px 40px; }
.entry-media .ph, .entry-media .media { border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ---------- Prose ---------- */
.prose { font-size: 1.12rem; line-height: 1.8; color: #2B3850; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose a { color: var(--green); font-weight: 550; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
	position: relative; margin: 2em 0; padding: 24px 28px 24px 64px;
	border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
	font-family: var(--font-display); font-size: 1.35rem; line-height: 1.45; color: var(--ink);
}
.prose blockquote::before { content: "“"; position: absolute; left: 18px; top: 4px; font-size: 4.5rem; color: var(--gold); line-height: 1; }
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--r); }
.prose [lang="ur"], .prose .ur { font-size: 1.15em; line-height: 2.1; }
.prose em { color: var(--ink-3); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.entry-tags a { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); text-decoration: none; }

/* ---------- Case timeline ---------- */
.case-timeline { position: relative; margin: 8px 0 28px; padding: 24px 20px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.case-timeline ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; text-align: center; }
.case-timeline li { display: grid; justify-items: center; gap: 2px; font-size: var(--fs-sm); color: var(--ink-3); }
.case-timeline li strong { color: var(--ink-2); margin-top: 8px; }
.case-timeline li .ur { font-size: .85rem; line-height: 1.6; }
.case-timeline time { font-size: .72rem; }
.case-timeline__bar { position: absolute; left: calc(12.5% + 20px); right: calc(12.5% + 20px); top: 41px; height: 3px; border-radius: 3px; background: var(--line); }
.case-timeline__bar span { display: block; height: 100%; width: calc(var(--at) / 3 * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--gold-2)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
.case-timeline.is-visible .case-timeline__bar span { transform: scaleX(1); }
.case-timeline__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); color: transparent; transition: all .5s var(--ease); }
.case-timeline__dot .icon { width: 16px; height: 16px; }
.case-timeline .is-done .case-timeline__dot { background: var(--green); border-color: var(--green); color: #fff; }
.case-timeline .is-current .case-timeline__dot { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 6px rgba(201, 154, 46, .16); animation: pulse-gold 2s infinite; }
.case-timeline .is-current strong { color: var(--ink); }
@keyframes pulse-gold { 50% { box-shadow: 0 0 0 10px rgba(201, 154, 46, .05); } }

/* ---------- Fact sheet ---------- */
.fact-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0 0 28px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.fact-sheet div { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); }
.fact-sheet dt { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.fact-sheet dt .icon { width: 16px; height: 16px; color: var(--gold); }
.fact-sheet dd { margin: 0; color: var(--ink); font-weight: 550; }
.fact-sheet div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fact-sheet--plain { margin: 0; }

.takeaway { display: flex; gap: 16px; margin: 0 0 32px; padding: 22px; border-radius: var(--r-lg); background: var(--gold-soft); border: 1px solid #F0DDAE; }
.takeaway__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--gold-2); color: var(--ink); }
.takeaway__label { margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A6510; }
.takeaway__label .ur { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.takeaway__text { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.takeaway--sky { background: var(--sky-soft); border-color: #CADAF6; }
.takeaway--sky .takeaway__icon { background: var(--sky); color: #fff; }
.takeaway--sky .takeaway__label { color: var(--sky); }

.law-hero { position: relative; overflow: hidden; margin-bottom: 28px; border-radius: var(--r-lg); }
.law-hero__year { position: absolute; right: -10px; bottom: -40px; font-family: var(--font-display); font-weight: 800; font-size: 9rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); pointer-events: none; z-index: 2; opacity: .6; }

/* ---------- Support panel ---------- */
.support-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; margin-bottom: 32px; }
.support-panel:hover { transform: none; }
.support-panel__num { display: grid; }
.support-panel__num strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.support-panel__num span { font-size: var(--fs-sm); color: var(--ink-3); }
.support-panel .issue-card__progress { margin: 0; }

/* ---------- Help box ---------- */
.help-box { display: flex; gap: 20px; margin: 48px 0 0; padding: 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--green-soft), var(--surface)); border: 1px solid #CBE6DA; }
.help-box__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 18px; background: var(--green); color: var(--gold-2); }
.help-box__title { font-size: 1.4rem; margin: 0; }
.help-box .ur { color: var(--green); margin: 2px 0 14px; }
.help-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Form pages ---------- */
.form-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-split__intro h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); }
.form-split__intro .ur { color: var(--green); font-size: 1.2rem; }
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ticks { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 550; }
.ticks .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--green-soft); color: var(--green); }

.hero-search--inline { max-width: 640px; margin: 0 0 32px; }

/* ---------- 404 ---------- */
.notfound__inner { text-align: center; display: grid; justify-items: center; }
.notfound__code { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--ink); }
.notfound__gavel { display: grid; place-items: center; width: .9em; height: .9em; border-radius: 50%; background: var(--gold-soft); color: var(--gold); }
.notfound__gavel .icon { width: 55%; height: 55%; transform-origin: 80% 80%; animation: gavel 2.4s var(--ease) infinite; }
.notfound .ur { color: var(--green); font-size: 1.4rem; }
.notfound .hero__actions { justify-content: center; }

@media (max-width: 860px) {
	.form-split { grid-template-columns: 1fr; }
	.support-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.fact-sheet { grid-template-columns: 1fr; }
	.case-timeline ol { grid-template-columns: repeat(4, 1fr); }
	.case-timeline li strong { font-size: .78rem; }
	.case-timeline li .ur, .case-timeline time { display: none; }
	.help-box { flex-direction: column; }
	.prose blockquote { padding: 20px 20px 20px 52px; font-size: 1.15rem; }
}
