/* ============================================================
   TRILLIOME — content templates (listings, posts, pages)
   Extends f-organic.css for /insights, /news, posts and pages.
   Same living dark palette; legible long-form prose.
   ============================================================ */

/* ---------- Shared page header ---------- */
.page-head { padding: 84px 0 8px; position: relative; z-index: 2; }
.page-head .wrap { max-width: 940px; }
.page-head h1 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(38px, 5vw, 66px); color: #fff; margin-top: 22px; }
.page-head h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-head .lede { margin-top: 22px; }

/* ---------- Listing grids ---------- */
.listing { padding: 40px 0 96px; position: relative; z-index: 2; }

/* posts as cards (insights) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-grid .ins-card { margin-top: 0 !important; }
.card-grid .ins-card .ins-excerpt { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--f-muted); flex: 1; }

/* news rows reuse .news-list / .news-row from f-organic.css */

/* ---------- Pagination ---------- */
.pagination { margin-top: 64px; display: flex; align-items: center; justify-content: center; gap: 26px; font-size: 14px; color: var(--f-muted); }
.pagination a { color: #fff; text-decoration: none; font-weight: 600; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--f-border); background: rgba(255,255,255,.04); transition: background .2s var(--ease); }
.pagination a:hover { background: rgba(255,255,255,.09); }
.page-number { color: var(--f-faint); }

/* ---------- Article / Page ---------- */
.article { position: relative; z-index: 2; padding: 70px 0 96px; }
.article .wrap { max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13.5px; color: var(--f-faint); margin-bottom: 10px; }
.article-meta .tag { color: var(--teal); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; }
.article h1 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; font-size: clamp(34px, 4.4vw, 58px); color: #fff; margin: 8px 0 0; }
.article-sub { margin-top: 22px; font-size: 20px; line-height: 1.55; color: var(--f-muted); font-weight: 300; }
.article-byline { margin-top: 26px; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--f-muted); }
.article-byline .by-name { color: #fff; font-weight: 600; }
.feature-image { margin: 44px 0 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--f-border); }
.feature-image img { width: 100%; height: auto; display: block; }

