/* Keep the signature and copyright together on the metadata row. */
.footer :is(.footer-bottom, .foot-bottom) {
    flex-wrap: wrap;
    align-items: center;
    row-gap: .7rem;
    color: #526175;
    font-size: .75rem;
    line-height: 1.5;
}
.mor-footer .footer-bottom { color: #ccc2c7; }

.footer .portal-network-signature {
    display:inline-flex;
    align-items:center;
    flex:0 0 auto;
    align-self:auto;
    color:inherit;
    font-size:12px;
    white-space:nowrap;
}
.footer .portal-network-signature a {
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:30px;
    padding:3px 0;
    margin:0;
    color:#606060;
    text-decoration:none;
}
.footer .portal-network-signature a img {
    filter:grayscale(1);
    transition:filter .18s ease;
}
.footer .portal-network-signature a:is(:hover, :focus-visible) {
    color:var(--instagram-accent);
}
.footer .portal-network-signature a:is(:hover, :focus-visible) img { filter:none; }
.footer .portal-network-signature a:focus-visible {
    outline:2px solid currentColor;
    outline-offset:3px;
}
@media (prefers-reduced-motion: reduce) {
    .footer .portal-network-signature a img { transition:none; }
}
.footer .portal-network-signature .site-image {
    display:block;
    flex:none;
    width:94px;
}
.footer .portal-network-signature img {
    display:block;
    width:94px;
    height:auto;
    max-height:25px;
    object-fit:contain;
    object-position:left center;
}

.portal-safety {
    width: min(44rem, calc(100% - 3rem));
    margin: clamp(3rem, 7vw, 6rem) auto;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.portal-safety h1 {
    margin: 0 0 .75rem;
    font-size: clamp(1.85rem, 5vw, 2.9rem);
    line-height: 1.15;
}

.portal-safety-listing { font-weight: 600; }
.portal-safety a, .portal-report-link a { text-decoration: underline; text-underline-offset: .2em; }
.portal-safety-form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.portal-safety-form p { margin: 0; font-size: .94em; }
.portal-safety-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.portal-safety-form label { display: grid; gap: .35rem; }
.portal-safety-form :is(input,select,textarea) {
    box-sizing: border-box;
    width: 100%;
    padding: .75rem;
    border: 1px solid #aebbbd;
    border-radius: .55rem;
    background: #fff;
    color: #172b3a;
    font: inherit;
}
.portal-safety-form textarea { resize: vertical; }
.portal-safety-submit {
    justify-self: start;
    margin-top: .25rem;
    padding: .75rem 1.25rem;
    border: 0;
    border-radius: .55rem;
    background: #11354a;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.portal-safety-feedback { margin: 1.75rem 0; padding: 1rem 1.5rem; border-radius: .55rem; background: #edf6f4; color: #183e39; }
.portal-safety-errors { background: #fff1ec; color: #742e24; }
.portal-terms section { margin-block: 2rem; }
.portal-terms h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.portal-report-link { margin-block: 2rem 1rem; font-size: .9rem; }
@media (max-width: 480px) { .portal-safety-fields { grid-template-columns: 1fr; } }

:where(.site-image) > img { height: auto; max-width: 100%; }

/* Keep the existing crops and overlays while exposing the image to the preload scanner. */
.hero-photo:has(> .site-image) > .site-image img,
.hero-bg:has(> .site-image) > .site-image img,
.editorial-image > .site-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-photo:has(> .site-image)::after,
.hero-bg:has(> .site-image)::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
}
.vivarenda .hero-bg .viv-hero-first,
.vivarenda .hero-bg .viv-hero-second { object-position: center 53%; }
.soycorredor .hero-bg > .site-image img { object-position: center 55%; }
.vivarenda .hero-bg .viv-hero-second,
.vivarenda .hero-alternate .hero-bg .viv-hero-first { display: none; }
.vivarenda .hero-alternate .hero-bg .viv-hero-second { display: block; }

.portal-blog {
    --blog-accent: var(--forest, var(--wine, var(--burgundy, var(--blue, var(--primary, #0e3951)))));
    width: min(1180px, 100% - 3rem);
    margin: clamp(3rem, 7vw, 6rem) auto;
}
.portal-blog-head { margin-bottom: 2rem; }
.portal-blog-head h1, .portal-blog-head h2, .portal-blog-article h1 { margin: 0 0 .65rem; line-height: 1.12; font-size: clamp(2rem,5vw,3.65rem); }
.portal-blog-home .portal-blog-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.portal-blog-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 2rem; }
.portal-blog-grid:has(> :only-child) { grid-template-columns: minmax(0, min(100%, 500px)); }
.portal-blog-cover { overflow: hidden; background: #eef0ee; aspect-ratio: 3 / 2; }
.portal-blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.portal-blog-card h3 { margin: 1rem 0 .4rem; font-size: 1.25rem; line-height: 1.3; }
.portal-blog-card p, .portal-blog-lead { line-height: 1.6; opacity: .86; }
.portal-blog-article { max-width: 780px; margin: auto; }
.portal-blog-article .portal-blog-cover { margin-block: 2rem; }
.portal-blog-article h1 { margin-block: 1rem; }
.portal-blog-article time { font-size: .9em; }
.portal-blog-body { margin-top: 1.8rem; line-height: 1.8; overflow-wrap: anywhere; }
.portal-blog-body :is(h2,h3) { margin-top: 1.7rem; margin-bottom: .5rem; line-height: 1.3; }
.portal-blog-body :is(ul,ol) { padding-inline-start: 1.45rem; }
.portal-blog-body p { margin-block: 0 1em; }
.portal-blog-link, .portal-blog-body a { color: var(--blog-accent); text-decoration: underline; text-underline-offset: .22em; }

@media (max-width: 680px) {
    .footer :is(.footer-bottom, .foot-bottom) {
        flex-direction: column;
        align-items: flex-start;
    }
}

.portal-footer-copyright {
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:.25rem .85rem;
    min-width:0;
}
.portal-footer-copyright .portal-privacy-nav {
    appearance:none;
    padding:0;
    border:0;
    background:none;
    color:inherit;
    font:inherit;
    text-align:start;
    text-decoration:underline;
    text-underline-offset:.18em;
    cursor:pointer;
}
.cv-access-footer { flex-wrap:wrap; }
.portal-privacy-dialog {
    position:fixed;
    inset:auto max(.875rem, env(safe-area-inset-right)) max(.875rem, env(safe-area-inset-bottom)) auto;
    z-index:220;
    width:min(23rem, calc(100% - 1.75rem));
    max-width:none;
    max-height:calc(100% - 1.75rem);
    margin:0;
    padding:1rem 1.15rem;
    border:1px solid #dbe6e8;
    border-radius:.85rem;
    background:#fff;
    color:#183447;
    box-shadow:0 8px 34px #12273431;
    font:.875rem/1.45 system-ui,sans-serif;
}
.portal-privacy-dialog header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:.6rem;
    margin-bottom:.35rem;
}
.portal-privacy-dialog h2 { margin:0; font-size:1.04rem; line-height:1.25; }
.portal-privacy-dialog p { margin:0; color:#496171; }
.portal-privacy-close,.portal-privacy-actions button {
    font:inherit;
    cursor:pointer;
    color:#244957;
    background:#eef5f5;
    border:0;
    border-radius:.55rem;
}
.portal-privacy-close { width:44px; height:44px; font-size:1.25rem; line-height:1; }
.portal-privacy-actions { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:.75rem; }
.portal-privacy-dialog [hidden] { display:none; }
.portal-privacy-actions button { min-height:44px; padding:.48rem .8rem; }
.portal-privacy-actions button:hover { background:#e0efed; }
.portal-privacy-actions button[aria-pressed="true"] { background:#13585c; color:#fff; }
.portal-privacy-dialog .portal-privacy-status:not(:empty) { margin-top:.45rem; }
.portal-privacy-progress {
    position:absolute;
    inset:0 0 auto;
    height:4px;
    background:#d8eeea;
}
.portal-privacy-progress::before {
    content:"";
    display:block;
    height:100%;
    background:#167c75;
    transform-origin:left;
    animation:portal-privacy-countdown 2s linear both;
}
@keyframes portal-privacy-countdown { from { transform:scaleX(1); } to { transform:scaleX(0); } }
@media (prefers-reduced-motion:reduce) {
    .portal-privacy-progress::before { animation-timing-function:steps(2, end); }
}
.portal-privacy-nav:focus-visible,.portal-privacy-dialog button:focus-visible { outline:2px solid #176d70; outline-offset:3px; }

.footer { --instagram-accent: #092b9e; }
.vivarenda .footer { --instagram-accent: #5a1835; }
.habivento .footer { --instagram-accent: #0b2944; }
.domeliva .footer { --instagram-accent: #113b26; }
.moravento .footer { --instagram-accent: #760a2b; }
.soycorredor .footer { --instagram-accent: #064f57; }

.footer a.footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    width: fit-content;
    min-height: 44px;
    margin: 1rem 0 0;
    padding: .5rem .8rem;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--instagram-accent);
    font-size: .87rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .18s ease;
}
.footer a.footer-instagram svg { flex: none; }
.footer a.footer-instagram:hover { background: color-mix(in srgb, var(--instagram-accent) 82%, #000); color: #fff; }
.footer a.footer-instagram:focus-visible { outline: 2px solid var(--instagram-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .footer a.footer-instagram { transition: none; } }
