/*
 * Opportunities layer for the New BdT Rivas theme.
 * Components of the NamOpportunities feature set (date-grouped lists, opportunity rows, verified box,
 * discussion, report form, region/profession pages, job requests, WhatsApp/Facebook widgets),
 * everything scoped under .opps and coloured with the theme's own palette tokens.
 */
:root { --opps-notice-h: 2.25rem; }

.opps {
	--o-ink: var(--wp--preset--color--on-background, #1b1b1b);
	--o-blue: var(--wp--preset--color--primary-container, #660476);
	--o-blue-deep: var(--wp--preset--color--primary, #440050);
	--o-red: var(--wp--preset--color--secondary, #a14000);
	--o-red-dark: #7b2f00;
	--o-green: #00784a;
	--o-sun: #ffc72c;
	--o-bg: var(--wp--preset--color--surface-container-low, #f6f3f2);
	--o-paper: var(--wp--preset--color--surface-container-lowest, #fff);
	--o-line: var(--wp--preset--color--outline-variant, #d3c1d0);
	--o-muted: var(--wp--preset--color--on-surface-variant, #50434f);
	--o-radius: 14px;
	--o-font-head: var(--wp--preset--font-family--montserrat, Montserrat, "Segoe UI", sans-serif);
	--o-font-body: var(--wp--preset--font-family--plus-jakarta-sans, "Plus Jakarta Sans", "Segoe UI", sans-serif);
	color: var(--o-ink);
	font-family: var(--o-font-body);
}

.opps a { color: var(--o-blue); text-underline-offset: 2px;}
.opps a:hover { color: var(--o-red);}
.opps h1,
.opps h2,
.opps h3,
.opps h4 { font-family: var(--o-font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em;}
.opps p { margin: 0 0 1em;}
.opps ul { margin: 0; padding: 0; list-style: none;}
.opps :focus-visible { outline: 3px solid var(--o-sun); outline-offset: 2px; box-shadow: 0 0 0 5px var(--o-ink);}
.opps .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px;}
.opps .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;}
.opps .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 2px solid transparent; border-radius: 8px; padding: .7em 1.2em; font: 600 .95rem/1.2 var(--o-font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;}
.opps .btn--red { background: var(--o-red); color: #fff;}
.opps .btn--red:hover { background: var(--o-red-dark); color: #fff;}
.opps .btn--green { background: var(--o-green); color: #fff;}
.opps .btn--green:hover { background: #005f3a; color: #fff;}
.opps .btn--ghost { background: var(--o-paper); color: var(--o-ink); border-color: var(--o-line);}
.opps .btn--ghost:hover { border-color: var(--o-ink); color: var(--o-ink);}
.opps .btn--lg { padding: .95em 1.6em; font-size: 1.05rem;}
.opps .btn--sm { padding: .45em .9em; font-size: .85rem;}
.opps .btn--block { width: 100%;}
.opps .hero { position: relative; background: var(--o-blue-deep); color: #fff; overflow: hidden; padding: 44px 0 40px; isolation: isolate;}
.opps .hero::before,
.opps .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; right: -6%; top: 0; bottom: 0; width: 46%;}
.opps .hero::before { background: #fff; clip-path: polygon(52% 0, 100% 0, 48% 100%, 0 100%); opacity: .95;}
.opps .hero::after { background: var(--o-red); clip-path: polygon(60% 0, 92% 0, 40% 100%, 8% 100%);}
.opps .hero__title { font-size: clamp(2.1rem, 6vw, 3.8rem); font-weight: 800; max-width: 17ch; margin-bottom: .35em;}
.opps .hero__text { font-size: 1.1rem; max-width: 48ch; color: #d5e2f7; margin-bottom: 1.4em;}
.opps .hero__meta { margin: 16px 0 0; font-size: .92rem; color: #cfdcf3; display: flex; flex-wrap: wrap; gap: 6px 14px;}
.opps .hero__meta a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4);}
.opps .hero__meta a:hover { color: var(--o-sun);}
.opps .opp-search { display: grid; gap: 12px; background: var(--o-paper); color: var(--o-ink); padding: 16px; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); max-width: 900px;}
.opps .opp-search__field label { display: block; font-size: .82rem; font-weight: 600; color: var(--o-muted); margin-bottom: 4px;}
.opps .opp-search input[type="search"],
.opps .opp-search select,
.opps .search-form input[type="search"] { width: 100%; height: 48px; border: 2px solid var(--o-line); border-radius: 8px; padding: 0 12px; font: inherit; color: var(--o-ink); background: #fff;}
.opps .opp-search input:focus,
.opps .opp-search select:focus { border-color: var(--o-blue); outline: none; box-shadow: 0 0 0 3px rgba(11, 78, 162, .2);}
.opps .opp-search .btn { height: 48px; align-self: end;}
.opps .opp-search--compact { margin-top: 18px; box-shadow: none; border: 1px solid var(--o-line);}
.opps .search-form { display: flex; gap: 8px;}
.opps .page-head { background: var(--o-paper); border-bottom: 1px solid var(--o-line); padding: 30px 0 26px;}
.opps .page-head__title { font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 800; margin-bottom: .2em;}
.opps .page-head__text { color: var(--o-muted); max-width: 64ch; margin-bottom: 0;}
.opps .layout { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 44px;}
.opps .layout__main { min-width: 0;}
.opps .layout--single { grid-template-columns: minmax(0, 1fr);}
.opps .sidebar { display: grid; gap: 20px; align-content: start;}
.opps .section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px;}
.opps .section-head h2 { font-size: 1.6rem; margin: 0;}
.opps .more { margin-top: 20px;}
.opps .badge { border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; background: var(--o-bg); border: 1px solid var(--o-line); color: #34425e;}
.opps .badge--urgent { background: #fdecef; border-color: #f2b8c2; color: var(--o-red-dark);}
.opps .badge--closed { background: #eceff4; color: var(--o-muted); text-decoration: line-through;}
.opps .widget { background: var(--o-paper); border: 1px solid var(--o-line); border-radius: var(--o-radius); padding: 18px;}
.opps .widget__title { font-size: 1.1rem; margin-bottom: .6em;}
.opps .widget--wa { border-color: var(--o-green); background: #effaf4;}
.opps .widget--wa p { font-size: .94rem;}
.opps .widget ul { list-style: none;}
.opps .widget li { padding: 6px 0;}
.opps .soon li { padding: 10px 0; border-top: 1px solid var(--o-line); display: grid; gap: 2px;}
.opps .soon li:first-child { border-top: 0; padding-top: 0;}
.opps .soon a { color: var(--o-ink); font-weight: 600; text-decoration: none; line-height: 1.3;}
.opps .soon a:hover { color: var(--o-blue);}
.opps .soon__when { font-size: .84rem; color: var(--o-muted);}
.opps .soon__when--urgent { color: var(--o-red);}
.opps .cat-row { padding: 34px 0; border-top: 1px solid var(--o-line); background: var(--o-paper);}
.opps .cat-row:nth-of-type(even) { background: var(--o-bg);}
.opps .chips { display: flex; flex-wrap: wrap; gap: 8px;}
.opps .chips a { display: inline-flex; padding: 6px 14px; border: 1px solid var(--o-line); border-radius: 999px; text-decoration: none; color: var(--o-ink); font-size: .9rem; background: var(--o-bg);}
.opps .chips a:hover,
.opps .chips a[aria-current] { border-color: var(--o-ink); background: var(--o-ink); color: #fff;}
.opps .chips--tabs { margin-top: 16px;}
.opps .chips--tags { margin: 22px 0;}
.opps .crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .86rem; color: var(--o-muted); margin-bottom: 12px;}
.opps .crumbs a { color: var(--o-muted);}
.opps .crumbs a::after,
.opps .crumbs span::before { content: "";}
.opps .crumbs > * + *::before { content: "/"; margin: 0 8px; color: var(--o-line);}
.opps .alert { background: #fdecef; border: 1px solid #f2b8c2; color: #7d0a1e; padding: 12px 16px; border-radius: var(--o-radius);}
.opps .apply { margin-top: 30px; background: var(--o-paper); border: 2px solid var(--o-ink); border-radius: var(--o-radius); padding: 22px;}
.opps .apply h2 { font-size: 1.3rem;}
.opps .apply__due { margin: 12px 0 0; color: var(--o-muted); font-size: .92rem;}
.opps .scam { margin-top: 20px; padding: 12px 16px; border-left: 4px solid var(--o-sun); background: #fff8e1; font-size: .92rem;}
.opps .author-box { display: flex; gap: 16px; margin-top: 28px; padding: 18px; background: var(--o-paper); border: 1px solid var(--o-line); border-radius: var(--o-radius);}
.opps .author-box img { border-radius: 50%; flex: none;}
.opps .author-box p { margin: 0; font-size: .94rem;}
.opps .author-box__name { font-weight: 600;}
.opps .related { background: var(--o-paper); border-top: 1px solid var(--o-line); padding: 36px 0 44px;}
.opps .related h2 { font-size: 1.6rem;}
.opps .empty { background: var(--o-paper); border: 1px dashed #b9c6dc; border-radius: var(--o-radius); padding: 32px 22px; text-align: center;}
.opps .empty h2,
.opps .empty h3 { font-size: 1.3rem;}
.opps .pagination { margin-top: 26px;}
.opps .page-numbers { padding: 8px 14px; border: 1px solid var(--o-line); background: var(--o-paper); border-radius: 8px; text-decoration: none; color: var(--o-ink);}
.opps .page-numbers.current { background: var(--o-ink); color: #fff; border-color: var(--o-ink);}
.opps .comments { margin-top: 40px;}
.opps .comment-list { list-style: none; padding: 0;}
.opps .comment-body { background: var(--o-paper); border: 1px solid var(--o-line); border-radius: var(--o-radius); padding: 14px; margin-bottom: 10px;}
.opps .comment-form input[type="text"],
.opps .comment-form input[type="email"],
.opps .comment-form input[type="url"],
.opps .comment-form textarea { width: 100%; border: 2px solid var(--o-line); border-radius: 8px; padding: 10px; font: inherit;}
.opps .comment-form input[type="submit"] { background: var(--o-red); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; font: 600 1rem var(--o-font-body); cursor: pointer;}
.opps .article__img { margin: 0 0 22px; border-radius: var(--o-radius); overflow: hidden;}
.opps .alignleft { float: left; margin: 0 1em 1em 0;}
.opps .alignright { float: right; margin: 0 0 1em 1em;}
.opps .aligncenter { display: block; margin: 0 auto 1em;}
.opps .wp-caption-text,
.opps figcaption { font-size: .85rem; color: var(--o-muted);}
.opps .footer-grid { display: grid; gap: 30px;}
.opps .footer-title { color: #fff; font-size: 1.05rem; margin-bottom: .8em;}
.opps .footer-about { margin-top: 14px; max-width: 42ch; font-size: .95rem;}
.opps .footer-social { display: flex; gap: 16px;}
.opps .footer-list li { margin-bottom: 6px; font-size: .94rem;}
.opps .footer-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 34px; padding-top: 18px; padding-bottom: 26px; font-size: .84rem; color: #9fb0d0;}
.opps .footer-base p { margin: 0;}
@media (min-width: 640px) {
.opps .opp-search { grid-template-columns: 1fr auto; align-items: end; padding: 14px;}
.opps .footer-grid { grid-template-columns: 1fr 1fr;}
}
@media (min-width: 960px) {
.opps .hero { padding: 72px 0 64px;}
.opps .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px;}
.opps .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;}
.opps .layout--single { grid-template-columns: minmax(0, 1fr); max-width: 820px;}
.opps .sidebar { position: sticky; top: 16px;}
}
@media print {
.opps .sidebar,
.opps .share,
.opps .apply-bar,
.opps .related,
.opps .hero::before,
.opps .hero::after { display: none !important;}
}
.opps .btn--fb { background: #1877f2; color: #fff;}
.opps .btn--fb:hover { background: #125fc2; color: #fff;}
.opps .icon { flex: none;}
.opps .strip { background: var(--o-paper); border-bottom: 1px solid var(--o-line); padding: 16px 0 14px;}
.opps .strip__regions { display: flex; align-items: center; gap: 12px; margin-top: 4px;}
.opps .region-card { display: grid; gap: 4px; padding: 16px; background: var(--o-paper); border: 1px solid var(--o-line); border-left: 5px solid var(--o-blue); border-radius: 12px; text-decoration: none; color: var(--o-ink); height: 100%;}
.opps .region-card:hover { border-left-color: var(--o-red); box-shadow: 0 10px 24px -16px rgba(10, 31, 68, .55);}
.opps .region-card__name { font: 800 1.15rem var(--o-font-head);}
.opps .region-card__count { font-size: .86rem; color: var(--o-muted);}
.opps .result-count { color: var(--o-muted); font-size: .92rem; margin-bottom: 12px;}
.opps .other-regions { margin-top: 36px;}
.opps .other-regions h2 { font-size: 1.2rem;}
.opps .admin-hint { font-size: .88rem; background: #fff8e1; border-left: 4px solid var(--o-sun); padding: 10px 14px; margin-top: 14px;}
.opps .entry--intro { margin-bottom: 20px;}
.opps .crumbs { display: flex;}
.opps .widget--wa .widget__title { display: flex; align-items: center; gap: 8px; color: #0b6b3a;}
.opps .widget--wa .icon,
.opps .wa-banner > .icon { color: #25d366;}
.opps .widget--fb .widget__title { display: flex; align-items: center; gap: 8px;}
.opps .widget--fb .icon--facebook { color: #1877f2;}
.opps .fb-embed { margin: 0 -6px 12px; min-height: 120px; overflow: hidden;}
.opps .fb-embed iframe { display: block; max-width: 100%;}
.opps .share { display: block; margin-top: 22px; padding: 20px; background: var(--o-paper); border: 1px solid var(--o-line); border-radius: 12px;}
.opps .share__title { font-size: 1.2rem; margin-bottom: .2em;}
.opps .share__text { color: var(--o-muted); font-size: .94rem; margin-bottom: 14px;}
.opps .share__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;}
.opps .sbtn { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 0; border-radius: 10px; color: #fff; font: 600 .95rem var(--o-font-body); text-decoration: none; cursor: pointer;}
.opps .sbtn:hover { color: #fff; filter: brightness(.92);}
.opps .sbtn--whatsapp { background: #25d366;}
.opps .sbtn--facebook { background: #1877f2;}
.opps .sbtn--x { background: #000;}
.opps .sbtn--telegram { background: #229ed9;}
.opps .sbtn--linkedin { background: #0a66c2;}
.opps .sbtn--link { background: var(--o-ink);}
.opps .avatar { border-radius: 50%; display: inline-block; flex: none;}
.opps .avatar--initials { display: inline-grid; place-items: center; background: hsl(var(--h) 42% 32%); color: #fff; font-weight: 700; font-family: var(--o-font-head); line-height: 1;}
.opps .comments { margin-top: 28px; background: var(--o-paper); border: 1px solid var(--o-line); border-radius: 14px; padding: 20px 18px;}
.opps .comments__title { font-size: 1.3rem; margin-bottom: .2em;}
.opps .comments__intro { color: var(--o-muted); font-size: .94rem;}
.opps .comment-respond { background: var(--o-bg); border-radius: 12px; padding: 14px; margin: 14px 0 22px;}
.opps .comment-reply-title { font: 700 1.05rem var(--o-font-head); margin-bottom: 8px;}
.opps .comment-reply-title small a { font: 500 .85rem var(--o-font-body); margin-left: 10px;}
.opps .comment-form textarea { width: 100%; border: 2px solid var(--o-line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; resize: vertical; min-height: 84px;}
.opps .comment-form input[type="text"],
.opps .comment-form input[type="email"],
.opps .comment-form input[type="url"] { width: 100%; border: 2px solid var(--o-line); border-radius: 999px; padding: 10px 14px; font: inherit; background: #fff;}
.opps .comment-form textarea:focus,
.opps .comment-form input:focus { border-color: var(--o-blue); outline: none;}
.opps .comment-form p { margin: 0 0 10px;}
.opps .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--o-muted);}
.opps .comment-form .form-submit { margin: 0;}
.opps .comment-form .btn { border-radius: 999px; padding: .75em 1.6em;}
.opps .c-note { font-size: .82rem; color: var(--o-muted);}
.opps .comment-list,
.opps .comment-list .children { list-style: none; padding: 0; margin: 0;}
.opps .comment-list .children { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--o-line);}
.opps .c-item { margin-top: 14px;}
.opps .c-body { display: flex; gap: 10px; align-items: flex-start;}
.opps .c-main { min-width: 0; flex: 1;}
.opps .c-bubble { background: var(--o-bg); border-radius: 16px; padding: 9px 14px; display: inline-block; max-width: 100%;}
.opps .c-name { margin: 0; font-weight: 700; font-size: .92rem;}
.opps .c-name a { color: var(--o-ink); text-decoration: none;}
.opps .c-badge { background: var(--o-red); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .7rem; margin-left: 6px; vertical-align: 1px;}
.opps .c-text { font-size: .96rem; overflow-wrap: anywhere;}
.opps .c-text p { margin: 0 0 .5em;}
.opps .c-text p:last-child { margin: 0;}
.opps .c-pending { font-size: .84rem; color: var(--o-muted); font-style: italic; margin: 2px 0;}
.opps .c-actions { display: flex; align-items: center; gap: 14px; padding: 3px 8px; font-size: .82rem; font-weight: 600; color: var(--o-muted);}
.opps .c-actions a,
.opps .c-like { color: var(--o-muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none;}
.opps .c-actions a:hover,
.opps .c-like:hover { text-decoration: underline; color: var(--o-ink);}
.opps .c-like.is-liked { color: var(--o-blue);}
.opps .c-time { font-weight: 400;}
.opps .c-count { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--o-line); border-radius: 999px; padding: 0 8px; font-weight: 400;}
.opps .c-count .icon { color: var(--o-blue);}
.opps .comments__empty,
.opps .comments__closed { color: var(--o-muted); text-align: center; padding: 14px 0 0;}
.opps .convo li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--o-line);}
.opps .convo li:first-child { border-top: 0; padding-top: 0;}
.opps .convo p { margin: 0; font-size: .88rem; line-height: 1.35;}
.opps .convo a { color: var(--o-ink); font-weight: 600; text-decoration: none;}
.opps .convo a:hover { color: var(--o-blue);}
.opps .convo__text { color: var(--o-muted); margin-top: 2px !important;}
.opps .convo__av { flex: none;}
@media (min-width: 640px) {
.opps .share__list { grid-template-columns: repeat(3, 1fr);}
}
@media (min-width: 960px) {
.opps .sidebar { top: 16px;}
}
@media print {
.opps .wa-float,
.opps .comments,
.opps .reactions,
.opps .actions { display: none !important;}
}
.opps .verify { margin-top: 24px; background: #f2fbf6; border: 2px solid #1a9e5c; border-radius: 12px; padding: 16px 18px;}
.opps .verify--no { background: #fff8e1; border-color: var(--o-sun);}
.opps .verify__list { margin: 0; display: grid; gap: 10px;}
.opps .verify__row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;}
.opps .verify__row dt { flex: 0 0 170px; font-weight: 600; color: #34425e;}
.opps .verify__row dd { margin: 0; min-width: 0; overflow-wrap: anywhere;}
.opps .verify__yes { display: inline-flex; align-items: center; gap: 6px; color: #0b6b3a; font-size: 1.05rem;}
.opps .verify--no .verify__yes { color: #7a5a00;}
.opps .verify__row a { font-weight: 600;}
.opps .verify__host { display: block; font-size: .82rem; color: var(--o-muted);}
.opps .verify__none { color: var(--o-muted);}
.opps .verify__note { margin: 12px 0 0; font-size: .86rem; color: var(--o-muted);}
.opps .vtick { display: inline-flex; align-items: center; gap: 3px; color: #0b6b3a; font-weight: 600;}
.opps .vtick .icon { color: #1a9e5c;}
.opps .forum__head { margin-bottom: 4px;}
.opps .forum__count { font: 500 .9rem var(--o-font-body); color: var(--o-muted); margin-left: 8px;}
.opps .ctype { border: 0; padding: 0; margin: 0 0 12px;}
.opps .ctype legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 8px;}
.opps .ctype__list { display: flex; flex-wrap: wrap; gap: 8px;}
.opps .ctype__opt { cursor: pointer;}
.opps .ctype__opt input { position: absolute; opacity: 0; width: 1px; height: 1px;}
.opps .ctype__opt span { display: inline-block; padding: 7px 16px; border: 2px solid var(--o-line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; color: #34425e;}
.opps .ctype__opt input:focus-visible + span { outline: 3px solid var(--o-sun); box-shadow: 0 0 0 5px var(--o-ink);}
.opps .ctype__opt--question input:checked + span { background: #e6f0ff; border-color: var(--o-blue); color: var(--o-blue-deep);}
.opps .ctype__opt--applied input:checked + span { background: #e8f8ef; border-color: #1a9e5c; color: #0b6b3a;}
.opps .ctype__opt--tip input:checked + span { background: #fff4d6; border-color: #e0a800; color: #6b4e00;}
.opps .ctype__opt--headsup input:checked + span { background: #fdecef; border-color: var(--o-red); color: var(--o-red-dark);}
.opps .forum__filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--o-line);}
.opps .forum__filter button { background: var(--o-bg); border: 1px solid var(--o-line); border-radius: 999px; padding: 6px 14px; font: 600 .86rem var(--o-font-body); color: #34425e; cursor: pointer;}
.opps .forum__filter button span { color: var(--o-muted); font-weight: 500; margin-left: 4px;}
.opps .forum__filter button.is-active { background: var(--o-ink); color: #fff; border-color: var(--o-ink);}
.opps .forum__filter button.is-active span { color: #c4d0e8;}
.opps .c-body[hidden] { display: none;}
.opps .c-type { border-radius: 999px; padding: 1px 9px; font-size: .72rem; font-weight: 700; margin-left: 6px; vertical-align: 1px;}
.opps .c-type--question { background: #e6f0ff; color: var(--o-blue-deep);}
.opps .c-type--applied { background: #e8f8ef; color: #0b6b3a;}
.opps .c-type--tip { background: #fff4d6; color: #6b4e00;}
.opps .c-type--headsup { background: #fdecef; color: var(--o-red-dark);}
.opps .convo__type { font-style: normal; font-size: .72rem; font-weight: 700; background: var(--o-bg); border-radius: 999px; padding: 0 7px; color: #34425e;}
.opps .comment-form .comment-form-author,
.opps .comment-form .comment-form-email { margin-bottom: 10px;}
@media (min-width: 640px) {
.opps .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px;}
.opps .comment-form > .ctype,
.opps .comment-form > .comment-form-comment,
.opps .comment-form > .comment-form-cookies-consent,
.opps .comment-form > .form-submit,
.opps .comment-form > .c-note { grid-column: 1 / -1;}
}
@media (max-width: 520px) {
.opps .verify__row dt { flex-basis: 100%;}
}
.opps .report { margin-top: 14px;}
.opps .report__box { background: var(--o-paper); border: 1px solid var(--o-line); border-radius: 12px;}
.opps .report__box summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 16px; cursor: pointer; font-weight: 600; color: var(--o-red-dark); list-style: none;}
.opps .report__box summary::-webkit-details-marker { display: none;}
.opps .report__box summary span { font-weight: 400; font-size: .86rem; color: var(--o-muted);}
.opps .report__box[open] summary { border-bottom: 1px solid var(--o-line);}
.opps .report__form { padding: 14px 16px 16px; display: grid; gap: 4px;}
.opps .report__form label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 4px;}
.opps .report__form select,
.opps .report__form textarea,
.opps .report__form input[type="email"] { width: 100%; border: 2px solid var(--o-line); border-radius: 8px; padding: 10px 12px; font: inherit; background: #fff;}
.opps .report__form p { margin: 0 0 10px;}
.opps .report__hp { position: absolute; left: -9999px;}
.opps .report__thanks { display: flex; gap: 8px; align-items: center; background: #f2fbf6; border: 1px solid #1a9e5c; color: #0b6b3a; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;}
.opps .report__thanks--warn { background: #fff8e1; border-color: var(--o-sun); color: #6b4e00;}
.opps .report__admin { font-size: .86rem; background: #fdecef; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px;}
.opps .c-item--pinned > .c-body > .c-main > .c-bubble { background: #fff8e1; box-shadow: inset 0 0 0 2px var(--o-sun);}
.opps .c-pinned { display: flex; align-items: center; gap: 6px; margin: 0 0 4px 50px; font-size: .8rem; font-weight: 700; color: #6b4e00;}
.opps .c-pin { color: #6b4e00 !important;}
.opps .comments__review { font-size: .86rem; font-weight: 600; color: #0b6b3a; background: #f2fbf6; border-radius: 8px; padding: 6px 12px; display: inline-block;}
.opps .c-pending { background: #fff8e1; border-radius: 8px; padding: 6px 10px; font-style: normal; color: #6b4e00;}
.opps .rows { background: var(--o-paper); border: 1px solid var(--o-line); border-radius: 12px; padding: 0 16px;}
.opps .row { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--o-line);}
.opps .row:last-child { border-bottom: 0;}
.opps .row:hover .row__title a { color: var(--o-blue);}
.opps .row--closed { opacity: .6;}
.opps .row__thumb { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; display: block; background: var(--o-line);}
.opps .row__thumb img { width: 100%; height: 100%; object-fit: cover;}
.opps .row__mono { width: 100%; height: 100%; display: grid; place-items: center; background: hsl(var(--h) 45% 28%);}
.opps .row__mono .sun { width: 24px; height: 24px;}
.opps .row__main { min-width: 0; flex: 1;}
.opps .row__title { font-size: 1.05rem; line-height: 1.3; margin: 0 0 4px;}
.opps .row__title a { color: var(--o-ink); text-decoration: none;}
.opps .row__title a::after { content: ""; position: absolute; inset: 0;}
.opps .row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: .82rem; color: var(--o-muted);}
.opps .chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin;}
.opps .chips--scroll a { white-space: nowrap;}
.opps .strip__label { font-weight: 700; font-size: .9rem; white-space: nowrap;}
.opps .strip__regions { display: grid; gap: 8px;}
.opps .region-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr;}
.opps .wa-head { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; background: #25d366; color: #fff; text-decoration: none; font: 700 .84rem/1 var(--o-font-body); padding: 10px 12px; border-radius: 999px; white-space: nowrap;}
.opps .wa-head:hover { background: #1ebe5b; color: #fff;}
.opps .wa-head .icon { width: 18px; height: 18px;}
.opps .wa-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0; padding: 16px 18px; background: #effaf4; border: 1px solid #b7e4c9; border-radius: 12px;}
.opps .wa-banner > .icon { color: #25d366; flex: none;}
.opps .wa-banner div { flex: 1; min-width: 200px;}
.opps .wa-banner strong { display: block;}
.opps .wa-banner span { font-size: .92rem; color: #34425e;}
.opps .wa-banner .btn { width: 100%;}
@media (min-width: 640px) {
.opps .rows { padding: 0 22px;}
.opps .row { gap: 18px; padding: 16px 0;}
.opps .row__thumb { width: 64px; height: 64px;}
.opps .row__title { font-size: 1.15rem;}
.opps .region-grid { grid-template-columns: repeat(3, 1fr);}
.opps .wa-banner .btn { width: auto;}
.opps .strip__regions { display: flex; align-items: center; gap: 12px;}
}
@media (min-width: 960px) {
.opps .wa-head { display: none;}
}
@media (max-width: 380px) {
.opps .wa-head { padding: 9px 10px; font-size: .8rem;}
}
.opps .post-hero { position: relative; color: #fff; padding: 26px 0 32px; background: radial-gradient(circle at 92% 18%, rgba(255, 199, 44, .26), transparent 36%), linear-gradient(135deg, #06306a 0%, #0b4ea2 100%); border-bottom: 5px solid var(--o-red);}
.opps .post-hero .crumbs { color: #bcd0f0; margin-bottom: 14px;}
.opps .post-hero .crumbs a { color: #e6eefc;}
.opps .post-hero .crumbs > * + *::before { color: #6f8fc4;}
.opps .post-hero__cat { display: inline-block; background: var(--o-sun); color: var(--o-ink); font-weight: 700; font-size: .82rem; text-decoration: none; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;}
.opps .post-hero__cat:hover { background: #ffd65c; color: var(--o-ink);}
.opps .post-hero__title { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.12; max-width: 26ch; margin-bottom: .45em; color: #fff;}
.opps .post-hero__meta { color: #cfdcf3; font-size: .92rem; margin: 0 0 16px;}
.opps .post-hero__meta a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4);}
.opps .post .layout { padding-top: 32px;}
.opps .entry { font-size: 1.08rem; line-height: 1.85; max-width: 70ch; overflow-wrap: anywhere; color: #1c2a45;}
.opps .entry > p:first-of-type { font-size: 1.18rem; color: var(--o-ink);}
.opps .entry p { margin: 0 0 1.15em;}
.opps .entry a { color: var(--o-blue); text-decoration-thickness: 2px;}
.opps .entry h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; padding-left: 14px; border-left: 5px solid var(--o-red);}
.opps .entry h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; color: var(--o-blue-deep);}
.opps .entry ul,
.opps .entry ol { padding-left: 1.4em; margin: 0 0 1.2em;}
.opps .entry ul { list-style: disc;}
.opps .entry li { margin-bottom: .45em; padding-left: .2em;}
.opps .entry li::marker { color: var(--o-red); font-weight: 700;}
.opps .entry img { border-radius: 10px;}
.opps .entry figure { margin: 1.6em 0;}
.opps .entry hr { border: 0; border-top: 2px dashed var(--o-line); margin: 2em 0;}
.opps .entry blockquote { margin: 1.6em 0; padding: 14px 20px; border-left: 5px solid var(--o-sun); background: #fffaf0; border-radius: 0 10px 10px 0; font-style: italic;}
.opps .entry blockquote p:last-child { margin: 0;}
.opps .entry table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .97rem;}
.opps .entry th { background: var(--o-ink); color: #fff;}
.opps .entry td,
.opps .entry th { border: 1px solid var(--o-line); padding: 10px 12px; text-align: left;}
.opps .entry tr:nth-child(even) td { background: #f7f9fc;}
.opps .entry .wp-block-button__link { background: var(--o-red); color: #fff; border-radius: 8px; padding: .8em 1.4em; font-weight: 600; text-decoration: none;}
.opps .entry--intro { margin-bottom: 20px;}
@media print {
.opps .post-hero { background: none; color: #000; border: 0;}
.opps .post-hero__title { color: #000;}
}
.opps .day { margin-bottom: 28px;}
.opps .day__title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 0 0 12px; padding-left: 12px; border-left: 6px solid var(--o-blue); color: var(--o-ink);}
.opps .day--today .day__title { border-left-color: var(--o-red); font-size: 1.55rem;}
.opps .day--today .day__title .sun { background: var(--o-blue-deep); border-radius: 50%; padding: 3px; flex: none;}
.opps .row { align-items: flex-start;}
.opps .row__thumb { margin-top: 2px;}
.opps .row__title { font-size: 1.12rem; line-height: 1.3; margin: 0 0 6px; font-family: var(--o-font-head);}
.opps .row__facts { list-style: disc; margin: 0; padding-left: 1.15em; font-size: .93rem; color: #34425e;}
.opps .row__facts li { margin: 0 0 2px; padding-left: .1em;}
.opps .row__facts li::marker { color: var(--o-red);}
.opps .row__facts strong { color: var(--o-ink); font-weight: 600;}
.opps .row__facts .badge { margin-left: 6px;}
.opps .post-hero { padding-bottom: 32px;}
@media (min-width: 640px) {
.opps .row__title { font-size: 1.22rem;}
.opps .post-hero { padding: 36px 0;}
}
.opps .strip__regions + .strip__regions { margin-top: 10px;}
.opps .widget--ask { border-color: var(--o-red); background: #fff6f7;}
.opps .widget--ask p { font-size: .94rem;}
.opps .req-notify label { font-size: .88rem; display: flex; gap: 8px; align-items: center;}
.opps .req-looking { margin: 2px 0 4px; font-size: .9rem; color: #34425e;}
.opps .req-looking strong { color: var(--o-blue-deep);}
.opps .req-status { border-radius: 999px; padding: 1px 10px; font-size: .74rem; font-weight: 700;}
.opps .req-status--yes { background: #e8f8ef; color: #0b6b3a;}
.opps .req-status--wait { background: #fff4d6; color: #6b4e00;}
.opps .c-item--admin > .c-body .c-bubble { background: #eaf2ff;}
.opps .c-item--admin .c-text a { font-weight: 700; word-break: break-all;}
.opps .req-notice { background: #fff8e1; border: 1px solid var(--o-sun); border-left-width: 6px; border-radius: 10px; padding: 14px 16px; margin: 0 0 18px;}
.opps .req-notice strong { display: block; margin-bottom: 4px;}
.opps .req-notice p { margin: 0 0 10px; font-size: .95rem;}
.opps .requests .comment-form-comment label { font-size: 1rem;}
.opps .req-search { margin: 22px 0 6px;}
.opps .req-search label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px;}
.opps .req-search input[type="search"] { width: 100%; height: 44px; border: 2px solid var(--o-line); border-radius: 999px; padding: 0 16px; font: inherit; background: #fff;}
.opps .req-search input:focus { border-color: var(--o-blue); outline: none;}
.opps .req-search__none { color: var(--o-muted); margin: 8px 0 0;}
.opps .requests .c-item[hidden] { display: none;}

/* ============================================================
   New BdT Rivas integration
   ============================================================ */
.opps :is(h1, h2, h3, h4) { color: inherit; font-weight: 700; }
.opps .wrap { max-width: 1280px; padding-left: var(--spacing-gutter, 1.5rem); padding-right: var(--spacing-gutter, 1.5rem); }
.opps-main { background: var(--wp--preset--color--surface-container-low, #f6f3f2); }
.opps-main > .opps { display: block; }

/* Notice bar lives inside the fixed header, so the page offset grows with it */
body:has(.opps-notice) { --newbdtr-header-height: calc(4rem + var(--opps-notice-h)); }
.opps-notice { background: var(--o-blue-deep); color: #f3e6f5; font-size: .78rem; height: var(--opps-notice-h); }
.opps-notice__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-gutter, 1.5rem); }
.opps-notice__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opps-notice__date { display: none; white-space: nowrap; opacity: .85; }
.opps-notice .wa-head { display: inline-flex; margin-left: 0; padding: 4px 11px; font-size: .74rem; flex: none; color: #fff; }
.opps-notice .wa-head .icon { width: 15px; height: 15px; }
@media (min-width: 720px) { .opps-notice__date { display: block; } }

/* Hero and post header in the theme palette */
.opps .hero { background: linear-gradient(135deg, var(--o-blue-deep), var(--o-blue)); }
.opps .hero::after { background: var(--wp--preset--color--secondary-container, #fd6c10); }
.opps .opp-search input:focus, .opps .opp-search select:focus { box-shadow: 0 0 0 3px rgba(102, 4, 118, .2); }
.opps .post-hero { background: radial-gradient(circle at 92% 18%, rgba(255, 199, 44, .26), transparent 36%), linear-gradient(135deg, var(--o-blue-deep) 0%, var(--o-blue) 100%); border-bottom-color: var(--wp--preset--color--secondary-container, #fd6c10); }
.opps .post-hero .crumbs { color: #ead3ee; }
.opps .post-hero .crumbs a { color: #fff; }
.opps .post-hero .crumbs > * + *::before { color: #b78bbf; }
.opps .post-hero__meta { color: #ead3ee; }
.opps .entry { color: var(--o-ink); }
.opps .entry blockquote { background: var(--o-bg); }
.opps .entry tr:nth-child(even) td { background: var(--o-bg); }
.opps .badge--closed { background: var(--o-bg); }
.opps .sidebar { min-width: 0; }
@media (min-width: 960px) { .opps .sidebar { top: calc(var(--newbdtr-header-height, 4rem) + 16px); } }
.opps .layout--single { margin-left: auto; margin-right: auto; }

/* Footer sections placed above the theme footer */
.opps-footer { background: var(--wp--preset--color--surface-container-low, #f6f3f2); border-top: 1px solid var(--o-line); padding: 44px 0 0; }
.opps-footer .footer-grid { display: grid; gap: 30px; }
.opps-footer .footer-title { color: var(--o-blue-deep); font-size: 1.05rem; margin-bottom: .8em; }
.opps-footer .footer-about { margin: 0 0 14px; max-width: 42ch; font-size: .95rem; color: var(--o-muted); }
.opps-footer .footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.opps-footer .footer-list li { margin-bottom: 6px; font-size: .94rem; }
.opps-footer .footer-list--cols { columns: 2; column-gap: 18px; }
.opps-footer .footer-list a, .opps-footer .footer-mail a { color: var(--o-ink); text-decoration: none; }
.opps-footer .footer-list a:hover, .opps-footer .footer-mail a:hover { color: var(--o-blue); text-decoration: underline; }
.opps-footer .footer-mail { margin: 12px 0 0; font-size: .94rem; }
.opps-footer .footer-base { border-top: 1px solid var(--o-line); margin-top: 30px; padding-top: 16px; padding-bottom: 16px; font-size: .82rem; color: var(--o-muted); }
.opps-footer .footer-base p { margin: 0; }
@media (min-width: 640px) { .opps-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .opps-footer .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }

/* Header scrolls with the page (not sticky) */
.wp-site-blocks header:has(.newbdtr-header),
.admin-bar header:has(.newbdtr-header) { position: relative !important; top: auto !important; left: auto !important; right: auto !important; width: 100%; }
.wp-site-blocks > main, main { padding-top: 0 !important; }
.wp-site-blocks > main.newbdtr-main, main.newbdtr-main { padding-top: var(--spacing-section-padding, 3rem) !important; }
@media (min-width: 960px) { .opps .sidebar { top: 16px; } }
