/* =========================================================================
   PROPERTY GOLD — Blog article pages (loads after blog-page.css)
   ========================================================================= */

/* ---------- Reading progress ---------- */
.ba-progress { position: fixed; left: 0; top: 0; z-index: 1100; height: 3px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #B8860B, #F1C64A, #FFF3C8); box-shadow: 0 0 12px rgba(241, 198, 74, .7); pointer-events: none; }

/* ---------- HERO ---------- */
.ba-hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(460px, 62vh, 620px); display: flex; align-items: flex-end; padding: clamp(96px, 8vw, 110px) 0 clamp(34px, 4vw, 52px); }
.ba-hero .breadcrumb { margin: 0 0 16px; padding: 0; }
.ba-cover { position: absolute; inset: -8% 0 0; z-index: -2; }
.ba-cover img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); animation: baKen 2.6s ease-out backwards; }
@keyframes baKen { from { transform: scale(1.18); filter: blur(3px); } to { transform: scale(1.08); filter: none; } }
.ba-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 10, 8, .7) 0%, rgba(7, 10, 8, .45) 35%, rgba(10, 13, 11, .96) 88%, #0A0D0B 100%), linear-gradient(90deg, rgba(7, 10, 8, .75), transparent 70%); }
.ba-hero-inner { max-width: 900px; }
.ba-hero-inner > * { opacity: 0; transform: translateY(20px); animation: blUp .9s var(--ease-lux) forwards; }
.ba-hero-inner > :nth-child(2) { animation-delay: .1s; }
.ba-hero-inner > :nth-child(3) { opacity: 1; transform: none; animation: none; }
.ba-hero-inner > :nth-child(4) { animation-delay: .6s; }
.ba-hero-inner > :nth-child(5) { animation-delay: .75s; }
.ba-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #0A0D0B; background: var(--grad-gold); padding: 7px 13px; border-radius: 99px; margin-bottom: 16px; text-decoration: none; }
.ba-title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 400; margin: 0 0 16px; }
.ba-title .bl-line > span { animation-delay: .2s; }
.ba-title em { font-style: italic; font-weight: 300; background: linear-gradient(100deg, #FFE9A8 0%, #D4AF37 40%, #FFF3C8 55%, #C99A2E 75%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: blShine 6s linear infinite; }
.ba-excerpt { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.7; color: #D1D6CF; margin: 0 0 22px; max-width: 760px; }
.ba-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 13.5px; color: #C9CFC7; }
.ba-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ba-meta svg { width: 16px; height: 16px; fill: none; stroke: var(--bl-gold); stroke-width: 1.8; }
.ba-author-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-gold); display: grid; place-content: center; }
.ba-author-dot img { width: 16px; height: 16px; object-fit: contain; }

/* ---------- LAYOUT ---------- */
.ba-main { padding: clamp(34px, 4vw, 56px) 0 clamp(40px, 4.4vw, 64px); background: #0A0D0B; }
.ba-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ba-aside { position: sticky; top: 100px; }
.ba-toc { padding: 20px; border-radius: 20px; border: 1px solid var(--bl-line); background: rgba(255, 255, 255, .025); }
.ba-toc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ba-toc-head h2 { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--bl-gold); margin: 0; font-weight: 500; }
.ba-ring { width: 38px; height: 38px; position: relative; }
.ba-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ba-ring circle { fill: none; stroke-width: 3; }
.ba-ring .bg { stroke: rgba(255, 255, 255, .1); }
.ba-ring .fg { stroke: var(--bl-gold); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: calc(100.5 - 100.5 * var(--p, 0)); transition: stroke-dashoffset .15s linear; }
.ba-ring span { position: absolute; inset: 0; display: grid; place-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; color: #D7DCD5; }
.ba-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--bl-line); }
.ba-toc li a { position: relative; display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.45; color: #9CA69C; text-decoration: none; transition: color .3s, border-color .3s, padding .3s; }
.ba-toc li a:hover { color: #fff; }
.ba-toc li a.is-active { color: #fff; border-left-color: var(--bl-gold); padding-left: 18px; }
.ba-toc li a:focus-visible { outline: 2px solid var(--bl-gold); outline-offset: 2px; }
.ba-share { margin-top: 14px; padding: 16px 20px; border-radius: 20px; border: 1px solid var(--bl-line); background: rgba(255, 255, 255, .025); }
.ba-share p { margin: 0 0 10px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.ba-share-row { display: flex; gap: 8px; }
.ba-share a, .ba-share button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-content: center; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: #fff; cursor: pointer; transition: background .3s, border-color .3s, transform .3s; }
.ba-share a:hover, .ba-share button:hover { background: rgba(212, 175, 55, .16); border-color: var(--bl-gold); transform: translateY(-2px); }
.ba-share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ba-share .is-copied { background: var(--grad-gold); color: #0A0D0B; }

/* ---------- ARTICLE TYPOGRAPHY ---------- */
.ba-article { max-width: 780px; font-size: 17px; line-height: 1.85; color: #C9CFC7; counter-reset: bah; }
.ba-article > * { margin-top: 0; }
.ba-article p { margin: 0 0 20px; }
.ba-article .ba-lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.75; color: #E6E9E4; }
.ba-article > p:first-child::first-letter { float: left; font-family: 'Fraunces', Georgia, serif; font-size: 4.1em; line-height: .82; margin: 8px 12px 0 0; color: var(--bl-gold); }
.ba-article h2 { position: relative; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2; letter-spacing: -.015em; color: #fff; margin: 48px 0 16px; padding-top: 22px; scroll-margin-top: 100px; }
.ba-article h2::before { content: ''; position: absolute; left: 0; top: 0; width: 48px; height: 2px; background: var(--grad-gold); }
.ba-article h3 { font-size: 19px; color: #fff; margin: 28px 0 8px; }
.ba-article a { color: var(--bl-gold); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s, color .3s; }
.ba-article a:hover { color: #FFE9A8; background-size: 0 1px; }
.ba-article strong { color: #fff; font-weight: 600; }
.ba-article ul { list-style: none; padding: 0; margin: 0 0 22px; }
.ba-article ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ba-article ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--grad-gold); border-radius: 1px; }
.ba-article ol:not(.ba-steps) { padding-left: 22px; margin: 0 0 22px; }
.ba-article ol:not(.ba-steps) li { margin-bottom: 10px; padding-left: 6px; }
.ba-article ol:not(.ba-steps) li::marker { color: var(--bl-gold); font-weight: 600; }
.ba-steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; }
.ba-steps li { position: relative; counter-increment: step; padding: 16px 18px 16px 66px; margin-bottom: 10px; border-radius: 16px; border: 1px solid var(--bl-line); background: rgba(255, 255, 255, .025); line-height: 1.65; transition: border-color .3s, background .3s; }
.ba-steps li:hover { border-color: rgba(212, 175, 55, .35); background: rgba(212, 175, 55, .04); }
.ba-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 15px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #0A0D0B; background: var(--grad-gold); }
.ba-article blockquote { position: relative; margin: 28px 0; padding: 22px 26px 22px 30px; border-radius: 18px; background: linear-gradient(135deg, rgba(212, 175, 55, .1), rgba(255, 255, 255, .02)); border: 1px solid rgba(212, 175, 55, .3); font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.55; color: #F2EEDD; }
.ba-article blockquote::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--grad-gold); }
.ba-keypoints { margin: 8px 0 30px; padding: 22px 24px; border-radius: 20px; border: 1px solid rgba(212, 175, 55, .35); background: radial-gradient(90% 90% at 100% 0%, rgba(212, 175, 55, .12), transparent 60%), rgba(255, 255, 255, .02); }
.ba-keypoints h3 { margin: 0 0 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--bl-gold); font-weight: 500; }
.ba-keypoints ul { margin: 0; }
.ba-keypoints li { font-size: 15.5px; line-height: 1.65; }
.ba-callout { margin: 24px 0; padding: 18px 22px; border-radius: 16px; border-left: 3px solid #4ADE9B; background: rgba(74, 222, 155, .06); font-size: 15.5px; line-height: 1.7; color: #D5DAD3; }
.ba-callout strong { color: #7FE9B8; }
.ba-note { font-size: 13.5px !important; color: var(--text-dim); margin-top: -8px !important; }
.ba-disclaimer { margin-top: 32px !important; padding-top: 18px; border-top: 1px solid var(--bl-line); font-size: 13.5px !important; line-height: 1.7; color: #8A938A; font-style: italic; }
.ba-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 20px; }
.ba-two-col > div { padding: 18px 20px 6px; border-radius: 16px; border: 1px solid var(--bl-line); background: rgba(255, 255, 255, .025); }
.ba-two-col h3 { margin: 0 0 10px; font-size: 16px; }
.ba-two-col li { font-size: 15px; margin-bottom: 8px; }
.ba-table-wrap { margin: 0 0 24px; overflow-x: auto; border-radius: 16px; border: 1px solid var(--bl-line); }
.ba-article table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.ba-article th { text-align: left; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--bl-gold); background: rgba(212, 175, 55, .08); padding: 13px 16px; font-weight: 600; }
.ba-article td { padding: 12px 16px; border-top: 1px solid var(--bl-line); color: #E2E6E0; }
.ba-article tbody tr { transition: background .25s; }
.ba-article tbody tr:hover { background: rgba(255, 255, 255, .03); }
.ba-article tr.is-total td { font-weight: 600; color: #fff; background: rgba(212, 175, 55, .08); }

/* End cards */
.ba-endcard { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; padding: 22px 24px; border-radius: 22px; border: 1px solid var(--bl-line); background: linear-gradient(135deg, rgba(212, 175, 55, .1), rgba(255, 255, 255, .02)); }
.ba-endcard-logo { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-content: center; background: #0D120E; border: 1px solid rgba(212, 175, 55, .4); }
.ba-endcard-logo img { width: 30px; height: 30px; object-fit: contain; }
.ba-endcard-text { flex: 1; min-width: 220px; }
.ba-endcard-text strong { display: block; color: #fff; font-size: 16px; }
.ba-endcard-text span { font-size: 13.5px; color: var(--text-dim); }
.ba-endcard .btn { flex: none; }

/* Related */
.ba-related { padding: clamp(40px, 4.4vw, 64px) 0; background: linear-gradient(180deg, #0C110D, #0A0D0B); }
.ba-related .bl-lib-head { margin-bottom: 24px; }

@media (max-width: 1100px) {
    .ba-layout { grid-template-columns: 1fr; }
    .ba-aside { position: relative; top: 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
    .ba-share { margin-top: 0; }
    .ba-article { max-width: none; }
}
@media (max-width: 760px) {
    .ba-aside { grid-template-columns: 1fr; }
    .ba-toc ol { display: none; }
    .ba-toc.is-open ol { display: block; }
    .ba-toc-head { margin: 0; cursor: pointer; }
    .ba-toc-head h2::after { content: ' \25BE'; }
    .ba-toc.is-open .ba-toc-head { margin-bottom: 12px; }
    .ba-article { font-size: 16px; }
    .ba-two-col { grid-template-columns: 1fr; }
    .ba-hero { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
    .ba-cover img, .ba-hero-inner > *, .ba-title em { animation: none !important; opacity: 1 !important; }
    .ba-hero-inner > * { transform: none !important; }
}

/* Keep every column inside the viewport (wide tables scroll inside their own wrapper) */
.ba-layout > * { min-width: 0; }
@media (max-width: 1100px) { .ba-layout { grid-template-columns: minmax(0, 1fr); } .ba-aside > * { min-width: 0; } }
.ba-article table { min-width: 0; }
@media (max-width: 520px) {
    .ba-article table { font-size: 13.5px; }
    .ba-article th, .ba-article td { padding: 10px 10px; }
    .ba-article th { font-size: 10.5px; letter-spacing: .08em; }
}
