/*
Theme Name:        My Advocate Theme
Description:       A basic, lightweight theme for an Indian advocate's website. Mobile-first, no page builders, no jQuery.
Version:           4.2.29
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
Author:            Vinay Kumar Gattu
Text Domain:       my-advocate-theme
License:           Proprietary
License Notice:    All rights reserved. Not for redistribution.

All rights reserved. Not for redistribution.
*/

/* ==========================================================================
   0. Fonts (self-hosted, SIL Open Font License: see assets/fonts/OFL-*.txt)
   Figtree (variable, 300–900) for headings and text, in the style of Google's product pages
   (Google Sans itself is Google's own brand font and not licensed for other sites).
   Latin is preloaded; Latin Extended (which includes ₹) loads only when needed.
   ========================================================================== */
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Figtree";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Figtree";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. Design tokens
   Change the colours here; everything below uses these variables.
   Contrast ratios (WCAG 2.x) are noted for the pairs the theme uses.
   ========================================================================== */
:root {
	/* Dark brand colours (header, hero, footer). */
	--color-primary: #1a1a1a;            /* Soft black. */
	--color-secondary: #2b2b2b;          /* Charcoal: footer, dropdowns. */
	--color-border-dark: #444444;        /* Dividers on dark areas. */

	/* Light content colours. */
	--color-bg: #faf8f3;                 /* Off-white page background. */
	--color-surface: #ffffff;            /* Cards. */
	--color-border: #e4dfd3;
	--color-text: #1a1a1a;               /* 16.4:1 on --color-bg. */
	--color-heading: #1a1a1a;
	--color-error: #b42318;              /* Form errors: 6.1:1 on --color-bg. */
	--color-muted: #595959;              /* 6.6:1 on --color-bg. */

	/* Text on dark areas. */
	--color-on-dark: #faf8f3;            /* 16.4:1 on primary, 13.4:1 on secondary. */
	--color-on-dark-muted: #c8c8c8;      /* 10.4:1 on primary, 8.5:1 on secondary. */

	/* Muted gold accent. */
	--color-accent: #b8975a;             /* Buttons; links on dark (6.3:1 / 5.1:1). */
	--color-accent-hover: #cdb07a;       /* Button hover background. */
	--color-on-accent: #1a1a1a;          /* Button text: 6.3:1 on accent, 8.4:1 on hover. */
	--color-accent-text: #82663a;        /* Gold links on light backgrounds: 5.1:1 on bg. */
	--color-accent-text-hover: #5e4a2a;  /* Link hover on light backgrounds. */

	/* Focus ring (overridden for dark areas below). */
	--color-focus: var(--color-accent-text);

	--font-heading: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;

	--container: 72rem;
	--radius: 4px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	/* The header stays at the top while scrolling: links to a spot on the page (#faq-...) stop
	   below it instead of under it. */
	scroll-padding-top: calc(5.5rem + var(--wp-admin--admin-bar--height, 0px));
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-sm);
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

h1 { font-size: 2rem; letter-spacing: -0.025em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

p {
	margin: 0 0 var(--space-sm);
}

a {
	color: var(--color-accent-text);
	text-decoration-color: currentColor;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--color-accent-text-hover);
}

:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--space-sm);
}

/* Elements hidden with the hidden attribute stay hidden, even when a class sets a display value. */
[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: var(--space-xs);
	left: var(--space-xs);
	z-index: 1000;
	width: auto;
	height: auto;
	padding: var(--space-xs) var(--space-sm);
	clip: auto;
	clip-path: none;
	background: var(--color-surface);
	color: var(--color-text);
}

.button,
.wp-block-button__link {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--color-accent);
	color: var(--color-on-accent);
	font-family: var(--font-body);
	font-size: 1rem; /* <button> elements do not inherit font size. */
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background: var(--color-accent-hover);
	color: var(--color-on-accent);
}

/* Dark areas: use the bright gold for focus rings. */
.site-header,
.home-hero,
.home-trust,
.page-hero,
.areas-cta,
.site-footer {
	--color-focus: var(--color-accent);
}

/* ==========================================================================
   3b. Languages (inc/languages.php, js/translate.js)
   Language bar above the header: English | తెలుగు | More languages.
   Telugu text uses system Telugu fonts (Figtree has no Telugu letters).
   ========================================================================== */
:root {
	--font-telugu: "Noto Sans Telugu", "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Gautami", "Mandali", sans-serif;
}

:lang(te) {
	font-family: var(--font-telugu);
	line-height: 1.85;
}

:lang(te) h1,
:lang(te) h2,
:lang(te) h3,
:lang(te) h4,
:lang(te) .button,
:lang(te) .section-title {
	font-family: var(--font-telugu);
	line-height: 1.45;
	letter-spacing: 0;
}

/* Telugu letters stand taller than Latin ones at the same size: headings are set a step smaller. */
:lang(te) h1 { font-size: 1.65rem; }
:lang(te) h2 { font-size: 1.35rem; }
:lang(te) h3 { font-size: 1.15rem; }

@media (min-width: 48em) {
	:lang(te) h1 { font-size: 2.1rem; }
}

.lang-bar {
	position: relative;
	z-index: 110; /* The translator panel opens over the sticky header. */
	background: var(--color-secondary);
	color: var(--color-on-dark);
	font-size: 0.875rem;
	--color-focus: var(--color-accent);
}

.lang-bar__inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-sm);
	min-height: 2.25rem;
}

.lang-switch ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switch li + li {
	border-left: 1px solid var(--color-border-dark);
}

.lang-switch a,
.lang-switch__current {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0 0.75rem;
	color: var(--color-on-dark);
	text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
	color: var(--color-accent);
	text-decoration: underline;
}

.lang-switch__current {
	color: var(--color-accent);
	font-weight: 600;
}

.lang-more {
	position: relative;
}

.lang-more__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.25rem;
	padding: 0 0.25rem;
	color: var(--color-on-dark);
	cursor: pointer;
	list-style: none;
}

.lang-more__toggle::-webkit-details-marker {
	display: none;
}

.lang-more__toggle::after {
	content: "";
	width: 0.4em;
	height: 0.4em;
	margin-left: 0.1rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
}

.lang-more[open] .lang-more__toggle::after {
	transform: translateY(15%) rotate(-135deg);
}

.lang-more__toggle:hover {
	color: var(--color-accent);
}

.lang-more__panel {
	position: absolute;
	top: 100%;
	right: 0;
	width: min(20rem, calc(100vw - 2rem));
	padding: var(--space-sm);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-surface);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	color: var(--color-text);
	--color-focus: var(--color-accent-text);
}

.lang-more__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.15rem;
	margin: 0 0 var(--space-xs);
	padding: 0;
	list-style: none;
}

.lang-more__list a {
	display: block;
	padding: 0.4rem 0.6rem;
	border-radius: var(--radius);
	color: var(--color-text);
	text-decoration: none;
}

.lang-more__list a:hover,
.lang-more__list a:focus-visible {
	background: var(--color-bg);
	color: var(--color-accent-text);
}

.lang-more__list a[aria-current="true"] {
	background: var(--color-bg);
	font-weight: 600;
}

.lang-more__original {
	width: 100%;
	margin-bottom: var(--space-xs);
	padding: 0.5rem;
	border: 1px solid var(--color-accent-text);
	border-radius: var(--radius);
	background: transparent;
	color: var(--color-accent-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.lang-more__original:hover {
	background: var(--color-bg);
}

.lang-more__note {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.8rem;
	line-height: 1.5;
}

/* "Also available in English / Telugu" above the article title. */
.translation-note {
	margin: 0 0 var(--space-sm);
}

.translation-note a {
	display: inline-flex;
	gap: 0.4rem;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: var(--color-surface);
	color: var(--color-accent-text);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.translation-note a:hover,
.translation-note a:focus-visible {
	border-color: var(--color-accent-text);
}

/* Google Translate: keep its own bar, pop-ups and highlights out of the design (our menu has
   "Show original" and the notice instead). */
.lang-translate-host,
.skiptranslate iframe,
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
	display: none !important;
}

body {
	top: 0 !important; /* Google pushes the page down for its bar. */
}

.goog-text-highlight {
	background: none !important;
	box-shadow: none !important;
}

/* ==========================================================================
   4. Header and navigation
   Mobile: logo + hamburger; the menu opens full-screen.
   Desktop (70em+): logo, inline menu, appointment button.
   Without JavaScript the menu shows as a plain list below the logo.
   ========================================================================== */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-sm);
	min-height: 4.5rem;
	padding-top: var(--space-xs);
	padding-bottom: var(--space-xs);
}

.site-branding {
	position: relative;
	z-index: 1001; /* Stays visible above the open mobile menu. */
	margin: 0 auto 0 0; /* Pushes everything else to the right. */
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.site-branding a {
	color: var(--color-on-dark);
	text-decoration: none;
}

.site-branding .custom-logo {
	display: block;
	max-height: 56px;
	width: auto;
}

/* Hamburger button (44px touch target). */
.menu-toggle {
	display: none;
	position: relative;
	z-index: 1001; /* Above the open menu, so it can close it. */
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius);
	background: transparent;
	color: var(--color-on-dark);
	cursor: pointer;
}

.js .menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before {
	top: -6px;
}

.menu-toggle__bars::after {
	top: 6px;
}

/* Bars turn into an X when open. */
.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* Menu: a plain list below the header without JS. */
.site-nav {
	order: 10;
	flex-basis: 100%;
}

.js .site-nav {
	display: none;
}

/* Full-screen mobile menu. */
.js .site-nav.is-open {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	padding: calc(var(--wp-admin--admin-bar--height, 0px) + 6rem) var(--space-md) var(--space-lg);
	overflow-y: auto;
	background: var(--color-primary);
	animation: my-advocate-fade-in 0.2s ease-out;
}

.menu-open,
.menu-open body {
	overflow: hidden;
}

.site-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav li a {
	display: block;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-border-dark);
	color: var(--color-on-dark);
	font-family: var(--font-heading);
	font-size: 1.35rem;
	text-decoration: none;
}

.site-nav li a:hover,
.site-nav li a:focus,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav [aria-current="page"] {
	color: var(--color-accent);
}

.site-nav .sub-menu {
	padding-left: var(--space-sm);
}

.site-nav .sub-menu a {
	font-family: var(--font-body);
	font-size: 1rem;
}

/* "More" button: looks like the other menu items. */
.submenu-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	width: 100%;
	margin: 0;
	padding: 0.75rem 0;
	border: 0;
	border-bottom: 1px solid var(--color-border-dark);
	border-radius: 0;
	background: none;
	color: var(--color-on-dark);
	font-family: var(--font-heading);
	font-size: 1.35rem;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
}

.submenu-toggle:hover,
.submenu-toggle:focus,
.current-menu-ancestor > .submenu-toggle {
	color: var(--color-accent);
}

.submenu-toggle__icon {
	flex-shrink: 0;
	width: 1.1rem; /* Larger in the phone menu; 12px on desktop. */
	height: 1.1rem;
	transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
	transform: rotate(180deg);
}

/* Menus from Appearance > Menus: the button sits next to the parent link and shows only the arrow. */
.submenu-toggle--icon {
	width: auto;
}

.submenu-toggle--icon .submenu-toggle__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* With JavaScript, a sub-menu shows only while its button is expanded. */
.js .submenu-toggle[aria-expanded="false"] + .sub-menu {
	display: none;
}

.nav-cta {
	margin-top: var(--space-md);
	align-self: flex-start;
}

/* Header button: hidden on very small screens (it's inside the menu there). */
.header-cta {
	display: none;
	white-space: nowrap;
}

@keyframes my-advocate-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.js .site-nav.is-open {
		animation: none;
	}

	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after,
	.submenu-toggle__icon {
		transition: none;
	}
}

/* On phones the admin bar scrolls away, so stick the header to the very top. */
@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

@media (min-width: 36em) {
	.header-cta {
		display: inline-block;
	}
}

/* ==========================================================================
   5. Content
   ========================================================================== */
/* Breadcrumbs */
.breadcrumbs {
	padding-top: var(--space-sm);
	color: var(--color-muted);
	font-size: 0.85rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li + li::before {
	content: "›";
	content: "›" / "";
	margin-right: 0.35rem;
}

.breadcrumbs [aria-current="page"] {
	color: var(--color-text);
}

.breadcrumbs + .site-main {
	padding-top: var(--space-md);
}

.entry-lead {
	font-size: 1.15rem;
}

.site-main {
	padding-top: var(--space-lg);
	padding-bottom: var(--space-xl);
}

.entry {
	margin-bottom: var(--space-lg);
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
}

.entry-title a {
	color: var(--color-heading);
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
	color: var(--color-accent-text);
}

.entry-meta {
	margin-bottom: var(--space-sm);
	color: var(--color-muted);
	font-size: 0.875rem;
}

.entry-thumbnail img {
	display: block;
	margin-bottom: var(--space-sm);
	border-radius: var(--radius);
}

.entry-content > * + * {
	margin-top: var(--space-sm);
}

.entry-content blockquote {
	margin: var(--space-md) 0;
	padding-left: var(--space-sm);
	border-left: 3px solid var(--color-accent);
	color: var(--color-muted);
	font-style: italic;
}

.pagination,
.post-navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-sm);
}

.pagination .page-numbers {
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-decoration: none;
}

.pagination .current {
	background: var(--color-primary);
	color: var(--color-on-dark);
}

/* Citations Search: page links below the table. */
.judgments__results .pagination {
	margin-top: var(--space-md);
}

.section-title {
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-xs);
	border-bottom: 2px solid var(--color-accent);
	display: inline-block;
}

.post-grid {
	display: grid;
	gap: var(--space-md);
}

.post-grid .entry {
	margin-bottom: 0;
}

/* Article cards: language label and like count beside the date. */
.entry-meta .entry-lang,
.entry-meta .entry-likes {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-left: 0.6rem;
	padding: 0.05rem 0.5rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-accent-text);
	font-size: 0.8rem;
	font-weight: 600;
}

/* Article page: Like / Dislike and Share after the text. */
.article-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	margin: var(--space-lg) 0 0;
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-bg, #faf8f3);
}

.article-actions__label {
	margin: 0;
	font-weight: 600;
}

.article-actions__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
}

/* Article card image (featured image, 16:9). */
.entry-card-image {
	display: block;
	margin-bottom: var(--space-sm);
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--color-border);
	aspect-ratio: 16 / 9;
}

.entry-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.entry:hover .entry-card-image img {
	transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
	.entry-card-image img {
		transition: none;
	}

	.entry:hover .entry-card-image img {
		transform: none;
	}
}

