/* UI-005: scoped functional refinements; existing palette/hero/archive stay intact. */
.home-journal-right { align-self: stretch; }
.rv-home-sticky { display: grid; align-content: start; gap: 24px; }
[data-rv-home-cta]:empty { display: none; }
.rv-home-navigation { border: 0; margin: 0; padding: 0; }
.rv-home-account > h2 { margin: 0 0 16px; font: 600 22px/1.3 var(--rv-font-heading); overflow-wrap: anywhere; }
.rv-home-account .rv-account-logout { display: flex; justify-content: center; margin-top: 18px; padding: 12px 16px; font-size: 15px; }
.rv-home-account .rv-account-logout:focus-visible { outline: 2px solid var(--rv-focus); outline-offset: 3px; }
.rv-home-sticky .hero-submission { width: 100%; margin: 0; }
.rv-home-sticky .journal-cta { border-radius: var(--rv-radius-card); }
@media (min-width:1101px) { .rv-home-sticky { position: sticky; top: var(--rv-home-rail-offset,var(--rv-article-offset)); overflow: visible; max-height: none; } }
.rv-back-top { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; min-width: 46px; min-height: 46px; padding: 0; border-radius: 50%; background: var(--rv-accent); color: var(--rv-white); bottom: var(--rv-top-bottom,22px); }
.rv-back-top[hidden] { display: none; }
.rv-back-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rv-back-top:hover { background: var(--rv-accent-hover); transform: none; }
.rv-back-top:focus-visible { outline: 3px solid var(--rv-focus); outline-offset: 3px; }
.rv-related-grid > .items { display: contents; }
.rv-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 14px; }
.rv-related-grid .article-card, .rv-related-grid .rv-internal-news-card { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--rv-line); border-radius: var(--rv-radius-card); background: var(--rv-white); box-shadow: none; display: block; }
.rv-related-grid .article-card h3, .rv-related-grid .rv-internal-news-card h2 { font-size: 19px; line-height: 1.4; margin: 0 0 12px; overflow-wrap: anywhere; }
.rv-related-grid .article-card h3 svg { display: none; }
.rv-related-grid .byline, .rv-related-grid time { color: var(--rv-muted); font-size: 13px; line-height: 1.5; }
.rv-related-grid .article-kicker { padding: 0; margin: 0 0 12px; font-size: 12px; }
.rv-related-grid img { width: 100%; max-height: 170px; object-fit: cover; }
.rv-related-grid a:focus-visible { outline: 2px solid var(--rv-focus); outline-offset: 3px; }
.rv-related-news { margin-top: 36px; }
.rv-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.rv-contact-person, .rv-contact-address, .rv-contact-links { padding: 24px; background: var(--rv-white); border: 1px solid var(--rv-line); border-radius: var(--rv-radius-card); }
.rv-contact-person h3 { font: 600 25px/1.35 var(--rv-font-heading); margin: 10px 0 18px; }
.rv-contact-person .eyebrow { font-size: 14px; color: var(--rv-muted); margin: 0; }
.rv-contact-person p { overflow-wrap: anywhere; }
.rv-contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv-contact-email button { font-size: 12px; padding: 6px 8px; }
.rv-contacts > section + section { margin-top: 28px; }
.rv-contacts h2 { font: 600 28px/1.3 var(--rv-font-heading); margin: 0 0 20px; }
.rv-contact-address address { font-style: normal; line-height: 1.7; margin-bottom: 16px; white-space: pre-line; }
.rv-contact-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.rv-contact-links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--rv-line); }
.rv-map-frame { position: relative; height: var(--rv-map-height,360px); border: 1px solid var(--rv-line); border-radius: var(--rv-radius-card); overflow: hidden; background: var(--rv-surface); }
.rv-map-frame iframe { width: 100%; height: 100%; border: 0; }
.rv-map-consent { display: grid; place-content: center; height: 100%; text-align: center; padding: 28px; }
.rv-map-consent button { justify-self: center; }
.rv-contact-map > p { color: var(--rv-muted); }
@media (max-width:1100px) { .rv-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .rv-related-grid,.rv-contact-grid,.rv-contact-links ul { grid-template-columns: minmax(0,1fr); } .rv-contact-person,.rv-contact-address,.rv-contact-links { padding: 20px; } .rv-back-top { right: 12px; bottom: var(--rv-top-bottom,16px); } .rv-home-sticky { position: static; } }
@media(prefers-reduced-motion:reduce) { .rv-back-top { transition: none; } }


