/* ============================================================
   CorfuDiscovery - blog / journal styles
   (index + single article). Loads after styles.css + pages.css.
   ============================================================ */

.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pills a {
  padding: 9px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--line-strong); color: var(--body); transition: .15s; white-space: nowrap;
}
.cat-pills a:hover { border-color: var(--coral); color: var(--coral); }
.cat-pills a.on { background: var(--coral); border-color: var(--coral); color: #fff; }

.feat-post { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.feat-post .media { position: relative; min-height: 380px; overflow: hidden; }
.feat-post .media img, .feat-post .media .ph { width: 100%; height: 100%; object-fit: cover; }
.feat-post .media img { transition: transform .5s; }
.feat-post:hover .media img { transform: scale(1.04); }
.feat-post .media .tagline { position: absolute; top: 18px; left: 18px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--pill); }
.feat-post .body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feat-post .eyebrow { margin-bottom: 16px; }
.feat-post h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.feat-post p { color: var(--body); font-size: 17px; margin-top: 16px; }
.feat-post .pmeta { display: flex; align-items: center; gap: 16px; margin-top: 22px; font-size: 14px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.feat-post .pmeta .who { display: flex; align-items: center; gap: 10px; }
.feat-post .pmeta .av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.feat-post .pmeta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.feat-post .link-arrow { margin-top: 26px; }
@media (max-width: 860px){ .feat-post { grid-template-columns: 1fr; } .feat-post .media { min-height: 240px; } }

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (min-width: 1500px){ .journal-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px){ .journal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .journal-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.jcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: .26s; }
.jcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.jcard .media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.jcard .media img, .jcard .media .ph { width: 100%; height: 100%; object-fit: cover; }
.jcard .media img { transition: transform .5s; }
.jcard:hover .media img { transform: scale(1.05); }
.jcard .ptag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.94); color: var(--coral-deep); padding: 6px 12px; border-radius: var(--pill); box-shadow: var(--shadow-sm); }
.jcard .ptag.spons { background: rgba(15,42,59,.86); color: #fff; }
.jcard .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.jcard .date { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.jcard .date svg { width: 14px; height: 14px; }
.jcard h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.15; margin-top: 10px; letter-spacing: -.01em; }
.jcard p { font-size: 14.5px; color: var(--body); margin-top: 10px; flex: 1; }
.jcard .read { margin-top: 16px; }

.article-hero {
  position: relative;
  color: #fff;
  min-height: clamp(300px, 38vw, 500px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--navy);
  overflow: hidden;
}
.article-hero .cph { position: absolute; inset: 0; z-index: 0; }
.article-hero .cph img,
.article-hero .cph .ph,
.article-hero .cph picture,
.article-hero .cph .cdf-branded-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-hero .cph img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .cph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,30,43,.72) 0%, rgba(10,30,43,.58) 42%, rgba(10,30,43,.93) 100%);
}
.article-hero::after { content: none; }
.article-hero .inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(36px, 5vw, 60px);
}
.article-hero .crumb,
.article-hero .crumb a { color: rgba(255,255,255,.92); }
.article-hero .crumb a:hover { color: #fff; }
.article-hero .crumb .here { color: #fff; font-weight: 600; }
.article-hero .crumb svg { width: 14px; height: 14px; opacity: .82; flex-shrink: 0; }
.article-hero .ptag-row { display: flex; gap: 10px; margin-top: 20px; }
.article-hero .ptag { background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--pill); }
.article-hero h1 {
  color: #fff;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.022em;
  margin-top: 18px;
  text-wrap: balance;
  max-width: 20ch;
  text-shadow: 0 2px 28px rgba(10,30,43,.28);
}
.article-hero .standfirst { font-size: clamp(17px, 2vw, 21px); margin-top: 18px; color: rgba(255,255,255,.96); max-width: 60ch; }
.article-hero .ameta { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; color: #fff; }
.article-hero .ameta .who { display: flex; align-items: center; gap: 11px; color: #fff; }
.article-hero .ameta .av { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45); display: grid; place-items: center; font-weight: 700; color: #fff; }
.article-hero .ameta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.72); }
.article-hero .ameta .sub { color: rgba(255,255,255,.9); font-weight: 500; }

.cdf-listing-article .article-hero .cph::after {
  background: linear-gradient(180deg, rgba(10,30,43,.78) 0%, rgba(10,30,43,.64) 45%, rgba(10,30,43,.95) 100%);
}

.article-wrap { max-width: 860px; margin-inline: auto; }
.article-layout { display: grid; grid-template-columns: 56px 1fr; gap: 32px; align-items: start; }
@media (max-width: 720px){ .article-layout { grid-template-columns: 1fr; gap: 0; } }

.share-rail { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 10px; }
.share-rail .lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; margin: 0 auto 6px; }
.share-rail a, .share-rail button { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--body); transition: .18s; background:#fff; }
.share-rail a:hover, .share-rail button:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-soft); }
.share-rail svg { width: 19px; height: 19px; }
@media (max-width: 720px){
  .share-rail { position: static; flex-direction: row; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .share-rail .lbl { writing-mode: horizontal-tb; align-self: center; margin: 0 6px 0 0; }
}

.prose { font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose > p { margin-bottom: 24px; color: #2e3a44; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.015em; line-height: 1.12; margin: 44px 0 16px; }
.prose h3 { font-size: 21px; font-weight: 700; margin: 32px 0 12px; letter-spacing: -.01em; }
.prose a:not(.btn) { color: var(--coral-deep); font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral-soft-2); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: var(--coral); }
.prose ul, .prose ol { list-style: none; margin: 0 0 24px; padding-left: 4px; display: flex; flex-direction: column; gap: 12px; }
.prose li { position: relative; padding-left: 32px; color: #2e3a44; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-deep); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.prose strong { font-weight: 700; }
.prose figure { margin: 32px 0; }
.prose figure .ph, .prose figure img { width: 100%; border-radius: var(--r); aspect-ratio: 16/9; object-fit: cover; }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; font-style: italic; }
.prose blockquote { margin: 32px 0; padding: 6px 0 6px 28px; border-left: 4px solid var(--coral); font-family: var(--serif); font-size: clamp(21px, 2.6vw, 27px); line-height: 1.4; font-style: italic; color: var(--navy); }
.prose blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 12px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.015em; line-height: 1.14; margin: 0 0 20px; color: var(--navy); }

.cdf-listing-article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px 10px 14px;
  border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: .18s;
  box-shadow: 0 2px 18px rgba(10,30,43,.22);
}
.cdf-listing-article-back:hover {
  background: rgba(255,255,255,.32);
  border-color: rgba(255,255,255,.65);
  color: #fff;
}
.cdf-listing-article-back svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  flex-shrink: 0;
}
.cdf-listing-article .prose .listing-article-back-button,
.cdf-listing-article .prose .about-author { display: none !important; }

