/* =========================================================
   MEKONG BRIDGE ADVISORY — JOURNAL
   Layered on top of style.css. Inherits the brand tokens,
   type scale and nav; adds only what the blog needs.
   ========================================================= */

/* ---------- shared page shell ---------- */
.jr-page{background:var(--white);}
.jr-page .nav{position:fixed;}

/* ---------- masthead ---------- */
.jr-mast{
  position:relative;
  padding:clamp(180px,22vh,260px) 0 clamp(3rem,7vh,5rem);
  background:var(--white);
  overflow:hidden;
}
.jr-mast::after{
  content:'';
  position:absolute;
  right:-10%;top:-40%;
  width:min(900px,80%);aspect-ratio:1.4/1;
  background:radial-gradient(ellipse at center, rgba(76,120,168,0.16) 0%, rgba(76,120,168,0.05) 42%, transparent 72%);
  filter:blur(40px);
  pointer-events:none;
}
.jr-mast .wrap{position:relative;z-index:2;}
.jr-mast h1{
  font-size:clamp(2.1rem,5.2vw,3.6rem);
  line-height:1.06;
  letter-spacing:-0.035em;
  color:var(--navy);
  max-width:16ch;
  margin-top:1.1rem;
}
.jr-mast p{
  margin-top:1.4rem;
  max-width:62ch;
  font-size:clamp(1rem,1.9vw,1.12rem);
  line-height:1.65;
  color:var(--blue-grey);
}