/* Blog list: image beside the text on wider screens. */
@media (min-width: 48em) {
	.entry--has-image {
		display: grid;
		grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
		gap: var(--space-md);
		align-items: start;
	}

	.entry--has-image .entry-card-image {
		margin-bottom: 0;
	}

	.entry--has-image .entry-title {
		margin-top: 0;
	}
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.site-footer {
	padding-top: var(--space-xl);
	border-top: 3px solid var(--color-accent);
	background: var(--color-primary);
	color: var(--color-on-dark-muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

.site-footer a {
	color: var(--color-on-dark);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Phones: one column. Tablets: two by two. Desktop: four in a row. */
.footer-grid {
	display: grid;
	gap: var(--space-lg) var(--space-xl);
	padding-bottom: var(--space-lg);
}

.footer-col__title {
	margin: 0 0 var(--space-sm);
	padding-bottom: var(--space-xs);
	border-bottom: 1px solid var(--color-border-dark);
	color: var(--color-accent);
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.footer-col__subtitle {
	margin: 0 0 var(--space-xs);
	color: var(--color-on-dark-muted);
	font-size: 0.8rem;
	font-style: italic;
}

.footer-links,
.footer-articles,
.footer-social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.4rem;
}

/* Trending articles: numbered, with a gold number. */
.footer-articles {
	counter-reset: trending;
}

.footer-articles li {
	position: relative;
	margin-bottom: 0.7rem;
	padding-left: 1.75rem;
	counter-increment: trending;
	line-height: 1.45;
}

.footer-articles li::before {
	content: counter(trending, decimal-leading-zero);
	position: absolute;
	top: 0.05rem;
	left: 0;
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-weight: 700;
	font-variant-numeric: lining-nums;
}

.site-footer .footer-more {
	display: inline-block;
	margin-top: 0.25rem;
	color: var(--color-accent);
	font-weight: 600;
}

.footer-contact {
	margin: 0;
}

.footer-contact__item {
	margin-bottom: var(--space-sm);
}

.footer-contact dt {
	color: var(--color-accent);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.footer-contact dd {
	margin: 0.1rem 0 0;
	color: var(--color-on-dark);
}

.footer-contact address {
	font-style: normal;
}

.footer-contact dd > a:not(:first-child) {
	display: inline-block;
	margin-top: 0.2rem;
	color: var(--color-accent);
	font-size: 0.85rem;
	font-weight: 600;
}

/* Round social buttons. */
.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-bottom: var(--space-sm);
}

.site-footer .footer-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--color-border-dark);
	border-radius: 50%;
	background: var(--color-secondary);
	color: var(--color-on-dark);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-footer .footer-social__link:hover,
.site-footer .footer-social__link:focus {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-on-accent);
	text-decoration: none;
}

.footer-follow-text {
	margin: 0;
	font-size: 0.85rem;
}

.footer-admin-note {
	margin: var(--space-xs) 0 0;
	padding: 0.5rem 0.75rem;
	border: 1px dashed var(--color-border-dark);
	border-radius: 4px;
	font-size: 0.8rem;
}

.site-footer .footer-admin-note a {
	color: var(--color-accent);
	text-decoration: underline;
}

.footer-bottom {
	border-top: 1px solid var(--color-border-dark);
	background: var(--color-secondary);
	font-size: 0.82rem;
}

.footer-bottom__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem var(--space-md);
	padding-block: var(--space-sm);
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom__role {
	color: var(--color-accent);
}

.footer-bottom__role::before {
	content: "·";
	margin: 0 0.4rem;
	color: var(--color-on-dark-muted);
}

.footer-bottom__note {
	font-style: italic;
}

/* Phones: the role goes on its own line, without the separator dot. */
@media (max-width: 39.99em) {
	.footer-bottom__role {
		display: block;
	}

	.footer-bottom__role::before {
		content: none;
	}
}

/* Article FAQs (end of each blog article). */
.article-faqs {
	margin-top: var(--space-xl);
	padding-top: var(--space-lg);
	border-top: 2px solid var(--color-accent);
}

.article-faqs__title {
	margin-bottom: var(--space-md);
}

.article-faqs__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: faq;
}

.faq-item {
	position: relative;
	margin-bottom: var(--space-sm);
	padding: var(--space-md) var(--space-md) var(--space-md) 3.5rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-bg);
	counter-increment: faq;
	scroll-margin-top: 6rem; /* Clears the sticky header when opened from "Read full story". */
}

.faq-item::before {
	content: counter(faq, decimal-leading-zero);
	position: absolute;
	top: var(--space-md);
	left: var(--space-md);
	color: var(--color-accent-text);
	font-family: var(--font-heading);
	font-weight: 700;
	font-variant-numeric: lining-nums;
}

.faq-item__question {
	margin: 0 0 var(--space-xs);
	font-size: 1.2rem;
}

.faq-item__answer {
	margin: 0 0 var(--space-xs);
}

.faq-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs) var(--space-sm);
	margin: 0 0 var(--space-sm);
	color: var(--color-muted);
	font-size: 0.85rem;
}

.faq-item__area {
	padding: 0.15rem 0.6rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-text);
	font-weight: 600;
	text-decoration: none;
}

.faq-item__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
}

.faq-item__actions .share {
	margin-top: 0;
}

/* The question opened from "Read full story" is highlighted. */
.faq-item:target {
	border-color: var(--color-accent);
	background: var(--color-surface);
	box-shadow: 0 0 0 3px rgba(184, 151, 90, 0.35);
	animation: faq-highlight 2.5s ease-out;
}

@keyframes faq-highlight {
	0% { background: #f4ead6; }
	100% { background: var(--color-surface); }
}

@media (prefers-reduced-motion: reduce) {
	.faq-item:target {
		animation: none;
	}
}

/* Comments */
.comments {
	max-width: 46rem;
	margin: 0 0 var(--space-xl);
}

.comments__title {
	font-size: 1.4rem;
}

.comments__list {
	margin: 0 0 var(--space-lg);
	padding: 0;
	list-style: none;
}

.comments__list .comment {
	margin-bottom: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-surface);
}

.comments__list .children {
	margin-top: var(--space-sm);
	padding-left: var(--space-md);
	list-style: none;
}

.comments__list .avatar {
	float: left;
	margin-right: var(--space-sm);
	border-radius: 50%;
}

.comments__list .comment-metadata {
	font-size: 0.8rem;
}

.comment-respond label {
	display: block;
	font-weight: 600;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	font: inherit;
}

.comments__note {
	color: var(--color-muted);
	font-size: 0.85rem;
}

/* Legal pages: a comfortable reading width and calmer headings. */
.entry--legal .entry-title,
.entry--legal .entry-content {
	max-width: 46rem;
}

.entry--legal .entry-content h2 {
	margin: var(--space-lg) 0 var(--space-xs);
	font-size: 1.4rem;
}

.entry--legal .entry-content li {
	margin-bottom: 0.4rem;
}

.entry--legal .legal-updated {
	color: var(--color-muted);
}

/* Sitemap page */
.sitemap-grid {
	display: grid;
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
}

.sitemap-grid__title {
	margin: 0 0 var(--space-sm);
	padding-bottom: var(--space-xs);
	border-bottom: 2px solid var(--color-accent);
	font-size: 1.3rem;
}

.sitemap-grid section > .sitemap-list + .sitemap-grid__title {
	margin-top: var(--space-lg);
}

.sitemap-list {
	margin: 0;
	padding-left: 1.1rem;
}

.sitemap-list li {
	margin-bottom: 0.45rem;
}

.sitemap-list li::marker {
	color: var(--color-accent-text);
}

@media (min-width: 40em) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 64em) {
	.footer-grid {
		grid-template-columns: 1fr 1.5fr 1.35fr 1fr;
		gap: var(--space-lg);
	}

	.sitemap-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-footer .footer-social__link {
		transition: none;
	}
}

/* ==========================================================================
   7. Legal Q&A
   ========================================================================== */
.archive-header {
	margin-bottom: var(--space-md);
}

.archive-intro {
	color: var(--color-muted);
}

/* Practice area chips (single page) and filter (archive). */
.qa-terms,
.qa-filter ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0 0 var(--space-sm);
	padding: 0;
	list-style: none;
}

.qa-filter ul {
	margin-bottom: var(--space-md);
}

.qa-terms a,
.qa-filter a {
	display: inline-block;
	padding: 0.25rem 0.8rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: var(--color-bg);
	color: var(--color-text);
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
}

.qa-terms a:hover,
.qa-terms a:focus,
.qa-filter a:hover,
.qa-filter a:focus {
	border-color: var(--color-accent-text);
	color: var(--color-accent-text);
}

.qa-filter a[aria-current="page"] {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--color-on-dark);
}

/* Language filter on the Legal Q&A page (All languages / English / తెలుగు). */
.qa-filter--lang ul {
	margin-bottom: var(--space-sm);
}

.qa-filter--lang a {
	font-weight: 600;
}

/* Legal Q&A toolbar: practice area filter + sort. */
.qa-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-sm) var(--space-md);
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--color-border);
}

.qa-toolbar .qa-filter {
	flex: 1 1 32rem;
}

.qa-toolbar .qa-filter ul {
	margin: 0;
}

.qa-filter__count {
	margin-left: 0.3rem;
	color: var(--color-muted);
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
}

.qa-filter a[aria-current="page"] .qa-filter__count {
	color: var(--color-on-dark-muted);
}

.qa-sort {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--space-xs);
}

.qa-sort label {
	color: var(--color-muted);
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.qa-sort select {
	min-height: 2.5rem;
	padding: 0.4rem 2rem 0.4rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2382663a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
	color: var(--color-text);
	font: inherit;
	font-size: 0.9rem;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.qa-sort select:hover {
	border-color: var(--color-accent-text);
}

.button--small {
	padding: 0.45rem 0.9rem;
	font-size: 0.85rem;
}

.qa-area-note {
	margin: 0 0 var(--space-md);
	color: var(--color-muted);
}

.qa-area-note a {
	margin-left: 0.25rem;
	font-weight: 600;
}

/* Phone reader on the Legal Q&A page (js/qa-reader.js): one card at a time, page fold between. */
.qa-grid.is-reader {
	position: relative;
	grid-template-columns: 1fr;
	gap: 0;
	perspective: 2200px;
	touch-action: none; /* Swipes on the card turn pages; the rest of the page scrolls normally. */
}

.qa-grid.is-reader > :not(.qa-flip__fold) {
	grid-area: 1 / 1;
	min-height: 60vh;
	margin: 0;
	visibility: hidden;
}

.qa-grid.is-reader > .is-active {
	visibility: visible;
}

/* A small nudge when there is nothing further. */
.qa-grid.is-reader.is-end > .is-active {
	animation: qa-reader-end 0.4s ease;
}

@keyframes qa-reader-end {
	30% { transform: translateY(-10px); }
	60% { transform: translateY(4px); }
}

.qa-reader__hint {
	margin: 0 0 var(--space-xs);
	color: var(--color-muted);
	font-size: 0.85rem;
	text-align: center;
}

.qa-reader__hint::before {
	content: "\2191";
	margin-right: 0.35rem;
	color: var(--color-accent-text);
	font-weight: 700;
}

.qa-reader__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	margin-top: var(--space-sm);
}

.qa-reader__controls .qa-flip__nav {
	min-width: 3rem;
	font-size: 1.1rem;
}

.qa-reader__count {
	margin: 0;
	color: var(--color-muted);
	font-weight: 600;
	font-variant-numeric: lining-nums tabular-nums;
}

/* The reader has its own controls; the Load more box only works behind the scenes. */
.qa-reader-on [data-load-more] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.qa-grid.is-reader.is-end > .is-active {
		animation: none;
	}
}

/* "Showing X of Y" + Load more. */
.load-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
	text-align: center;
}

.load-more__status {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.load-more .pagination {
	margin-top: 0;
}

.button--outline {
	border: 1px solid var(--color-accent-text);
	background: transparent;
	color: var(--color-accent-text);
}

.button--outline:hover,
.button--outline:focus {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-on-accent);
}

.load-more__button {
	min-width: 14rem;
}

.load-more__button[aria-busy="true"] {
	cursor: progress;
	opacity: 0.7;
}

/* Small uppercase section labels: "Short answer", "Full story". */
.qa-label {
	margin-bottom: var(--space-xs);
	color: var(--color-muted);
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* The direct answer, straight under the question. */
.qa-answer {
	margin: 0 0 var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border-left: 4px solid var(--color-accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--color-bg);
	font-size: 1.15rem;
}

.qa-header .qa-applies {
	margin-bottom: var(--space-sm);
}

.qa-full-story {
	margin-top: var(--space-lg);
}

.qa-parent {
	margin-top: var(--space-md);
}

.qa-disclaimer {
	margin: var(--space-lg) 0 0;
	padding-top: var(--space-sm);
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
	font-size: 0.875rem;
	font-style: italic;
}

.qa-related {
	margin-top: var(--space-lg);
}

/* Cards: button sits at the bottom so a row of cards lines up. */
.qa-card {
	display: flex;
	flex-direction: column;
}

.qa-card__question {
	font-size: 1.25rem;
}

.qa-card__answer {
	flex-grow: 1;
}

/* Appointment call to action. */
.qa-cta {
	--color-focus: var(--color-accent);
	margin-top: var(--space-lg);
	padding: var(--space-lg) var(--space-md);
	border-radius: var(--radius);
	background: var(--color-primary);
	color: var(--color-on-dark);
	text-align: center;
}

.qa-cta h2 {
	color: var(--color-on-dark);
}

.qa-cta p {
	color: var(--color-on-dark-muted);
}

/* Card buttons: "Read full story" and "Share" side by side. */
.qa-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
}

/* Share menu (a <details> element, so it works without JavaScript). */
.share {
	position: relative;
	display: inline-block;
	margin-top: var(--space-xs);
}

.qa-card__actions .share {
	margin-top: 0;
}

.share__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.75rem; /* 44px touch target. */
	padding: 0.5rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-text);
	font-size: 0.9rem;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.share__toggle::-webkit-details-marker {
	display: none;
}

.share__toggle:hover,
.share__toggle:focus-visible,
.share__details[open] > .share__toggle {
	border-color: var(--color-accent-text);
	color: var(--color-accent-text);
}

.share__menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	z-index: 50;
	min-width: 15rem;
	margin: 0;
	padding: 0.35rem 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	list-style: none;
}

.share__menu a,
.share__menu button {
	display: block;
	width: 100%;
	padding: 0.6rem 1rem;
	border: 0;
	background: none;
	color: var(--color-text);
	font: inherit;
	font-size: 0.9rem;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.share__menu a:hover,
.share__menu a:focus,
.share__menu button:hover,
.share__menu button:focus {
	background: var(--color-bg);
	color: var(--color-accent-text);
}

.share__status {
	margin: 0;
	color: var(--color-accent-text);
	font-size: 0.85rem;
	font-weight: 600;
}

.share__status:empty {
	display: none;
}

/* Keep the status visible next to the button when the menu has closed. */
.share__details > .share__status {
	position: absolute;
	top: 100%;
	left: 0;
	white-space: nowrap;
}

/* ==========================================================================
   Homepage Legal Q&A flip cards
   Without JavaScript: a list of cards. With JavaScript (.js on <html>): all cards
   share one grid cell, so the section is always as tall as the tallest card
   (no layout shift), and only the active card is visible.
   ========================================================================== */
.qa-flip {
	--color-focus: var(--color-accent-text);
	max-width: 52rem;
	margin: 0 auto var(--space-xl);
}

.qa-flip__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-xs) var(--space-sm);
}