/* Live/production alias classes (la-header mirrors article-hero markup). */
.cdf-listing-article .la-header { position: relative; color: #fff; min-height: clamp(300px, 38vw, 500px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy); overflow: hidden; }
.cdf-listing-article .la-header__media { position: absolute; inset: 0; z-index: 0; }
.cdf-listing-article .la-header__media img,
.cdf-listing-article .la-header__media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdf-listing-article .la-header__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,30,43,.78) 0%, rgba(10,30,43,.64) 45%, rgba(10,30,43,.95) 100%); }
.cdf-listing-article .la-header__copy { position: relative; z-index: 2; width: 100%; max-width: 860px; margin-inline: auto; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(36px, 5vw, 60px); }
.cdf-listing-article .la-header .crumb,
.cdf-listing-article .la-header .crumb a { color: rgba(255,255,255,.92); }
.cdf-listing-article .la-header .crumb a:hover { color: #fff; }
.cdf-listing-article .la-header .crumb .here { color: #fff; font-weight: 600; }
.cdf-listing-article .la-header .crumb svg { opacity: .82; }
.cdf-listing-article .la-header h1 { color: #fff; text-shadow: 0 2px 28px rgba(10,30,43,.28); }
.cdf-listing-article .la-header__lead { color: rgba(255,255,255,.96); font-size: clamp(17px, 2vw, 21px); margin-top: 18px; max-width: 60ch; }
.cdf-listing-article .la-header__meta { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; color: #fff; }
.cdf-listing-article .la-header__meta .sub { color: rgba(255,255,255,.9); }
.cdf-listing-article .la-header__back {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 10px 16px 10px 14px; border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,.48); background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 2px 18px rgba(10,30,43,.22); transition: .18s;
}
.cdf-listing-article .la-header__back:hover { background: rgba(255,255,255,.32); border-color: rgba(255,255,255,.65); color: #fff; }
.cdf-listing-article .la-header__back svg { width: 16px; height: 16px; transform: rotate(180deg); flex-shrink: 0; }

.callout { display: flex; gap: 16px; padding: 22px 24px; background: var(--coral-soft); border-radius: var(--r); margin: 32px 0; }
.callout .ci { width: 44px; height: 44px; border-radius: 11px; background: var(--coral); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.callout .ci svg { width: 22px; height: 22px; }
.callout h4 { font-size: 16px; font-weight: 700; color: var(--coral-ink); }
.callout p { font-size: 15px; color: #6b3a2e; margin-top: 4px; line-height: 1.6; }

.article-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-tags a { font-size: 13.5px; font-weight: 600; color: var(--body); background: var(--sand-2); padding: 7px 14px; border-radius: var(--pill); transition: .15s; }
.article-tags a:hover { background: var(--coral-soft); color: var(--coral-deep); }

.author-box {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px 28px;
  align-items: center;
  margin-top: 44px;
  padding: clamp(24px, 3.2vw, 34px);
  background:
    linear-gradient(135deg, rgba(252,235,229,.55) 0%, rgba(255,255,255,.98) 38%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.author-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%);
}
.author-box__mark {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  color: var(--coral);
  display: grid;
  place-items: center;
  opacity: .85;
}
.author-box__mark svg { width: 18px; height: 18px; }
.author-box__avatar { position: relative; flex-shrink: 0; }
.author-box__photo,
.author-box__initials {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
}
.author-box__photo {
  object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line-strong), var(--shadow);
}
.author-box__initials {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line-strong), var(--shadow);
}
.author-box__content { min-width: 0; padding-right: 36px; }
.author-box__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.author-box__eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--coral);
}
.author-box__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-top: 10px;
  color: var(--navy);
}
.author-box__bio {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
  margin-top: 10px;
  max-width: 52ch;
}
.author-box__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--coral-deep);
  transition: color .15s, gap .15s;
}
.author-box__more:hover { color: var(--coral); gap: 12px; }
.author-box__more svg { width: 16px; height: 16px; }
@media (max-width: 640px){
  .author-box {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
    padding-top: 28px;
  }
  .author-box__avatar { justify-self: center; }
  .author-box__content { padding-right: 0; }
  .author-box__eyebrow { justify-content: center; }
  .author-box__bio { margin-inline: auto; }
  .author-box__more { justify-content: center; }
  .author-box__mark { top: 14px; right: 14px; }
}

