/* =========================================================
   FRN Advisory, Laravel additions on top of styles.css:
   honeypot, image covers, insights listing/article pages.
   Uses only the design's tokens so every theme still applies.
   ========================================================= */

/* Enquiry form honeypot: off-screen, never shown to people */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Covers with an uploaded thumbnail ---------- */
.cover.has-img { background: var(--dark); }
.cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.icard:hover .cover.has-img img, .featured-post:hover .cover.has-img img { transform: scale(1.04); }
.cover.has-img .k {
  z-index: 1; padding: 6px 10px; border-radius: 999px; line-height: 1;
  background: color-mix(in srgb, var(--dark) 78%, transparent); color: var(--on-dark);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* long admin-entered marks must not overflow the typographic covers */
.cover .a { white-space: nowrap; }

/* ---------- Listing ---------- */
.page-hero .hl { color: var(--accent); }
a.filter-btn { display: inline-flex; align-items: center; }
.featured-post .meta.full { width: 100%; }
.featured-post .f-body p { max-width: 56ch; }
.empty-note { color: var(--ink-2); font-size: 1.05rem; }
.ins-pager { margin-top: clamp(36px, 5vw, 64px); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pager .pg {
  min-width: 44px; height: 44px; padding: 0 10px; display: inline-grid; place-items: center;
  border-radius: 999px; font-family: var(--font-label); font-size: .82rem; font-weight: 650;
  color: var(--ink-2); border: 1px solid transparent; transition: border-color .25s, color .25s;
}
.pager a.pg:hover { color: var(--ink); border-color: var(--line); }
.pager .pg[aria-current="page"] { background: var(--ink); color: var(--bg); }
.pager .pg.dots { min-width: 24px; }
.pager [aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* ---------- Article body typography ---------- */
.prose { font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.75; color: var(--ink); max-width: 72ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { line-height: 1.2; margin-top: 1.9em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.prose h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.prose h4, .prose h5, .prose h6 { font-size: 1.1rem; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose b, .prose strong { font-weight: 700; }
.prose mark { background: var(--accent-soft); color: inherit; padding: 0 .15em; border-radius: 3px; }
.prose code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .88em; padding: .1em .35em; border-radius: 6px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul.checklist .box { flex: none; width: 20px; height: 20px; margin-top: .3em; border-radius: 6px; border: 1.5px solid var(--line); }
.prose ul.checklist li.done .box { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); }
.prose blockquote {
  margin-block: 1.8em; padding: 6px 0 6px 24px; border-left: 3px solid var(--accent);
  font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; font-weight: 600;
}
.prose blockquote cite { display: block; margin-top: 12px; font-family: var(--font-label); font-size: .8rem; font-style: normal; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.prose figure { margin-block: 1.8em; }
.prose figure img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.prose figure.bordered img { border: 1px solid var(--line); }
.prose figure.backed { padding: clamp(16px, 3vw, 32px); background: var(--bg-alt); border-radius: var(--radius); }
.prose figure.backed img { max-width: 70%; margin-inline: auto; }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-2); text-align: center; }
.prose .embed-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--dark); }
.prose .embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose .callout { padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); }
.prose .callout.success { border-left-color: var(--accent-2-text); background: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.prose .callout.danger { border-left-color: #B42318; background: rgba(180, 35, 24, .07); }
.prose .callout.warning { border-left-color: #B54708; background: rgba(181, 71, 8, .08); }
.prose .callout.dark { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.prose hr { border: 0; text-align: center; margin-block: 2.2em; }
.prose hr::before { content: "\2022  \2022  \2022"; letter-spacing: .6em; color: var(--ink-2); }
.prose .spacer { height: 28px; }



/* =========================================================
   Article page, v2: banner hero, reading progress, contents
   card, share rail, author card, previous / next
   ========================================================= */

/* reading progress, pinned under the header */
.read-progress { position: fixed; z-index: 60; left: 0; right: 0; top: var(--header-h); height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); transform-origin: left; transform: scaleX(0); }

/* ---------- Hero ---------- */
.post-hero { padding-bottom: clamp(56px, 9vh, 104px); }
.post-hero .container { position: relative; z-index: 1; }
.post-hero h1 { max-width: 20ch; margin-top: 18px; font-size: clamp(2.2rem, min(5vw, 8.4vh), 4.4rem); line-height: 1.04; text-wrap: balance; }
.post-hero .lede { max-width: 58ch; margin-top: 22px; color: var(--on-dark-2); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ptag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px;
  font-family: var(--font-label); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--ink-2); background: color-mix(in srgb, var(--surface) 40%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .25s, color .25s;
}
a.ptag:hover { border-color: var(--accent); color: var(--ink); }
.ptag.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.post-byline { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.post-byline .av, .author-card .av {
  flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--dark)));
  color: var(--accent-ink); font-weight: 800; letter-spacing: .02em;
}
.post-byline .av { width: 48px; height: 48px; font-size: .95rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.post-byline .who { display: grid; gap: 2px; }
.post-byline b { font-weight: 650; }
.post-byline .who span { font-size: .88rem; color: var(--on-dark-2); }
.post-byline i { font-style: normal; margin-inline: 8px; opacity: .6; }

/* with a banner image: full-bleed photo under a navy wash, copy at the bottom */
.post-hero.has-banner { min-height: min(86vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; }
.post-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.post-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.post-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--dark) 96%, transparent) 0%, color-mix(in srgb, var(--dark) 72%, transparent) 38%, color-mix(in srgb, var(--dark) 20%, transparent) 75%, color-mix(in srgb, var(--dark) 35%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--dark) 70%, transparent), transparent 70%);
}
@keyframes heroZoom { to { transform: scale(1); } }

