/* lebanon.html · magazine long-form: a centred cover with a parallax cover photo, then the article beside a sticky
   table of contents (scroll-spy + a reading-progress rail; on phones a sticky "now reading" bar), big pull quotes,
   parallax photo breaks, a "four ways to get paid" sidebar, a menu-style price list and related posts. */

/* cover */
.cover { padding: 120px 0 0; text-align: center; background: linear-gradient(180deg, var(--teal-soft), #fff 46%); }
.cover__k { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.cover__k span { width: 26px; height: 2px; background: var(--teal-m); }
.cover__title { max-width: 15ch; margin: 18px auto 0; font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6.2vw, 94px); line-height: .94; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.cover__title em { font-style: normal; color: var(--teal-m); }
.cover__dek { max-width: 40em; margin: 22px auto 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text); text-wrap: pretty; }
.cover__by { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 700; font-size: 14px; color: var(--muted); }
.cover__by img { width: 28px; height: 28px; border-radius: 8px; }
.cover__by span { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* photo breaks with parallax: the frame clips, the taller picture drifts inside it */
.brk { margin: 0; }
.brk__f { position: relative; height: clamp(240px, 36vw, 470px); border-radius: 26px; overflow: hidden; background: var(--paper-2); }
.brk__f img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; will-change: transform; }
.brk figcaption { padding: 14px 4px 0; max-width: 60ch; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.brk--cover { margin-top: 40px; }
.brk--cover .brk__f { height: clamp(260px, 40vw, 520px); }

/* reading layout */
.read { padding: clamp(56px, 6vw, 96px) 0 clamp(56px, 6vw, 96px); }
.read__in { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .read__in { grid-template-columns: 236px minmax(0, 1fr); gap: 56px; } }
@media (min-width: 1300px) { .read__in { grid-template-columns: 260px minmax(0, 1fr); gap: 80px; } }

/* toc */
.toc { position: sticky; top: 84px; z-index: 6; min-width: 0; }
.read__in > * { min-width: 0; }
.toc__desk { display: none; }
@media (min-width: 1000px) { .toc { top: 104px; } .toc__desk { display: block; } .toc__phone { display: none; } }
.toc__h { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc__wrap { position: relative; margin-top: 14px; padding-inline-start: 18px; }
.toc__rail { position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.toc__rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--teal-m), var(--teal)); transform-origin: 50% 0; transform: scaleY(0); }
.toc__list { display: grid; gap: 2px; counter-reset: t; }
.toc__list li { counter-increment: t; }
.toc__list a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14.5px; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.toc__list a::before { content: counter(t); flex: none; width: 18px; font-family: var(--display); font-size: 13px; color: var(--faint); }
.toc__list a:hover { color: var(--ink); background: var(--paper); }
.toc__list a[aria-current="true"] { color: var(--ink); font-weight: 700; background: var(--teal-soft); }
.toc__list a[aria-current="true"]::before { color: var(--teal); }
.toc__phone { border-radius: 16px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 24px -14px rgba(3, 21, 20, .45), inset 0 0 0 1px var(--line); }
.toc__phone summary { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 44px 0 16px; list-style: none; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink); overflow: hidden; }
.toc__phone summary::-webkit-details-marker { display: none; }
.toc__phone summary::before { content: "Reading"; font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.toc__phone summary::after { content: ""; position: absolute; right: 18px; top: 18px; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.toc__phone[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.toc__now { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--paper-2); }
.toc__bar i { position: absolute; inset: 0; background: var(--teal-m); transform-origin: 0 50%; transform: scaleX(0); }
.toc__list--phone { padding: 6px 8px 10px; }

/* the article */
.art { min-width: 0; display: grid; gap: clamp(40px, 5vw, 64px); }
.ch { max-width: 700px; }
.ch__h { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.04; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.ch__n { flex: none; font-size: .62em; color: var(--teal-m); }
.ch p { margin-top: 18px; font-size: 19px; line-height: 1.72; color: var(--text); text-wrap: pretty; }
.ch p a { color: var(--teal); font-weight: 700; }
.ch__lede::first-letter { float: left; margin: 6px 12px 0 0; font-family: var(--display); font-weight: 700; font-size: 74px; line-height: .8; color: var(--teal); }
.ch__list { display: grid; gap: 10px; margin-top: 20px; }
.ch__list li { padding: 12px 16px; border-radius: 0 14px 14px 0; background: var(--cs); box-shadow: inset 4px 0 0 var(--c); font-size: 17px; line-height: 1.5; color: var(--text); }
.ch__list b { color: var(--cd); }
.ch__sign { font-family: var(--display); font-weight: 700; font-size: 17px !important; color: var(--muted) !important; }

/* pull quotes */
.pq { position: relative; margin: 0; padding: 8px 0 0 clamp(18px, 6vw, 96px); max-width: 980px; }
.pq--r { margin-inline-start: auto; padding-inline-start: 0; padding-inline-end: clamp(0px, 4vw, 40px); text-align: end; }
.pq p { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 54px); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.pq__mark { position: absolute; left: clamp(-10px, 1vw, 20px); top: -34px; font-family: var(--display); font-size: clamp(110px, 12vw, 170px); line-height: 1; color: var(--c); }
.pq--r .pq__mark { left: auto; right: 0; top: -60px; }
.pq__rule { display: block; width: 120px; height: 6px; margin-top: 20px; border-radius: 3px; background: var(--c); transform-origin: 0 50%; }
.pq--r .pq__rule { margin-inline-start: auto; transform-origin: 100% 50%; }
.js .pq .pq__mark { opacity: 0; transform: translateY(30px) rotate(-18deg) scale(.7); transition: opacity .6s, transform 1s var(--spring); }
.js .pq p { opacity: 0; transform: translateY(18px); transition: opacity .7s .15s, transform 1s .15s var(--spring); }
.js .pq .pq__rule { transform: scaleX(0); transition: transform .9s .35s var(--spring); }
.js .pq.is-in .pq__mark { opacity: .9; transform: none; }
.js .pq.is-in p { opacity: 1; transform: none; }
.js .pq.is-in .pq__rule { transform: none; }

/* fields */
.fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fields a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--cs); color: var(--cd); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: transform .35s var(--spring); }
.fields a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.fields a:hover { transform: translateY(-2px); }

/* four ways sidebar */
.ways { margin-top: 26px; padding: 22px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ways__t { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.015em; color: var(--ink); }
.ways__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ways__list li { display: grid; align-content: start; gap: 4px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 3px 0 var(--c); }
.ways__list img, .ways__bank { width: 40px; height: 40px; border-radius: 11px; }
.ways__bank { display: grid; place-items: center; background: var(--cs); color: var(--cd); }
.ways__bank svg { width: 24px; height: 24px; }
.ways__list b { margin-top: 6px; font-size: 16px; color: var(--ink); }
.ways__list span:not(.ways__bank) { font-size: 14px; line-height: 1.45; color: var(--text); }
.ways__foot { margin-top: 14px !important; font-size: 14.5px !important; line-height: 1.5 !important; color: var(--muted) !important; }
@media (max-width: 599px) { .ways__list { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; gap: 16px; margin-top: 20px; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding-inline-start: 58px; font-size: 18px; line-height: 1.6; color: var(--text); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--display); font-size: 19px; }
.steps b { display: block; color: var(--ink); }
.ch .link { margin-top: 14px; color: var(--teal); }

/* after the article */
.after { padding: clamp(40px, 5vw, 72px) 0 clamp(80px, 9vw, 130px); border-top: 1px solid var(--line); }
.after__grid { display: grid; gap: 44px; }
@media (min-width: 1000px) { .after__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.after__h { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -.025em; color: var(--ink); }
.pop__list { display: grid; gap: 8px; margin: 18px 0 10px; }
.pop__list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 16.5px; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .35s var(--spring); }
.pop__list a::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px var(--cs); }
.pop__list a:hover { box-shadow: inset 0 0 0 1.5px var(--c); transform: translateX(4px); }
.pop .link { color: var(--teal); }
.menu__list { margin: 18px 0 14px; }
.menu__list li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; font-size: 16.5px; color: var(--ink); }
.menu__w { display: inline-flex; align-items: baseline; gap: 10px; }
.menu__w::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); transform: translateY(-1px); }
.menu__list i { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--line-2); transform-origin: 0 50%; }
.js .menu__list i { transform: scaleX(0); transition: transform .8s var(--spring); transition-delay: calc(var(--i, 0) * 70ms); }
.js .menu.is-in .menu__list i { transform: none; }
.menu__p { flex: none; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.menu__p b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.menu .caption a { color: var(--teal); font-weight: 700; }
@media (max-width: 599px) { .menu__list li { flex-wrap: wrap; } .menu__list i { display: none; } .menu__p { margin-inline-start: auto; } }

.rel { margin-top: clamp(56px, 6vw, 88px); }
.rel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.rel__head .link { color: var(--teal); }
.rel__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.rel__list a { display: grid; gap: 8px; height: 100%; padding-bottom: 6px; color: var(--ink); text-decoration: none; }
.rel__art { position: relative; display: block; height: 130px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--cs), color-mix(in srgb, var(--c) 55%, #fff)); }
.rel__art i { position: absolute; border-radius: 50%; background: var(--c); opacity: .5; transition: transform .6s var(--spring); }
.rel__art i:nth-child(1) { width: 120px; height: 120px; right: -30px; top: -40px; }
.rel__art i:nth-child(2) { width: 60px; height: 60px; left: 22px; bottom: -18px; background: var(--cd); opacity: .35; }
.rel__list a:hover .rel__art i:nth-child(1) { transform: translate(-16px, 14px) scale(1.1); }
.rel__list small { font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cd); }
.rel__list b { font-family: var(--display); font-size: 20px; line-height: 1.12; letter-spacing: -.015em; }

/* close band */
.lbc { padding: clamp(64px, 8vw, 112px) 0; }
.lbc__in { display: grid; gap: 26px; align-items: end; }
.lbc__title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; color: #fff; }
.lbc__lead { margin-top: 12px; max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, .88); }
.lbc__cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) { .lbc__in { grid-template-columns: minmax(0, 1.4fr) auto; } }

@media (max-width: 599px) {
  .cover { padding-top: 100px; }
  .ch p { font-size: 17.5px; }
  .pq { padding-inline-start: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pq .pq__mark, .js .pq p, .js .pq .pq__rule { opacity: 1; transform: none; }
  .js .pq .pq__mark { opacity: .9; }
  .js .menu__list i { transform: none; }
}
@media (max-width: 999px) { .ch, .art .brk, .pq { scroll-margin-top: 150px; } }

/* phone pass: the big quote mark sits above the pull quote instead of over its first letters */
@media (max-width: 767px) {
  .pq:not(.pq--r) { padding-top: 52px; }
}