.news-band { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); text-align: center; }
.news-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; }
.news-band p { color: #b9c7d0; margin-top: 12px; font-size: 17px; max-width: 46ch; margin-inline: auto; }
.news-band form { display: flex; gap: 10px; max-width: 480px; margin: 26px auto 0; }
.news-band input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--pill); padding: 14px 20px; color: #fff; font-size: 15px; }
.news-band input::placeholder { color: #7d8d98; }
.news-band .note { font-size: 13px; color: #8499a6; margin-top: 14px; }
@media (max-width: 540px){ .news-band form { flex-direction: column; } .news-band .btn { width: 100%; } }

.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--coral); width: 0; z-index: 80; transition: width .1s linear; }

/* Author archive — profile sidebar + journal/listings */
.author-page__layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}
@media (max-width: 980px) {
  .author-page__layout { grid-template-columns: 1fr; }
}
.author-panel { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 980px) { .author-panel { position: static; } }
.author-panel__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 28px);
}
.author-panel__head { text-align: center; }
.author-panel__avatar { position: relative; width: 112px; margin: 0 auto 16px; }
.author-panel__avatar .author-box__photo,
.author-panel__avatar .author-box__initials { width: 112px; height: 112px; font-size: 34px; }
.author-panel__verified {
  position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.author-panel__verified svg { width: 14px; height: 14px; }
.author-panel__name {
  font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -.02em; line-height: 1.1;
}
.author-panel__rating {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 14px; font-weight: 700; color: var(--body);
}
.author-panel__rating svg { width: 16px; height: 16px; color: #f5a623; }
.author-panel__since { margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.author-panel__actions { display: grid; gap: 10px; margin-top: 20px; }
.author-panel__actions .btn { width: 100%; justify-content: center; }
.author-panel__block { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.author-panel__block h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.author-panel__list,
.author-panel__social { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.author-panel__list a,
.author-panel__social a { color: var(--body); font-weight: 600; }
.author-panel__list a:hover,
.author-panel__social a:hover { color: var(--coral); }
.author-panel__locked { font-size: 14px; color: var(--muted); }
.author-panel__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.author-panel__stat {
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 12px; text-align: center;
}
.author-panel__stat-value {
  display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1;
  color: var(--navy);
}
.author-panel__stat-label {
  display: block; margin-top: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.author-page__main { display: grid; gap: clamp(36px, 5vw, 56px); min-width: 0; }
.author-section--listings .results { margin-top: 0; }
.author-about { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 68ch; }
.author-about p + p { margin-top: 1em; }
.author-empty { color: var(--muted); font-size: 16px; }
