/*
 * OGSP inner pages: banner, article layout, typography, sidebar, profile area.
 * Plain CSS on top of the compiled Tailwind file, so no rebuild is needed.
 * Colours come from the theme tokens (--color-brand, --color-accent, ...).
 */

:root {
	--og-brand: var(--color-brand, #1c3a5e);
	--og-brand-dark: var(--color-brand-dark, #0f2540);
	--og-brand-light: var(--color-brand-light, #e7edf4);
	--og-accent: var(--color-accent, #c9a227);
	--og-ink: var(--color-ink, #182230);
	--og-line: rgba(15, 37, 64, 0.1);
	--og-shadow: 0 1px 2px rgba(15, 37, 64, 0.04), 0 12px 32px -12px rgba(15, 37, 64, 0.18);
	--og-shadow-lg: 0 24px 60px -24px rgba(15, 37, 64, 0.35);
	--og-pad: clamp(1.25rem, 4vw, 3rem);
	--og-radius: 1.5rem;
	--og-sticky: 6.5rem;
}
.admin-bar { --og-sticky: calc(6.5rem + 32px); }
@media (max-width: 782px) { .admin-bar { --og-sticky: 6.5rem; } }

/* ------------------------------------------------------------------ Avatar */
.ogsp-avatar {
	--s: 40px;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--s);
	height: var(--s);
	border-radius: 50%;
	overflow: hidden;
	background: var(--og-brand-light);
	color: #fff;
	font-family: var(--font-display, "Manrope", system-ui, sans-serif);
	font-weight: 700;
	font-size: calc(var(--s) * 0.44);
	line-height: 1;
	letter-spacing: 0;
	user-select: none;
	vertical-align: middle;
}
.ogsp-avatar img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ogsp-avatar--xl,
.ogsp-avatar--xxl { box-shadow: 0 0 0 4px #fff, 0 10px 28px rgba(15, 37, 64, 0.2); }

/* ------------------------------------------------- Header account dropdown */
.ogsp-pmenu { position: relative; }
.ogsp-pmenu__btn {
	display: inline-flex;
	padding: 2px;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 0 0 2px rgba(15, 37, 64, 0.12);
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ogsp-pmenu__btn:hover,
.ogsp-pmenu__btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--og-accent); }
.ogsp-pmenu__btn:focus-visible { outline: 2px solid var(--og-accent); outline-offset: 3px; }
#site-header[data-transparent="true"] .ogsp-pmenu__btn,
#site-header[data-transparent="true"] .ogsp-mavatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65); }
.ogsp-pmenu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.75rem);
	z-index: 60;
	width: 19rem;
	overflow: hidden;
	border: 1px solid var(--og-line);
	border-radius: 1.1rem;
	background: #fff;
	color: var(--og-ink);
	box-shadow: var(--og-shadow-lg);
}
.ogsp-pmenu__head {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1.1rem;
	background: linear-gradient(135deg, var(--og-brand-dark), var(--og-brand));
	color: #fff;
}
.ogsp-pmenu__head .ogsp-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.ogsp-pmenu__head span { display: grid; min-width: 0; gap: 0.1rem; }
.ogsp-pmenu__head strong { font-family: var(--font-display, inherit); font-size: 1rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ogsp-pmenu__head small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ogsp-pmenu__mail { color: rgba(255, 255, 255, 0.6) !important; }
.ogsp-pmenu__links { padding: 0.4rem; }
.ogsp-pmenu__links a,
.ogsp-pmenu__logout {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.65rem 0.8rem;
	border-radius: 0.65rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(24, 34, 48, 0.85);
	transition: background 0.12s ease, color 0.12s ease;
}
.ogsp-pmenu__links a:hover { background: var(--og-brand-light); color: var(--og-brand-dark); }
.ogsp-pmenu__logout { margin: 0 0.4rem 0.4rem; border-top: 1px solid var(--og-line); border-radius: 0 0 0.65rem 0.65rem; padding-top: 0.85rem; color: #9f1239; }
.ogsp-pmenu__logout:hover { background: #fff1f2; }

.ogsp-mavatar { display: inline-flex; border-radius: 50%; padding: 2px; box-shadow: 0 0 0 2px rgba(15, 37, 64, 0.12); }

.ogsp-pdrawer { padding: 1rem; border-bottom: 1px solid rgba(0, 0, 0, 0.05); background: rgba(231, 237, 244, 0.45); }
.ogsp-pdrawer__me { display: flex; align-items: center; gap: 0.85rem; }
.ogsp-pdrawer__me span { display: grid; min-width: 0; }
.ogsp-pdrawer__me strong { font-family: var(--font-display, inherit); color: var(--og-brand-dark); }
.ogsp-pdrawer__me small { color: rgba(24, 34, 48, 0.6); }
.ogsp-pdrawer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.9rem; }
.ogsp-pdrawer__links a { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.7rem; border-radius: 0.65rem; background: #fff; border: 1px solid var(--og-line); font-size: 0.82rem; font-weight: 600; color: var(--og-brand-dark); }

/* ------------------------------------------------- Glass header (inner pages) */
#site-header[data-glass="true"] {
	position: fixed;
	inset-inline: 0;
	top: 0;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
#site-header[data-glass="true"][data-transparent="true"] {
	background: rgba(15, 37, 64, 0.38);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: none;
}
#site-header[data-glass="true"][data-transparent="true"][data-scrolled="true"] {
	background: rgba(15, 37, 64, 0.82);
	box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.45);
}
.admin-bar #site-header[data-glass="true"] { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header[data-glass="true"] { top: 46px; } }
@media (max-width: 600px) { .admin-bar #site-header[data-glass="true"] { top: 0; } }
/* the home-only hairline under the bar is not needed on glass */
#site-header[data-glass="true"] > div:last-child { display: none; }

/* ------------------------------------------------------------------ Buttons */
.ogsp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.72rem 1.45rem;
	border: 1px solid transparent;
	border-radius: 9999px;
	background: var(--og-brand);
	color: #fff;
	font: 600 0.9rem/1.2 var(--font-sans, inherit);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ogsp-btn:hover { background: var(--og-brand-dark); box-shadow: 0 8px 20px -8px rgba(15, 37, 64, 0.55); }
.ogsp-btn:active { transform: translateY(1px); }
.ogsp-btn:focus-visible { outline: 2px solid var(--og-accent); outline-offset: 3px; }
.ogsp-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.ogsp-btn--gold { background: var(--og-accent); color: var(--og-brand-dark); }
.ogsp-btn--gold:hover { background: #d8b238; }
.ogsp-btn--ghost { background: transparent; border-color: rgba(28, 58, 94, 0.3); color: var(--og-brand); }
.ogsp-btn--ghost:hover { background: var(--og-brand-light); box-shadow: none; }
.ogsp-btn--danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.ogsp-btn--danger:hover { background: #fef2f2; box-shadow: none; }

/* --------------------------------------------------------------------- Hero */
.ogsp-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: linear-gradient(135deg, var(--og-brand-dark) 0%, var(--og-brand) 58%, #2a528a 100%);
	color: #fff;
	padding: calc(4rem + clamp(2.5rem, 6vw, 4.5rem)) 1rem clamp(4.5rem, 9vw, 7rem);
}
@media (min-width: 1024px) { .ogsp-hero { padding-top: calc(5rem + clamp(2.5rem, 6vw, 4.5rem)); } }
.ogsp-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(48rem 24rem at 88% -12%, rgba(201, 162, 39, 0.32), transparent 62%),
		radial-gradient(36rem 22rem at -8% 115%, rgba(255, 255, 255, 0.09), transparent 62%);
}
.ogsp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 95%);
	mask-image: linear-gradient(100deg, transparent 20%, #000 95%);
}
.ogsp-hero--compact { padding-top: calc(4rem + clamp(2rem, 4.5vw, 3.25rem)); padding-bottom: clamp(4rem, 7vw, 5.5rem); }
@media (min-width: 1024px) { .ogsp-hero--compact { padding-top: calc(5rem + clamp(2rem, 4.5vw, 3.25rem)); } }
.ogsp-hero__inner { position: relative; z-index: 1; max-width: 80rem; margin: 0 auto; padding: 0 0.5rem; }
@media (min-width: 640px) { .ogsp-hero { padding-left: 1.5rem; padding-right: 1.5rem; } }

.ogsp-crumbs { margin-bottom: 1.4rem; font-size: 0.8rem; }
.ogsp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.ogsp-crumbs li { display: inline-flex; align-items: center; gap: 0.35rem; color: rgba(255, 255, 255, 0.7); }
.ogsp-crumbs li + li::before { content: ""; width: 0.38rem; height: 0.38rem; border-top: 1.5px solid rgba(255, 255, 255, 0.5); border-right: 1.5px solid rgba(255, 255, 255, 0.5); transform: rotate(45deg); margin-right: 0.2rem; }
.ogsp-crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.12s ease; }
.ogsp-crumbs a:hover { color: var(--og-accent); }
.ogsp-crumbs [aria-current] { color: #fff; font-weight: 600; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ogsp-eyebrow { margin: 0 0 0.7rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--og-accent); }
.ogsp-hero__title { max-width: 22ch; margin: 0; font-family: var(--font-display, inherit); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; color: #fff; text-wrap: balance; }
.ogsp-hero__rule { display: block; width: 4rem; height: 4px; margin: 1.3rem 0 0; border-radius: 4px; background: var(--og-accent); }
.ogsp-hero__lead { max-width: 46rem; margin: 1.25rem 0 0; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.ogsp-hero__extra { margin-top: 1.5rem; }
.ogsp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; margin-top: 1.4rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); }
.ogsp-meta__item { display: inline-flex; align-items: center; gap: 0.45rem; }
.ogsp-meta__author { font-weight: 600; color: #fff; }
.ogsp-meta__author .ogsp-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45); }

/* ------------------------------------------------------------ Shell/layout */
.ogsp-shell { position: relative; z-index: 1; max-width: 80rem; margin: -2.75rem auto 0; padding: 0 1rem 4.5rem; }
.ogsp-shell--narrow { max-width: 46rem; }
@media (min-width: 640px) { .ogsp-shell { padding-left: 1.5rem; padding-right: 1.5rem; } }
.ogsp-layout { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 1024px) { .ogsp-layout { grid-template-columns: minmax(0, 1fr) 20.5rem; gap: 2rem; } }

.ogsp-article {
	position: relative;
	min-width: 0;
	padding: var(--og-pad);
	border: 1px solid var(--og-line);
	border-radius: var(--og-radius);
	background: #fff;
	box-shadow: var(--og-shadow);
}
.ogsp-article__image { margin: calc(var(--og-pad) * -1) calc(var(--og-pad) * -1) 2.25rem; overflow: hidden; border-radius: var(--og-radius) var(--og-radius) 0 0; background: var(--og-brand-light); }
.ogsp-article__img { display: block; width: 100%; height: auto; max-height: 28rem; object-fit: cover; }
.ogsp-pagelinks { margin-top: 2rem; font-weight: 600; }

/* ------------------------------------------------------------------- Prose */
.ogsp-article .entry-content { font-size: 1.0625rem; line-height: 1.85; color: rgba(24, 34, 48, 0.88); }
.ogsp-article .entry-content > * + * { margin-top: 1.25rem; }
.ogsp-article .entry-content > :first-child { margin-top: 0; }
.ogsp-article .entry-content > p:first-child { font-size: 1.22rem; line-height: 1.7; color: var(--og-ink); }
.ogsp-article .entry-content p { margin-bottom: 0; }
.ogsp-article .entry-content strong { color: var(--og-ink); }

.ogsp-article .entry-content h2,
.ogsp-article .entry-content h3,
.ogsp-article .entry-content h4 { scroll-margin-top: calc(var(--og-sticky) + 0.5rem); font-family: var(--font-display, inherit); font-weight: 800; letter-spacing: -0.01em; line-height: 1.22; color: var(--og-ink); }
.ogsp-article .entry-content h2 { position: relative; margin-top: 3rem; padding-top: 1.1rem; font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
.ogsp-article .entry-content h2::before { content: ""; position: absolute; left: 0; top: 0; width: 2.75rem; height: 4px; border-radius: 4px; background: var(--og-accent); }
.ogsp-article .entry-content > h2:first-child { margin-top: 0; }
.ogsp-article .entry-content h3 { margin-top: 2.2rem; font-size: 1.3rem; color: var(--og-brand); }
.ogsp-article .entry-content h4 { margin-top: 1.8rem; font-size: 1.1rem; }

.ogsp-article .entry-content a { color: var(--og-brand); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(201, 162, 39, 0.75); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color 0.12s ease, text-decoration-color 0.12s ease; }
.ogsp-article .entry-content a:hover { color: var(--og-brand-dark); text-decoration-color: var(--og-brand-dark); }
.ogsp-article .entry-content a.wp-block-button__link,
.ogsp-article .entry-content .wp-block-button a { text-decoration: none; }

.ogsp-article .entry-content ul,
.ogsp-article .entry-content ol { margin-left: 0; padding-left: 0; list-style: none; }
.ogsp-article .entry-content ul > li,
.ogsp-article .entry-content ol > li { position: relative; padding-left: 1.9rem; }
.ogsp-article .entry-content li + li { margin-top: 0.55rem; }
.ogsp-article .entry-content ul > li::before { content: ""; position: absolute; left: 0.35rem; top: 0.72em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--og-accent); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2); }
.ogsp-article .entry-content ol { counter-reset: ogsp-ol; }
.ogsp-article .entry-content ol > li { counter-increment: ogsp-ol; }
.ogsp-article .entry-content ol > li::before { content: counter(ogsp-ol); position: absolute; left: 0; top: 0.2em; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--og-brand); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1; }
.ogsp-article .entry-content li > ul,
.ogsp-article .entry-content li > ol { margin-top: 0.6rem; }