.qa-flip__hint {
	margin: 0 0 var(--space-md);
	color: var(--color-muted);
	font-size: 0.9rem;
}

.qa-flip__list {
	display: grid;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.qa-flip__item {
	display: flex;
}

/* The page: one continuous layout. Like Flipboard, it folds at its physical middle, wherever that falls. */
.qa-flip__card {
	--color-focus: var(--color-accent);
	display: flex;
	flex-direction: column;
	flex: 1;
	border-top: 4px solid var(--color-accent);
	border-radius: 10px;
	background: var(--color-primary);
	color: var(--color-on-dark);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.qa-flip__top {
	padding: var(--space-lg) var(--space-md) var(--space-sm);
	border-radius: 6px 6px 0 0; /* The card itself does not clip, so its Share menu is never cut off. */
	background: linear-gradient(180deg, #232323 0%, var(--color-primary) 100%);
}

.qa-flip__bottom {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: var(--space-sm) var(--space-md) var(--space-lg);
}

.qa-flip__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs) var(--space-sm);
	margin: 0 0 var(--space-sm);
}

.qa-flip__number {
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 700;
	font-variant-numeric: lining-nums;
}

.qa-flip__area {
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--color-border-dark);
	border-radius: 999px;
	color: var(--color-on-dark-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.qa-flip__question {
	margin: 0;
	color: var(--color-on-dark);
	font-size: 1.55rem;
	line-height: 1.3;
}

.qa-flip__answer {
	margin: 0 0 var(--space-sm);
	padding-left: var(--space-sm);
	border-left: 3px solid var(--color-accent);
	color: var(--color-on-dark);
	font-size: 1.05rem;
	line-height: 1.65;
}

.qa-flip__source {
	margin: 0 0 var(--space-md);
	color: var(--color-on-dark-muted);
	font-size: 0.85rem;
}

.qa-flip__source span {
	color: var(--color-accent);
	font-style: italic;
}

.qa-flip__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
	margin-top: auto; /* Buttons sit at the bottom of every page. */
}

.qa-flip__actions .share {
	margin-top: 0;
}

/* Share button on the dark card. */
.qa-flip__card .share__toggle {
	border-color: var(--color-border-dark);
	background: transparent;
	color: var(--color-on-dark);
}

.qa-flip__card .share__toggle:hover,
.qa-flip__card .share__toggle:focus-visible,
.qa-flip__card .share__details[open] > .share__toggle {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* Like / Dislike (dark on flip cards, light on Q&A pages). */
.qa-votes {
	display: flex;
	gap: var(--space-xs);
}

.qa-flip__actions .qa-votes {
	margin-left: auto;
}

.qa-vote {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.8rem;
	border: 1px solid;
	border-radius: var(--radius);
	background: transparent;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qa-vote:disabled {
	cursor: default;
}

.qa-votes--dark .qa-vote {
	border-color: var(--color-border-dark);
	color: var(--color-on-dark);
}

.qa-votes--dark .qa-vote:not(:disabled):hover,
.qa-votes--dark .qa-vote:focus-visible {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.qa-votes--dark .qa-vote[aria-pressed="true"] {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-on-accent);
}

.qa-votes--light .qa-vote {
	border-color: var(--color-border);
	background: var(--color-surface);
	color: var(--color-text);
}

.qa-votes--light .qa-vote:not(:disabled):hover,
.qa-votes--light .qa-vote:focus-visible {
	border-color: var(--color-accent-text);
	color: var(--color-accent-text);
}

.qa-votes--light .qa-vote[aria-pressed="true"] {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.qa-feedback {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-sm);
	margin-top: var(--space-md);
}

.qa-feedback__label {
	margin: 0;
	font-weight: 600;
}

.qa-flip > .qa-disclaimer {
	margin-top: var(--space-md);
}

/* Controls: hidden without JavaScript; space kept from first paint when JavaScript is on. */
.qa-flip__controls {
	display: none;
}

.js .qa-flip__controls {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-top: var(--space-md);
	visibility: hidden;
}

.js .qa-flip.is-enhanced .qa-flip__controls {
	visibility: visible;
}

.qa-flip__nav,
.qa-flip__pause {
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--color-primary);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-primary);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.qa-flip__nav:hover,
.qa-flip__nav:focus-visible,
.qa-flip__pause:hover,
.qa-flip__pause:focus-visible {
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.qa-flip__pause {
	border-color: var(--color-border);
	font-weight: 500;
}

.qa-flip__progress {
	margin: 0 auto 0 0;
	color: var(--color-muted);
	font-size: 0.95rem;
	font-weight: 600;
	font-variant-numeric: lining-nums tabular-nums;
}

.qa-flip__controls [data-qa-flip-prev] {
	order: 0;
}

.qa-flip__controls .qa-flip__progress {
	order: 1;
}

.qa-flip__controls .qa-flip__pause {
	order: 2;
}

.qa-flip__controls [data-qa-flip-next] {
	order: 3;
}

/* One page at a time: every card shares one grid cell (tallest card sets the height). */
.js .qa-flip__stage {
	position: relative;
	perspective: 2200px;
	touch-action: pan-y; /* Horizontal swipes turn pages; vertical still scrolls. */
}

.js .qa-flip__list {
	gap: 0;
}

.js .qa-flip__item {
	grid-area: 1 / 1;
	visibility: hidden;
}

.js .qa-flip:not(.is-enhanced) .qa-flip__item:first-child,
.js .qa-flip__item.is-active {
	visibility: visible;
}

/* The fold: temporary copies of the two pages, cut in halves. */
.qa-flip__fold {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	transform-style: preserve-3d;
}

.qa-flip__half {
	position: absolute;
	inset: 0;
	display: flex;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.qa-flip__half > :first-child {
	flex: 1;
	margin: 0;
	box-shadow: none;
}

.qa-flip__half--top {
	clip-path: inset(0 0 50% 0);
}

.qa-flip__half--bottom {
	clip-path: inset(50% 0 0 0);
}

.qa-flip__leaf {
	position: absolute;
	inset: 0;
	transform-origin: 50% 50%;
	transform-style: preserve-3d;
}

.qa-flip__face--back {
	transform: rotateX(180deg);
}

.is-next .qa-flip__leaf {
	animation: qa-fold-next 0.7s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}

.is-prev .qa-flip__leaf {
	animation: qa-fold-prev 0.7s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}

/* Shadows: the turning half darkens as it falls; the half it covers darkens under it. */
.qa-flip__shade {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	background: #000;
	opacity: 0;
	pointer-events: none;
}

.qa-flip__face--front .qa-flip__shade {
	animation: qa-fold-shade-out 0.7s ease-in forwards;
}

.qa-flip__face--back .qa-flip__shade {
	animation: qa-fold-shade-in 0.7s ease-out forwards;
}

.qa-flip__static .qa-flip__shade {
	animation: qa-fold-shade-static 0.7s ease-in forwards;
}

@keyframes qa-fold-next {
	from { transform: rotateX(0deg); }
	to { transform: rotateX(-180deg); }
}

@keyframes qa-fold-prev {
	from { transform: rotateX(0deg); }
	to { transform: rotateX(180deg); }
}

@keyframes qa-fold-shade-out {
	from { opacity: 0; }
	to { opacity: 0.55; }
}

@keyframes qa-fold-shade-in {
	from { opacity: 0.55; }
	to { opacity: 0; }
}

@keyframes qa-fold-shade-static {
	0% { opacity: 0; }
	50% { opacity: 0.35; }
	100% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.qa-flip__fold {
		display: none;
	}
}

@media (max-width: 30em) {
	.qa-flip__nav-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.qa-flip__nav {
		min-width: 2.75rem;
		padding-inline: 0.75rem;
	}
}

@media (min-width: 48em) {
	.qa-flip__top {
		padding: var(--space-xl) var(--space-xl) var(--space-sm);
	}

	.qa-flip__bottom {
		padding: var(--space-sm) var(--space-xl) var(--space-lg);
	}

	.qa-flip__question {
		font-size: 2rem;
	}
}

/* ==========================================================================
   Login link, Premium plan card, My Account, Legal Tools
   ========================================================================== */
.plan-card {
	max-width: 32rem;
	margin: var(--space-lg) 0 0;
	padding: var(--space-lg) var(--space-md);
	border-top: 4px solid var(--color-accent);
	border-radius: 8px;
	background: var(--color-primary);
	color: var(--color-on-dark);
	--color-focus: var(--color-accent);
}

.plan-card__name {
	color: var(--color-on-dark);
	font-size: 1.5rem;
}

.plan-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
}

.plan-card__amount {
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
}

.plan-card__period {
	color: var(--color-on-dark-muted);
}

.plan-card__benefits {
	margin: 0 0 var(--space-md);
	padding-left: 1.2rem;
}

.plan-card__benefits li::marker {
	color: var(--color-accent);
}

.plan-card__action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-sm);
}

.plan-card__note,
.plan-card__status {
	flex-basis: 100%;
	margin: 0;
	color: var(--color-on-dark-muted);
}

.plan-card__status:empty {
	display: none;
}

.plan-card a:not(.button) {
	color: var(--color-accent);
}

.plan-card__buy:disabled {
	opacity: 0.7;
	cursor: progress;
}

.tools__locked .plan-card__secondary,
.account__secondary {
	margin-left: var(--space-sm);
	font-weight: 600;
}

.account__login {
	max-width: 24rem;
}

.account__details {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 var(--space-md);
}

.account__details dt {
	color: var(--color-muted);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.account__details dd {
	margin: 0;
	font-weight: 600;
}

/* Logged out: the login form as a card in the middle of the page. */
.account--login {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: min(60vh, 36rem);
	padding: var(--space-lg) 0;
	border: 0;
	background: none;
}

.account--login .entry-title {
	text-align: center;
}

.account--login .account__login {
	width: 100%;
	max-width: 26rem;
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-top: 4px solid var(--color-accent);
	border-radius: 6px;
	background: var(--color-surface);
	box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
}

.account--login .account__login form p {
	margin: 0 0 var(--space-sm);
}

.account--login .account__login input[type="submit"] {
	width: 100%;
}

.account--login .account__links {
	margin: var(--space-sm) 0 0;
	text-align: center;
}

.account__login label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.account__login input[type="text"],
.account__login input[type="password"] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--color-muted);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-text);
	font: inherit;
}

.account__login .login-remember label {
	display: inline;
	font-weight: 400;
}

.account__login input[type="submit"] {
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--color-accent);
	color: var(--color-on-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.account__login input[type="submit"]:hover,
.account__login input[type="submit"]:focus {
	background: var(--color-accent-hover);
}

.account__notice,
.tools__admin-note {
	padding: var(--space-sm) var(--space-md);
	border-left: 4px solid var(--color-accent);
	background: var(--color-bg);
}

.account__status {
	margin: var(--space-md) 0;
}

.table-wrap {
	overflow-x: auto;
}

.account__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.account__table th,
.account__table td {
	padding: 0.5rem;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
}

.tools__list {
	display: grid;
	gap: var(--space-sm);
	margin: var(--space-md) 0 0;
	padding: 0;
	list-style: none;
}

.tools__item {
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.tools__title {
	font-size: 1.2rem;
}

.tools__locked {
	margin-top: var(--space-lg);
	padding: var(--space-md);
	border: 1px dashed var(--color-accent-text);
	border-radius: var(--radius);
}

/* ==========================================================================
   Home page
   Bands: hero (soft black), Q&A, practice areas (white), trust (charcoal),
   Premium, about (white), latest articles, contact (white).
   ========================================================================== */
.home.site-main {
	padding: 0;
}

.home-section {
	padding: var(--space-xl) 0;
}

.home-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-xs) var(--space-sm);
	margin-bottom: var(--space-md);
}

.home-section__head .section-title {
	margin-bottom: 0;
}

.home-section__more {
	font-weight: 600;
}

.home-qa .qa-flip {
	margin-bottom: 0;
}

