/* =========================================================================
   Article — in the site's own system
   The site's split page hero (byline on the glass panel), breadcrumbs, then
   a centered reading column with a slim sticky share rail. Outlet, gallery,
   author and story cards use the site's white rounded cards. Cards and hue
   tokens come from the newsroom styles.
   (c) HAUS XXIV, LLC · Licensed to Long Beach Pride
   ========================================================================= */

/* Hero additions (the split hero itself is the theme's) */
.lbp-article .ax-kicker { color: #fff !important; text-decoration: none; }
.lbp-article .ax-kicker:hover { text-decoration: underline; text-underline-offset: 4px; }
.lbp-article .ax-title { font-size: clamp(34px, 3.6vw, 60px) !important; line-height: 1.04 !important; max-width: 20ch; text-wrap: balance; }
.lbp-article .ax-by { display: flex; align-items: center; gap: 14px; }
.lbp-article .ax-by p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.lbp-article .ax-by-n { font-size: 15.5px; font-weight: 600; color: #fff; }
.lbp-article .ax-by-m { font-size: 14px; color: rgba(255, 255, 255, .78); }
.lbp-article .ax-avatar { display: block; flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.lbp-article .ax-avatar--ini { display: grid; place-items: center; background: linear-gradient(135deg, #8B5CF6, #DB2777); font-size: 15px; font-weight: 700; color: #fff; }

/* Reading layout */
.lbp-article .ax-body { padding-top: clamp(48px, 5vw, 80px); }
.lbp-article .ax-layout { display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; column-gap: clamp(24px, 4vw, 64px); }
.lbp-article .ax-main { grid-column: 2; min-width: 0; }
.lbp-article .ax-rail { grid-column: 1; grid-row: 1; justify-self: end; }
.lbp-article .ax-rail-in { position: sticky; top: calc(var(--lbp-sticky-top, 84px) + var(--crumbs-h, 0px) + 32px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lbp-article .ax-rail-l { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* Share buttons: round white chips */
.lbp-article .ax-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lbp-article .ax-rail .ax-share { flex-direction: column; }
.lbp-article .ax-share a,
.lbp-article .ax-share button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); cursor: pointer; transition: background-color .3s, color .3s, box-shadow .3s; }
.lbp-article .ax-share svg { width: 18px; height: 18px; }
.lbp-article .ax-share a:hover,
.lbp-article .ax-share button:hover { background: var(--ink); color: #fff; box-shadow: none; }
.lbp-article .ax-share a:focus-visible,
.lbp-article .ax-share button:focus-visible { outline: 2px solid #6D28D9; outline-offset: 3px; }
.lbp-article .ax-copied { position: absolute; left: calc(100% + 8px); top: 50%; padding: 4px 9px; border-radius: 6px; background: var(--ink); font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; opacity: 0; transform: translateY(-50%); transition: opacity .2s; pointer-events: none; }
.lbp-article .is-copied .ax-copied { opacity: 1; }
.lbp-article .ax-native[hidden] { display: none; }

/* Standfirst and story */
.lbp-article .ax-dek { margin: 0 0 clamp(32px, 3vw, 44px); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
.lbp-article .ax-prose { font-size: clamp(17px, 1.15vw, 18.5px); line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; }
.lbp-article .ax-prose > * { margin: 0 0 1.35em; }
.lbp-article .ax-prose > :last-child { margin-bottom: 0; }
.lbp-article .ax-prose h2 { margin: 2em 0 .6em; font-size: var(--fs-h3) !important; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); }
.lbp-article .ax-prose h3 { margin: 1.7em 0 .5em; font-size: var(--fs-h4) !important; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.lbp-article .ax-prose h4 { margin: 1.5em 0 .4em; font-size: 17px; font-weight: 700; color: var(--ink); }
.lbp-article .ax-prose a { color: #5B21B6; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lbp-article .ax-prose strong { color: var(--ink); }
.lbp-article .ax-prose ul,
.lbp-article .ax-prose ol { padding-left: 1.25em; }
.lbp-article .ax-prose li { margin: .4em 0; }
.lbp-article .ax-prose li::marker { color: #6D28D9; }
.lbp-article .ax-prose blockquote { position: relative; margin: 2em 0; padding: clamp(24px, 2.4vw, 36px); border: 0; border-radius: var(--nx-card-r, 22px); background: #fff; box-shadow: var(--nx-shadow); }
.lbp-article .ax-prose blockquote p { margin: 0; font-size: clamp(20px, 1.6vw, 26px); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }
.lbp-article .ax-prose blockquote p::before { content: "“"; display: block; height: .55em; margin-bottom: .1em; font-family: var(--accent, serif); font-size: 2.6em; line-height: 1; color: #9B30FF; }
.lbp-article .ax-prose blockquote cite { display: block; margin-top: 16px; font-size: 11.5px; font-style: normal; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lbp-article .ax-prose img,
.lbp-article .ax-prose video,
.lbp-article .ax-prose iframe { max-width: 100%; height: auto; border-radius: 16px; }
.lbp-article .ax-prose figure { margin: 2em 0; }
.lbp-article .ax-prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.lbp-article .ax-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--hair); }

/* News outlet */
.lbp-article .ax-outlet { display: flex; align-items: center; gap: 22px; margin: 0 0 clamp(32px, 3vw, 44px); padding: 12px 24px 12px 12px; border-radius: var(--nx-card-r, 22px); background: #fff; box-shadow: var(--nx-shadow); }
.lbp-article .ax-outlet-logo { display: grid; place-items: center; flex: none; width: 128px; height: 80px; padding: 12px; border-radius: 14px; background: var(--bone, #F3F3F3); }
.lbp-article .ax-outlet-logo img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.lbp-article .ax-outlet-logo span { font-weight: 700; text-align: center; }
.lbp-article .ax-outlet p { margin: 0; }
.lbp-article .ax-outlet-k { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lbp-article .ax-outlet-n { margin-top: 2px !important; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.lbp-article .ax-outlet-a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; color: #5B21B6; text-decoration: none; }
.lbp-article .ax-outlet-a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lbp-article .ax-outlet-a svg { width: 15px; height: 15px; }

/* Gallery */
.lbp-article .ax-gallery { margin-top: clamp(44px, 4vw, 64px); }
.lbp-article .ax-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lbp-article .ax-sec-h { margin: 0; font-size: var(--fs-h3) !important; font-weight: 600; letter-spacing: -.025em; }
.lbp-article .ax-arrows { display: flex; gap: 8px; }
.lbp-article .ax-arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; }
.lbp-article .ax-arrows svg { width: 18px; height: 18px; }
.lbp-article .ax-arrows button:focus-visible { outline: 2px solid #6D28D9; outline-offset: 3px; }
.lbp-article .ax-gal { margin: 0; padding: 0; list-style: none; }
.lbp-article .ax-gal-item { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 16px; background: var(--bone, #F3F3F3); overflow: hidden; cursor: zoom-in; }
.lbp-article .ax-gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease, ease); }
.lbp-article .ax-gal-item:hover img { transform: scale(1.04); }
.lbp-article .ax-gal-item:focus-visible { outline: 2px solid #6D28D9; outline-offset: 3px; }
.lbp-article .ax-gallery--carousel .ax-gal { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 420px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lbp-article .ax-gallery--carousel .ax-gal li { aspect-ratio: 4 / 3; scroll-snap-align: start; }
.lbp-article .ax-gallery--mosaic .ax-gal { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 13vw, 200px); gap: 12px; }
.lbp-article .ax-gallery--mosaic .ax-gal li:first-child { grid-row: span 2; }
.lbp-article .ax-gallery--mosaic [data-count="1"] li:first-child { grid-column: 1 / -1; }
.lbp-article .ax-gallery--mosaic [data-count="2"] li:first-child { grid-row: span 1; }
.lbp-article .ax-gallery--mosaic [data-count="4"] li:last-child { grid-column: 1 / -1; }
.lbp-article .ax-lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lbp-article .ax-lightbox::backdrop { background: rgba(10, 9, 14, .9); }
.lbp-article .ax-lightbox img { display: block; max-width: 100%; max-height: 86vh; margin: 0 auto; border-radius: 16px; }
.lbp-article .ax-lb-x,
.lbp-article .ax-lb-nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.lbp-article .ax-lb-x { top: -60px; right: 0; }
.lbp-article .ax-lb-nav { top: 50%; transform: translateY(-50%); }
.lbp-article .ax-lb-nav[data-lb="-1"] { left: -64px; }
.lbp-article .ax-lb-nav[data-lb="1"] { right: -64px; }
.lbp-article .ax-lightbox svg { width: 20px; height: 20px; }

/* Tags */
.lbp-article .ax-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(40px, 3.6vw, 56px) 0 0; padding: 0; list-style: none; }
.lbp-article .ax-tags li { padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* Author */
.lbp-article .ax-author { display: flex; align-items: flex-start; gap: 20px; margin-top: clamp(40px, 3.6vw, 56px); padding: clamp(22px, 2.2vw, 30px); border-radius: var(--nx-card-r, 22px); background: #fff; box-shadow: var(--nx-shadow); }
.lbp-article .ax-author .ax-avatar { width: 72px; height: 72px; box-shadow: none; font-size: 22px; }
.lbp-article .ax-author p { margin: 0; }
.lbp-article .ax-author-n { font-size: var(--fs-h4) !important; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.lbp-article .ax-author-t { margin-top: 4px !important; font-size: 14px; font-weight: 600; color: #6D28D9; }
.lbp-article .ax-author-b { margin-top: 10px !important; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* Share at the end */
.lbp-article .ax-endshare { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hair); }
.lbp-article .ax-endshare-l { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }

/* More stories */
.lbp-article .ax-related { background: #fff; }
.lbp-article .ax-rel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.lbp-article .ax-rel-h { margin-top: clamp(16px, 1.6vw, 24px); font-size: var(--fs-h2) !important; }

@media (max-width: 1100px) {
	.lbp-article .ax-layout { grid-template-columns: minmax(0, 1fr); max-width: calc(720px + var(--gut, 24px) * 2); margin-inline: auto; }
	.lbp-article .ax-main { grid-column: 1; }
	.lbp-article .ax-rail { display: none; }
}
@media (max-width: 640px) {
	.lbp-article .ax-title { font-size: clamp(30px, 8vw, 40px) !important; }
	.lbp-article .ax-outlet { flex-direction: column; align-items: flex-start; padding: 12px 12px 20px; }
	.lbp-article .ax-outlet-logo { width: 100%; }
	.lbp-article .ax-author { flex-direction: column; }
	.lbp-article .ax-lb-nav[data-lb="-1"] { left: 6px; }
	.lbp-article .ax-lb-nav[data-lb="1"] { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.lbp-article .ax-gal-item img { transition: none; }
}

/* Scale: hero title fits the panel; headings that follow each other sit close. */
.lbp-article .ax-hero .ax-title { font-size: clamp(30px, 3vw, 50px) !important; line-height: 1.06 !important; max-width: 22ch; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.lbp-article .ax-prose :is(h2, h3) + :is(h2, h3) { margin-top: .4em; }
.lbp-article .ax-body { padding-bottom: clamp(56px, 6vw, 96px); }
.lbp-article .ax-related { padding-top: clamp(56px, 6vw, 96px); }

/* Story + sidebar: fills the site width, text stays at reading measure. */
.lbp-article .ax-layout { grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 360px); column-gap: clamp(40px, 6vw, 112px); max-width: none; }
.lbp-article .ax-main { grid-column: 1; max-width: 760px; }
.lbp-article .ax-side { grid-column: 2; grid-row: 1; }
.lbp-article .ax-side-in { position: sticky; top: calc(var(--lbp-sticky-top, 84px) + var(--crumbs-h, 0px) + 28px); display: flex; flex-direction: column; gap: 16px; }
.lbp-article .ax-panel { padding: 22px 22px 20px; border-radius: var(--nx-card-r, 22px); background: #fff; box-shadow: var(--nx-shadow); }
.lbp-article .ax-panel-h { margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lbp-article .ax-panel .ax-share { gap: 6px; }
.lbp-article .ax-panel .ax-share a,
.lbp-article .ax-panel .ax-share button { width: 40px; height: 40px; }
.lbp-article .ax-panel .ax-copied { left: 50%; top: auto; bottom: calc(100% + 6px); transform: translateX(-50%); }
.lbp-article .ax-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.lbp-article .ax-toc li { counter-increment: toc; border-top: 1px solid var(--hair); }
.lbp-article .ax-toc li:first-child { border-top: 0; }
.lbp-article .ax-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 10px 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: color .25s; }
.lbp-article .ax-toc a::before { content: counter(toc, decimal-leading-zero); font-size: 12px; font-weight: 700; color: #9B30FF; padding-top: 2px; }
.lbp-article .ax-toc a:hover,
.lbp-article .ax-toc a.is-on { color: var(--ink); }
.lbp-article .ax-recent ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lbp-article .ax-recent li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.lbp-article .ax-recent-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--bone, #F3F3F3); }
.lbp-article .ax-recent-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease, ease); }
.lbp-article .ax-recent li:hover img { transform: scale(1.06); }
.lbp-article .ax-recent-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lbp-article .ax-recent-ch { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-hue, #6D28D9); }
.lbp-article .ax-recent a { display: -webkit-box; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); text-decoration: none; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.lbp-article .ax-recent a::after { content: ""; position: absolute; inset: 0; }
.lbp-article .ax-recent li:focus-within { outline: 2px solid #6D28D9; outline-offset: 4px; border-radius: 12px; }
.lbp-article .ax-recent a:focus-visible { outline: none; }
.lbp-article .ax-recent-all { margin-top: 18px; font-size: 14px; }

/* Tags close the article. */
.lbp-article .ax-tags { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hair); }

@media (max-width: 1100px) {
	.lbp-article .ax-layout { grid-template-columns: minmax(0, 1fr); max-width: calc(760px + var(--gut, 24px) * 2); margin-inline: auto; }
	.lbp-article .ax-side { grid-column: 1; grid-row: auto; margin-top: 40px; }
	.lbp-article .ax-side-in { position: static; }
	.lbp-article .ax-toc { display: none; }
}
.lbp-article .ax-recent-all { display: inline-flex; align-items: center; gap: 8px; width: auto; white-space: nowrap; }
.lbp-article .ax-main { max-width: 800px; }
.lbp-article .ax-layout { column-gap: clamp(40px, 5vw, 96px); }
.lbp-article .ax-panel a.link.ax-recent-all { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; width: auto !important; white-space: nowrap; }
.lbp-article .ax-panel a.link.ax-recent-all svg { width: 16px; height: 16px; flex: none; }

/* Sidebar links: keep the .link hover layer (::after, inset 0) on the link itself.
   Without this it stretched over the whole sticky sidebar and swallowed clicks on the share buttons. */
.lbp-article .ax-side .link, .lbp-article .ax-rail .link { position: relative; }