.ogsp-article .entry-content blockquote,
.ogsp-article .entry-content .wp-block-quote { position: relative; margin-left: 0; margin-right: 0; padding: 1.6rem 1.6rem 1.6rem 3.6rem; border: 0; border-left: 4px solid var(--og-accent); border-radius: 0 1rem 1rem 0; background: rgba(231, 237, 244, 0.55); font-style: normal; font-size: 1.12rem; line-height: 1.7; color: var(--og-brand-dark); }
.ogsp-article .entry-content blockquote::before { content: "\201C"; position: absolute; left: 1rem; top: 0.35rem; font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; color: var(--og-accent); }
.ogsp-article .entry-content blockquote p { margin: 0; }
.ogsp-article .entry-content blockquote cite,
.ogsp-article .entry-content .wp-block-quote cite { display: block; margin-top: 0.8rem; font-size: 0.85rem; font-style: normal; font-weight: 600; color: rgba(24, 34, 48, 0.6); }
.ogsp-article .entry-content .wp-block-pullquote { padding: 2rem 1rem; border-top: 4px solid var(--og-accent); border-bottom: 4px solid var(--og-accent); text-align: center; }

.ogsp-article .entry-content img,
.ogsp-article .entry-content video { border-radius: 1rem; }
.ogsp-article .entry-content figure { margin-top: 2rem; margin-bottom: 2rem; }
.ogsp-article .entry-content figure img { box-shadow: 0 10px 30px -14px rgba(15, 37, 64, 0.35); }
.ogsp-article .entry-content figcaption,
.ogsp-article .entry-content .wp-element-caption { margin-top: 0.7rem; font-size: 0.85rem; color: rgba(24, 34, 48, 0.6); }

