/**
 * Consular Services — content styles
 * Styles Gutenberg-authored service pages (.lc-service-content) and the
 * pattern classes (lc-callout, lc-address, lc-downloads, lc-faq, lc-table).
 * Loaded on the front end and inside the block editor.
 */

/* ---------------------------------------------------------- typography */

.lc-service-content > p,
.editor-styles-wrapper p {
	color: #374151;
	line-height: 1.75;
	margin: 0 0 1.25rem;
}

.lc-service-content h2,
.lc-service-content h3.lc-subheading {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 600;
	color: #111827;
	font-size: 1.3rem;
	margin: 2rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.lc-service-content > ul,
.lc-service-content > ol {
	margin: 0 0 1.5rem;
	padding-left: 1.35rem;
	color: #374151;
	line-height: 1.7;
}

.lc-service-content > ul li,
.lc-service-content > ol li {
	margin-bottom: 0.6rem;
}

.lc-service-content > ul li::marker,
.lc-service-content > ol li::marker {
	color: #ED1C24;
	font-weight: 600;
}

.lc-service-content a:not(.wp-block-button__link) {
	color: #ED1C24;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lc-service-content a:not(.wp-block-button__link):hover {
	color: #b3131a;
}

/* ------------------------------------------------------------ callouts */

.lc-callout {
	border-radius: 0.75rem;
	padding: 1.25rem;
	margin: 0 0 1.5rem;
}

.lc-callout p:last-child,
.lc-callout ul:last-child,
.lc-callout ol:last-child {
	margin-bottom: 0;
}

/* Fees — green */
.lc-callout--fee {
	border: 1px solid rgba(0, 166, 81, 0.3);
	background: rgba(0, 166, 81, 0.05);
}

.lc-callout--fee .lc-callout-title {
	color: #111827;
	margin-bottom: 0.65rem;
}

.lc-callout--fee ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.lc-callout--fee ul li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	margin: 0;
	border-top: 1px solid rgba(0, 166, 81, 0.15);
	color: #374151;
}

.lc-callout--fee ul li:first-child {
	border-top: none;
}

/* Warning — red */
.lc-callout--warning {
	border: 1px solid rgba(237, 28, 36, 0.3);
	background: rgba(237, 28, 36, 0.05);
}

.lc-callout--warning p {
	color: #7f1d1d;
}

.lc-callout--warning strong {
	color: #b3131a;
}

/* Note — grey/green */
.lc-callout--note {
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	border-left: 4px solid #00A651;
}

.lc-callout--note p {
	color: #4b5563;
}

/* -------------------------------------------------- mailing address card */

.lc-address {
	background: #111827;
	color: #f9fafb;
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin: 0 0 1.5rem;
}

.lc-address p {
	color: #e5e7eb;
	margin: 0;
	line-height: 1.7;
}

.lc-address .lc-address-label {
	color: #9ca3af;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.6rem;
}

.lc-address .lc-address-label strong {
	color: #9ca3af;
	font-weight: 600;
}

.lc-address a {
	color: #fca5a5;
}

/* ------------------------------------------------------- download list */

ul.lc-downloads {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.75rem;
}

ul.lc-downloads li {
	margin: 0;
}

ul.lc-downloads li a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.6rem;
	padding: 0.8rem 1rem;
	color: #374151;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

ul.lc-downloads li a::before {
	content: "\2913"; /* ⤓ download arrow */
	color: #ED1C24;
	font-size: 1rem;
	line-height: 1;
	flex-shrink: 0;
}

ul.lc-downloads li a:hover {
	border-color: rgba(237, 28, 36, 0.4);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	color: #ED1C24;
}

/* ----------------------------------------------------------------- faq */

details.lc-faq {
	border: 1px solid #e5e7eb;
	border-radius: 0.6rem;
	background: #fff;
	margin: 0 0 0.75rem;
	padding: 0 1.25rem;
	overflow: hidden;
}

details.lc-faq summary {
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	color: #111827;
	padding: 0.9rem 0;
	position: relative;
	padding-right: 1.75rem;
}

details.lc-faq summary::-webkit-details-marker {
	display: none;
}

details.lc-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	color: #ED1C24;
	font-size: 1.25rem;
	font-weight: 400;
	transition: transform 0.15s ease;
}

details.lc-faq[open] summary::after {
	content: "\2212"; /* − */
}

details.lc-faq p {
	border-top: 1px solid #f3f4f6;
	padding-top: 0.75rem;
	padding-bottom: 1rem;
	margin: 0;
	color: #374151;
	line-height: 1.7;
}

/* --------------------------------------------------------------- table */

.lc-service-content .wp-block-table,
figure.lc-table {
	margin: 0 0 1.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	overflow: hidden;
	overflow-x: auto;
}

.lc-service-content .wp-block-table table,
figure.lc-table table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.lc-service-content .wp-block-table th,
figure.lc-table th {
	background: #f9fafb;
	color: #6b7280;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	padding: 0.8rem 1.25rem;
	border: none;
}

.lc-service-content .wp-block-table td,
figure.lc-table td {
	padding: 0.8rem 1.25rem;
	color: #374151;
	border: none;
	border-top: 1px solid #f3f4f6;
}

.lc-service-content .wp-block-table tr:hover td,
figure.lc-table tr:hover td {
	background: rgba(249, 250, 251, 0.6);
}
