/* LASPNET template for Joomla 5 */

/* ---------- Tokens ---------- */
:root {
	--lsp-brand: #8f1d2c;
	--lsp-brand-deep: color-mix(in srgb, var(--lsp-brand) 70%, #000);
	--lsp-brand-tint: color-mix(in srgb, var(--lsp-brand) 8%, #fff);
	--lsp-gold: #f4b400;
	--lsp-ink: #241a1c;
	--lsp-muted: #5f5859;
	--lsp-line: #ddd9da;
	--lsp-paper: #f3f4f6;
	--lsp-footer: #26090f;
	--lsp-font-display: "Young Serif", Georgia, "Times New Roman", serif;
	--lsp-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--lsp-wrap: 1200px;
	--lsp-radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
	margin: 0;
	font-family: var(--lsp-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--lsp-ink);
	background: #fff;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--lsp-brand); text-underline-offset: .15em; }
a:hover { color: var(--lsp-brand-deep); }
:focus-visible { outline: 3px solid var(--lsp-gold); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lsp-font-display);
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 .6em;
	color: var(--lsp-ink);
}
h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--lsp-wrap); margin-inline: auto; padding-inline: 1.25rem; }
.visually-hidden, .visually-hidden-focusable:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--lsp-gold);
	color: var(--lsp-ink); padding: .6rem 1rem; font-weight: 700; border-radius: var(--lsp-radius);
}
.skip-link:focus { top: 1rem; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }

/* ---------- Buttons and forms ---------- */
.btn, button.btn, input[type="submit"].btn {
	display: inline-block; font: inherit; font-weight: 700; line-height: 1.2; text-align: center;
	text-decoration: none; cursor: pointer; padding: .7rem 1.2rem; border-radius: var(--lsp-radius);
	border: 2px solid var(--lsp-brand); background: transparent; color: var(--lsp-brand);
	transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--lsp-brand-tint); color: var(--lsp-brand-deep); }