.rv-map-consent[hidden],.rv-map-frame iframe[hidden] { display:none; }
.rv-home-account { padding:20px; border:1px solid var(--rv-line); border-radius:var(--rv-radius-card); background:var(--rv-white); }
.rv-account-tabs { display:flex; border-bottom:1px solid var(--rv-line); margin-bottom:18px; gap:8px; }
.rv-account-tabs button { background:transparent; color:var(--rv-text); border:0; border-radius:0; padding:10px 4px; font-size:15px; flex:1; }
.rv-account-tabs button[aria-selected="true"] { box-shadow:inset 0 -3px var(--rv-accent); font-weight:700; }
.rv-home-account .form-item { margin:0 0 14px; }
.rv-home-account .description { display:none; }
.rv-home-account input:not([type=submit]),.rv-registration-form input:not([type=checkbox]):not([type=submit]),.rv-registration-form select { width:100%; max-width:100%; min-width:0; padding:10px 12px; border:1px solid var(--rv-line); border-radius:var(--rv-radius-sm,5px); background:var(--rv-white); color:var(--rv-text); }
.rv-home-account label,.rv-registration-form label { display:block; margin-bottom:6px; font-size:15px; }
.rv-home-account input[type=submit] { width:100%; margin:0 0 12px; }
.rv-home-account a { font-size:14px; }
.rv-registration-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:40px; margin-bottom:48px; }
.rv-registration-form { min-width:0; }
.rv-registration-info { align-self:start; padding:28px; border-top:3px solid var(--rv-accent); background:var(--rv-surface); border-radius:var(--rv-radius-card); }
.rv-registration-info h2 { font:600 28px/1.3 var(--rv-font-heading); margin:0 0 18px; }
.rv-registration-info ul { margin:22px 0 0; padding:0; list-style:none; }
.rv-registration-info li { border-top:1px solid var(--rv-line); padding:12px 0; }
.rv-registration-form .form-item { margin:0 0 20px; }
.rv-registration-form .form-type-checkbox label { display:inline; }
.rv-registration-form .description { color:var(--rv-muted); font-size:14px; line-height:1.5; margin-top:8px; }
.rv-registration-form .form-item-rv-consent { margin-top:24px; }
.rv-form-trap { position:absolute!important; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:800px) { .rv-registration-layout { grid-template-columns:minmax(0,1fr); gap:24px; } }

@media(min-width:901px) { .journal-identity [data-rv-hero-cta-home] { margin-top:auto; } }
body:has(.rv-mobile-actions) .rv-back-top { bottom:var(--rv-top-bottom,86px); }


.rv-related-grid .article-card h3 { padding:0; }
.rv-related-grid .byline { padding:0; margin:0; }


.page-shell:has(.rv-registration-layout) #block-rv-tabs ul { display:flex; flex-wrap:wrap; gap:16px; list-style:none; padding:0 0 14px; margin:0 0 28px; border-bottom:1px solid var(--rv-line); }
.page-shell:has(.rv-registration-layout) #block-rv-tabs a { display:block; padding:8px 0; }
.page-shell:has(.rv-registration-layout) #block-rv-tabs a.is-active { border-bottom:2px solid var(--rv-accent); font-weight:600; }


.rv-back-top.rv-over-footer { visibility:hidden; pointer-events:none; }