/* ---------- filters ---------- */
.jr-filters{
  display:flex;flex-wrap:wrap;gap:0.6rem;
  margin-top:clamp(2rem,5vh,3rem);
  padding-bottom:clamp(1.5rem,4vh,2.5rem);
}
.jr-chip{
  display:inline-flex;align-items:center;gap:0.55rem;
  padding:0.6rem 1.1rem;
  border:1px solid #E1E5EA;
  border-radius:999px;
  background:var(--white);
  font-family:inherit;font-size:0.84rem;font-weight:600;
  color:var(--blue-grey);
  cursor:pointer;
  transition:border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.jr-chip span{
  font-size:0.72rem;font-weight:700;
  color:#9AA5B1;
  transition:color .3s var(--ease);
}
.jr-chip:hover{border-color:#C7D0DA;transform:translateY(-1px);}
.jr-chip.is-active{
  background:var(--navy);border-color:var(--navy);color:var(--bone);
}
.jr-chip.is-active span{color:rgba(245,241,232,0.55);}
.jr-chip:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}

/* ---------- the index list ---------- */
.jr-list{list-style:none;border-top:1px solid #E6EAEE;}
.jr-row{
  border-bottom:1px solid #E6EAEE;
  transition:opacity .45s var(--ease), transform .45s var(--ease);
}
.jr-row.is-filtered{display:none;}
.jr-row a{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(1rem,3vw,2.5rem);
  padding:clamp(1.5rem,3.4vh,2.3rem) 0;
  transition:padding .45s var(--ease);
}
.jr-idx{
  font-size:0.74rem;font-weight:700;
  letter-spacing:0.1em;
  color:#B6BFC9;
  font-variant-numeric:tabular-nums;
  transition:color .35s var(--ease);
}
.jr-title{
  font-size:clamp(1.15rem,2.5vw,1.85rem);
  font-weight:600;
  line-height:1.22;
  letter-spacing:-0.025em;
  color:var(--navy);
  transition:color .35s var(--ease), transform .5s var(--ease);
}
.jr-meta{
  display:flex;align-items:center;gap:clamp(0.7rem,1.6vw,1.4rem);
  white-space:nowrap;
  font-size:0.78rem;
  color:var(--blue-grey);
}
.jr-cat{
  font-weight:600;
  color:var(--accent);
  font-size:0.72rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.jr-dot{width:3px;height:3px;border-radius:50%;background:#C7D0DA;}
.jr-time{font-variant-numeric:tabular-nums;}
.jr-arrow{
  width:34px;height:34px;flex-shrink:0;
  border-radius:50%;
  border:1px solid #E1E5EA;
  display:flex;align-items:center;justify-content:center;
  color:var(--blue-grey);
  transition:background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease);
}
.jr-arrow svg{width:14px;height:14px;}

/* the hover state: focused row lifts, its siblings recede */
@media (hover:hover) and (min-width:861px){
  .jr-list.is-hovering .jr-row{opacity:0.34;}
  .jr-list.is-hovering .jr-row:hover{opacity:1;}
  .jr-row:hover a{padding-left:clamp(0.5rem,1.6vw,1.4rem);}
  .jr-row:hover .jr-title{color:var(--accent);}
  .jr-row:hover .jr-idx{color:var(--accent);}
  .jr-row:hover .jr-arrow{
    background:var(--accent);border-color:var(--accent);color:#fff;
    transform:rotate(-45deg);
  }
}
.jr-row a:focus-visible{outline:2px solid var(--accent);outline-offset:-4px;border-radius:8px;}

/* ---------- cursor-following preview ---------- */
.jr-preview{
  position:fixed;
  top:0;left:0;
  width:clamp(260px,22vw,340px);
  aspect-ratio:16/9;
  border-radius:12px;
  overflow:hidden;
  pointer-events:none;
  opacity:0;
  z-index:60;
  transform:translate3d(-50%,-50%,0) scale(.9) rotate(-3deg);
  transition:opacity .4s var(--ease), transform .5s cubic-bezier(.19,1,.22,1);
  box-shadow:0 30px 70px rgba(16,29,45,0.28);
  will-change:transform;
}
.jr-preview.is-on{opacity:1;transform:translate3d(-50%,-50%,0) scale(1) rotate(0deg);}
.jr-preview img{width:100%;height:100%;object-fit:cover;display:block;}
@media (hover:none),(max-width:860px){ .jr-preview{display:none;} }

.jr-empty{
  padding:4rem 0;
  text-align:center;
  color:var(--blue-grey);
  font-size:0.95rem;
  display:none;
}
.jr-empty.is-on{display:block;}

.jr-tail{
  padding:clamp(3rem,7vh,5rem) 0 clamp(4rem,10vh,7rem);
  text-align:center;
  color:var(--blue-grey);
  font-size:0.88rem;
}
.jr-tail a{color:var(--accent);font-weight:600;}
.jr-tail a:hover{text-decoration:underline;}

/* =========================================================
   ARTICLE
   ========================================================= */
.jr-progress{
  position:fixed;top:0;left:0;
  height:2px;width:100%;
  transform:scaleX(0);transform-origin:0 50%;
  background:linear-gradient(90deg,var(--accent),#8FB2D9);
  z-index:120;
}

.art-head{
  padding:clamp(170px,20vh,240px) 0 0;
  background:var(--white);
}
.art-back{
  display:inline-flex;align-items:center;gap:0.5rem;
  font-size:0.82rem;font-weight:600;
  color:var(--blue-grey);
  transition:color .25s var(--ease), gap .25s var(--ease);
}
.art-back:hover{color:var(--accent);gap:0.75rem;}
.art-back svg{width:14px;height:14px;}

.art-meta{
  display:flex;align-items:center;flex-wrap:wrap;gap:0.9rem;
  margin-top:clamp(1.75rem,4vh,2.5rem);
  font-size:0.78rem;color:var(--blue-grey);
}
.art-head h1{
  margin-top:1.1rem;
  font-size:clamp(1.9rem,4.4vw,3.1rem);
  line-height:1.1;
  letter-spacing:-0.035em;
  color:var(--navy);
  max-width:20ch;
}
.art-stand{
  margin-top:1.35rem;
  max-width:60ch;
  font-size:clamp(1.02rem,2vw,1.18rem);
  line-height:1.6;
  color:var(--blue-grey);
}

.art-author{
  display:flex;align-items:center;gap:0.85rem;
  margin-top:clamp(2rem,4.5vh,2.75rem);
  padding-top:clamp(1.5rem,3vh,2rem);
  border-top:1px solid #E6EAEE;
  max-width:60ch;
}
.art-author img{
  width:46px;height:46px;border-radius:50%;
  object-fit:cover;object-position:50% 20%;
  flex-shrink:0;
}
.art-author strong{display:block;font-size:0.92rem;color:var(--navy);font-weight:700;}
.art-author em{display:block;font-style:normal;font-size:0.79rem;color:var(--accent);margin-top:0.1rem;}

.art-hero{
  margin-top:clamp(2.5rem,6vh,4rem);
  border-radius:var(--r-card,14px);
  overflow:hidden;
  aspect-ratio:16/9;
  background:var(--light-grey);
}
.art-hero img{width:100%;height:100%;object-fit:cover;display:block;}

/* ---------- body ---------- */
.art-body{
  padding:clamp(2.5rem,6vh,4rem) 0 clamp(3rem,7vh,5rem);
  background:var(--white);
}
.art-body .wrap{max-width:820px;}
.art-body p{
  font-size:clamp(1rem,1.9vw,1.09rem);
  line-height:1.78;
  color:#33404F;
  margin-bottom:1.45rem;
}
.art-body h2{
  font-size:clamp(1.3rem,2.7vw,1.72rem);
  line-height:1.25;
  letter-spacing:-0.025em;
  color:var(--navy);
  margin:clamp(2.4rem,5vh,3.2rem) 0 1rem;
}
.art-body h3{
  font-size:clamp(1.08rem,2.2vw,1.28rem);
  color:var(--navy);
  margin:2rem 0 0.75rem;
  font-weight:600;
}
.art-body ul{list-style:none;margin:0 0 1.6rem;padding:0;}
.art-body li{
  position:relative;
  padding-left:1.6rem;
  margin-bottom:0.75rem;
  font-size:clamp(0.98rem,1.85vw,1.06rem);
  line-height:1.7;
  color:#33404F;
}
.art-body li::before{
  content:'';
  position:absolute;left:0.15rem;top:0.72em;
  width:6px;height:6px;border-radius:50%;
  background:var(--accent);
}
.art-body blockquote{
  margin:clamp(2rem,4vh,2.75rem) 0;
  padding:0 0 0 1.5rem;
  border-left:2px solid var(--accent);
  font-size:clamp(1.06rem,2.1vw,1.2rem);
  line-height:1.6;
  color:var(--navy);
  font-weight:500;
}
.art-body strong{color:var(--navy);font-weight:650;}

/* ---------- closing CTA ---------- */
.art-cta{
  position:relative;
  background:var(--navy);
  color:var(--bone);
  overflow:hidden;
  padding:clamp(3rem,8vh,5rem) 0;
}
.art-cta::before{
  content:'';
  position:absolute;left:50%;bottom:-60%;
  width:min(1100px,130%);aspect-ratio:2/1;
  transform:translateX(-50%);
  background:radial-gradient(ellipse at center, rgba(76,120,168,0.38) 0%, rgba(76,120,168,0.12) 38%, transparent 70%);
  filter:blur(30px);
  pointer-events:none;
}
.art-cta .wrap{position:relative;z-index:2;max-width:820px;}
.art-cta h2{
  font-size:clamp(1.4rem,2.9vw,2rem);
  line-height:1.2;
  letter-spacing:-0.025em;
  color:var(--bone);
  max-width:22ch;
}
.art-cta p{
  margin-top:0.9rem;
  color:rgba(245,241,232,0.62);
  font-size:1rem;
  max-width:52ch;
}
.art-cta .hero-cta{margin-top:1.75rem;}

/* ---------- related ---------- */
.art-rel{
  padding:clamp(3rem,7vh,5rem) 0 clamp(4rem,9vh,6rem);
  background:var(--light-grey);
}
.art-rel h2{
  font-family:var(--font-body);   /* a label, so Inter like the other small labels */
  font-size:0.74rem;letter-spacing:0.16em;text-transform:uppercase;
  color:var(--accent-small);font-weight:700;
  margin-bottom:clamp(1.5rem,3.5vh,2.25rem);
}
.art-rel-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1rem,2.4vw,1.75rem);
}
.rel-card{
  background:var(--white);
  border:1px solid #E6EAEE;
  border-radius:14px;
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.rel-card:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 40px rgba(16,29,45,0.12);
  border-color:rgba(76,120,168,0.32);
}
.rel-card-img{aspect-ratio:16/9;overflow:hidden;background:var(--light-grey);}
.rel-card-img img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .7s var(--ease);
}
.rel-card:hover .rel-card-img img{transform:scale(1.05);}
.rel-card-body{padding:1.1rem 1.15rem 1.3rem;display:flex;flex-direction:column;gap:0.5rem;flex:1;}
.rel-card-cat{
  font-size:0.68rem;font-weight:700;letter-spacing:0.09em;text-transform:uppercase;
  color:var(--accent);
}
.rel-card h3{
  font-size:0.98rem;line-height:1.35;font-weight:600;
  color:var(--navy);letter-spacing:-0.015em;
}
.rel-card time{font-size:0.74rem;color:var(--blue-grey);margin-top:auto;}

/* ---------- entrance ---------- */
.jr-in{opacity:0;transform:translateY(26px);transition:opacity .75s var(--ease), transform .85s cubic-bezier(.19,1,.22,1);}
.jr-in.is-visible{opacity:1;transform:translateY(0);}
.jr-list .jr-row:nth-child(1) {transition-delay:.02s;}
.jr-list .jr-row:nth-child(2) {transition-delay:.06s;}
.jr-list .jr-row:nth-child(3) {transition-delay:.10s;}
.jr-list .jr-row:nth-child(4) {transition-delay:.14s;}
.jr-list .jr-row:nth-child(5) {transition-delay:.18s;}
.jr-list .jr-row:nth-child(6) {transition-delay:.22s;}
.jr-list .jr-row:nth-child(7) {transition-delay:.26s;}
.jr-list .jr-row:nth-child(8) {transition-delay:.30s;}
.jr-list .jr-row:nth-child(9) {transition-delay:.34s;}
.jr-list .jr-row:nth-child(10){transition-delay:.38s;}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .art-rel-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .art-rel-grid .rel-card:nth-child(3){display:none;}
}
@media (max-width:860px){
  .jr-row a{
    grid-template-columns:auto minmax(0,1fr);
    grid-template-areas:"idx title" ". meta";
    row-gap:0.6rem;
  }
  .jr-idx{grid-area:idx;}
  .jr-title{grid-area:title;}
  .jr-meta{grid-area:meta;}
  .jr-arrow{display:none;}
}
@media (max-width:620px){
  .art-rel-grid{grid-template-columns:1fr;}
  .art-rel-grid .rel-card:nth-child(3){display:flex;}
  .jr-mast h1{max-width:none;}
}