.ogsp-article .entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; border: 1px solid var(--og-line); border-radius: 0.9rem; font-size: 0.95rem; }
.ogsp-article .entry-content th { background: var(--og-brand); color: #fff; font-weight: 700; border: 0; padding: 0.8rem 1rem; white-space: nowrap; }
.ogsp-article .entry-content td { border: 0; border-top: 1px solid var(--og-line); padding: 0.8rem 1rem; }
.ogsp-article .entry-content tbody tr:nth-child(even) td { background: rgba(231, 237, 244, 0.35); }
.ogsp-article .entry-content .wp-block-table { overflow-x: auto; }

.ogsp-article .entry-content hr,
.ogsp-article .entry-content .wp-block-separator { width: 6rem; margin: 2.75rem auto; border: 0; border-top: 3px solid var(--og-accent); border-radius: 3px; opacity: 1; }
.ogsp-article .entry-content code { padding: 0.15em 0.4em; border-radius: 0.35rem; background: var(--og-brand-light); color: var(--og-brand-dark); font-size: 0.9em; }
.ogsp-article .entry-content pre { padding: 1.2rem 1.3rem; border-radius: 1rem; background: var(--og-brand-dark); font-size: 0.88rem; line-height: 1.7; }
.ogsp-article .entry-content pre code { padding: 0; background: none; color: inherit; }

.ogsp-article .entry-content .wp-block-button__link { display: inline-flex; align-items: center; padding: 0.8rem 1.7rem; border-radius: 9999px; background: var(--og-brand); color: #fff; font-weight: 600; font-size: 0.95rem; transition: background 0.15s ease, box-shadow 0.15s ease; }
.ogsp-article .entry-content .wp-block-button__link:hover { background: var(--og-brand-dark); color: #fff; box-shadow: 0 10px 24px -10px rgba(15, 37, 64, 0.6); }
.ogsp-article .entry-content .is-style-outline .wp-block-button__link { background: transparent; border: 2px solid var(--og-brand); color: var(--og-brand); }
.ogsp-article .entry-content .is-style-outline .wp-block-button__link:hover { background: var(--og-brand); color: #fff; }

.ogsp-article .entry-content details { border: 1px solid var(--og-line); border-radius: 0.9rem; background: #fff; padding: 0 1.2rem; transition: background 0.15s ease; }
.ogsp-article .entry-content details[open] { background: rgba(231, 237, 244, 0.3); }
.ogsp-article .entry-content summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--og-ink); }
.ogsp-article .entry-content details > :not(summary) { padding-bottom: 1rem; }
.ogsp-article .entry-content .wp-block-columns { gap: 1.75rem; }
.ogsp-article .entry-content .wp-block-group.has-background,
.ogsp-article .entry-content .wp-block-cover { padding: 1.75rem; border-radius: 1.1rem; }
.ogsp-article .entry-content .wp-block-cover { overflow: hidden; }
.ogsp-article .entry-content .wp-block-embed iframe,
.ogsp-article .entry-content iframe { max-width: 100%; border-radius: 1rem; }
.ogsp-article .entry-content .alignwide { margin-left: calc(var(--og-pad) * -0.5); margin-right: calc(var(--og-pad) * -0.5); }
.ogsp-article .entry-content .alignfull { margin-left: calc(var(--og-pad) * -1); margin-right: calc(var(--og-pad) * -1); max-width: none; width: auto; }

/* ----------------------------------------------------------------- Sidebar */
.ogsp-aside { display: grid; gap: 1.25rem; min-width: 0; align-content: start; }
.ogsp-aside__sticky { display: grid; gap: 1.25rem; min-width: 0; }
@media (min-width: 1024px) {
	/* The column stretches to the full height of the article; only the short cards inside it stick. */
	.ogsp-aside { align-self: stretch; }
	.ogsp-aside__sticky {
		position: sticky; top: var(--og-sticky);
		max-height: calc(100vh - var(--og-sticky) - 1rem);
		overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
		padding: 0.35rem; margin: -0.35rem; /* keeps the card shadows from being clipped */
	}
}
.ogsp-card { border: 1px solid var(--og-line); border-radius: 1.25rem; background: #fff; box-shadow: var(--og-shadow); padding: 1.35rem; }
.ogsp-card__title { margin: 0 0 0.85rem; font-family: var(--font-display, inherit); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--og-brand); }

.ogsp-sidenav ul,
.ogsp-toc ol { margin: 0; padding: 0; list-style: none; }
.ogsp-sidenav a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.8rem; border-radius: 0.7rem; font-size: 0.92rem; font-weight: 500; color: rgba(24, 34, 48, 0.78); transition: background 0.12s ease, color 0.12s ease; }
.ogsp-sidenav a:hover { background: var(--og-brand-light); color: var(--og-brand-dark); }
.ogsp-sidenav a[aria-current="page"] { background: var(--og-brand); color: #fff; font-weight: 600; }
.ogsp-sidenav a svg { opacity: 0.55; flex: none; }

.ogsp-toc { display: none; }
@media (min-width: 1024px) { .ogsp-toc:not([hidden]) { display: block; max-height: 46vh; overflow-y: auto; } }
.ogsp-toc li + li { margin-top: 0.1rem; }
.ogsp-toc a { display: block; padding: 0.4rem 0 0.4rem 0.9rem; border-left: 2px solid var(--og-line); font-size: 0.88rem; line-height: 1.4; color: rgba(24, 34, 48, 0.68); transition: color 0.12s ease, border-color 0.12s ease; }
.ogsp-toc a:hover { color: var(--og-brand-dark); }
.ogsp-toc a[aria-current="true"] { border-left-color: var(--og-accent); color: var(--og-brand-dark); font-weight: 600; }
.ogsp-toc .is-sub a { padding-left: 1.8rem; font-size: 0.83rem; }

.ogsp-cta { border: 0; background: linear-gradient(150deg, var(--og-brand-dark), var(--og-brand)); color: #fff; box-shadow: var(--og-shadow-lg); }
.ogsp-cta__eyebrow { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--og-accent); }
.ogsp-cta__title { margin: 0.5rem 0 1.1rem; font-family: var(--font-display, inherit); font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.ogsp-cta .ogsp-btn { width: 100%; }
.ogsp-cta__list { display: grid; gap: 0.65rem; margin: 1.2rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.15); list-style: none; font-size: 0.9rem; }
.ogsp-cta__list li { display: flex; align-items: center; gap: 0.65rem; color: rgba(255, 255, 255, 0.75); }
.ogsp-cta__list a { color: #fff; word-break: break-word; }
.ogsp-cta__list a:hover { color: var(--og-accent); }

/* ------------------------------------------------------------ Post extras */
.ogsp-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 3px; pointer-events: none; }
.admin-bar .ogsp-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .ogsp-progress { top: 46px; } }
.ogsp-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--og-accent), #e5c453); }

.ogsp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.25rem; }
.ogsp-tags a { padding: 0.3rem 0.85rem; border-radius: 9999px; background: var(--og-brand-light); font-size: 0.8rem; font-weight: 600; color: var(--og-brand-dark); transition: background 0.12s ease; }
.ogsp-tags a:hover { background: #d5dfeb; }
.ogsp-tags a::before { content: "#"; opacity: 0.5; }

.ogsp-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem; margin-top: 2.25rem; padding: 1.1rem 0; border-top: 1px solid var(--og-line); border-bottom: 1px solid var(--og-line); }
.ogsp-share__label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--og-ink); }
.ogsp-share__buttons { display: flex; gap: 0.5rem; }
.ogsp-share__buttons a,
.ogsp-share__buttons button { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--og-line); border-radius: 50%; background: #fff; color: var(--og-brand); cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.ogsp-share__buttons a:hover,
.ogsp-share__buttons button:hover { background: var(--og-brand); border-color: var(--og-brand); color: #fff; transform: translateY(-2px); }
.ogsp-share__buttons button.is-copied { background: #047857; border-color: #047857; color: #fff; }

.ogsp-author { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2rem; padding: 1.4rem; border-radius: 1.1rem; background: rgba(231, 237, 244, 0.5); }
.ogsp-author__label { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--og-brand); }
.ogsp-author__name { margin: 0.2rem 0 0; font-family: var(--font-display, inherit); font-size: 1.1rem; font-weight: 800; color: var(--og-ink); }
.ogsp-author__name span { margin-left: 0.4rem; font-size: 0.85rem; font-weight: 500; color: rgba(24, 34, 48, 0.6); }
.ogsp-author__bio { margin: 0.5rem 0 0; font-size: 0.93rem; line-height: 1.65; color: rgba(24, 34, 48, 0.75); }

.ogsp-postnav { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .ogsp-postnav { grid-template-columns: 1fr 1fr; } }
.ogsp-postnav a { display: grid; gap: 0.35rem; padding: 1.1rem 1.3rem; border: 1px solid var(--og-line); border-radius: 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.ogsp-postnav a:hover { border-color: var(--og-brand); box-shadow: var(--og-shadow); transform: translateY(-2px); }
.ogsp-postnav span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--og-accent); }
.ogsp-postnav strong { font-family: var(--font-display, inherit); font-size: 1rem; line-height: 1.35; color: var(--og-ink); }
.ogsp-postnav__next { text-align: right; }
.ogsp-postnav__next span { justify-content: flex-end; }