/* without a banner: copy left, the card's typographic cover as a floating artwork right */
.post-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.post-hero.no-banner .post-hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); }
.post-hero-art { position: relative; }
.post-hero-art::before {
  content: ""; position: absolute; inset: 12% -8% -10% 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); filter: blur(30px);
}
.post-hero-art .cover {
  aspect-ratio: 4 / 4.4; transform: rotate(2.5deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  border-color: color-mix(in srgb, var(--on-dark) 14%, transparent);
  /* covers are designed on light tokens; restore them inside the dark hero */
  --ink: #12324A; --surface: #FFFFFF; --line: #E3E8E7;
}
.post-hero-art .cover:not(.inv):not(.acc):not(.has-img) { background: #FFFFFF; color: #12324A; }
.post-hero-art .cover .a { font-size: clamp(7rem, 12vw, 11rem); }
.post-hero-art .cover.cv-2 .a { font-size: clamp(13rem, 22vw, 20rem); }

.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 22px; translate: -50% 0;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark); animation: cue 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 18px; height: 18px; }
.scroll-cue:hover { border-color: var(--accent); color: var(--accent); }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Body layout: contents · article · share rail ---------- */
.post-body { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); background: #FFFFFF; }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 52px; justify-content: center; column-gap: clamp(28px, 4vw, 64px); align-items: start; }
.post-layout.with-toc { grid-template-columns: 260px minmax(0, 720px) 52px; }
.post-main { min-width: 0; }

.post-toc { position: sticky; top: calc(var(--header-h) + 28px); }
.post-toc-card {
  position: relative; display: grid; gap: 14px; padding: 22px 22px 18px 26px;
  border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line);
}
.post-toc .toc a { border-top: 0; padding-block: 7px; font-size: .9rem; line-height: 1.35; min-height: 0; }
.post-toc .toc a .no { min-width: 20px; }
.post-toc .toc a.sub { padding-left: 18px; font-size: .84rem; }
.post-toc .toc a[aria-current="true"] { color: var(--ink); font-weight: 650; padding-left: 6px; }
.toc-meter { position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.toc-meter span { display: block; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.toc-left { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-label); font-size: .74rem; font-weight: 650; letter-spacing: .06em; color: var(--ink-2); }
.toc-left svg { width: 15px; height: 15px; color: var(--accent-text); }
.post-toc-mobile { display: none; }

.share-rail { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 10px; justify-items: center; }
.share-rail::before { content: "Share"; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-label); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- Article typography, refined ---------- */
.post-main .prose { max-width: none; font-size: clamp(1.04rem, 1.2vw, 1.15rem); line-height: 1.8; }
.post-main .prose > p:first-child { font-size: 1.22em; line-height: 1.6; color: var(--ink); }
.post-main .prose > p:first-child::first-letter {
  float: left; font-family: var(--font-head); font-weight: 700; font-size: 3.6em; line-height: .82;
  margin: .08em .12em 0 0; color: var(--accent-text);
}
.post-main .prose h2 { position: relative; padding-top: .9em; margin-top: 2em; letter-spacing: -0.02em; }
.post-main .prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--accent); }
.post-main .prose blockquote {
  position: relative; margin: 2.2em 0 0; padding: clamp(26px, 4vw, 40px) clamp(24px, 4vw, 44px) clamp(24px, 3vw, 32px);
  border: 0; border-radius: var(--radius); background: var(--dark); color: var(--on-dark); overflow: hidden;
}
.post-main .prose blockquote::before {
  content: "\201C"; position: absolute; right: 18px; top: -28px; font-family: Georgia, serif; font-size: 11rem; line-height: 1;
  color: var(--accent); opacity: .35;
}
.post-main .prose blockquote p { position: relative; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; }
.post-main .prose blockquote cite { color: var(--accent); }
.post-main .prose figure img { border-radius: var(--radius); box-shadow: var(--shadow-m); }
.post-main .prose ul:not(.checklist) { list-style: none; padding-left: 0; }
.post-main .prose ul:not(.checklist) > li { position: relative; padding-left: 30px; }
.post-main .prose ul:not(.checklist) > li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent); transform: rotate(45deg);
}
.post-main .prose ol { counter-reset: n; list-style: none; padding-left: 0; }
.post-main .prose ol > li { counter-increment: n; position: relative; padding-left: 44px; }
.post-main .prose ol > li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .1em;
  font-family: var(--font-label); font-size: .78em; font-weight: 700; color: var(--accent-text);
  padding: 2px 6px; border-radius: 6px; background: var(--accent-soft);
}