.btn-primary, .btn-success { background: var(--lsp-brand); color: #fff; }
.btn-primary:hover, .btn-success:hover { background: var(--lsp-brand-deep); border-color: var(--lsp-brand-deep); color: #fff; }
.btn-secondary, .btn-outline-secondary { border-color: var(--lsp-line); color: var(--lsp-ink); }
.btn-danger { border-color: #b3261e; background: #b3261e; color: #fff; }
.btn-sm { padding: .4rem .8rem; font-size: .9rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"],
input[type="tel"], input[type="number"], input[type="date"], select, textarea,
.form-control, .form-select {
	width: 100%; font: inherit; color: var(--lsp-ink); background: #fff; padding: .6rem .75rem;
	border: 1px solid #b9b3b4; border-radius: var(--lsp-radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--lsp-brand); outline: 3px solid color-mix(in srgb, var(--lsp-brand) 25%, transparent); outline-offset: 0; }
label, legend { font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.control-group, .form-group { margin-bottom: 1rem; }

.alert, joomla-alert { display: block; padding: .9rem 1.1rem; margin: 0 0 1.25rem; border-left: 5px solid var(--lsp-brand); background: var(--lsp-brand-tint); }
.alert-success { border-color: #1e7a46; background: #e8f5ee; }
.alert-danger, .alert-error { border-color: #b3261e; background: #fbeceb; }
.alert-warning, .alert-notice { border-color: var(--lsp-gold); background: #fff7df; }
joomla-alert { border: 0; border-left: 5px solid var(--lsp-brand); }

table, .table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--lsp-line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--lsp-ink); }

.badge { display: inline-block; padding: .15rem .55rem; font-size: .8rem; font-weight: 700; border-radius: 99px; background: var(--lsp-paper); }

/* ---------- Top bar ---------- */
.topbar { background: var(--lsp-footer); color: #eadcde; font-size: .9rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--lsp-gold); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.6rem; flex-wrap: wrap; }
.topbar__contact, .topbar__tools { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.social { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; }
.social a:hover { background: rgba(255, 255, 255, .12); }
.topbar__search input { padding: .3rem .6rem; font-size: .85rem; width: 11rem; }
.topbar__search form, .topbar__search .mod-finder, .topbar__search .search { margin: 0; display: flex; gap: .35rem; }
.topbar__search .btn { padding: .3rem .7rem; font-size: .85rem; color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------- Header and navigation ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--lsp-line); z-index: 40; }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 56px; width: auto; }

.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .6rem; font: inherit; font-weight: 700; color: var(--lsp-ink); background: none; border: 2px solid var(--lsp-line); border-radius: var(--lsp-radius); padding: .45rem .8rem; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

.site-nav { margin-left: auto; }
.site-nav .mod-menu, .site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .mod-menu { display: flex; align-items: center; gap: .15rem; }
.site-nav li { position: relative; }
.site-nav .mod-menu > li > a, .site-nav .mod-menu > li > span {
	display: block; padding: 1.7rem .8rem 1.5rem; font-weight: 600; font-size: .98rem; color: var(--lsp-ink);
	text-decoration: none; border-bottom: 4px solid transparent; margin-bottom: -1px;
}
.site-nav .mod-menu > li:hover > a, .site-nav .mod-menu > li:focus-within > a,
.site-nav .mod-menu > li.active > a, .site-nav .mod-menu > li.current > a { color: var(--lsp-brand); border-bottom-color: var(--lsp-brand); }
.site-nav li.parent > a::after, .site-nav li.parent > span::after {
	content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; vertical-align: .15em;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.site-nav .mod-menu__sub {
	display: none; position: absolute; left: 0; top: 100%; min-width: 15rem; z-index: 60;
	background: #fff; border: 1px solid var(--lsp-line); border-top: 4px solid var(--lsp-brand);
	box-shadow: 0 14px 28px rgba(36, 26, 28, .14); padding: .4rem 0;
}
.site-nav li:hover > .mod-menu__sub, .site-nav li:focus-within > .mod-menu__sub { display: block; }
.site-nav .mod-menu__sub a, .site-nav .mod-menu__sub span { display: block; padding: .55rem 1.1rem; color: var(--lsp-ink); text-decoration: none; font-size: .95rem; }
.site-nav .mod-menu__sub a:hover { background: var(--lsp-brand-tint); color: var(--lsp-brand); }
/* Give a menu item the "Link Class" nav-cta to turn it into a button (e.g. Donate) */
.site-nav .mod-menu > li > a.nav-cta {
	background: var(--lsp-brand); color: #fff; border-radius: var(--lsp-radius); padding: .65rem 1.2rem;
	margin: 0 0 0 .5rem; border-bottom: 0;
}
.site-nav .mod-menu > li > a.nav-cta:hover { background: var(--lsp-brand-deep); color: #fff; }

/* ---------- Hero and helpline ---------- */
.hero { background: var(--lsp-footer); }
.helpline { background: var(--lsp-gold); color: var(--lsp-ink); }
.helpline__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; padding-block: 1.1rem; }
.helpline p { margin: 0; }
.helpline__q { font-family: var(--lsp-font-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.25; }
.helpline__call { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.helpline__note { font-weight: 600; }
.helpline__number { font-family: var(--lsp-font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--lsp-ink); text-decoration: none; letter-spacing: .02em; border-bottom: 3px solid var(--lsp-ink); line-height: 1.1; }
.helpline__number:hover { color: var(--lsp-brand-deep); border-color: var(--lsp-brand-deep); }

/* ---------- Intro: vision / mission / goal / mandate ---------- */
.intro { background: var(--lsp-paper); border-bottom: 1px solid var(--lsp-line); }
.intro__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.intro .lsp-module { padding: 2.25rem 1.5rem; border-left: 1px solid var(--lsp-line); }
.intro .lsp-module:first-child { border-left: 0; padding-left: 0; }
.intro .lsp-module:last-child { padding-right: 0; }
.intro .lsp-module__title { font-size: 1.5rem; color: var(--lsp-brand); margin-bottom: .5rem; border: 0; padding: 0; }
.intro .lsp-module__body { font-size: .98rem; color: var(--lsp-muted); }
.intro .lsp-module__body p:last-child { margin-bottom: 0; }

/* One Pillars module spans the whole intro grid */
.intro .lsp-module.lsp-module--mod-laspnet-pillars { grid-column: 1 / -1; padding: 0; border: 0; margin: 0; }

/* ---------- Page body ---------- */
.site-body { padding-block: 2.5rem 3.5rem; }
.site-body__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.has-sidebar .site-body__grid { grid-template-columns: minmax(0, 1fr) 20rem; }
.site-main { min-width: 0; }
.site-main .page-header h1, .site-main .page-header h2 { margin-bottom: 1rem; }
.main-top, .main-bottom { margin-block: 1.5rem; }

.breadcrumbs { margin-bottom: 1.5rem; font-size: .9rem; color: var(--lsp-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 .6rem; color: var(--lsp-line); }
.breadcrumbs a { color: var(--lsp-muted); }
.breadcrumbs .mod-breadcrumbs__here { margin-right: .6rem; }

/* ---------- Module panels ---------- */
.lsp-module { margin-bottom: 2rem; }
.lsp-module__title { font-size: 1.2rem; margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 3px solid var(--lsp-brand); }
.site-sidebar .lsp-module { margin-bottom: 2.25rem; }
.site-sidebar .lsp-module__body ul { list-style: none; margin: 0; padding: 0; }
.site-sidebar .lsp-module__body li { padding: .6rem 0; border-bottom: 1px solid var(--lsp-line); line-height: 1.4; }
.site-sidebar .lsp-module__body li a { text-decoration: none; font-weight: 500; }
.site-sidebar .lsp-module__body li a:hover { text-decoration: underline; }
.site-sidebar img { display: block; }

/* ---------- Articles ---------- */
.blog-item, .blog .blog-item { padding: 0 0 2rem; margin: 0 0 2rem; border-bottom: 1px solid var(--lsp-line); }
.blog-item:last-child { border-bottom: 0; }
.item-content h2, .item-content h1, .blog-item h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: .35rem; }
.item-content h2 a, .blog-item h2 a, .page-header h2 a { color: var(--lsp-brand); text-decoration: none; }
.item-content h2 a:hover, .blog-item h2 a:hover { text-decoration: underline; }
.article-info, .article-info-term { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .88rem; color: var(--lsp-muted); }
.article-info dd, .article-info dt { margin: 0; display: inline; }
.article-info .visually-hidden, .article-info-term { display: none; }
.item-image, .com-content-article__body img.float-start { margin-bottom: 1rem; }
.item-image img, .com-content-article img { border-radius: 0; }
.com-content-article__body > p, .com-content-article__body > ul, .com-content-article__body > ol { max-width: 80ch; }
.readmore .btn { padding: .45rem .9rem; font-size: .9rem; }
.tags { list-style: none; display: flex; gap: .4rem; padding: 0; flex-wrap: wrap; }
.float-start { float: left; margin: 0 1.25rem 1rem 0; }
.float-end { float: right; margin: 0 0 1rem 1.25rem; }
.clearfix::after { content: ""; display: table; clear: both; }

.pagination, .pagination .pagination, nav.pagination__wrapper ul { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.pagination .page-link, .pagination li > a, .pagination li > span {
	display: block; min-width: 2.4rem; text-align: center; padding: .4rem .7rem; font-weight: 600;
	text-decoration: none; border: 1px solid var(--lsp-line); border-radius: var(--lsp-radius); color: var(--lsp-ink);
}
.pagination .active > a, .pagination .active > span, .pagination li.active .page-link { background: var(--lsp-brand); border-color: var(--lsp-brand); color: #fff; }
.pagination .disabled > span { color: #aaa; }
.pagination .page-link:hover { background: var(--lsp-brand-tint); }
.pagination__counter, .counter { color: var(--lsp-muted); font-size: .9rem; }

/* ---------- Contact form (com_contact) ---------- */
.com-contact { margin-top: 2.5rem; }
.com-contact .page-header { margin-bottom: 1.5rem; }
.com-contact #contact-form, .com-contact .contact-form {
	padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--lsp-paper); border-top: 5px solid var(--lsp-brand);
}
.com-contact #contact-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0; }
.com-contact #contact-form legend { grid-column: 1 / -1; font-family: var(--lsp-font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 1.25rem; padding: 0; }
.com-contact #contact-form .control-group { grid-column: 1 / -1; margin-bottom: 1.1rem; }
.com-contact #contact-form .control-group:has(#jform_contact_name),
.com-contact #contact-form .control-group:has(#jform_contact_email) { grid-column: auto; }
.com-contact #contact-form .control-label label { display: block; margin-bottom: .35rem; }
.com-contact #contact-form .star, .com-contact #contact-form .form-control-feedback { color: #b3261e; }
.com-contact #contact-form textarea { min-height: 10rem; resize: vertical; }
.com-contact #contact-form .btn-primary { padding: .85rem 2rem; font-size: 1.05rem; }
.com-contact #contact-form .invalid, .com-contact #contact-form [aria-invalid="true"] { border-color: #b3261e; }
@media (max-width: 640px) {
	.com-contact #contact-form fieldset { grid-template-columns: minmax(0, 1fr); }
	.com-contact #contact-form .control-group:has(#jform_contact_name),
	.com-contact #contact-form .control-group:has(#jform_contact_email) { grid-column: 1 / -1; }
}

/* ---------- Partners ---------- */
.partners { background: var(--lsp-paper); border-top: 1px solid var(--lsp-line); padding-block: 2.25rem; }
.partners .lsp-module { margin: 0; }
.partners .lsp-module__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.75rem; }
.partners .lsp-module__body p { display: contents; }
.partners img { height: 64px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.partners img:hover { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--lsp-footer); color: #e6d9db; font-size: .96rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lsp-gold); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-block: 3.25rem 2rem; }
.site-footer .lsp-module__title { color: var(--lsp-gold); border-bottom-color: rgba(255, 255, 255, .18); }
.site-footer .lsp-module { margin-bottom: 1rem; }
.site-footer input[type="text"], .site-footer input[type="email"] { border-color: transparent; }
.site-footer .btn { background: var(--lsp-gold); border-color: var(--lsp-gold); color: var(--lsp-ink); }
.site-footer .btn:hover { background: #fff; border-color: #fff; color: var(--lsp-ink); }
.contact-list { margin: 0; }
.contact-list dt { font-weight: 700; color: var(--lsp-gold); font-size: .85rem; margin-top: .9rem; }
.contact-list dd { margin: 0; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .14); }
.site-footer__base-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem; font-size: .88rem; }
.site-footer__base p { margin: 0; color: #bba9ac; }
.footer-menu ul { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-menu a { text-decoration: none; }

/* ---------- Error page ---------- */
.error-page { display: grid; place-items: center; min-height: 100vh; background: var(--lsp-paper); }
.error-page__box { max-width: 30rem; padding: 2.5rem; background: #fff; border-top: 6px solid var(--lsp-brand); text-align: center; }
.error-page__code { font-family: var(--lsp-font-display); font-size: 5rem; line-height: 1; color: var(--lsp-brand); margin: 1.25rem 0 .5rem; }
.component-main { padding: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.has-sidebar .site-body__grid { grid-template-columns: minmax(0, 1fr); }
	.intro__grid { grid-template-columns: repeat(2, 1fr); }
	.intro .lsp-module:nth-child(odd) { border-left: 0; padding-left: 0; }
	.intro .lsp-module:nth-child(n+3) { border-top: 1px solid var(--lsp-line); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.site-header__inner { flex-wrap: wrap; min-height: 4.5rem; padding-block: .5rem; }
	.site-nav { display: none; flex-basis: 100%; margin: 0; padding-bottom: 1rem; }
	.site-nav.is-open { display: block; }
	.site-nav .mod-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .mod-menu > li > a, .site-nav .mod-menu > li > span { padding: .8rem .25rem; border-bottom: 1px solid var(--lsp-line); margin: 0; }
	.site-nav .mod-menu__sub { display: block; position: static; box-shadow: none; border: 0; border-left: 3px solid var(--lsp-brand); margin: .25rem 0 .5rem .5rem; padding: 0; min-width: 0; }
	.site-nav li.parent > a::after, .site-nav li.parent > span::after { display: none; }
	.site-nav .mod-menu > li > a.nav-cta { margin: .75rem 0 0; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.intro__grid { grid-template-columns: 1fr; }
	.intro .lsp-module { border-left: 0; padding-inline: 0; border-top: 1px solid var(--lsp-line); }
	.intro .lsp-module:first-child { border-top: 0; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.topbar__contact a:nth-child(2) { display: none; }
	.topbar__search input { width: 8rem; }
	.float-start, .float-end { float: none; margin: 0 0 1rem; }
}

@media print {
	.topbar, .site-header, .hero, .helpline, .site-sidebar, .partners, .site-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* ---------- Phoca Download: file list ---------- */
.lsp-docs { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.lsp-docs__note { padding: .25rem 0; color: var(--lsp-muted); }

.lsp-doc {
	display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: center;
	padding: 1.25rem 1.5rem 1.25rem 1.25rem; background: #fff;
	border: 1px solid var(--lsp-line); border-left: 5px solid var(--lsp-brand);
	transition: box-shadow .2s, transform .2s;
}
.lsp-doc:hover { box-shadow: 0 12px 28px rgba(38, 9, 15, .1); transform: translateY(-2px); }

.lsp-doc__cover { display: grid; place-items: center; width: 6.5rem; aspect-ratio: 3 / 4; overflow: hidden; background: var(--lsp-brand-tint); }
.lsp-doc__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lsp-doc__badge { font-family: var(--lsp-font-display); font-size: 1.4rem; letter-spacing: .06em; color: var(--lsp-brand); }

.lsp-doc__body { min-width: 0; }
.lsp-doc__title { margin: 0 0 .4rem; font-size: 1.25rem; line-height: 1.3; }
.lsp-doc__title img { height: 1.1em; width: auto; margin-left: .4rem; vertical-align: middle; }
.lsp-doc__desc { margin: 0 0 .6rem; color: var(--lsp-muted); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lsp-doc__desc p { margin: 0; }

.lsp-doc__meta { display: flex; flex-wrap: wrap; gap: .15rem 0; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--lsp-muted); }
.lsp-doc__meta li + li::before { content: "\00B7"; margin: 0 .6rem; color: #b9b3b4; }
.lsp-doc__tags { margin-top: .5rem; font-size: .85rem; }

.lsp-doc__actions { display: flex; flex-direction: column; gap: .5rem; min-width: 10.5rem; }
.lsp-doc__actions .btn { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1rem; font-size: .95rem; }
.lsp-doc__extra { grid-column: 1 / -1; padding-top: .9rem; border-top: 1px solid var(--lsp-line); font-size: .9rem; }

/* Phoca category page bits */
.pd-ctitle, .pd-category h3 { margin-bottom: 1rem; }
.pd-subcategory { display: inline-block; margin: 0 .5rem .5rem 0; padding: .35rem .9rem; border: 1px solid var(--lsp-line); font-weight: 600; }
.pd-subcategory a { text-decoration: none; }
.pd-subcategory small { color: var(--lsp-muted); }
.ph-top { margin-bottom: 1.25rem; }
.pd-hr-cb { clear: both; margin-bottom: 1rem; }

@media (max-width: 720px) {
	.lsp-doc { grid-template-columns: 4.5rem minmax(0, 1fr); padding: 1rem; }
	.lsp-doc__cover { width: 4.5rem; }
	.lsp-doc__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
	.lsp-doc__actions .btn { flex: 1 1 8rem; }
}
/* ---------- Blog columns ---------- */
.blog-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.blog-items.columns-2, .blog-items.masonry-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-items.columns-3, .blog-items.masonry-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-items .blog-item { padding: 0; margin: 0; border: 0; }
@media (max-width: 760px) {
	.blog-items[class*="columns-"], .blog-items[class*="masonry-"] { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Member organisation cards ---------- */
.lsp-mo {
	position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; height: 100%;
	padding: 1.25rem; background: #fff; border: 1px solid var(--lsp-line); border-top: 4px solid var(--lsp-brand);
	transition: box-shadow .2s, transform .2s;
}
.lsp-mo:hover { box-shadow: 0 14px 30px rgba(38, 9, 15, .12); transform: translateY(-2px); }
.lsp-mo:focus-within { outline: 3px solid var(--lsp-gold); outline-offset: 3px; }

.lsp-mo__logo { display: grid; place-items: center; align-self: start; width: 7.5rem; aspect-ratio: 1; padding: .6rem; background: #fff; border: 1px solid var(--lsp-line); }
.lsp-mo__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lsp-mo__logo.is-placeholder { background: var(--lsp-brand-tint); border-color: transparent; font-family: var(--lsp-font-display); font-size: 2rem; letter-spacing: .04em; color: var(--lsp-brand); }

.lsp-mo__body { min-width: 0; display: flex; flex-direction: column; }
.lsp-mo__title { margin: 0 0 .45rem; font-size: 1.2rem; line-height: 1.3; }
.lsp-mo__title a { color: var(--lsp-ink); text-decoration: none; }
.lsp-mo__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.lsp-mo:hover .lsp-mo__title a { color: var(--lsp-brand); text-decoration: underline; text-underline-offset: .2em; }
.lsp-mo__title a:focus-visible { outline: none; }

.lsp-mo__text { color: var(--lsp-muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lsp-mo__text p { margin: 0 0 .4rem; }
.lsp-mo__text p:empty { display: none; }
.lsp-mo__more { margin-top: auto; padding-top: .75rem; font-size: .9rem; font-weight: 700; color: var(--lsp-brand); }
.lsp-mo__more::after { content: " \2192"; }
.lsp-mo__body a:not(.lsp-mo__title a) { position: relative; z-index: 2; } /* links inside custom fields stay clickable */
.lsp-mo__extra { margin-top: .5rem; font-size: .9rem; }
.lsp-mo__extra dl, .lsp-mo__extra ul { margin: 0; padding: 0; list-style: none; }

@media (max-width: 480px) {
	.lsp-mo { grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: 1rem; }
	.lsp-mo__logo { width: 5rem; }
}
