/**
 * 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 {
	position: relative;
	padding-left: 1.6rem;
	margin-bottom: 0.4rem;
	color: #374151;
}

.lc-callout--fee ul li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #00A651;
	font-weight: 700;
}

/* Note — neutral with green bar */
.lc-callout--note {
	border-left: 4px solid #00A651;
	background: #f9fafb;
	color: #374151;
}

/* Warning — red */
.lc-callout--warning {
	border-left: 4px solid #ED1C24;
	background: rgba(237, 28, 36, 0.05);
	color: #1f2937;
}

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

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

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

.lc-address .lc-address-label {
	color: rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	margin-bottom: 0.6rem;
}

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

/* -------------------------------------------------- downloads / links */

ul.lc-downloads,
ul.lc-links {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	ul.lc-downloads,
	ul.lc-links {
		grid-template-columns: 1fr 1fr;
	}
}

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

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

ul.lc-downloads li a::before,
ul.lc-links li a::before {
	content: "⬇";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	flex-shrink: 0;
	border-radius: 0.5rem;
	background: rgba(237, 28, 36, 0.1);
	color: #ED1C24;
	font-size: 0.95rem;
}

ul.lc-links li a::before {
	content: "↗";
}

ul.lc-downloads li a:hover,
ul.lc-links li a:hover {
	border-color: #ED1C24;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	color: #ED1C24 !important;
}

/* ----------------------------------------------------------------- FAQ */

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

details.lc-faq summary {
	cursor: pointer;
	padding: 1rem;
	font-weight: 500;
	color: #111827;
	list-style: none;
	position: relative;
	padding-right: 2.5rem;
	transition: background 0.15s ease;
}

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

details.lc-faq summary::after {
	content: "▾";
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #ED1C24;
	transition: transform 0.2s ease;
}

details.lc-faq[open] summary::after {
	transform: translateY(-50%) rotate(180deg);
}

details.lc-faq summary:hover {
	background: #f9fafb;
}

details.lc-faq > *:not(summary) {
	padding: 0 1rem;
}

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);
}