/* Hero */
.home-hero {
	padding: var(--space-xl) 0;
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.home-hero__inner {
	display: grid;
	gap: var(--space-lg);
	align-items: center;
}

.home-hero__eyebrow {
	margin: 0 0 var(--space-xs);
	color: var(--color-accent);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.home-hero__name {
	margin-bottom: var(--space-sm);
	color: var(--color-on-dark);
	font-size: 2.4rem;
}

/* Line under the name, same as the About page (.page-hero__title-sub). */
.home-hero__name .home-hero__name-sub {
	margin-top: 0.6rem;
	font-size: 1.1rem;
}

.home-hero__promise {
	max-width: 34rem;
	margin-bottom: var(--space-md);
	color: var(--color-on-dark-muted);
	font-size: 1.15rem;
}

.home-hero__intro {
	max-width: 36rem;
	margin-bottom: var(--space-md);
	color: var(--color-on-dark-muted);
	font-size: 1rem;
	line-height: 1.7;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.home-hero__actions .button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.button--outline-light {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--color-on-dark-muted);
	color: var(--color-on-dark);
}

.button--outline-light:hover,
.button--outline-light:focus {
	background: var(--color-on-dark);
	color: var(--color-primary);
}

.home-hero__photo {
	justify-self: center;
	width: min(100%, 16rem);
}

.home-hero__img,
.home-about__img,
.about-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 8px;
}

.home-hero__img,
.about-hero__img {
	border-bottom: 4px solid var(--color-accent);
}

.home-hero__img--monogram,
.home-about__img--monogram,
.about-hero__img--monogram {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 5rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.home-hero__img--monogram,
.about-hero__img--monogram {
	border: 1px solid var(--color-border-dark);
	background: var(--color-secondary);
}

.home-about__img--monogram {
	background: var(--color-primary);
}

/* Practice areas */
.home-practice {
	border-block: 1px solid var(--color-border);
	background: var(--color-surface);
}

.practice-grid {
	display: grid;
	grid-template-columns: 1fr; /* 1 column on phones, 2 on tablets, 3 on desktop: six areas never leave one alone. */
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.practice-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-bg);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.practice-card:hover,
.practice-card:focus-within {
	border-color: var(--color-accent);
	transform: translateY(-2px);
}

.practice-card__icon {
	margin-bottom: var(--space-xs);
	color: var(--color-accent-text);
}

.practice-card__title {
	margin-bottom: 0.35rem;
	font-size: 1.25rem;
}

.practice-card__title a {
	color: var(--color-heading);
	text-decoration: none;
}

/* The whole card is clickable through the title link. */
.practice-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 8px;
}

.practice-card__text {
	flex-grow: 1;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.practice-card__count {
	margin: 0;
	color: var(--color-accent-text);
	font-size: 0.9rem;
	font-weight: 600;
}

@media (min-width: 40em) {
	.practice-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 64em) {
	.practice-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Consultation process: numbered steps joined by a gold line on wide screens. */
.process-steps {
	display: grid;
	gap: var(--space-md);
	margin: 0 0 var(--space-lg);
	padding: 0;
	list-style: none;
}

.process-step {
	position: relative;
	padding-left: 4rem;
}

.process-step__number {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 2px solid var(--color-accent);
	border-radius: 50%;
	background: var(--color-bg);
	color: var(--color-accent-text);
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: lining-nums;
	line-height: 1;
}

/* Vertical line linking the steps on phones. */
.process-step:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 2.75rem;
	bottom: calc(-1 * var(--space-md));
	left: calc(1.375rem - 1px);
	width: 2px;
	background: var(--color-border);
}

.process-step__title {
	margin-bottom: 0.35rem;
	padding-top: 0.45rem;
	font-size: 1.25rem;
}

.process-step__text {
	margin: 0;
	color: var(--color-muted);
}

.home-process__action {
	margin: 0;
}

@media (min-width: 56em) {
	.process-steps {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-lg);
	}

	.process-step {
		padding-top: 4rem;
		padding-left: 0;
	}

	.process-step__title {
		padding-top: 0;
	}

	/* Horizontal line from this number to the next. */
	.process-step:not(:last-child)::before {
		top: calc(1.375rem - 1px);
		right: calc(-1 * var(--space-lg));
		bottom: auto;
		left: 2.75rem;
		width: auto;
		height: 2px;
	}
}

/* ==========================================================================
   Practice areas: overview page (/practice-areas/) and one area (/practice-areas/{slug}/)
   ========================================================================== */
.areas-page.site-main,
.area-page.site-main {
	padding: 0;
}

/* Dark intro band shared by both pages. */
.page-hero {
	margin-top: var(--space-sm);
	padding: var(--space-xl) 0;
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.page-hero__inner {
	display: grid;
	gap: var(--space-lg);
	align-items: start;
}

.page-hero .practice-card__icon {
	width: 44px;
	height: 44px;
	margin-bottom: var(--space-sm);
	color: var(--color-accent);
}

.page-hero__eyebrow {
	margin: 0 0 var(--space-xs);
	color: var(--color-accent);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.page-hero__title {
	margin-bottom: var(--space-sm);
	color: var(--color-on-dark);
	font-size: 2.2rem;
}

.page-hero__intro {
	max-width: 40rem;
	margin-bottom: var(--space-md);
	color: var(--color-on-dark-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.page-hero__intro p:last-child {
	margin-bottom: 0;
}

.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.page-hero__actions .button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* Overview: key figures beside the intro. */
.areas-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-sm);
	margin: 0;
}

.areas-stats__item {
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--color-border-dark);
	border-radius: 8px;
	background: var(--color-secondary);
}

.areas-stats__item--text {
	grid-column: 1 / -1;
}

.areas-stats dt {
	color: var(--color-on-dark-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.areas-stats dd {
	margin: 0.25rem 0 0;
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 2.2rem;
	font-weight: 700;
	font-variant-numeric: lining-nums;
	line-height: 1.1;
}

.areas-stats__item--text dd {
	color: var(--color-on-dark);
	font-size: 1.15rem;
	line-height: 1.4;
}

/* Overview: larger cards with a gold top rule. */
.practice-grid--large .practice-card {
	padding: var(--space-lg) var(--space-md) var(--space-md);
	border-top: 3px solid var(--color-accent);
	background: var(--color-surface);
}

.practice-grid--large .practice-card__title {
	font-size: 1.35rem;
}

.practice-grid--large .practice-card__text {
	margin-bottom: var(--space-md);
}

/* Overview: Legal Consultations (six numbered cards, above the consultation process). */
.consultations {
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	background: var(--color-surface);
}

.consultations__intro {
	max-width: 52rem;
	margin: 0 0 var(--space-lg);
	color: var(--color-muted);
	font-size: 1.05rem;
}

.consultations__grid {
	display: grid;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.consultation-card {
	position: relative;
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-top: 3px solid var(--color-accent);
	border-radius: 8px;
	background: var(--color-bg);
	scroll-margin-top: 6rem;
}

.consultation-card:target {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.consultation-card__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: var(--space-sm);
	border: 1px solid var(--color-accent);
	border-radius: 50%;
	color: var(--color-accent-text);
	font-weight: 700;
}

.consultation-card__title {
	margin: 0 0 var(--space-xs);
	font-size: 1.2rem;
	line-height: 1.3;
}

.consultation-card__text {
	margin: 0;
	line-height: 1.6;
}

@media (min-width: 40em) {
	.consultations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.consultations__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Overview: closing call to action. */
.areas-cta {
	padding: var(--space-xl) 0;
	background: var(--color-secondary);
	color: var(--color-on-dark);
}

.areas-cta__inner {
	display: grid;
	gap: var(--space-md);
	align-items: center;
}

.areas-cta__title {
	margin-bottom: var(--space-xs);
	color: var(--color-on-dark);
	font-size: 1.6rem;
}

.areas-cta__text {
	max-width: 38rem;
	margin: 0;
	color: var(--color-on-dark-muted);
}

.areas-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

/* Area page: common situations card inside the dark band. */
.situations {
	padding: var(--space-md);
	border: 1px solid var(--color-border-dark);
	border-top: 3px solid var(--color-accent);
	border-radius: 8px;
	background: var(--color-secondary);
}

.situations__title {
	margin-bottom: var(--space-sm);
	color: var(--color-on-dark);
	font-size: 1.3rem;
}

.situations__list {
	margin: 0 0 var(--space-sm);
	padding: 0;
	list-style: none;
}

.situations__list li {
	position: relative;
	padding: 0.6rem 0 0.6rem 2rem;
	border-bottom: 1px solid var(--color-border-dark);
	color: var(--color-on-dark);
	line-height: 1.5;
}

.situations__list li:last-child {
	border-bottom: 0;
}

/* Gold question-mark badge before each situation. */
.situations__list li::before {
	content: "?";
	position: absolute;
	top: 0.7rem;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border: 1px solid var(--color-accent);
	border-radius: 50%;
	color: var(--color-accent);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
}

.situations__note {
	margin: 0;
	color: var(--color-on-dark-muted);
	font-size: 0.9rem;
}

.area-questions {
	scroll-margin-top: 5rem; /* Clears the sticky header when jumping to #area-questions. */
}

.area-empty {
	max-width: 40rem;
	color: var(--color-muted);
}

.area-articles {
	padding-top: 0;
}

.area-others {
	padding: var(--space-lg) 0;
	border-top: 1px solid var(--color-border);
	background: var(--color-surface);
}

.area-others__title {
	margin-bottom: var(--space-sm);
	font-size: 1.2rem;
}

.area-others__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.area-others__list a {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-text);
	font-size: 0.9rem;
	text-decoration: none;
}

.area-others__list a:hover,
.area-others__list a:focus {
	border-color: var(--color-accent);
	color: var(--color-accent-text-hover);
}

.area-others__list .area-others__all {
	border-color: var(--color-accent);
	color: var(--color-accent-text);
	font-weight: 600;
}

.area-disclaimer {
	padding-bottom: var(--space-lg);
}

.area-disclaimer .qa-disclaimer {
	margin-top: var(--space-md);
}

@media (min-width: 48em) {
	.page-hero__title {
		font-size: 2.8rem;
	}

	.areas-cta__inner {
		grid-template-columns: 1fr auto;
	}
}

@media (min-width: 64em) {
	.areas-hero .page-hero__inner,
	.area-hero--split .page-hero__inner {
		grid-template-columns: 3fr 2fr;
		gap: var(--space-xl);
	}

	.areas-hero .page-hero__inner {
		align-items: center;
	}
}

/* ==========================================================================
   About page (/about/)
   ========================================================================== */
.about-page.site-main {
	padding: 0;
}

.about-hero .page-hero__inner {
	align-items: center;
}

.about-hero__promise {
	max-width: 34rem;
	margin-bottom: var(--space-md);
	color: var(--color-on-dark-muted);
	font-size: 1.2rem;
}

.about-hero__photo {
	justify-self: center;
	width: min(100%, 18rem);
}

.page-hero__title-sub {
	display: block;
	margin-top: 0.5rem;
	color: var(--color-accent);
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

/* About page text: section headings with a short gold rule. */
.about-main__content h2 {
	margin: var(--space-lg) 0 var(--space-sm);
	padding-bottom: var(--space-xs);
	border-bottom: 1px solid var(--color-border);
	font-size: 1.6rem;
}

.about-main__content h2:first-child {
	margin-top: 0;
}

.about-main__content h3 {
	margin: var(--space-md) 0 var(--space-xs);
	font-size: 1.15rem;
}

.about-main__content ul {
	padding-left: 1.25rem;
}

.about-main__content li {
	margin-bottom: 0.5rem;
}

.about-main__content li::marker {
	color: var(--color-accent-text);
}

/* Practice areas list from the [my_advocate_practice_areas] shortcode. */
.about-main__content .area-summary-list {
	padding: 0;
	list-style: none;
}

.about-main__content .area-summary-list li {
	margin-bottom: var(--space-sm);
	padding-left: var(--space-sm);
	border-left: 3px solid var(--color-accent);
}

.area-summary-list a {
	color: var(--color-heading);
	font-weight: 700;
	text-decoration-color: var(--color-accent);
}

.credentials__button {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: var(--space-md);
}

.about-main__inner {
	display: grid;
	gap: var(--space-lg);
	align-items: start;
}

.about-main__content {
	max-width: 44rem;
	font-size: 1.05rem;
	line-height: 1.8;
}

.about-main__content > :first-child {
	margin-top: 0;
}

/* Credentials card. */
.credentials {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-top: 3px solid var(--color-accent);
	border-radius: 8px;
	background: var(--color-surface);
}

.credentials__title {
	margin-bottom: var(--space-sm);
	font-size: 1.3rem;
}

.credentials__list {
	margin: 0;
}

.credentials__item {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-border);
}

.credentials__item:first-child {
	padding-top: 0;
}

.credentials__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.credentials dt {
	color: var(--color-accent-text);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.credentials dd {
	margin: 0.2rem 0 0;
	color: var(--color-heading);
	font-weight: 500;
}

.home-about__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-md);
}

.home-about__more {
	font-weight: 600;
}

@media (min-width: 64em) {
	.about-hero .page-hero__inner {
		grid-template-columns: 3fr 2fr;
		gap: var(--space-xl);
	}

	.about-main__inner {
		grid-template-columns: 2fr 1fr;
		gap: var(--space-xl);
	}

	/* The summary card stays in view while reading. */
	.credentials {
		position: sticky;
		top: 6rem;
	}
}

/* ==========================================================================
   Contact page (/contact/)
   ========================================================================== */
.contact-page.site-main {
	padding: 0;
}

/* Extra room at the bottom so the contact cards can overlap the dark band. */
.contact-hero {
	padding-bottom: calc(var(--space-xl) + 3rem);
}

.contact-cards-section {
	position: relative;
	margin-top: -3rem;
}

.contact-cards {
	display: grid;
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-card {
	display: flex;
	flex-direction: column;
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-top: 3px solid var(--color-accent);
	border-radius: 8px;
	background: var(--color-surface);
	box-shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
}

.contact-card__icon {
	margin-bottom: var(--space-xs);
	color: var(--color-accent-text);
}

.contact-card__title {
	margin-bottom: 0.25rem;
	color: var(--color-muted);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.contact-card__value {
	margin: 0 0 var(--space-xs);
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-style: normal;
	font-weight: 700;
	font-variant-numeric: lining-nums;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.contact-card__value a {
	color: var(--color-heading);
	text-decoration-color: var(--color-accent);
	text-underline-offset: 0.2em;
}

.contact-card__note {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.contact-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: 0;
	font-weight: 600;
}

.contact-main__inner {
	display: grid;
	gap: var(--space-lg);
	align-items: start;
}

.contact-form-card {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-surface);
}

.contact-form-card__title {
	margin-bottom: 0.35rem;
	font-size: 1.6rem;
}

.contact-form-card__intro {
	margin-bottom: var(--space-md);
	color: var(--color-muted);
}

.contact-guide {
	display: grid;
	gap: var(--space-md);
}

/* Same card and padding as the form, so the two headings line up. */
.contact-guide__tips {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-surface);
}

.contact-guide__title {
	margin-bottom: var(--space-sm);
	font-size: 1.6rem;
}

.contact-guide__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: guide;
}

.contact-guide__list li:last-child {
	margin-bottom: 0;
}

.contact-guide__list li {
	position: relative;
	margin-bottom: var(--space-sm);
	line-height: 1.6;
	padding-left: 2.5rem;
	counter-increment: guide;
}

.contact-guide__list li::before {
	content: counter(guide);
	position: absolute;
	top: -0.1rem;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid var(--color-accent);
	border-radius: 50%;
	color: var(--color-accent-text);
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	font-variant-numeric: lining-nums;
}

.contact-guide__book {
	padding: var(--space-md);
	border-radius: 8px;
	background: var(--color-secondary);
	color: var(--color-on-dark);
	--color-focus: var(--color-accent);
}

.contact-guide__subtitle {
	margin-bottom: var(--space-xs);
	color: var(--color-on-dark);
	font-size: 1.2rem;
}

.contact-guide__book p {
	color: var(--color-on-dark-muted);
}

.contact-guide__book .button {
	display: inline-flex;
	gap: 0.5rem;
}

.contact-cards-section .admin-placeholder {
	margin-top: var(--space-sm);
}

/* Contact cards: columns depend on how many cards there are, so no card is left alone on a row. */
@media (min-width: 40em) {
	.contact-cards--2,
	.contact-cards--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Three across only when each card is wide enough for an address on two lines. */
@media (min-width: 60em) {
	.contact-cards--3,
	.contact-cards--5 {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Five cards: three on the first row, two wider ones on the second. */
	.contact-cards--5 {
		grid-template-columns: repeat(6, 1fr);
	}

	.contact-cards--5 .contact-card {
		grid-column: span 2;
	}

	.contact-cards--5 .contact-card:nth-child(n + 4) {
		grid-column: span 3;
	}
}

@media (min-width: 64em) {
	.contact-cards--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 64em) {
	.contact-main__inner {
		grid-template-columns: 3fr 2fr;
		gap: var(--space-xl);
	}

	.contact-form-card,
	.contact-guide__tips,
	.contact-guide__book {
		padding: var(--space-lg);
	}

	.contact-guide {
		position: sticky;
		top: 6rem;
	}
}

/* Trust strip */
.home-trust {
	padding: var(--space-lg) 0;
	background: var(--color-secondary);
	color: var(--color-on-dark);
}

.trust-strip {
	display: grid;
	gap: var(--space-md);
	margin: 0;
}

.trust-strip__item {
	padding-left: var(--space-sm);
	border-left: 3px solid var(--color-accent);
}

.trust-strip dd {
	margin: 0;
}

.trust-strip__label {
	margin-bottom: 0.25rem;
	color: var(--color-on-dark-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.trust-strip__value {
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
}

.trust-strip__value--text {
	color: var(--color-on-dark);
	font-size: 1.15rem;
}

.trust-strip__note {
	color: var(--color-on-dark-muted);
	font-size: 0.9rem;
}

/* A short sentence instead of a name (for example "Other High Courts"). */
.trust-strip__sentence {
	max-width: 30rem;
	color: var(--color-on-dark);
	font-size: 1rem;
	line-height: 1.6;
}

/* Premium teaser */
.premium-teaser {
	display: grid;
	gap: var(--space-md);
	padding: var(--space-lg) var(--space-md);
	border: 1px solid var(--color-border);
	border-top: 4px solid var(--color-accent);
	border-radius: 8px;
	background: var(--color-surface);
}

.premium-teaser__eyebrow {
	margin: 0 0 var(--space-xs);
	color: var(--color-accent-text);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.premium-teaser__title {
	font-size: 1.7rem;
}

.premium-teaser__list {
	margin: 0 0 var(--space-sm);
	padding-left: 1.2rem;
}

.premium-teaser__list li::marker {
	color: var(--color-accent-text);
}

.premium-teaser__note {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.875rem;
	font-style: italic;
}

.premium-teaser__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-sm);
}

.premium-teaser__login {
	font-weight: 600;
}

/* About */
.home-about {
	border-block: 1px solid var(--color-border);
	background: var(--color-surface);
}

.home-about__inner {
	display: grid;
	gap: var(--space-lg);
	align-items: center;
}

.home-about__photo {
	width: min(100%, 16rem);
}

/* Popular articles (home): compact cards. Title up to 3 lines, summary 3 lines; the full text
   stays in the HTML for search engines and the article page has the rest. */
.article-card {
	margin-bottom: 0;
}

.home-articles .article-card {
	display: flex;
	flex-direction: column;
	padding: var(--space-md);
}

.home-articles .article-card .entry-card-image {
	margin-bottom: var(--space-sm);
}

.home-articles .article-card .entry-title {
	display: -webkit-box;
	margin: 0 0 var(--space-xs);
	overflow: hidden;
	font-size: 1.15rem;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.home-articles .article-card .entry-meta {
	margin-bottom: var(--space-xs);
	font-size: 0.85rem;
}

.home-articles .article-card .entry-summary {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.95rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.home-articles .article-card .entry-summary p {
	display: inline;
	margin: 0;
}

/* Contact */
.home-contact {
	border-top: 1px solid var(--color-border);
	background: var(--color-surface);
}

.home-contact__inner {
	display: grid;
	gap: var(--space-lg);
}

.contact-list {
	display: grid;
	gap: var(--space-sm);
	margin: var(--space-md) 0;
	padding: 0;
	list-style: none;
}

.contact-list__label {
	display: block;
	color: var(--color-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.contact-list a {
	font-size: 1.05rem;
	font-weight: 600;
}

.contact-list address {
	font-style: normal;
}

.home-contact__form {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-bg);
}

.home-contact__form-title {
	font-size: 1.3rem;
}

/* Home: only the enquiry form, centred. */
.home-contact--form-only .home-contact__form {
	max-width: 44rem;
	margin: 0 auto;
	padding: var(--space-lg) var(--space-md);
}

.home-contact--form-only .home-contact__form-title {
	font-size: 1.75rem;
	text-align: center;
}

/* Enquiry form */
.enquiry__field {
	margin: 0 0 var(--space-sm);
}

.enquiry__field > label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.enquiry__field input[type="text"],
.enquiry__field input[type="tel"],
.enquiry__field input[type="email"],
.enquiry__field textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--color-muted);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-text);
	font: inherit;
}

.enquiry__field.has-error input,
.enquiry__field.has-error textarea {
	border-color: var(--color-error);
	border-width: 2px;
}

.enquiry__required,
.enquiry__error {
	color: var(--color-error);
}

.enquiry__error {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.enquiry__hint {
	display: block;
	margin: -0.25rem 0 var(--space-sm);
	color: var(--color-muted);
	font-size: 0.85rem;
}

.enquiry__field .enquiry__hint {
	margin: 0.25rem 0 0;
}

.enquiry__consent {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.6rem;
}

.enquiry__consent input {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.3rem;
	accent-color: var(--color-primary);
}

.enquiry__consent label {
	flex: 1;
	font-weight: 400;
}

.enquiry__consent .enquiry__error {
	flex-basis: 100%;
}

/* Honeypot: off-screen for people, still in the form for bots. */
.enquiry__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.enquiry__notice {
	margin-bottom: var(--space-md);
	padding: var(--space-sm) var(--space-md);
	border-left: 4px solid var(--color-accent);
	border-radius: var(--radius);
	background: var(--color-surface);
}

.enquiry__notice p {
	margin: 0 0 0.25rem;
}

.enquiry__notice--error {
	border-left-color: var(--color-error);
}

.enquiry__notice ul {
	margin: 0.25rem 0 0;
	padding-left: 1.2rem;
}

.enquiry__notice--error a {
	color: var(--color-error);
}

.enquiry__disclaimer {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.85rem;
	font-style: italic;
}

/* Admin-only placeholders for content that has not been added yet. */
.admin-placeholder {
	margin: var(--space-xs) 0;
	padding: 0.5rem 0.75rem;
	border: 1px dashed var(--color-accent-text);
	border-radius: var(--radius);
	background: rgba(184, 151, 90, 0.08);
	color: var(--color-text);
	font-size: 0.85rem;
}

.admin-placeholder a {
	font-weight: 600;
}

.home-hero .admin-placeholder,
.home-trust .admin-placeholder {
	border-color: var(--color-accent);
	background: rgba(184, 151, 90, 0.12);
	color: var(--color-on-dark);
}

.home-hero .admin-placeholder a,
.home-trust .admin-placeholder a {
	color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
	.practice-card,
	.qa-vote {
		transition: none;
	}

	.practice-card:hover,
	.practice-card:focus-within {
		transform: none;
	}
}

@media (min-width: 48em) {
	.trust-strip {
		grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	}

	.premium-teaser {
		grid-template-columns: 2fr 1fr;
		align-items: center;
		padding: var(--space-lg);
	}

	.premium-teaser__actions {
		align-items: center;
	}

	.home-about__inner {
		grid-template-columns: 16rem 1fr;
	}
}

@media (min-width: 56em) {
	.home-hero__inner {
		grid-template-columns: 1.5fr 1fr;
	}

	.home-hero__name {
		font-size: 3.2rem;
	}

	.home-hero__photo {
		justify-self: end;
		width: min(100%, 21rem);
	}

	.home-contact__inner {
		grid-template-columns: 1fr 1.3fr;
		align-items: start;
	}
}

/* ==========================================================================
   Book an Appointment (page-book-appointment.php, js/booking.js)
   Steps: consultation cards, mode, date chips, time buttons, details, confirm bar.
   ========================================================================== */
.booking-hero__note {
	margin: 0;
	color: var(--color-on-dark-muted);
	font-size: 0.9rem;
}

.booking {
	max-width: 52rem;
	padding-top: var(--space-lg);
	padding-bottom: var(--space-xl);
}

.booking__error {
	margin-bottom: var(--space-md);
}

.booking-step {
	margin-bottom: var(--space-lg);
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-surface);
	scroll-margin-top: 6rem;
}

.booking-fieldset {
	min-width: 0;
	margin: 0 0 var(--space-md);
	padding: 0;
	border: 0;
}

.booking-fieldset:last-child {
	margin-bottom: 0;
}

.booking-step__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 var(--space-sm);
	padding: 0;
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 700;
}

.booking-step__num {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--color-primary);
	color: var(--color-accent);
	font-family: var(--font-body);
	font-size: 0.95rem;
}

.booking-step__subtitle {
	margin: 0 0 var(--space-xs);
	padding: 0;
	font-weight: 600;
}

.booking-step__submit {
	margin: 0;
}

/* Consultation and mode cards: real radio buttons, styled. */
.booking-options {
	display: grid;
	gap: var(--space-sm);
}

.booking-options--modes {
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.booking-option {
	position: relative;
	display: block;
	cursor: pointer;
}

.booking-option input {
	position: absolute;
	top: 1.05rem;
	left: 1rem;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	accent-color: var(--color-primary);
}

.booking-option__body {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.15rem var(--space-sm);
	height: 100%;
	padding: 0.85rem 1rem 0.85rem 2.75rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-bg);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.booking-option--compact .booking-option__body {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.booking-option:hover .booking-option__body {
	border-color: var(--color-accent-text);
}

.booking-option input:checked + .booking-option__body {
	border-color: var(--color-primary);
	background: var(--color-surface);
	box-shadow: inset 0 0 0 1px var(--color-primary);
}

.booking-option input:focus-visible + .booking-option__body {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

.booking-option__name {
	font-weight: 600;
}

.booking-option__meta {
	grid-column: 1;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.booking-option__price {
	grid-row: 1 / span 2;
	grid-column: 2;
	align-self: center;
	color: var(--color-accent-text);
	font-weight: 700;
}

.booking-option__note {
	grid-column: 1 / -1;
	color: var(--color-muted);
	font-size: 0.85rem;
}

@media (min-width: 40em) {
	.booking-options--types {
		grid-template-columns: 1fr 1fr;
	}
}

/* Dates: a row of chips that scrolls sideways on phones. */
.booking-dates {
	display: flex;
	gap: var(--space-xs);
	margin: 0;
	padding: 0 0 0.5rem;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x proximity;
}

.booking-dates li {
	flex: none;
	scroll-snap-align: start;
}

.booking-date {
	display: grid;
	justify-items: center;
	min-width: 4.75rem;
	padding: 0.55rem 0.5rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-bg);
	color: var(--color-text);
	line-height: 1.25;
	text-decoration: none;
}

.booking-date:hover,
.booking-date:focus-visible {
	border-color: var(--color-accent-text);
}

.booking-date[aria-current] {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.booking-date__day,
.booking-date__month {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.booking-date__num {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
}

.booking-date__count {
	margin-top: 0.2rem;
	color: var(--color-muted);
	font-size: 0.75rem;
}

.booking-date[aria-current] .booking-date__count {
	color: var(--color-accent);
}

/* Times */
.booking-times__label {
	margin: var(--space-sm) 0 var(--space-xs);
	color: var(--color-muted);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.booking-times {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
	gap: var(--space-xs);
}

.booking-time {
	position: relative;
	cursor: pointer;
}

.booking-time input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.booking-time span {
	display: block;
	padding: 0.6rem 0.25rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-bg);
	font-weight: 600;
	text-align: center;
}

.booking-time:hover span {
	border-color: var(--color-accent-text);
}

.booking-time input:checked + span {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.booking-time input:focus-visible + span {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

/* Details and confirm */
.booking-details__grid {
	display: grid;
	gap: 0 var(--space-md);
}

@media (min-width: 40em) {
	.booking-details__grid {
		grid-template-columns: 1fr 1fr;
	}

	.booking-details__wide {
		grid-column: 1 / -1;
	}
}

.booking-confirm {
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border);
}

.booking-confirm__summary {
	margin: 0 0 var(--space-sm);
}

.booking-confirm__price {
	color: var(--color-accent-text);
	font-weight: 700;
}

.booking-confirm__button {
	width: 100%;
	justify-content: center;
}

@media (min-width: 40em) {
	.booking-confirm__button {
		width: auto;
	}
}

.booking-confirm__note,
.booking-pay__note,
.booking-result__note {
	margin: var(--space-xs) 0 0;
	color: var(--color-muted);
	font-size: 0.875rem;
}

/* One booking: confirmed / pay / expired */
.booking-result {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-top: 4px solid var(--color-accent);
	border-radius: 6px;
	background: var(--color-surface);
}

.booking-result--confirmed {
	border-top-color: #2e7d32;
}

.booking-result__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin: 0 0 var(--space-sm);
	border-radius: 50%;
	background: #2e7d32;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
}

.booking-result h2 {
	margin-bottom: var(--space-xs);
}

.booking-result__timer {
	color: var(--color-muted);
	font-variant-numeric: tabular-nums;
}

.booking-summary {
	display: grid;
	gap: 0;
	margin: var(--space-md) 0;
	border-top: 1px solid var(--color-border);
}

.booking-summary > div {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: var(--space-sm);
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--color-border);
}

.booking-summary dt {
	color: var(--color-muted);
	font-weight: 600;
}

.booking-summary dd {
	margin: 0;
}

.booking-summary__note {
	color: var(--color-muted);
	font-size: 0.9rem;
}

.booking-result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: 0;
}

.booking-pay__button {
	min-width: 14rem;
	justify-content: center;
}

.booking-pay__status:empty {
	display: none;
}

.booking-pay__status {
	margin: var(--space-xs) 0 0;
	font-weight: 600;
}

.booking-empty {
	margin: 0;
	color: var(--color-muted);
}

/* Book a Consultation: guide below the form (template-parts/booking-guide.php). */
.booking-guide {
	margin-top: var(--space-xl);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--color-border);
	line-height: 1.65;
}

.booking-guide__title {
	margin: var(--space-lg) 0 var(--space-sm);
	font-size: 1.5rem;
	scroll-margin-top: 6rem;
}

.booking-guide > .booking-guide__title:first-child {
	margin-top: 0;
}

.booking-guide h3 {
	margin: var(--space-md) 0 var(--space-xs);
	font-size: 1.1rem;
}

.booking-guide ul {
	margin: 0 0 var(--space-sm);
	padding-left: 1.25rem;
}

.booking-guide li {
	margin-bottom: 0.4rem;
}

.booking-guide__steps {
	display: grid;
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: guide-step;
}

.booking-guide__steps li {
	position: relative;
	margin: 0;
	padding: var(--space-sm) var(--space-sm) var(--space-sm) 3.5rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-surface);
	counter-increment: guide-step;
}

.booking-guide__steps li::before {
	position: absolute;
	top: var(--space-sm);
	left: var(--space-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	border: 1px solid var(--color-accent);
	border-radius: 50%;
	color: var(--color-accent-text);
	font-weight: 700;
	content: counter(guide-step);
}

.booking-guide__note {
	margin: var(--space-sm) 0 0;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.booking-guide__files {
	padding-left: 1.25rem;
}

.booking-guide__files code {
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.booking-guide__docs {
	display: grid;
	gap: 0;
	margin: 0;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-surface);
}

.booking-guide__docs > div {
	padding: var(--space-sm);
	border-bottom: 1px solid var(--color-border);
}

.booking-guide__docs > div:last-child {
	border-bottom: 0;
}

.booking-guide__docs dt {
	font-weight: 700;
}

.booking-guide__docs dd {
	margin: 0.2rem 0 0;
}

.booking-guide__facts {
	display: grid;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}

.booking-guide__facts > div {
	padding: var(--space-sm) var(--space-md);
	border-left: 3px solid var(--color-accent);
	background: var(--color-surface);
}

.booking-guide__facts h3 {
	margin-top: 0;
}

.booking-guide__facts p {
	margin: 0;
}

.booking-guide__urgent {
	margin-top: var(--space-lg);
	padding: var(--space-md);
	border: 1px solid #c9a6a0;
	border-left: 5px solid #9b2c2c;
	border-radius: 8px;
	background: #fdf4f2;
	scroll-margin-top: 6rem;
}

.booking-guide__urgent .booking-guide__title {
	margin-top: 0;
	color: #7f1d1d;
}

.booking-guide__urgent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: var(--space-sm) 0 0;
}

.booking-guide__urgent-actions .button {
	margin: 0;
}

@media (min-width: 48em) {
	.booking-guide__docs {
		grid-template-columns: 14rem minmax(0, 1fr);
	}

	.booking-guide__docs > div {
		display: contents;
	}

	.booking-guide__docs dt,
	.booking-guide__docs dd {
		margin: 0;
		padding: var(--space-sm);
		border-bottom: 1px solid var(--color-border);
	}

	.booking-guide__docs > div:last-child dt,
	.booking-guide__docs > div:last-child dd {
		border-bottom: 0;
	}

	.booking-guide__facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.booking-disclaimer {
	margin-top: var(--space-lg);
	color: var(--color-muted);
	font-size: 0.85rem;
}

/* ==========================================================================
   Free Legal Tool: High Court case types (page-high-court-case-types.php)
   Phones: each row is a card. Wider screens: a table with a sticky header.
   ========================================================================== */
.tools__free {
	margin: var(--space-md) 0;
}

.tools__badge {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: #e6f2e7;
	color: #1e5b22;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
}

.case-types {
	padding-top: var(--space-lg);
	padding-bottom: var(--space-xl);
}

.case-types__tools {
	position: relative;
	margin-bottom: var(--space-md);
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-surface);
}

.case-types__search {
	margin: 0 0 var(--space-sm);
}

.case-types__search label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.case-types__search-box {
	position: relative;
	display: block;
}

.case-types__search-box svg {
	position: absolute;
	top: 50%;
	left: 0.9rem;
	color: var(--color-muted);
	transform: translateY(-50%);
}

.case-types__search-box input {
	width: 100%;
	padding: 0.8rem 0.9rem 0.8rem 2.6rem;
	border: 1px solid var(--color-muted);
	border-radius: var(--radius);
	background: var(--color-bg);
	color: var(--color-text);
	font: inherit;
	font-size: 1.05rem;
}

.case-types__search-box input:focus {
	border-color: var(--color-primary);
	background: var(--color-surface);
}

.case-types__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 var(--space-sm);
	padding: 0;
	border: 0;
}

.case-types__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.case-types__chip > span {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: var(--color-bg);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
}

.case-types__chip:hover > span {
	border-color: var(--color-accent-text);
}

.case-types__chip input:checked + span {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.case-types__chip input:focus-visible + span {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

.case-types__chip-count {
	opacity: 0.7;
	font-size: 0.8em;
}

.case-types__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xs) var(--space-md);
}

.case-types__count {
	margin: 0;
	color: var(--color-muted);
	font-weight: 600;
}

.case-types__sort {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.case-types__sort select {
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--color-muted);
	border-radius: var(--radius);
	background: var(--color-surface);
	font: inherit;
}

.case-types__actions {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin: 0;
}

.case-types__table {
	width: 100%;
	border-collapse: collapse;
}

.case-types__table thead {
	display: none;
}

.case-types__table tr {
	display: block;
	margin-bottom: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-accent);
	border-radius: 6px;
	background: var(--color-surface);
	scroll-margin-top: 6rem;
}

.case-types__table tr[hidden] {
	display: none;
}

.case-types__table td,
.case-types__table th {
	display: block;
	padding: 0.2rem 0;
	text-align: left;
	vertical-align: top;
}

.case-types__table td.case-types__no {
	display: none;
}

.case-types__table tbody th {
	font-family: var(--font-heading);
	font-size: 1.1rem;
}

.case-types__law::before,
.case-types__purpose::before {
	content: attr(data-label) ": ";
	color: var(--color-muted);
	font-size: 0.85rem;
	font-weight: 600;
}

.case-types__abbr code {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border-radius: var(--radius);
	background: var(--color-primary);
	color: var(--color-accent);
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.case-types__cat {
	display: block;
	margin-top: 0.15rem;
	color: var(--color-muted);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.case-types__table tr:target {
	box-shadow: 0 0 0 3px var(--color-accent);
}

.case-types__none {
	padding: var(--space-md);
	border: 1px dashed var(--color-border);
	border-radius: 6px;
	color: var(--color-muted);
	text-align: center;
}

.case-types__note {
	margin-top: var(--space-lg);
	padding: var(--space-md);
	border-left: 4px solid var(--color-accent);
	background: var(--color-surface);
	font-size: 0.9rem;
}

.case-types__note p:last-child {
	margin-bottom: 0;
}

@media (min-width: 56em) {
	.case-types__table-wrap {
		border: 1px solid var(--color-border);
		border-radius: 6px;
		background: var(--color-surface);
	}

	.case-types__table thead {
		display: table-header-group;
	}

	.case-types__table thead th {
		position: sticky;
		top: calc(4.5rem + var(--wp-admin--admin-bar--height, 0px)); /* Below the sticky header (4.5rem tall). */
		z-index: 1;
		padding: 0.75rem;
		border-bottom: 2px solid var(--color-accent);
		background: var(--color-primary);
		color: var(--color-on-dark);
		font-size: 0.85rem;
		letter-spacing: 0.04em;
		text-align: left;
		text-transform: uppercase;
	}

	.case-types__table tr {
		display: table-row;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
	}

	.case-types__table tr[hidden] {
		display: none;
	}

	.case-types__table tbody tr:nth-child(even of :not([hidden])) {
		background: var(--color-bg);
	}

	.case-types__table td,
	.case-types__table th,
	.case-types__table td.case-types__no {
		display: table-cell;
		padding: 0.75rem;
		border-bottom: 1px solid var(--color-border);
	}

	.case-types__table tbody th {
		width: 22%;
		font-size: 1rem;
	}

	.case-types__table .case-types__no {
		width: 3.5rem;
		text-align: center;
	}

	.case-types__table tbody .case-types__no {
		color: var(--color-muted);
	}

	.case-types__abbr {
		width: 9rem;
	}

	.case-types__law {
		width: 28%;
		font-size: 0.9rem;
	}

	.case-types__law::before,
	.case-types__purpose::before {
		content: none;
	}
}

/* ==========================================================================
   Judgments and Citations Search (inc/judgments.php)
   Badges: green allowed, red dismissed, amber partly allowed, grey disposed.
   ========================================================================== */
.judgment-badge {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.judgment-badge--large {
	padding: 0.35rem 0.9rem;
	font-size: 0.95rem;
}

.judgment-badge--allowed { background: #e3f1e4; color: #1b5e20; }
.judgment-badge--dismissed { background: #fde8e6; color: #9b1c12; }
.judgment-badge--partly_allowed { background: #fff2d6; color: #7a4f00; }
.judgment-badge--disposed { background: #ececec; color: #3d3d3d; }
.judgment-badge--reference_answered { background: #e6eef8; color: #1d4e89; }

.judgment-chip {
	display: inline-block;
	max-width: 100%;
	margin: 0 0.25rem 0.35rem 0;
	padding: 0.15rem 0.6rem;
	border: 1px solid var(--color-accent-text);
	border-radius: 999px;
	background: var(--color-surface);
	color: var(--color-accent-text);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* Long names (e.g. "Prevention of Cruelty to Animals Act, 1960 Section 11(1)(a)") wrap instead of overflowing on phones. */
@media (max-width: 40em) {
	.judgment-chip {
		white-space: normal;
		border-radius: 1rem;
	}
}

a.judgment-chip:hover,
a.judgment-chip:focus-visible {
	background: var(--color-accent-text);
	color: #fff;
}

.judgments__case .judgments__court {
	color: var(--color-accent-text);
	font-weight: 600;
}

/* Citations Search */
.judgments {
	padding-top: var(--space-lg);
	padding-bottom: var(--space-xl);
}

.judgments__form {
	margin-bottom: var(--space-md);
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-surface);
}

.judgments__search {
	margin: 0 0 var(--space-sm);
}

.judgments__search label,
.judgments__filters label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.judgments__filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: var(--space-sm);
	align-items: end;
}

.judgments__filters p {
	margin: 0;
}

.judgments__filters select {
	width: 100%;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--color-muted);
	border-radius: var(--radius);
	background: var(--color-surface);
	font: inherit;
}

.judgments__results.is-loading {
	opacity: 0.55;
	transition: opacity 0.15s;
}

.judgments__count {
	color: var(--color-muted);
	font-weight: 600;
}

.judgments__table {
	width: 100%;
	border-collapse: collapse;
}

.judgments__table thead {
	display: none;
}

.judgments__table tr {
	display: grid;
	gap: 0.25rem;
	margin-bottom: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-accent);
	border-radius: 6px;
	background: var(--color-surface);
}

.judgments__table td,
.judgments__table th {
	display: block;
	padding: 0;
	text-align: left;
}

.judgments__case a {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	color: var(--color-text);
	text-decoration: none;
}

.judgments__case a:hover {
	color: var(--color-accent-text);
	text-decoration: underline;
}

.judgments__case span,
.judgments__citation span {
	display: block;
	color: var(--color-muted);
	font-size: 0.8rem;
	font-weight: 400;
}

.judgments__citation .judgments__case-label {
	display: block;
	margin: 0 0 0.1rem;
	color: var(--color-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.judgments__citation strong {
	font-size: 0.9rem;
}

.judgments__date {
	color: var(--color-muted);
	font-size: 0.9rem;
}

.judgments__view {
	margin-top: 0.4rem;
}

@media (min-width: 56em) {
	.judgments__table-wrap {
		border: 1px solid var(--color-border);
		border-radius: 6px;
		background: var(--color-surface);
	}

	.judgments__table thead {
		display: table-header-group;
	}

	.judgments__table thead th {
		display: table-cell;
		padding: 0.75rem;
		border-bottom: 2px solid var(--color-accent);
		background: var(--color-primary);
		color: var(--color-on-dark);
		font-size: 0.8rem;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.judgments__table tr {
		display: table-row;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
	}

	.judgments__table td,
	.judgments__table tbody th {
		display: table-cell;
		padding: 0.8rem 0.75rem;
		border-bottom: 1px solid var(--color-border);
		vertical-align: top;
	}

	.judgments__table tbody tr:hover {
		background: var(--color-bg);
	}

	.judgments__citation { width: 14%; }
	.judgments__date { width: 11%; white-space: nowrap; }
	.judgments__sections { width: 18%; }
	.judgments__outcome { width: 11%; }
	.judgments__view { width: 1%; margin: 0; text-align: right; }
}

/* One judgment */
.judgment-hero {
	padding: var(--space-lg) 0;
	background: var(--color-primary);
	color: var(--color-on-dark);
	--color-focus: var(--color-accent);
}

.judgment-hero__title {
	margin-bottom: var(--space-xs);
	color: var(--color-on-dark);
	font-size: 1.9rem;
}

.judgment-hero__citation {
	margin: 0 0 var(--space-md);
	color: var(--color-accent);
	font-weight: 600;
}

.judgment-card {
	display: grid;
	gap: var(--space-md);
	padding: var(--space-md);
	border: 1px solid var(--color-border-dark);
	border-top: 4px solid var(--color-accent);
	border-radius: 6px;
	background: var(--color-secondary);
}

.judgment-card__facts {
	display: grid;
	gap: var(--space-sm);
	margin: 0;
}

.judgment-card__facts dt,
.judgment-card__label {
	display: block;
	color: var(--color-on-dark-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.judgment-card__facts dd {
	margin: 0.1rem 0 0;
	font-weight: 600;
}

.judgment-card__side {
	display: grid;
	gap: var(--space-sm);
	align-content: start;
}

.judgment-card__outcome {
	margin: 0;
}

.judgment-card__outcome .judgment-badge {
	margin-top: 0.3rem;
}

.judgment-card__pdf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

@media (min-width: 48em) {
	.judgment-hero__title {
		font-size: 2.4rem;
	}

	.judgment-card {
		grid-template-columns: 1fr 16rem;
	}

	.judgment-card__facts {
		grid-template-columns: 1fr 1fr;
	}
}

.judgment-translate {
	border-bottom: 1px solid var(--color-border);
	background: var(--color-surface);
}

.judgment-translate__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem var(--space-sm);
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.judgment-translate__label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
}

.judgment-translate__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.judgment-translate__list a,
.judgment-translate__list button {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: var(--color-bg);
	color: var(--color-text);
	font: inherit;
	font-size: 0.9rem;
	text-decoration: none;
	cursor: pointer;
}

.judgment-translate__list [aria-pressed="true"] {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.judgment-translate__note {
	flex-basis: 100%;
	margin: 0;
	color: var(--color-muted);
	font-size: 0.8rem;
}

.judgment-body {
	max-width: 56rem;
	padding-top: var(--space-lg);
	padding-bottom: var(--space-xl);
}

.judgment-section {
	margin-bottom: var(--space-lg);
}

.judgment-section__title {
	position: relative; /* Anchors the section tooltip. */
	margin-bottom: var(--space-sm);
	padding-bottom: var(--space-xs);
	border-bottom: 1px solid var(--color-border);
	font-size: 1.45rem;
}

/* Section tooltips: "i" button after the heading; the explanation opens below the heading. */
.jtip__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	margin-left: 0.45rem;
	padding: 0;
	border: 1.5px solid var(--color-accent);
	border-radius: 50%;
	background: transparent;
	color: var(--color-accent-text);
	vertical-align: 0.2em;
	cursor: help;
}

.jtip__btn:focus-visible,
.jtip.is-open .jtip__btn {
	background: var(--color-accent);
	color: var(--color-primary);
}

.jtip__bubble {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	z-index: 30;
	max-width: min(30rem, 100%);
	padding: 0.7rem 0.9rem;
	border-radius: var(--radius);
	background: var(--color-primary);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	color: #fff;
	font-family: var(--font-body, inherit);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: normal;
	text-transform: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	pointer-events: none;
}

/* Open: tapped / clicked (is-open), or keyboard focus. Hover only where there is a real mouse,
   because phones keep a "hover" after a tap and the tooltip would not close. */
.jtip.is-open .jtip__bubble,
.jtip:has(.jtip__btn:focus-visible) .jtip__bubble {
	opacity: 1;
	visibility: visible;
	transform: none;
}

@media (hover: hover) and (pointer: fine) {
	.jtip:hover .jtip__bubble {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

@media (hover: hover) and (pointer: fine) {
	.jtip__btn:hover {
		background: var(--color-accent);
		color: var(--color-primary);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jtip__bubble {
		transition: none;
	}
}

@media print {
	.jtip {
		display: none;
	}
}

.judgment-brief {
	padding: var(--space-md);
	border-left: 4px solid var(--color-accent);
	border-radius: 0 6px 6px 0;
	background: var(--color-surface);
	font-size: 1.1rem;
}

.judgment-brief .judgment-section__title {
	border: 0;
	padding: 0;
}

.judgment-brief p:last-child {
	margin-bottom: 0;
}

/* Parties: appellant vs respondent, winner highlighted. */
.judgment-parties {
	display: grid;
	gap: var(--space-sm);
	align-items: stretch;
}

.judgment-party {
	position: relative;
	padding: var(--space-md);
	border: 2px solid var(--color-border);
	border-radius: 8px;
	background: var(--color-surface);
	text-align: center;
}

.judgment-party.is-winner {
	border-color: #2e7d32;
	background: #f2f8f2;
}

.judgment-party.is-loser {
	opacity: 0.8;
}

.judgment-party__role {
	margin: 0 0 0.25rem;
	color: var(--color-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.judgment-party__name {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
}

.judgment-party__result {
	display: inline-block;
	margin: 0.5rem 0 0;
	padding: 0.15rem 0.7rem;
	border-radius: 999px;
	background: #2e7d32;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.judgment-parties__vs {
	align-self: center;
	justify-self: center;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--color-primary);
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-weight: 700;
}

@media (min-width: 40em) {
	.judgment-parties {
		grid-template-columns: 1fr auto 1fr;
	}
}

/* Timeline: vertical on phones, horizontal steps on wide screens (up to 5 steps; longer timelines stay vertical). */
.judgment-timeline {
	position: relative;
	margin: 0;
	padding: 0 0 0 1.5rem;
	list-style: none;
}

.judgment-timeline::before {
	content: "";
	position: absolute;
	top: 0.4rem;
	bottom: 0.4rem;
	left: 0.45rem;
	width: 2px;
	background: var(--color-accent);
}

.judgment-timeline__step {
	position: relative;
	padding-bottom: var(--space-sm);
}

.judgment-timeline__dot {
	position: absolute;
	top: 0.3rem;
	left: -1.5rem;
	width: 1rem;
	height: 1rem;
	border: 3px solid var(--color-accent);
	border-radius: 50%;
	background: var(--color-surface);
}

.judgment-timeline__step:last-child .judgment-timeline__dot {
	background: var(--color-accent);
}

.judgment-timeline__date {
	margin: 0;
	color: var(--color-accent-text);
	font-size: 0.8rem;
	font-weight: 700;
}

.judgment-timeline__stage {
	margin: 0;
	font-weight: 700;
}

.judgment-timeline__detail {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9rem;
}

@media (min-width: 56em) {
	.judgment-timeline:not(.judgment-timeline--long) {
		display: grid;
		grid-auto-columns: 1fr;
		grid-auto-flow: column;
		gap: var(--space-sm);
		padding: 1.5rem 0 0;
	}

	.judgment-timeline:not(.judgment-timeline--long)::before {
		top: 0.45rem;
		right: 0;
		bottom: auto;
		left: 0;
		width: auto;
		height: 2px;
	}

	.judgment-timeline:not(.judgment-timeline--long) .judgment-timeline__dot {
		top: -1.5rem;
		left: 0;
	}
}

/* Old law ↔ new law */
.judgment-table-wrap {
	overflow-x: auto;
}

.judgment-law {
	width: 100%;
	margin-top: var(--space-sm);
	border-collapse: collapse;
	background: var(--color-surface);
}

.judgment-law caption {
	padding-bottom: 0.4rem;
	color: var(--color-muted);
	font-size: 0.85rem;
	font-weight: 600;
	text-align: left;
}

.judgment-law th,
.judgment-law td {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--color-border);
	text-align: left;
}

.judgment-law thead th {
	background: var(--color-bg);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.judgment-law__arrow {
	color: var(--color-accent-text);
	font-size: 1.2rem;
	text-align: center !important;
}

/* Issue → decision flowchart */
.judgment-flow {
	display: grid;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.judgment-flow__row {
	display: grid;
	gap: 0.5rem;
	align-items: stretch;
}

.judgment-flow__box {
	min-width: 0;
	padding: var(--space-sm) var(--space-md);
	border-radius: 8px;
}

/* Long words joined by slashes (e.g. "transmission/propagation/display") wrap instead of widening the page on phones. */
.judgment-text {
	overflow-wrap: anywhere;
}

.judgment-flow__box p {
	margin: 0.25rem 0 0;
}

.judgment-flow__box--q {
	border: 2px solid var(--color-primary);
	background: var(--color-surface);
}

.judgment-flow__box--a {
	border: 2px solid var(--color-accent);
	background: #fbf6ec;
}

.judgment-flow__tag {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-accent-text);
}

.judgment-flow__arrow {
	justify-self: center;
	width: 0;
	height: 0;
	border-top: 12px solid var(--color-accent);
	border-right: 10px solid transparent;
	border-left: 10px solid transparent;
}

@media (min-width: 48em) {
	.judgment-flow__row {
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}

	.judgment-flow__box {
		height: 100%;
	}

	.judgment-flow__arrow {
		border-top: 10px solid transparent;
		border-bottom: 10px solid transparent;
		border-left: 12px solid var(--color-accent);
		border-right: 0;
	}
}

/* Arguments */
.judgment-args {
	display: grid;
	gap: var(--space-sm);
}

.judgment-args__side {
	padding: var(--space-sm) var(--space-md);
	border-radius: 8px;
	background: var(--color-surface);
}

.judgment-args__side--appellant {
	border-top: 4px solid var(--color-primary);
}

.judgment-args__side--respondent {
	border-top: 4px solid var(--color-accent);
}

.judgment-args__side h3 {
	font-size: 1.05rem;
}

.judgment-args__side ul {
	margin: 0;
	padding-left: 1.2rem;
}

@media (min-width: 48em) {
	.judgment-args {
		grid-template-columns: 1fr 1fr;
	}
}

/* Ratio / operative quote boxes */
.judgment-quote {
	margin: 0 0 var(--space-sm);
	padding: var(--space-md);
	border-left: 5px solid var(--color-accent);
	border-radius: 0 8px 8px 0;
	background: var(--color-surface);
}

.judgment-quote--operative {
	border-left-color: var(--color-primary);
}

/* Obiter dicta: not binding, so lighter than the ratio. */
.judgment-quote--obiter {
	border-left-style: dashed;
	border-left-color: var(--color-muted);
}

.judgment-quote--obiter blockquote {
	font-family: inherit;
	font-size: 1rem;
}

.judgment-section__note {
	margin: 0 0 var(--space-sm);
	color: var(--color-muted);
	font-size: 0.9rem;
}

.judgment-quote blockquote {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.1rem;
	line-height: 1.6;
}

.judgment-quote blockquote p {
	margin: 0;
}

.judgment-quote figcaption {
	margin-top: var(--space-xs);
}

.judgment-quote__ref {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: var(--radius);
	background: var(--color-bg);
	color: var(--color-accent-text);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

a.judgment-quote__ref:hover {
	text-decoration: underline;
}

.judgment-flow__box .judgment-quote__ref {
	margin-top: 0.4rem;
}

.judgment-outcome__result {
	margin: 0 0 var(--space-xs);
}

.judgment-takeaways {
	display: grid;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: takeaway;
}

.judgment-takeaways li {
	position: relative;
	padding: 0.6rem 0.8rem 0.6rem 3rem;
	border-radius: 6px;
	background: var(--color-surface);
	counter-increment: takeaway;
}

.judgment-takeaways li::before {
	content: counter(takeaway);
	position: absolute;
	top: 0.55rem;
	left: 0.8rem;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--color-primary);
	color: var(--color-accent);
	font-size: 0.85rem;
	font-weight: 700;
}

.judgment-cited {
	padding-left: 1.2rem;
}

.judgment-faq {
	margin-bottom: var(--space-xs);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-surface);
}

.judgment-faq summary {
	padding: 0.75rem 1rem;
	font-weight: 600;
	cursor: pointer;
}

.judgment-faq p {
	margin: 0;
	padding: 0 1rem 0.9rem;
}

/* "Facing a similar issue?" */
.judgment-hook {
	display: grid;
	gap: var(--space-md);
	margin: var(--space-lg) 0;
	padding: var(--space-md);
	border-radius: 8px;
	background: var(--color-primary);
	color: var(--color-on-dark);
	--color-focus: var(--color-accent);
}

.judgment-hook h2,
.judgment-hook h3 {
	color: var(--color-on-dark);
}

.judgment-hook__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.judgment-hook__wa {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.judgment-hook__form {
	padding: var(--space-md);
	border-radius: 6px;
	background: var(--color-surface);
	color: var(--color-text);
	--color-focus: var(--color-accent-text);
}

.judgment-hook__form h3 {
	color: var(--color-heading);
}

.judgment-hook__hint {
	color: var(--color-muted);
	font-size: 0.9rem;
}

@media (min-width: 56em) {
	.judgment-hook {
		grid-template-columns: 1fr 1.2fr;
		padding: var(--space-lg);
	}
}

.judgment-related__list {
	display: grid;
	gap: var(--space-sm);
	margin: 0 0 var(--space-sm);
	padding: 0;
	list-style: none;
}

.judgment-related__item {
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-surface);
}

.judgment-related__item h3 {
	margin: 0.2rem 0 0.4rem;
	font-size: 1.05rem;
}

.judgment-related__meta {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.8rem;
}

@media (min-width: 48em) {
	.judgment-related__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Plain-language notice below the "Read this judgment in" bar. */
.judgment-disclaimer {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin: 0 0 var(--space-lg);
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-accent);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-text);
	font-size: 0.9rem;
	line-height: 1.6;
}

.judgment-disclaimer svg {
	flex: none;
	margin-top: 0.15rem;
	color: var(--color-accent-text);
}

.judgment-disclaimer a {
	color: var(--color-accent-text);
	font-weight: 600;
}

/* Sticky "Book an Appointment": a bar on phones, a floating button on wider screens. */
.judgment-sticky {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
	background: var(--color-accent);
	color: var(--color-on-accent);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
}

.judgment-sticky:hover,
.judgment-sticky:focus-visible {
	background: var(--color-accent-hover);
	color: var(--color-on-accent);
}

body.single-judgment .site-footer {
	padding-bottom: 3.5rem; /* Room for the bar on phones. */
}

@media (min-width: 48em) {
	.judgment-sticky {
		right: 1.25rem;
		bottom: 1.25rem;
		left: auto;
		padding: 0.8rem 1.25rem;
		border-radius: 999px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	}

	body.single-judgment .site-footer {
		padding-bottom: 0;
	}
}

@media print {
	.judgment-sticky,
	.judgment-translate,
	.judgment-hook {
		display: none;
	}
}

/* ==========================================================================
   Limitation Calculator (page-limitation-calculator.php)
   ========================================================================== */
.limitation {
	max-width: 52rem;
	padding-top: var(--space-lg);
	padding-bottom: var(--space-xl);
}

.limitation__form {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-surface);
}

.limitation__fieldset {
	min-width: 0;
	margin: 0 0 var(--space-md);
	padding: 0;
	border: 0;
}

.limitation__court summary {
	cursor: pointer;
	list-style: none;
}

.limitation__court summary::-webkit-details-marker {
	display: none;
}

.limitation__court summary::after {
	content: "+";
	margin-left: auto;
	color: var(--color-accent-text);
	font-family: var(--font-body);
}

.limitation__court[open] summary::after {
	content: "–";
}

.limitation__grid {
	display: grid;
	gap: 0 var(--space-md);
}

@media (min-width: 40em) {
	.limitation__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.limitation__field {
	margin: 0 0 var(--space-sm);
}

.limitation__field label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.limitation__field select,
.limitation__field input,
.limitation__field textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--color-muted);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-text);
	font: inherit;
}

.limitation__field .enquiry__hint {
	display: block;
	margin-top: 0.3rem;
}

.limitation__copy {
	margin-top: var(--space-xs);
	padding: var(--space-sm) var(--space-md);
	border-left: 4px solid var(--color-accent);
	background: var(--color-bg);
}

.limitation__subhead {
	margin: 0 0 var(--space-xs);
	font-weight: 700;
}

.limitation__radios {
	display: grid;
	gap: 0.3rem;
	margin: 0 0 var(--space-sm);
	padding: 0;
	border: 0;
}

.limitation__radios legend {
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.limitation__submit {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	margin: 0;
}

.limitation-result {
	margin-top: var(--space-lg);
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-top: 4px solid var(--color-accent);
	border-radius: 6px;
	background: var(--color-surface);
	scroll-margin-top: 6rem;
}

.limitation-result:focus {
	outline: none;
}

.limitation-result__title {
	font-size: 1.35rem;
}

.limitation-result__card {
	display: grid;
	gap: var(--space-sm);
	margin-bottom: var(--space-md);
	padding: var(--space-md);
	border-radius: 8px;
	background: var(--color-primary);
	color: var(--color-on-dark);
}

.limitation-result__label {
	margin: 0;
	color: var(--color-on-dark-muted);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.limitation-result__date {
	margin: 0.2rem 0 0;
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.2;
}

.limitation-result__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem var(--space-sm);
	margin: 0;
}

.limitation-result__facts {
	display: grid;
	gap: 0;
	margin: 0 0 var(--space-md);
	border-top: 1px solid var(--color-border);
}

.limitation-result__facts > div {
	display: grid;
	grid-template-columns: minmax(8rem, 40%) 1fr;
	gap: var(--space-sm);
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--color-border);
}

.limitation-result__facts dt {
	color: var(--color-muted);
	font-weight: 600;
}

.limitation-result__facts dd {
	margin: 0;
}

.limitation-result h3 {
	margin-top: var(--space-md);
	font-size: 1.1rem;
}

.limitation-result__steps {
	padding-left: 1.3rem;
}

.limitation-result__steps li {
	margin-bottom: 0.4rem;
}

.limitation-result__note {
	padding: var(--space-sm) var(--space-md);
	border-left: 4px solid var(--color-accent);
	background: var(--color-bg);
}

.limitation-result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: var(--space-md) 0 var(--space-sm);
}

.limitation-result__disclaimer {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.85rem;
}

.limitation-faqs {
	margin-top: var(--space-xl);
}

@media print {
	.lang-bar,
	.site-header,
	.site-footer,
	.breadcrumbs,
	.page-hero,
	.limitation__form,
	.limitation-faqs,
	.limitation-result__actions {
		display: none !important;
	}

	.limitation-result {
		margin: 0;
		border: 0;
	}

	.limitation-result__card {
		border: 2px solid #000;
		background: #fff;
		color: #000;
	}

	.limitation-result__label,
	.limitation-result__date {
		color: #000;
	}
}

/* ==========================================================================
   Copy protection (inc/copy-protection.php): classes are added only on protected pages for visitors.
   ========================================================================== */
.mab-protect--select {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none; /* iPhone long-press menu. */
}

.mab-protect--select input,
.mab-protect--select textarea,
.mab-protect--select select,
.mab-protect--select [contenteditable="true"] {
	-webkit-user-select: text;
	user-select: text;
	-webkit-touch-callout: default;
}

/* Locked items on pages that are not protected themselves. */
.mab-protect-items--select .mab-protect-item {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.mab-protect-items--select .mab-protect-item input,
.mab-protect-items--select .mab-protect-item textarea,
.mab-protect-items--select .mab-protect-item select {
	-webkit-user-select: text;
	user-select: text;
}

.mab-protect-items--images .mab-protect-item img,
.mab-protect--images img {
	-webkit-user-drag: none;
	user-drag: none;
}

.mab-protect-toast {
	position: fixed;
	bottom: 5rem;
	left: 50%;
	z-index: 200;
	max-width: min(28rem, calc(100vw - 2rem));
	padding: 0.7rem 1rem;
	border-radius: 6px;
	background: var(--color-primary);
	color: var(--color-on-dark);
	font-size: 0.9rem;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 0.5rem);
	transition: opacity 0.2s, transform 0.2s;
}

.mab-protect-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
	.mab-protect-toast {
		transition: none;
	}
}

@media print {
	body.mab-protect--print > * {
		display: none !important;
	}

	body.mab-protect--print::before {
		content: "Printing is disabled for this page. Please visit the website to read it.";
		display: block;
		padding: 2rem;
		font-size: 14pt;
	}
}

/* ==========================================================================
   8. Larger screens (mobile-first: enhance upwards)
   ========================================================================== */
@media (min-width: 48em) {
	h1 { font-size: 2.5rem; }
	h2 { font-size: 1.9rem; }

	.post-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.entry {
		padding: var(--space-lg);
	}
}

@media (min-width: 70em) {
	.site-header__inner {
		flex-wrap: nowrap;
		gap: var(--space-md);
	}

	.js .menu-toggle {
		display: none;
	}

	.site-nav,
	.js .site-nav,
	.js .site-nav.is-open {
		position: static;
		display: block;
		order: 0;
		flex-basis: auto;
		padding: 0;
		overflow: visible;
		background: none;
		animation: none;
	}

	.site-nav > ul {
		display: flex;
		gap: 1.25rem;
	}

	.site-nav li {
		position: relative;
	}

	.site-nav li a {
		padding: 0.25rem 0;
		border-bottom: 0;
		font-family: var(--font-body);
		font-size: 0.95rem;
		font-weight: 500;
		white-space: nowrap;
	}

	.site-nav > ul > li {
		display: flex;
		align-items: center;
	}

	.submenu-toggle__icon {
		width: 12px;
		height: 12px;
	}

	.submenu-toggle {
		width: auto;
		padding: 0.25rem 0;
		border-bottom: 0;
		font-family: var(--font-body);
		font-size: 0.95rem;
		font-weight: 500;
		white-space: nowrap;
	}

	/* Drop-down panel, aligned to the right edge of its button. */
	.site-nav .sub-menu {
		display: none;
		position: absolute;
		top: calc(100% + 0.9rem);
		right: 0;
		z-index: 100;
		min-width: 12rem;
		padding: var(--space-xs) 0;
		border-top: 3px solid var(--color-accent);
		border-radius: 0 0 8px 8px;
		background: var(--color-secondary);
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	}

	.site-nav .sub-menu a {
		padding: 0.55rem var(--space-md);
		font-size: 0.95rem;
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu a:focus {
		background: var(--color-primary);
	}

	/* Without JavaScript: open on hover or keyboard focus. */
	html:not(.js) .site-nav li:hover > .sub-menu,
	html:not(.js) .site-nav li:focus-within > .sub-menu,
	.js .submenu-toggle[aria-expanded="true"] + .sub-menu {
		display: block;
	}

	.nav-cta {
		display: none;
	}
}

/* ==========================================================================
   News page (/news/): paper cuttings, photos, videos, article links
   ========================================================================== */
.news-filter {
	margin-bottom: var(--space-md);
}

.news-grid {
	--news-media-h: 14rem;
	display: grid;
	gap: var(--space-md);
	align-items: start; /* An opened card ("Read more") grows alone; its neighbours keep their size. */
}

@media (min-width: 40em) {
	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.news-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.news-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	scroll-margin-top: 6rem;
}

.news-card:target {
	outline: 3px solid var(--color-accent);
}

.news-card__media {
	position: relative;
	height: var(--news-media-h); /* Same picture height for every kind of card. */
	background: #f1ede4;
}

/* Paper cuttings and photos: the whole image, never cropped (text must stay readable). */
.news-card__media--image a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0.75rem;
	cursor: zoom-in;
}

/* Article without a picture: a panel with the publication name. */
.news-card__media--placeholder a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	height: 100%;
	padding: var(--space-sm);
	background: var(--color-primary);
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.news-card--article .news-card__media--image a {
	cursor: pointer;
}

.news-card__media--image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.news-card__more {
	position: absolute;
	right: 0.6rem;
	bottom: 0.6rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
}

/* Videos: 16:9, YouTube thumbnail with a play button until played. */
.news-video {
	background: #000;
}

.news-video__play {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.news-video__play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-video__button {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 2.8rem;
	border-radius: 0.8rem;
	background: #c4302b;
	color: #fff;
	transform: translate(-50%, -50%);
	transition: transform 0.15s ease;
}

.news-video__play:hover .news-video__button,
.news-video__play:focus-visible .news-video__button {
	transform: translate(-50%, -50%) scale(1.08);
}

.news-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.4rem;
	padding: var(--space-sm) var(--space-md) var(--space-md);
}

.news-card__meta {
	display: flex;
	flex-wrap: wrap;
	min-width: 0;
	align-items: center;
	gap: 0.35rem 0.75rem;
	margin: 0;
	color: var(--color-muted);
	font-size: 0.8rem;
}

.news-card__kind {
	padding: 0.05rem 0.5rem;
	border-radius: 999px;
	background: var(--color-primary);
	color: var(--color-on-dark);
	font-weight: 600;
}

.news-card__source {
	color: var(--color-accent-text);
	font-weight: 700;
}

.news-card__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
}

.news-card__text-area {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.news-card__title a {
	color: var(--color-heading);
	text-decoration: none;
}

.news-card__title a:hover,
.news-card__title a:focus-visible {
	color: var(--color-accent-text);
}

.news-card__summary {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

/* Equal card heights (with JavaScript): one line of details, 2 lines of headline, 3 lines of
   summary, whatever the text length; "Read more" shows the rest in that card only. */
.js .news-card__meta {
	flex-wrap: nowrap;
	overflow: hidden;
	white-space: nowrap;
}

.js .news-card__meta > * {
	flex: none;
}

.js .news-card__source {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.js .news-card__title,
.js .news-card__summary {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
}

.js .news-card__title {
	height: calc(2 * 1.35em);
	-webkit-line-clamp: 2;
}

.js .news-card__summary {
	height: calc(3 * 1.55em);
	-webkit-line-clamp: 3;
}

.js .news-card__transcript {
	display: none;
}

.js .news-card.is-expanded .news-card__title,
.js .news-card.is-expanded .news-card__summary {
	display: block;
	height: auto;
	-webkit-line-clamp: unset;
}

.js .news-card.is-expanded .news-card__transcript {
	display: block;
}

.news-card__transcript {
	margin-top: 0.4rem;
	padding-top: 0.6rem;
	border-top: 1px solid var(--color-border);
	font-size: 0.92rem;
}

.news-card__transcript p {
	margin: 0 0 0.5rem;
}

.news-card__transcript-label {
	color: var(--color-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.news-card__actions {
	display: flex;
	flex-wrap: nowrap; /* One line, so every card ends at the same height. */
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem 1rem;
	min-height: 1.9rem;
	margin-top: 0.2rem;
}

.news-card__link svg {
	flex: none;
}

.news-card__link-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.news-card__more-toggle {
	flex: none;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-accent-text);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.news-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	margin-left: auto;
	color: var(--color-accent-text);
	font-weight: 600;
}

/* Image viewer */
.news-viewer {
	width: min(96vw, 70rem);
	max-width: none;
	height: min(94vh, 60rem);
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: #111;
	color: #fff;
}

.news-viewer[open] {
	display: flex;
	flex-direction: column;
}

.news-viewer::backdrop {
	background: rgba(0, 0, 0, 0.8);
}

.news-viewer__bar {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: 0.6rem 0.9rem;
}

.news-viewer__caption {
	flex: 1;
	margin: 0;
	font-size: 0.9rem;
}

.news-viewer__count {
	font-size: 0.85rem;
	opacity: 0.8;
}

.news-viewer__close {
	padding: 0 0.4rem;
	border: 0;
	background: none;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.news-viewer__stage {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 3rem;
}

.news-viewer__stage img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	background: #fff;
}

.news-viewer__nav {
	position: absolute;
	top: 50%;
	width: 2.6rem;
	height: 2.6rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.news-viewer__nav--prev {
	left: 0.4rem;
}

.news-viewer__nav--next {
	right: 0.4rem;
}

.news-viewer__nav:hover,
.news-viewer__nav:focus-visible {
	background: rgba(255, 255, 255, 0.3);
}

.news-viewer__full {
	align-self: center;
	margin: 0.6rem 0 0.8rem;
	color: #fff;
	font-size: 0.85rem;
}

@media (max-width: 40em) {
	.news-viewer__stage {
		padding: 0 0.5rem;
	}

	.news-viewer__nav {
		top: auto;
		bottom: 0.5rem;
		transform: none;
	}
}


/* ==========================================================================
   "Get the latest updates & legal knowledge" (above the footer, inc/updates.php)
   One horizontal row on wide screens: Name | WhatsApp number | Address | button.
   ========================================================================== */
.updates {
	padding: var(--space-lg) 0;
	border-top: 1px solid var(--color-border);
	background: var(--color-surface);
}

.updates__head {
	margin-bottom: var(--space-sm);
}

.updates__title {
	margin: 0 0 0.3rem;
	font-size: 1.7rem;
}

.updates__lead {
	margin: 0;
	color: var(--color-muted);
}

.updates__row {
	display: grid;
	gap: 0.75rem;
	align-items: start;
}

@media (min-width: 48em) {
	.updates__row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

@media (min-width: 64em) {
	.updates__row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto;
	}
}

.updates__field {
	margin: 0;
}

.updates__field label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.updates__required {
	color: #b3261e;
}

.updates__field input {
	width: 100%;
	height: 2.9rem;
	padding: 0 0.75rem;
	border: 1px solid var(--color-border-dark, #8a8a8a);
	border-radius: var(--radius);
	background: var(--color-surface);
	font: inherit;
}

.updates__field.has-error input {
	border-color: #b3261e;
}

.updates__error {
	display: block;
	margin-top: 0.25rem;
	color: #b3261e;
	font-size: 0.85rem;
}

/* The button lines up with the inputs (below their labels). */
.updates__submit {
	margin: 0;
	padding-top: 1.75rem;
}

.updates__submit .button {
	width: 100%;
	height: 2.9rem;
	white-space: nowrap;
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.updates__submit {
		padding-top: 0;
		grid-column: 1 / -1;
	}
}

@media (max-width: 47.99em) {
	.updates__submit {
		padding-top: 0.2rem;
	}
}

.updates__consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.2rem 0.6rem;
	align-items: start;
	margin: 0.8rem 0 0;
	font-size: 0.88rem;
}

.updates__consent input {
	margin-top: 0.25rem;
}

.updates__consent label {
	margin: 0;
}

.updates__consent .updates__error {
	grid-column: 2;
}

.updates__important {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.6rem;
	margin: var(--space-sm) 0 0;
	padding: 0.7rem 0.9rem;
	border-left: 4px solid #25d366;
	border-radius: var(--radius);
	background: #effaf3;
	font-size: 0.92rem;
}

.updates__number {
	white-space: nowrap;
}

.updates__save {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
	padding: 0.2rem 0.75rem;
	border: 1px solid #25d366;
	border-radius: 999px;
	background: #fff;
	color: #128c4a;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.updates__save:hover,
.updates__save:focus-visible {
	background: #25d366;
	color: #fff;
}

.updates__notice {
	margin-bottom: var(--space-sm);
	padding: 0.8rem 1rem;
	border-radius: var(--radius);
}

.updates__notice p {
	margin: 0 0 0.4rem;
}

.updates__notice p:last-child {
	margin-bottom: 0;
}

/* After signing up: the message and the "Save number" button side by side. */
.updates__notice--ok {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	border: 1px solid #25d366;
	background: #effaf3;
}

.updates__notice-title {
	font-weight: 700;
}

.updates__notice--error {
	border: 1px solid #f2b8b5;
	background: #fdecea;
	color: #8c1d18;
}

.updates__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media print {
	.updates {
		display: none;
	}
}

/* Phones and tablets: tick the consent box before reaching the button. */
@media (max-width: 63.99em) {
	.updates__form {
		display: flex;
		flex-direction: column;
	}

	.updates__row {
		display: contents;
	}

	.updates__field {
		margin-bottom: 0.75rem;
	}

	.updates__consent {
		order: 1;
		margin: 0 0 0.75rem;
	}

	.updates__submit {
		order: 2;
		padding-top: 0;
	}
}

/* ==========================================================================
   Cookie choices (inc/cookie-consent.php, js/cookie-consent.js)
   ========================================================================== */
.consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	max-height: 80vh;
	overflow-y: auto;
	padding: var(--space-sm) 0;
	border-top: 3px solid var(--color-accent);
	background: var(--color-primary);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
	color: var(--color-on-dark);
	font-size: 0.95rem;
}

.consent__inner {
	display: grid;
	gap: var(--space-sm);
	align-items: center;
}

.consent__title {
	margin: 0 0 0.25rem;
	color: var(--color-on-dark);
	font-size: 1.05rem;
}

.consent p {
	margin: 0;
	line-height: 1.55;
}

.consent a {
	color: var(--color-accent);
	text-decoration: underline;
}

.consent__choices fieldset {
	margin: var(--space-sm) 0 0;
	padding: 0;
	border: 0;
}

.consent__choice {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin-bottom: 0.5rem;
	line-height: 1.5;
}

.consent__choice input {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
	accent-color: var(--color-accent);
}

.consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	align-items: center;
}

.consent__actions .button {
	margin: 0;
}

.consent__link {
	padding: 0.5rem 0.25rem;
	border: 0;
	background: none;
	color: var(--color-on-dark);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.consent__link:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Keep the end of the page reachable above the bar. */
.has-consent-bar body {
	padding-bottom: 12rem;
}

@media (min-width: 64em) {
	.consent__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--space-lg);
	}

	.has-consent-bar body {
		padding-bottom: 8rem;
	}
}

.consent-ask {
	max-width: min(30rem, calc(100vw - 2rem));
	padding: var(--space-md);
	border: 0;
	border-top: 3px solid var(--color-accent);
	border-radius: 8px;
	background: var(--color-surface);
	color: var(--color-text, #1a1a1a);
}

.consent-ask::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.consent-ask p {
	margin: 0 0 var(--space-sm);
	line-height: 1.55;
}

.consent-ask__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
}

.consent-ask__actions .button {
	margin: 0;
}

.consent-ask__more {
	margin: var(--space-sm) 0 0 !important;
	font-size: 0.9rem;
}

.footer-bottom__cookies {
	margin-left: 0.5rem;
	color: inherit;
	text-decoration: underline;
}

@media print {
	.consent,
	.consent-ask {
		display: none !important;
	}
}