/* ---------- Prose (Koenig content) ---------- */
.post-content { margin-top: 40px; font-size: 18px; line-height: 1.75; color: var(--f-text); }
.post-content > * + * { margin-top: 1.5em; }
.post-content h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.2; margin-top: 1.8em; }
.post-content h3 { font-size: 22px; font-weight: 600; color: #fff; margin-top: 1.6em; }
.post-content h4 { font-size: 18px; font-weight: 600; color: #fff; margin-top: 1.4em; }
.post-content p { color: var(--f-text); }
.post-content a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(77,192,172,.4); transition: border-color .2s; }
.post-content a:hover { border-color: var(--teal); }
.post-content strong { color: #fff; font-weight: 600; }
.post-content ul, .post-content ol { padding-left: 1.3em; }
.post-content li { margin-top: .5em; color: var(--f-text); }
.post-content li::marker { color: var(--teal); }
.post-content blockquote { border-left: 3px solid var(--teal); padding: 4px 0 4px 24px; margin-left: 0; font-size: 21px; font-weight: 300; color: #fff; font-style: normal; }
.post-content img, .post-content video { border-radius: 16px; height: auto; }
.post-content figure { margin: 1.5em 0; }
.post-content figcaption { margin-top: 10px; font-size: 13px; color: var(--f-faint); text-align: center; }
.post-content hr { border: none; border-top: 1px solid var(--f-border); margin: 2.4em 0; }
.post-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(255,255,255,.07); padding: 2px 7px; border-radius: 6px; color: #cdeee7; }
.post-content pre { background: rgba(0,0,0,.32); border: 1px solid var(--f-border); border-radius: 14px; padding: 22px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.post-content pre code { background: none; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-content th, .post-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--f-border); }
.post-content th { color: #fff; font-weight: 600; }
.kg-bookmark-card { border: 1px solid var(--f-border); border-radius: 14px; overflow: hidden; }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.kg-width-wide { margin-inline: -8%; }
.kg-width-full { margin-inline: calc(50% - 50vw); border-radius: 0; }

/* ---------- Article footer ---------- */
.article-foot { max-width: 760px; margin: 64px auto 0; padding: 36px 0 0; border-top: 1px solid var(--f-border); }
.author-card { display: flex; gap: 18px; align-items: flex-start; }
.author-card .a-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--f-border); }
.author-card .a-name { color: #fff; font-weight: 600; font-size: 16px; }
.author-card .a-bio { margin-top: 6px; font-size: 14px; color: var(--f-muted); line-height: 1.55; }

/* ---------- Members CTA on posts ---------- */
.post-cta { max-width: 760px; margin: 56px auto 0; padding: 40px 44px; border-radius: var(--leaf-l); border: 1px solid var(--f-border); background: rgba(255,255,255,.04); text-align: center; }
.post-cta h3 { color: #fff; font-size: 24px; font-weight: 700; }
.post-cta p { margin-top: 10px; color: var(--f-muted); }
.post-cta .cta-solid { margin-top: 22px; }

/* ---------- Form section (partners / investors / contact) ---------- */
.form-section { position: relative; z-index: 2; padding: 20px 0 96px; }
.form-section .wrap { max-width: 760px; }
.form-section .eyebrow { margin-bottom: 16px; }
.form-section h2 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(30px, 3.6vw, 48px); color: #fff; }
.form-section h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tally-wrap { margin-top: 32px; padding: 8px 4px; border-radius: var(--leaf-l); border: 1px solid var(--f-border); background: rgba(255,255,255,.04); }
.tally-wrap iframe { display: block; width: 100%; border: 0; background: transparent; }
.tally-placeholder { margin-top: 32px; padding: 30px 34px; border-radius: var(--leaf-l); border: 1px dashed rgba(140,220,235,.35); background: rgba(255,255,255,.03); color: var(--f-muted); display: flex; flex-direction: column; gap: 8px; }
.tally-placeholder strong { color: #fff; font-weight: 600; }
.tally-placeholder em { color: var(--teal); font-style: normal; }
.form-or { margin-top: 22px; font-size: 14.5px; color: var(--f-muted); }
.form-or a { color: var(--teal); font-weight: 600; text-decoration: none; }
.form-or a:hover { text-decoration: underline; }

/* ---------- Founder cards (company page) ---------- */
.post-content .founders-grid { display: flex; flex-direction: column; gap: 22px; margin: 1.6em 0; }
.post-content .founder-card { display: flex; gap: 28px; align-items: flex-start; padding: 30px 34px; border-radius: var(--leaf-l); border: 1px solid var(--f-border); background: rgba(255,255,255,.04); }
.post-content .founder-card:nth-child(even) { border-radius: var(--leaf-r); }
.post-content .founder-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid rgba(77,192,172,.4); box-shadow: 0 0 0 4px rgba(77,192,172,.08); margin: 0; }
.post-content .founder-name { color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.post-content .founder-role { color: var(--teal); font-weight: 600; font-size: 13px; margin-top: 3px; }
.post-content .founder-bio { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--f-muted); }
@media (max-width: 700px) {
  .post-content .founders-grid { grid-template-columns: 1fr; }
  .post-content .founder-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Inline byline + CTA rows inside page content ---------- */
.post-content .byline-inline { font-size: 14px; color: var(--f-faint); margin-top: 0; margin-bottom: 8px; }
.post-content .byline-inline::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-right: 10px; vertical-align: middle; }
.post-content .cta-row { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 2em; }
.post-content .cta-row a { color: #fff; font-weight: 600; text-decoration: none; border: none; display: inline-flex; align-items: center; gap: 9px; }
.post-content .cta-row a:hover { color: var(--teal); }
.post-content .cta-row a span { color: var(--teal); }

@media (max-width: 980px) {
  .card-grid { grid-template-columns: 1fr; }
  .kg-width-wide { margin-inline: 0; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--amber); color: #3a2a02; font-weight: 700; padding: 12px 20px; border-radius: 0 0 10px 0; text-decoration: none; }
.skip-link:focus { left: 0; }
#main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.cta-solid:focus-visible, .btn-amber:focus-visible { outline-color: #fff; }

/* ============================================================
   KOENIG EDITOR CARDS — on-brand styling for rich post/page content
   ============================================================ */
.post-content .kg-card { margin-top: 1.6em; margin-bottom: 1.6em; }

/* Callout */
.post-content .kg-callout-card { display: flex; gap: 14px; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--f-border); background: rgba(255,255,255,.05); align-items: flex-start; }
.post-content .kg-callout-emoji { font-size: 20px; line-height: 1.5; }
.post-content .kg-callout-text { color: var(--f-text); font-size: 16px; line-height: 1.6; }
.post-content .kg-callout-card-blue { background: rgba(68,200,245,.10); border-color: rgba(68,200,245,.35); }
.post-content .kg-callout-card-green { background: rgba(77,192,172,.10); border-color: rgba(77,192,172,.35); }
.post-content .kg-callout-card-yellow { background: rgba(250,166,26,.10); border-color: rgba(250,166,26,.35); }
.post-content .kg-callout-card-red { background: rgba(229,90,90,.10); border-color: rgba(229,90,90,.35); }

/* Button */
.post-content .kg-button-card { display: flex; margin: 1.6em 0; }
.post-content .kg-button-card.kg-align-center { justify-content: center; }
.post-content .kg-btn { display: inline-flex; align-items: center; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid var(--f-border); color: #fff; background: rgba(255,255,255,.05); }
.post-content .kg-btn-accent { background: var(--amber); color: #3a2a02; border-color: transparent; box-shadow: 0 12px 34px -10px rgba(250,166,26,.6); }

/* Header card (v1 + v2) */
.post-content .kg-header-card { padding: 56px 40px; border-radius: 20px; text-align: center; background: rgba(255,255,255,.04); border: 1px solid var(--f-border); }
.post-content .kg-header-card .kg-header-card-heading, .post-content .kg-header-card h2 { color: #fff; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(28px,3.4vw,44px); }
.post-content .kg-header-card .kg-header-card-subheading { color: var(--f-muted); margin-top: 12px; font-weight: 300; }
.post-content .kg-header-card .kg-header-card-button { margin-top: 24px; display: inline-flex; padding: 13px 26px; border-radius: 999px; background: var(--amber); color: #3a2a02; font-weight: 600; text-decoration: none; }

/* Toggle / accordion */
.post-content .kg-toggle-card { border: 1px solid var(--f-border); border-radius: 14px; padding: 4px 22px; background: rgba(255,255,255,.03); }
.post-content .kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.post-content .kg-toggle-heading-text { color: #fff; font-weight: 600; font-size: 17px; padding: 18px 0; }
.post-content .kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }
.post-content .kg-toggle-content { color: var(--f-muted); padding-bottom: 18px; }
.post-content .kg-toggle-card-icon { stroke: var(--teal); width: 18px; height: 18px; }

/* Product card */
.post-content .kg-product-card .kg-product-card-container { border: 1px solid var(--f-border); border-radius: 16px; padding: 26px; background: rgba(255,255,255,.04); }
.post-content .kg-product-card-title { color: #fff; font-weight: 600; }
.post-content .kg-product-card-description { color: var(--f-muted); }
.post-content .kg-product-card-button { background: var(--amber); color: #3a2a02; border-radius: 999px; }

/* Gallery */
.post-content .kg-gallery-card .kg-gallery-row { display: flex; gap: 10px; }
.post-content .kg-gallery-image img { border-radius: 12px; }

/* Signup card */
.post-content .kg-signup-card { border-radius: 20px; }
.post-content .kg-signup-card-button { border-radius: 999px !important; }

/* Audio / File cards */
.post-content .kg-audio-card, .post-content .kg-file-card { border: 1px solid var(--f-border); border-radius: 14px; background: rgba(255,255,255,.04); }
.post-content .kg-file-card-title { color: #fff; }
.post-content .kg-file-card-caption { color: var(--f-muted); }