@media (prefers-reduced-motion: reduce){
  .jr-in{opacity:1 !important;transform:none !important;transition:none !important;}
  .jr-preview{display:none !important;}
  .rel-card,.jr-row a,.jr-title,.jr-arrow{transition:none !important;}
}

/* ---- tables inside articles ------------------------------------------------
   Rebuilt from rows the Squarespace export had flattened into paragraphs
   ("Deloitte Issued a partial refund..."). On a phone each row stacks, with
   the column name above each value. */
.art-table{margin:1.6rem 0 2rem;overflow-x:auto;}
.art-table table{width:100%;border-collapse:collapse;font-size:0.95rem;line-height:1.55;}
.art-table th,.art-table td{padding:0.8rem 0.9rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);}
.art-table thead th{font-size:0.72rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;color:var(--slate);border-bottom-color:var(--rule);}
.art-table tbody th{font-weight:600;color:var(--ink);}
.art-table td{color:var(--ink-2);}
@media (max-width:600px){
  .art-table thead{display:none;}
  .art-table tr{display:block;padding:0.9rem 0;border-bottom:1px solid var(--line);}
  .art-table th,.art-table td{display:block;padding:0.15rem 0;border:0;}
  .art-table td::before{content:attr(data-label);display:block;margin-top:0.5rem;font-size:0.68rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;color:var(--slate);}
}

