/* WordPress-specific additions on top of the handoff CSS (hand-written, safe to edit). */

/* Real images inside the handoff's image placeholders (.ph) */
.ph.has-photo { padding: 0 !important; background: var(--surface) !important; }
.ph.has-photo::before, .ph.has-photo::after { display: none !important; }
.ph.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* No image uploaded yet: branded tile instead of the wireframe cross */
.ph.no-photo { background: linear-gradient(160deg, #dfecff, #f5f6ff) !important; }
.ph.no-photo::before, .ph.no-photo::after { display: none !important; }
.ph.no-photo img { position: relative; z-index: 1; width: 34%; max-width: 180px; height: auto; opacity: .55; }

/* Form delivery */
.vj-hp-wrap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.vj-form-status { display: none; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff6f7; border: 1px solid #f3c2c8; color: #b4232f; font-size: 14px; font-weight: 600; }
.vj-form-status.on { display: block; }
[data-submit][aria-busy="true"] { opacity: .7; cursor: progress; }

/* Logged-in admin bar: keep the sticky header and mobile menu below it */
.admin-bar .header { top: 32px; }
.admin-bar .m-menu { top: calc(92px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
  .admin-bar .m-menu { top: calc(106px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

/* Editor content (migrated Wix posts, insights, legal pages) */
.art-body > * + *, .lg-doc > * + * { margin-top: 1em; }
.art-body img, .prose img, .lg-doc img { max-width: 100%; height: auto; border-radius: 16px; }
.art-body figure, .prose figure { margin: 1.5em 0; }
.art-body figcaption, .prose figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.art-body h2, .art-body h3 { margin-top: 1.4em; color: var(--navy); }
.art-body a, .lg-doc a { color: var(--blue); }
.art-body ul, .art-body ol { padding-left: 1.3em; }
.art-body iframe, .prose iframe { max-width: 100%; }
.lg-doc h3 { margin-top: 1.4em; color: var(--navy); }
.lg-doc ol { padding-left: 1.3em; }

/* "More Insights" cards (the handoff only had skeletons) */
.rgrid a.card { display: block; text-decoration: none; color: inherit; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
@media (hover: hover) { .rgrid a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
.rgrid .card .ph { position: relative; }
.rgrid .b .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rgrid .b h3 { margin-top: 10px; font-size: clamp(16px, 1.1vw, 21px); line-height: 1.35; color: var(--navy); }

/* News / Insights listings: the pager comes from the v2 handoff CSS (.pager, [data-pg-off]).
   Quick fade when a filter or page changes (the handoff's 0.7s felt slow on chip clicks). */
.js .nlist .nc.rv, .js .igrid .ic.rv { transition-duration: .35s; }

/* Insights year selector (guide v2 slide 19; not in the v2 Insights HTML): same look as News */
.i-tools .tools-r { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.i-tools .arch { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(12.5px, .85vw, 16px); color: var(--muted); }
.i-tools .arch select { font: inherit; color: var(--navy); font-weight: 600; padding: 8px 32px 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235B6285' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; cursor: pointer; }
@media (min-width: 761px) {
  .i-tools .tools-r { flex-wrap: nowrap; justify-content: space-between; gap: 16px; width: 100%; }
}
/* Year selector icon on small screens (both listings) */
@media (max-width: 760px) {
  .arch { position: relative; }
  .arch .arch-ic { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
  .arch select { padding-left: 36px; }
}

/* Insights article images: same crop as the v2 handoff (os-photo rule) */
.ph.has-photo.f-img img, .ph.has-photo.ic-img img, .ph.has-photo.a-img img { object-position: 50% 72%; }

/* Generic page / 404 */
.vj-page { padding: clamp(36px, 3.4vw, 76px) 0 clamp(56px, 5vw, 110px); }
.vj-404 { text-align: center; padding: clamp(80px, 10vw, 180px) 0; }
.vj-404 h1 { font-size: clamp(30px, 3vw, 60px); color: var(--navy); }
.vj-404 p { margin-top: 12px; color: var(--muted); }
.vj-404 .btn { margin-top: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