/* ---------- After the article ---------- */
.post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 5vw, 60px); padding-top: 22px; border-top: 1px solid var(--line); }
.post-foot .filed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-foot .lbl, .author-card .lbl, .share .lbl { font-family: var(--font-label); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.post-foot .filed .lbl { margin-right: 4px; }
.post-foot .ptag { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share .lbl { margin-right: 4px; }

.author-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 22px;
  margin-top: 28px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-alt), #FFFFFF); border: 1px solid var(--line);
}
.author-card .av { width: 64px; height: 64px; font-size: 1.2rem; }
.author-card b { display: block; font-size: 1.15rem; margin-top: 2px; }
.author-card p { margin-top: 4px; font-size: .92rem; color: var(--ink-2); max-width: 48ch; }

.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 28px; }
.post-pager .pp {
  display: grid; gap: 8px; align-content: start; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #FFFFFF; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.post-pager .pp:hover { border-color: var(--accent); box-shadow: var(--shadow-m); transform: translateY(-3px); }
.post-pager .pp.next { text-align: right; justify-items: end; }
.post-pager .dir { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-label); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.post-pager .dir svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.post-pager .prev:hover .dir svg { transform: translateX(-4px); }
.post-pager .next:hover .dir svg { transform: translateX(4px); }
.post-pager b { font-size: 1.05rem; line-height: 1.3; font-weight: 650; }
.post-pager .m { font-size: .82rem; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .post-layout.with-toc { grid-template-columns: 230px minmax(0, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 760px); }
  .share-rail { display: none; }
}
@media (max-width: 960px) {
  .post-hero.no-banner .post-hero-grid { grid-template-columns: 1fr; }
  .post-hero-art { max-width: 320px; }
  .post-layout.with-toc { grid-template-columns: minmax(0, 1fr); }
  .post-toc { display: none; }
  .post-toc-mobile {
    display: block; margin-bottom: 32px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt);
  }
  .post-toc-mobile summary {
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none;
    font-weight: 650;
  }
  .post-toc-mobile summary::-webkit-details-marker { display: none; }
  .post-toc-mobile summary svg { width: 18px; height: 18px; color: var(--accent-text); }
  .post-toc-mobile summary span { font-weight: 500; font-size: .85rem; color: var(--ink-2); }
  .post-toc-mobile summary .chev { margin-left: auto; transition: transform .3s; }
  .post-toc-mobile[open] summary .chev { transform: rotate(180deg); }
  .post-toc-mobile nav { display: grid; padding: 0 18px 12px; }
  .post-toc-mobile nav a { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
  .post-toc-mobile nav a .no { font-family: var(--font-label); font-size: .72rem; color: var(--accent-text); padding-top: 3px; }
}
@media (max-width: 760px) {
  .post-hero-art { display: none; }
  .post-hero.has-banner { min-height: 78svh; }
  .scroll-cue { display: none; }
  .author-card { grid-template-columns: auto 1fr; }
  .author-card .btn { grid-column: 1 / -1; justify-self: start; }
  .post-pager { grid-template-columns: 1fr; }
  .post-pager .pp.next { text-align: left; justify-items: start; }
  .post-main .prose blockquote::before { font-size: 8rem; top: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-hero-media img { animation: none; transform: none; }
  .scroll-cue { animation: none; }
}

/* Technology Ecosystem page (Admin → Technology Ecosystem): the design shows one provider card; with several,
   cards stack in a two-column grid, each with its logo panel on top (the design's phone layout). */
.eco-list { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.eco-logo-text { font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-align: center; }
@media (min-width: 900px) {
  .eco-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-list.is-grid .eco-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .eco-list.is-grid .eco-logo { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .eco-list.is-grid .eco-logo img { max-width: 200px; }
}