/* Mobile fix (2026-09-14): the read time wrapped under the date and left its
   dot dangling at the end of the first line; give it its own line instead */
@media (max-width:600px){
  .art-meta > .jr-dot:nth-last-child(2){display:none;}
  .art-meta > :last-child{flex-basis:100%;margin-top:-0.35rem;}
}

/* Numbered lists: the blue number replaces the bullet dot. */
.art-body ol{list-style:none;margin:0 0 1.6rem;padding:0;counter-reset:artol;}
.art-body ol > li{counter-increment:artol;}
.art-body ol > li::before{
  content:counter(artol) '.';
  top:0;left:0;width:auto;height:auto;border-radius:0;background:none;
  font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums;
}

/* Links inside article text (internal linking, 2026-10-09). The site resets
   every link to inherit its colour with no underline, which left in-text links
   indistinguishable from the words around them. Brand blue with a soft
   underline that firms up on hover. */
.art-body .art-wrap a{
  color:#4C78A8;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  text-decoration-color:rgba(76,120,168,0.45);
  transition:text-decoration-color .2s ease, color .2s ease;
}
.art-body .art-wrap a:hover,
.art-body .art-wrap a:focus-visible{color:#3A5F87;text-decoration-color:currentColor;}

/* Figures inside an article (infographics, diagrams). Distinct from the hero:
   they sit in the text column, the image is framed on its own, and the
   caption is always visible underneath, in smaller grey type, led by the
   figure number. */
.art-body .art-fig{margin:clamp(2rem,4.5vh,2.75rem) 0 clamp(2.2rem,5vh,3rem);}
.art-body .art-fig img{
  display:block;width:100%;height:auto;border-radius:12px;background:#0E1626;
  box-shadow:0 1px 2px rgba(28,36,54,0.06), 0 14px 34px -20px rgba(28,36,54,0.38);
}
.art-body .art-fig figcaption{
  margin-top:0.85rem;
  font-size:0.9rem;line-height:1.55;color:#5B6B7F;
}
.art-body .art-fig figcaption strong{color:#1C2436;font-weight:600;}