.ogsp-related { margin-top: 3.5rem; }
.ogsp-related h2 { margin: 0 0 1.4rem; font-family: var(--font-display, inherit); font-size: 1.6rem; font-weight: 800; color: var(--og-ink); }
.ogsp-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ogsp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ogsp-grid { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------- Empty / 404 / search results */
.ogsp-soon,
.ogsp-empty { display: grid; justify-items: center; gap: 0.9rem; padding: clamp(1.5rem, 5vw, 3.5rem) 0.5rem; text-align: center; }
.ogsp-empty { padding: clamp(2rem, 6vw, 4rem) 1.5rem; margin-top: 1.5rem; }
.ogsp-soon__icon { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; background: var(--og-brand-light); color: var(--og-brand); box-shadow: 0 0 0 8px rgba(231, 237, 244, 0.55); }
.ogsp-soon h2,
.ogsp-empty h2 { margin: 0.6rem 0 0; font-family: var(--font-display, inherit); font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; color: var(--og-ink); }
.ogsp-soon p,
.ogsp-empty p { max-width: 34rem; margin: 0; line-height: 1.7; color: rgba(24, 34, 48, 0.68); }
.ogsp-soon__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.8rem; }

.ogsp-404 { display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.ogsp-404__code { margin: 0; font-family: var(--font-display, inherit); font-size: clamp(5rem, 16vw, 8.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(135deg, var(--og-brand), var(--og-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ogsp-404 h2 { margin: 0; font-family: var(--font-display, inherit); font-size: 1.5rem; font-weight: 800; color: var(--og-ink); }
.ogsp-404__links { display: grid; gap: 0.4rem; width: 100%; margin: 0.5rem 0; padding: 0; list-style: none; text-align: left; }
.ogsp-404__links a { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border: 1px solid var(--og-line); border-radius: 0.8rem; font-weight: 600; color: var(--og-brand-dark); transition: background 0.12s ease, border-color 0.12s ease; }
.ogsp-404__links a:hover { background: var(--og-brand-light); border-color: var(--og-brand); }

.ogsp-searchform,
.ogsp-searchbar { display: flex; flex-wrap: wrap; gap: 0.75rem; width: 100%; }
.ogsp-searchbar { align-items: center; margin-bottom: 1.75rem; padding: 1rem; border: 1px solid var(--og-line); border-radius: 1.25rem; background: #fff; box-shadow: var(--og-shadow); }
.ogsp-searchform input,
.ogsp-searchbar input,
.ogsp-searchbar select { flex: 1 1 14rem; min-width: 0; padding: 0.75rem 1.1rem; border: 1px solid rgba(24, 34, 48, 0.15); border-radius: 9999px; background: #fff; color: var(--og-ink); font-size: 1rem; }
.ogsp-searchbar select { flex: 0 1 13rem; }
.ogsp-searchform input:focus,
.ogsp-searchbar input:focus,
.ogsp-searchbar select:focus { outline: none; border-color: var(--og-brand); box-shadow: 0 0 0 4px rgba(28, 58, 94, 0.12); }

.ogsp-results { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ogsp-results { grid-template-columns: 1fr 1fr; } }
.ogsp-result { display: flex; gap: 1.1rem; padding: 1rem; border: 1px solid var(--og-line); border-radius: 1.1rem; background: #fff; box-shadow: var(--og-shadow); transition: border-color 0.15s ease, transform 0.15s ease; }
.ogsp-result:hover { border-color: var(--og-brand); transform: translateY(-2px); }
.ogsp-result__thumb { position: relative; display: grid; place-items: center; flex: none; width: 7rem; height: 5.5rem; overflow: hidden; border-radius: 0.8rem; background: var(--og-brand-light); color: var(--og-brand); }
.ogsp-result__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ogsp-result__body { display: grid; align-content: start; gap: 0.2rem; min-width: 0; }
.ogsp-result__cat { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--og-accent); }
.ogsp-result strong { font-family: var(--font-display, inherit); font-size: 1.02rem; line-height: 1.3; color: var(--og-ink); }
.ogsp-result__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.86rem; line-height: 1.55; color: rgba(24, 34, 48, 0.65); }
.ogsp-result__date { font-size: 0.75rem; color: rgba(24, 34, 48, 0.45); }
.ogsp-pagination--page { margin-top: 2.5rem; }

/* ------------------------------------------------------------ Form fields */
.ogsp-field { display: grid; align-content: start; gap: 0.4rem; min-width: 0; }
.ogsp-field--wide { grid-column: 1 / -1; }
.ogsp-field label { font-size: 0.85rem; font-weight: 600; color: var(--og-ink); }
.ogsp-field abbr { color: #be123c; text-decoration: none; }
.ogsp-field small { font-size: 0.78rem; color: rgba(24, 34, 48, 0.55); }
.ogsp-field input,
.ogsp-field select,
.ogsp-field textarea { width: 100%; padding: 0.75rem 0.95rem; border: 1px solid rgba(24, 34, 48, 0.18); border-radius: 0.8rem; background: #fff; color: var(--og-ink); font: inherit; font-size: 1rem; line-height: 1.4; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.ogsp-field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
.ogsp-field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231c3a5e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.ogsp-field input:hover,
.ogsp-field select:hover,
.ogsp-field textarea:hover { border-color: rgba(24, 34, 48, 0.32); }
.ogsp-field input:focus,
.ogsp-field select:focus,
.ogsp-field textarea:focus { outline: none; border-color: var(--og-brand); box-shadow: 0 0 0 4px rgba(28, 58, 94, 0.13); }
.ogsp-field input:user-invalid { border-color: #e11d48; }
.ogsp-pw { position: relative; }
.ogsp-pw input { padding-right: 3rem; }
.ogsp-pw button { position: absolute; right: 0.35rem; top: 50%; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; transform: translateY(-50%); border-radius: 0.6rem; background: transparent; color: rgba(24, 34, 48, 0.5); cursor: pointer; }
.ogsp-pw button:hover { background: var(--og-brand-light); color: var(--og-brand); }
.ogsp-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem; margin-top: 0.15rem; }
.ogsp-meter span { height: 5px; border-radius: 5px; background: rgba(24, 34, 48, 0.1); transition: background 0.2s ease; }
.ogsp-meter[data-level="1"] span:nth-child(-n+1) { background: #dc2626; }
.ogsp-meter[data-level="2"] span:nth-child(-n+2) { background: #f59e0b; }
.ogsp-meter[data-level="3"] span:nth-child(-n+3) { background: #65a30d; }
.ogsp-meter[data-level="4"] span { background: #047857; }
.ogsp-field small.is-ok { color: #047857; }
.ogsp-field small.is-bad { color: #be123c; }

/* ------------------------------------------------------------ Profile area */
.ogsp-profile { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .ogsp-profile { grid-template-columns: 19.5rem minmax(0, 1fr); gap: 2rem; } }
.ogsp-profile__side { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .ogsp-profile__side { position: sticky; top: var(--og-sticky); } }
.ogsp-profile__main { display: grid; gap: 1.5rem; min-width: 0; }
.ogsp-panel { display: grid; gap: 1.5rem; scroll-margin-top: var(--og-sticky); }

.ogsp-usercard { display: grid; justify-items: center; padding: 2rem 1.35rem 1.6rem; text-align: center; }
.ogsp-usercard__avatar { position: relative; margin-bottom: 1rem; }
.ogsp-usercard__camera { position: absolute; right: -2px; bottom: 2px; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 3px solid #fff; border-radius: 50%; background: var(--og-accent); color: var(--og-brand-dark); transition: transform 0.15s ease; }
.ogsp-usercard__camera:hover { transform: scale(1.1); }
.ogsp-usercard__name { margin: 0; font-family: var(--font-display, inherit); font-size: 1.3rem; font-weight: 800; line-height: 1.25; color: var(--og-ink); word-break: break-word; }
.ogsp-usercard__job { margin: 0.2rem 0 0; font-size: 0.92rem; color: rgba(24, 34, 48, 0.7); }
.ogsp-usercard__role { margin: 0.7rem 0 0; padding: 0.2rem 0.8rem; border-radius: 9999px; background: var(--og-brand-light); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--og-brand); }
.ogsp-usercard__mail { margin: 0.8rem 0 0; font-size: 0.85rem; color: rgba(24, 34, 48, 0.55); word-break: break-all; }

.ogsp-tabs { display: flex; gap: 0.35rem; padding: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.ogsp-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .ogsp-tabs { flex-direction: column; overflow: visible; } }
.ogsp-tabs a { display: flex; flex: none; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.8rem; font-size: 0.92rem; font-weight: 600; white-space: nowrap; color: rgba(24, 34, 48, 0.72); transition: background 0.12s ease, color 0.12s ease; }
.ogsp-tabs a:hover { background: var(--og-brand-light); color: var(--og-brand-dark); }
.ogsp-tabs a[aria-current="true"] { background: var(--og-brand); color: #fff; }
@media (min-width: 1024px) { .ogsp-tabs__out:first-of-type { margin-top: 0.4rem; border-top: 1px solid var(--og-line); border-radius: 0 0 0.8rem 0.8rem; } }
.ogsp-tabs__out { color: rgba(24, 34, 48, 0.55) !important; }

.ogsp-notice { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1rem 1.2rem; border: 1px solid; border-radius: 1rem; font-size: 0.95rem; font-weight: 500; animation: ogsp-pop 0.35s ease both; }
.ogsp-notice p { margin: 0; line-height: 1.5; }
.ogsp-notice svg { flex: none; margin-top: 1px; }
.ogsp-notice--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ogsp-notice--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
@keyframes ogsp-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.ogsp-form { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); }
.ogsp-form__head h2 { margin: 0; font-family: var(--font-display, inherit); font-size: 1.35rem; font-weight: 800; color: var(--og-ink); }
.ogsp-form__head p { margin: 0.35rem 0 0; font-size: 0.92rem; line-height: 1.6; color: rgba(24, 34, 48, 0.62); }
.ogsp-form__grid { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ogsp-form__grid { grid-template-columns: 1fr 1fr; } }
.ogsp-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding-top: 1.35rem; border-top: 1px solid var(--og-line); }
.ogsp-form__foot--split { justify-content: space-between; }
.ogsp-form__foot--split p { margin: 0; flex: 1 1 16rem; font-size: 0.9rem; color: rgba(24, 34, 48, 0.62); }

.ogsp-facts { display: grid; gap: 0; margin: 0; }
.ogsp-facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.8rem 0; border-top: 1px solid var(--og-line); }
.ogsp-facts div:first-child { border-top: 0; padding-top: 0; }
.ogsp-facts dt { font-size: 0.88rem; color: rgba(24, 34, 48, 0.55); }
.ogsp-facts dd { margin: 0; font-weight: 600; color: var(--og-ink); }

.ogsp-photo { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 720px) { .ogsp-photo { grid-template-columns: auto minmax(0, 1fr); gap: 2.25rem; } }
.ogsp-photo__preview { display: grid; place-items: center; }
.ogsp-photo__drop { display: grid; gap: 1rem; min-width: 0; }
.ogsp-drop { display: grid; justify-items: center; gap: 0.4rem; padding: 1.75rem 1.25rem; border: 2px dashed rgba(28, 58, 94, 0.28); border-radius: 1.1rem; background: rgba(231, 237, 244, 0.3); text-align: center; color: var(--og-brand); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.ogsp-drop:hover,
.ogsp-drop.is-over,
.ogsp-photo input[type="file"]:focus-visible + .ogsp-drop { border-color: var(--og-brand); background: rgba(231, 237, 244, 0.7); }
.ogsp-drop strong { font-size: 1rem; color: var(--og-ink); }
.ogsp-drop span { font-size: 0.85rem; color: rgba(24, 34, 48, 0.58); }
.ogsp-drop em { font-size: 0.85rem; font-style: normal; font-weight: 700; color: var(--og-brand); word-break: break-all; }
.ogsp-photo__error { margin: 0; padding: 0.7rem 1rem; border-radius: 0.8rem; background: #fef2f2; color: #991b1b; font-size: 0.9rem; font-weight: 500; }
.ogsp-photo__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ogsp-photo__remove { padding-top: 1.35rem; border-top: 1px solid var(--og-line); }

/* ----------------------------------------------------------------- Sign in */
.ogsp-login { display: grid; justify-items: center; gap: 1rem; }
.ogsp-login form { display: grid; gap: 1rem; width: 100%; }
.ogsp-login p { margin: 0; }
.ogsp-login label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--og-ink); }
.ogsp-login input[type="text"],
.ogsp-login input[type="password"] { width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(24, 34, 48, 0.18); border-radius: 0.8rem; background: #fff; color: var(--og-ink); font-size: 1rem; }
.ogsp-login input[type="text"]:focus,
.ogsp-login input[type="password"]:focus { outline: none; border-color: var(--og-brand); box-shadow: 0 0 0 4px rgba(28, 58, 94, 0.13); }
.ogsp-login .login-remember label { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; font-weight: 500; }
.ogsp-login input[type="submit"] { width: 100%; padding: 0.85rem 1.4rem; border: 0; border-radius: 9999px; background: var(--og-brand); color: #fff; font: 600 0.95rem var(--font-sans, inherit); cursor: pointer; transition: background 0.15s ease; }
.ogsp-login input[type="submit"]:hover { background: var(--og-brand-dark); }
.ogsp-login__lost { font-size: 0.88rem; font-weight: 600; color: var(--og-brand); }

/* --------------------------------------------------------- Footer newsletter */
.ogsp-nl-input { min-width: 0; background: #fff !important; color: var(--og-ink) !important; border: 2px solid transparent !important; }
.ogsp-nl-input::placeholder { color: rgba(24, 34, 48, 0.5); opacity: 1; }
.ogsp-nl-input:focus { outline: none; border-color: var(--og-accent) !important; box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.25); }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 639px) {
	.ogsp-shell { margin-top: -2.25rem; }
	.ogsp-author { flex-direction: column; }
	.ogsp-result__thumb { width: 5.5rem; height: 5rem; }
	.ogsp-article .entry-content { font-size: 1rem; }
	.ogsp-article .entry-content > p:first-child { font-size: 1.1rem; }
	.ogsp-article .entry-content blockquote { padding: 1.4rem 1.1rem 1.1rem 2.9rem; }
	.ogsp-article .entry-content blockquote::before { left: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
	.ogsp-notice { animation: none; }
	.ogsp-btn, .ogsp-share__buttons a, .ogsp-share__buttons button, .ogsp-result, .ogsp-postnav a { transition: none; }
}
@media print {
	.ogsp-aside, .ogsp-share, .ogsp-progress, .ogsp-related, .ogsp-postnav { display: none !important; }
	.ogsp-shell { margin-top: 0; }
	.ogsp-hero { background: none !important; color: #000; padding: 1rem 0; }
	.ogsp-hero__title, .ogsp-hero__lead { color: #000; }
}

/* ------------------------------------------- Placeholder for posts without an image */
.ogsp-thumb-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; padding: 1rem; text-align: center; color: #fff; background: linear-gradient(135deg, var(--og-brand-dark) 0%, var(--og-brand) 60%, #2a528a 100%); overflow: hidden; }
.ogsp-thumb-ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(18rem 10rem at 85% 0%, rgba(201, 162, 39, 0.35), transparent 65%), radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.2px) 0 0 / 20px 20px; }
.ogsp-thumb-ph > * { position: relative; }
.ogsp-thumb-ph__icon { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.07); color: var(--og-accent); }
.ogsp-thumb-ph__label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.ogsp-viewall { display: none; }
@media (min-width: 640px) { .ogsp-viewall { display: inline-flex; } }

/* ----------------------------------------------- Imported content: components */
.ogsp-article .entry-content .ogsp-plans { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .ogsp-article .entry-content .ogsp-plans { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.ogsp-article .entry-content .ogsp-plan { display: flex; flex-direction: column; border: 1px solid var(--og-line); border-radius: 1.25rem; background: #fff; box-shadow: var(--og-shadow); padding: 1.6rem; }
.ogsp-article .entry-content .ogsp-plan h3 { margin: 0; font-size: 1.15rem; color: var(--og-brand); }
.ogsp-article .entry-content .ogsp-plan__price { margin: 0.5rem 0 1rem; font-family: var(--font-display, inherit); font-size: 1.7rem; font-weight: 800; color: var(--og-ink); line-height: 1.15; }
.ogsp-article .entry-content .ogsp-plan ul { flex: 1; margin: 0 0 1.25rem; font-size: 0.95rem; line-height: 1.6; }
.ogsp-article .entry-content .ogsp-plan p:last-child { margin-top: auto; }
.ogsp-article .entry-content a.ogsp-btn { color: #fff; text-decoration: none; font-weight: 600; }
.ogsp-article .entry-content a.ogsp-btn:hover { color: #fff; }
.ogsp-article .entry-content .ogsp-office { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 720px) { .ogsp-article .entry-content .ogsp-office { grid-template-columns: minmax(12rem, 18rem) 1fr; } }
.ogsp-article .entry-content address { font-style: normal; line-height: 1.8; padding: 1.25rem 1.4rem; border: 1px solid var(--og-line); border-radius: 1.1rem; background: rgba(231, 237, 244, 0.35); }
.ogsp-article .entry-content iframe.ogsp-embed { width: 100%; min-height: 18rem; border: 0; }
.ogsp-article .entry-content iframe.ogsp-pdf { width: 100%; height: 38rem; border: 1px solid var(--og-line); }
.ogsp-article .entry-content cite { display: block; margin-top: 0.8rem; font-size: 0.85rem; font-style: normal; font-weight: 700; color: var(--og-brand); }
.ogsp-article .entry-content figure img { display: block; max-width: 100%; height: auto; margin-inline: auto; }

.ogsp-children { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ogsp-children { grid-template-columns: repeat(2, 1fr); } }
.ogsp-article .entry-content a.ogsp-children__card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.2rem 1.3rem; border: 1px solid var(--og-line); border-radius: 1.1rem; background: #fff; text-decoration: none; color: var(--og-ink); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.ogsp-article .entry-content a.ogsp-children__card:hover { box-shadow: var(--og-shadow); border-color: var(--og-accent); transform: translateY(-2px); }
.ogsp-children__card strong { font-family: var(--font-display, inherit); font-size: 1.05rem; color: var(--og-brand); }
.ogsp-children__card span { font-size: 0.9rem; line-height: 1.55; color: rgba(24, 34, 48, 0.72); }
.ogsp-children__card em { margin-top: auto; padding-top: 0.4rem; font-size: 0.85rem; font-style: normal; font-weight: 700; color: var(--og-brand); }

.ogsp-form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ogsp-form { grid-template-columns: 1fr 1fr; } .ogsp-form__field--wide, .ogsp-form__check, .ogsp-form .ogsp-btn { grid-column: 1 / -1; } }
.ogsp-form__field { display: grid; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--og-ink); }
.ogsp-form__field input, .ogsp-form__field textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid rgba(15, 37, 64, 0.2); border-radius: 0.75rem; background: #fff; font: 400 1rem/1.5 var(--font-sans, inherit); color: var(--og-ink); }
.ogsp-form__field input:focus, .ogsp-form__field textarea:focus { outline: 2px solid var(--og-accent); outline-offset: 1px; border-color: transparent; }
.ogsp-form__check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; }
.ogsp-form__check input { margin-top: 0.25rem; }
.ogsp-form .ogsp-btn { justify-self: start; }
.ogsp-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ogsp-form__notice { margin: 0 0 1rem; padding: 0.9rem 1.1rem; border-radius: 0.8rem; font-weight: 600; }
.ogsp-form__notice--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.ogsp-form__notice--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }


/* ---------------------------------------------------------------------------
 * Floating WhatsApp button: banner on desktop, round icon on phones.
 * ------------------------------------------------------------------------ */
.ogsp-wa {
	right: 20px; bottom: 24px;
	position: fixed; z-index: 60; display: block; width: min(19rem, calc(100vw - 1.5rem)); aspect-ratio: 720 / 202;
	touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
	filter: drop-shadow(0 10px 16px rgba(15, 37, 64, 0.35)); transition: transform 0.22s ease, filter 0.22s ease;
	animation: ogsp-wa-in 0.7s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ogsp-wa:hover, .ogsp-wa:focus-visible { transform: translateY(-3px); filter: drop-shadow(0 14px 20px rgba(15, 37, 64, 0.42)); }
.ogsp-wa:focus-visible { outline: 3px solid var(--og-accent); outline-offset: 4px; border-radius: 9999px; }
.ogsp-wa:active { transform: scale(0.97); }
.ogsp-wa__pill { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ogsp-wa__icon { display: none; pointer-events: none; }
.ogsp-wa__text { position: absolute; top: 0; bottom: 0; left: 32%; right: 13.5%; display: flex; flex-direction: column; justify-content: center; gap: 0.12rem; white-space: nowrap; pointer-events: none; }
.ogsp-wa__text strong { font-family: var(--font-display, system-ui, sans-serif); font-size: 0.86rem; font-weight: 800; line-height: 1.15; letter-spacing: 0.005em; color: #fff; }
.ogsp-wa__text small { font-size: 0.7rem; font-weight: 600; line-height: 1.2; color: #f3d676; }
@keyframes ogsp-wa-in { from { opacity: 0; transform: translateX(1.5rem) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes ogsp-wa-pulse { 0% { transform: scale(0.85); opacity: 0.55; } 100% { transform: scale(1.55); opacity: 0; } }
@media (max-width: 639px) {
	.ogsp-wa { bottom: 96px; width: 3.7rem; aspect-ratio: 224 / 218; }
	.ogsp-wa__pill, .ogsp-wa__text { display: none; }
	.ogsp-wa__icon { display: block; position: relative; z-index: 1; width: 100%; height: 100%; }
	.ogsp-wa::before { content: ""; position: absolute; inset: 0.25rem; border-radius: 50%; background: #25d366; animation: ogsp-wa-pulse 2.4s ease-out infinite; }
}
/* Desktop: the banner shrinks to the round icon once the visitor scrolls, so it stops covering text.
   It opens again on hover or keyboard focus. Class toggled by initWhatsApp() in main.js. */
@media (min-width: 640px) {
	.ogsp-wa { transition: transform 0.22s ease, filter 0.22s ease, width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), bottom 0.3s ease; }
	/* Home page only: the banner sits above the quick-link cards at the bottom of the hero. Every other page keeps the corner position. */
	body.home .ogsp-wa:not(.is-compact) { bottom: 9.5rem; }
	.ogsp-wa.is-compact { width: 3.7rem; aspect-ratio: 224 / 218; }
	.ogsp-wa.is-compact .ogsp-wa__pill, .ogsp-wa.is-compact .ogsp-wa__text { display: none; }
	.ogsp-wa.is-compact .ogsp-wa__icon { display: block; position: relative; z-index: 1; width: 100%; height: 100%; }
	.ogsp-wa.is-compact::before { content: ""; position: absolute; inset: 0.25rem; border-radius: 50%; background: #25d366; animation: ogsp-wa-pulse 2.4s ease-out infinite; }
}
@media (min-width: 640px) and (hover: hover) {
	body.home .ogsp-wa.is-compact:hover, body.home .ogsp-wa.is-compact:focus-visible { width: min(19rem, calc(100vw - 1.5rem)); aspect-ratio: 720 / 202; }
	body.home .ogsp-wa.is-compact:hover .ogsp-wa__pill, body.home .ogsp-wa.is-compact:focus-visible .ogsp-wa__pill { display: block; }
	body.home .ogsp-wa.is-compact:hover .ogsp-wa__text, body.home .ogsp-wa.is-compact:focus-visible .ogsp-wa__text { display: flex; }
	body.home .ogsp-wa.is-compact:hover .ogsp-wa__icon, body.home .ogsp-wa.is-compact:focus-visible .ogsp-wa__icon { display: none; }
	body.home .ogsp-wa.is-compact:hover::before, body.home .ogsp-wa.is-compact:focus-visible::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ogsp-wa { animation: none; transition: none; } .ogsp-wa::before { animation: none; display: none; } }

/* Cross-link between the two price pages (and similar call-outs at the end of a page) */
.ogsp-article .entry-content .ogsp-callout { margin: 2.5rem 0 0; padding: 1.4rem 1.6rem; border: 1px solid var(--og-line); border-left: 4px solid var(--og-accent); border-radius: 1rem; background: rgba(231, 237, 244, 0.45); }
.ogsp-article .entry-content .ogsp-callout p { margin: 0 0 0.9rem; }
.ogsp-article .entry-content .ogsp-callout p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ About, team and FAQ content */
.ogsp-article .entry-content .ogsp-pillars { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 720px) { .ogsp-article .entry-content .ogsp-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ogsp-article .entry-content .ogsp-pillar { padding: 1.4rem 1.5rem; border: 1px solid var(--og-line); border-top: 4px solid var(--og-accent); border-radius: 1.1rem; background: #fff; box-shadow: var(--og-shadow); }
.ogsp-article .entry-content .ogsp-pillar h2 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.ogsp-article .entry-content .ogsp-pillar p { margin: 0; }
.ogsp-article .entry-content .ogsp-values { display: grid; gap: 0.85rem; margin: 1rem 0 0; }
@media (min-width: 640px) { .ogsp-article .entry-content .ogsp-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ogsp-article .entry-content .ogsp-values__item { padding: 1.1rem 1.25rem; border: 1px solid var(--og-line); border-left: 4px solid var(--og-brand); border-radius: 1rem; background: rgba(231, 237, 244, 0.35); }
.ogsp-article .entry-content .ogsp-values__item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--og-brand); }
.ogsp-article .entry-content .ogsp-values__item p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

.ogsp-article .entry-content .ogsp-team { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ogsp-article .entry-content .ogsp-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ogsp-article .entry-content .ogsp-team__card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem 1.5rem; border: 1px solid var(--og-line); border-radius: 1.1rem; background: #fff; box-shadow: var(--og-shadow); }
.ogsp-article .entry-content .ogsp-team__avatar { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--og-brand); color: #fff; font-family: var(--font-display, inherit); font-size: 1.4rem; font-weight: 800; }
.ogsp-article .entry-content .ogsp-team__card h3 { margin: 0.35rem 0 0; font-size: 1.2rem; }
.ogsp-article .entry-content .ogsp-team__role { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--og-brand); }
.ogsp-article .entry-content .ogsp-team__card p:last-child { margin: 0.2rem 0 0; font-size: 0.95rem; line-height: 1.65; }

.ogsp-article .entry-content .ogsp-faq-list { display: grid; gap: 0.6rem; margin: 1.5rem 0 0; }
.ogsp-article .entry-content .ogsp-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: 0.8rem 0; list-style: none; }
.ogsp-article .entry-content .ogsp-faq-list summary::-webkit-details-marker { display: none; }
.ogsp-article .entry-content .ogsp-faq-list summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.2rem; border-right: 2.5px solid var(--og-brand); border-bottom: 2.5px solid var(--og-brand); transform: rotate(45deg); transition: transform 0.2s ease; }
.ogsp-article .entry-content .ogsp-faq-list details[open] summary::after { transform: rotate(-135deg); }
.ogsp-article .entry-content .ogsp-faq-list details > p { margin: 0; line-height: 1.7; }
.ogsp-article .entry-content .ogsp-faq-list details > p + p { margin-top: 0.8rem; }

/* Long legal text (purchase terms): a little tighter on phones */
@media (max-width: 640px) { .ogsp-article .entry-content h2 { scroll-margin-top: 5rem; } }

/* ------------------------------------------------------------------ Legal advisory: service cards (Asesoría jurídica) */
.ogsp-article .entry-content .ogsp-lservices { display: grid; gap: 1.1rem; margin: 1.5rem 0 2.5rem; align-items: stretch; }
@media (min-width: 720px) { .ogsp-article .entry-content .ogsp-lservices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ogsp-article .entry-content .ogsp-lservice { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--og-line); border-radius: 1.25rem; background: #fff; box-shadow: var(--og-shadow); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.ogsp-article .entry-content .ogsp-lservice:hover { border-color: rgba(201, 162, 39, 0.5); }
.ogsp-article .entry-content .ogsp-lservice::before { content: "+"; display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem; border-radius: 0.85rem; background: rgba(201, 162, 39, 0.14); color: #a8861a; font-family: var(--font-display, system-ui, sans-serif); font-size: 1.7rem; font-weight: 400; line-height: 1; }
.ogsp-article .entry-content .ogsp-lservice h3 { margin: 0 0 0.45rem; font-size: 1.15rem; line-height: 1.3; color: var(--og-ink); }
.ogsp-article .entry-content .ogsp-lservice__lead { margin: 0 0 1.25rem; font-size: 0.95rem; line-height: 1.6; color: rgba(24, 34, 48, 0.72); }
.ogsp-article .entry-content .ogsp-lservice__more, .ogsp-article .entry-content .ogsp-lservice__more[open] { margin-top: auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
.ogsp-article .entry-content .ogsp-lservice__more > :not(summary) { padding-bottom: 0; }
.ogsp-article .entry-content .ogsp-lservice__more summary { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.6rem 1.25rem; border: 1px solid var(--og-accent); border-radius: 9999px; background: transparent; color: var(--og-brand-dark); font-weight: 700; font-size: 0.95rem; list-style: none; cursor: pointer; transition: background 0.2s ease; }
.ogsp-article .entry-content .ogsp-lservice__more summary::-webkit-details-marker { display: none; }
.ogsp-article .entry-content .ogsp-lservice__more summary::after { content: "\2192"; transition: transform 0.2s ease; }
.ogsp-article .entry-content .ogsp-lservice__more summary:hover { background: rgba(201, 162, 39, 0.12); }
.ogsp-article .entry-content .ogsp-lservice__more summary:focus-visible { outline: 2px solid var(--og-accent); outline-offset: 3px; }
.ogsp-article .entry-content .ogsp-lservice__more[open] summary::after { content: "\2191"; }
.ogsp-article .entry-content .ogsp-lservice__detail { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--og-line); }
.ogsp-article .entry-content .ogsp-lservice__detail > :first-child { margin-top: 0; }
.ogsp-article .entry-content .ogsp-lservice__detail > :last-child { margin-bottom: 0; }
.ogsp-article .entry-content .ogsp-lservice__detail p { line-height: 1.7; }
.ogsp-article .entry-content .ogsp-lservice__detail h4 { margin: 1.4rem 0 0.5rem; font-size: 1rem; line-height: 1.4; color: var(--og-brand); }
.ogsp-article .entry-content .ogsp-lservice__detail ul, .ogsp-article .entry-content .ogsp-lservice__detail ol { margin: 0.5rem 0 1rem; padding-left: 1.3rem; line-height: 1.65; }
.ogsp-article .entry-content .ogsp-lservice__detail ul { list-style: disc; }
.ogsp-article .entry-content .ogsp-lservice__detail ol { list-style: decimal; }
.ogsp-article .entry-content .ogsp-lservice__detail li { margin: 0.3rem 0; }
/* an opened card takes the full row so its text has room (browsers without :has() simply keep the column) */
@media (min-width: 720px) { .ogsp-article .entry-content .ogsp-lservice:has(.ogsp-lservice__more[open]) { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ Footer: keep clear of the floating WhatsApp button */
.ogsp-footer__bar { padding-bottom: 5.5rem; }
@media (min-width: 1536px) { .ogsp-footer__bar { padding-bottom: 1.5rem; } }
