/* ============================================================
   DecisionDeck.ai — secondary / directory page components
   Load after site.css. Hero, directory cards, status pills,
   simple forms. Keeps stub pages consistent & lightweight.
   ============================================================ */

/* page hero (secondary pages) */
.phead { padding: 72px 0 18px; }
.phead .wrap { max-width: 920px; }
.phead h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; max-width: 18ch; }
.phead .lede { margin-top: 20px; max-width: 60ch; }
.phead .btn-row { margin-top: 28px; }

/* split hero: copy + artifact card */
.phead--split .wrap { max-width: 1200px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.phead--split .phead__copy { min-width: 0; }
.phead--split h1 { max-width: 16ch; }
.phead-art { background: var(--neutral-900); color: #FFFFFF; border-radius: var(--radius-panel); padding: 28px; box-shadow: var(--shadow-panel-lg); border: 1px solid var(--neutral-800); display: flex; flex-direction: column; gap: 18px; }
.phead-art__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime-300); }
.phead-art__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phead-art__grid--compact .phead-art__tile { padding: 12px; }
.phead-art__grid--compact .phead-art__tile h4 { font-size: 13px; }
.phead-art__grid--compact .phead-art__tile p { font-size: 11.5px; }
.phead-art__tile { background: var(--neutral-800); border: 1px solid var(--neutral-700); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.phead-art__tile .ic { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--neutral-900); display: flex; align-items: center; justify-content: center; color: var(--lime-300); }
.phead-art__tile .ic svg { width: 18px; height: 18px; }
.phead-art__tile h4 { font-size: 14px; font-weight: 600; color: #FFFFFF; margin: 0; }
.phead-art__tile p { font-size: 12.5px; color: var(--neutral-400); line-height: 1.45; margin: 0; }
.phead-art__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--neutral-800); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--neutral-400); }
.phead-art__foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-300); box-shadow: 0 0 0 4px rgba(220,255,80,0.16); display: inline-block; margin-right: 8px; vertical-align: middle; }
@media (max-width: 960px) { .phead--split .wrap { grid-template-columns: 1fr; gap: 32px; } .phead--split h1 { max-width: 18ch; } }

/* status pill */
.status { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-full); border: 1px solid var(--border); color: var(--text-muted); background: var(--surface); }
.status--now { color: var(--success-dark); background: var(--success-light); border-color: transparent; }
.status--next { color: var(--info-dark); background: var(--info-light); border-color: transparent; }
.status--later { color: var(--text-muted); background: var(--surface-sunken); }

/* directory grid */
.dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dir--2 { grid-template-columns: repeat(2, 1fr); }
.dir__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; scroll-margin-top: 88px; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.dir__card--link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-panel); transform: translateY(-3px); }
.dir__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.dir__ic { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--surface-sunken); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); flex: 0 0 auto; }
.dir__ic svg { width: 22px; height: 22px; }
.dir__card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.2; }
.dir__card p { font-size: 14px; color: var(--text-body); line-height: 1.55; flex: 1; }
.dir__card .arrow-link { margin-top: 16px; font-size: 14px; }
.dir__card .sub { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dir__card .sub li a { font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: var(--radius-full); background: var(--surface-sunken); border: 1px solid var(--border); color: var(--text); }
.dir__card .sub li a:hover { border-color: var(--text); }
@media (max-width: 960px) { .dir, .dir--2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dir, .dir--2 { grid-template-columns: 1fr; } }

/* prose block for explainer sections */
.prose { max-width: 760px; }
.prose h2 { margin-bottom: 14px; }
.prose h3 { margin: 30px 0 10px; font-size: 20px; }
.prose p { font-size: 16px; line-height: 1.65; color: var(--text-body); margin-bottom: 14px; }
.prose p b { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--text-body); line-height: 1.5; }
.prose ul li svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--success-base); margin-top: 3px; }

/* anchored explainer row */
.explain { display: grid; grid-template-columns: 200px 1fr; gap: 36px; padding: 44px 0; border-top: 1px solid var(--border); scroll-margin-top: 88px; }
.explain__k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.explain__k .n { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--neutral-200); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.explain__body h3 { font-size: 24px; margin-bottom: 12px; }
.explain__body p { font-size: 16px; line-height: 1.6; color: var(--text-body); margin-bottom: 12px; }
.explain__body p b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .explain { grid-template-columns: 1fr; gap: 14px; padding: 30px 0; } .explain__k .n { font-size: 32px; } }

/* note / stub callout */
.note-card { background: var(--surface-sunken); border: 1px dashed var(--border-strong); border-radius: var(--radius-xl); padding: 28px 30px; display: flex; gap: 18px; align-items: flex-start; }
.note-card svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--text-muted); margin-top: 2px; }
.note-card h3 { font-size: 17px; margin-bottom: 6px; }
.note-card p { font-size: 14.5px; color: var(--text-body); line-height: 1.55; }

/* demo / contact form */
.formwrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 16px; }
.form .field { display: flex; flex-direction: column; gap: 7px; }
.form .field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: 13px; font-weight: 600; color: var(--text); }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 12px 14px; width: 100%;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 3px rgba(2,128,187,0.14); }
.form .submitted { display: none; background: var(--success-light); border: 1px solid var(--success-base); border-radius: var(--radius-md); padding: 16px 18px; color: var(--success-dark); font-size: 14.5px; font-weight: 500; }
.form.done .submitted { display: block; }
.form.done .form__fields { display: none; }
.form__aside { background: var(--neutral-900); color: #FFFFFF; border-radius: var(--radius-panel); padding: 36px 32px; }
.form__aside h3 { color: #FFFFFF; font-size: 22px; margin-bottom: 16px; }
.form__aside ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.form__aside ul li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--neutral-300); line-height: 1.5; }
.form__aside ul li svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--lime-300); margin-top: 1px; }
.form__aside .alt { border-top: 1px solid var(--neutral-800); padding-top: 20px; font-size: 13.5px; color: var(--neutral-400); }
.form__aside .alt a { color: var(--lime-300); }
@media (max-width: 860px) { .formwrap { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Blog ----------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; gap: 28px; } }

.blog-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.blog-card__media { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface-sunken); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.03); }
.blog-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface-sunken), var(--surface)); }
.blog-card__meta { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.blog-card__tag { color: var(--text); font-weight: 600; }
.blog-card__sep { width: 1px; height: 12px; background: var(--border-strong); display: inline-block; }
.blog-card__title { font-size: 20px; line-height: 1.25; margin-top: 10px; color: var(--text); letter-spacing: -.01em; }
.blog-card:hover .blog-card__title { color: var(--link); }
.blog-card__excerpt { font-size: 14.5px; line-height: 1.55; color: var(--text-body); margin-top: 8px; }

.blog-search { display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 10px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-full); }
.blog-search svg { width: 16px; height: 16px; color: var(--text-muted); flex: 0 0 auto; }
.blog-search input { border: 0; outline: 0; background: transparent; flex: 1; font: inherit; color: var(--text); font-size: 14px; }

.blog-empty { padding: 48px; border: 1px dashed var(--border-strong); border-radius: var(--radius-xl); text-align: center; color: var(--text-muted); }

/* ---- Single post ---------------------------------------------------- */
.sec--blog-post { padding: 56px 0 120px; }
@media (max-width: 720px) { .sec--blog-post { padding: 32px 0 80px; } }
.post-wrap { max-width: 700px; margin: 0 auto; }
.post-back { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 48px; }
.post-back:hover { color: var(--text); }

.post-head { padding-top: 0; }
.post-head__title { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -.022em; color: var(--text); font-weight: 600; }
.post-head__lede { font-size: 21px; line-height: 1.55; color: var(--text-body); margin-top: 24px; max-width: 60ch; }
.post-head__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: 28px; flex-wrap: wrap; }
.post-head__sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); display: inline-block; }
.post-head__role { color: var(--text-muted); margin-left: 4px; }
.post-share { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.post-share__label { margin-right: 4px; }
.post-share a, .post-share button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: color .15s ease, border-color .15s ease; padding: 0; }
.post-share a:hover, .post-share button:hover { color: var(--text); border-color: var(--border-strong); }
.post-share svg { width: 14px; height: 14px; }

.post-tags { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags li a { display: inline-block; font-size: 12px; letter-spacing: .04em; color: var(--text-muted); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.post-tags li a:hover { color: var(--text); border-color: var(--border-strong); }


.post-hero { margin: 40px 0 0; }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-xl); border: 1px solid var(--border); display: block; background: var(--surface-sunken); }
.post-hero figcaption { margin-top: 12px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* Body: Medium-style editorial rhythm. Single source of vertical spacing
   is `> * + *`; per-element rules only adjust where the rhythm changes. */
.post-body { margin-top: 40px; font-size: 18px; line-height: 1.7; color: var(--text-body); }
.post-body > * + * { margin-top: 1.5em; }
.post-body h1 { display: none; } /* CMS bodies repeat the title as H1 */

.post-body h2 { font-size: 26px; line-height: 1.25; color: var(--text); letter-spacing: -.012em; font-weight: 600; }
.post-body > * + h2 { margin-top: 2.4em; }
.post-body > h2 + * { margin-top: .9em; }

.post-body h3 { font-size: 20px; line-height: 1.3; color: var(--text); letter-spacing: -.005em; font-weight: 600; }
.post-body > * + h3 { margin-top: 2em; }
.post-body > h3 + * { margin-top: .7em; }

.post-body h4 { font-size: 17px; line-height: 1.35; color: var(--text); font-weight: 600; }

.post-body p { color: var(--text-body); }
.post-body > p:first-of-type { font-size: 20px; line-height: 1.55; color: var(--text); font-weight: 450; }

.post-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .15s ease; }
.post-body a:hover { text-decoration-color: var(--text); }
.post-body strong { color: var(--text); font-weight: 600; }

.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body > * + ul, .post-body > * + ol { margin-top: 1.5em; }
.post-body li { margin: .55em 0; }
.post-body li::marker { color: var(--text-muted); }

.post-body blockquote { border-left: 2px solid var(--border-strong); padding: 4px 0 4px 24px; color: var(--text); font-size: 21px; line-height: 1.5; font-style: italic; }
.post-body > * + blockquote, .post-body > blockquote + * { margin-top: 1.8em; }

.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface-sunken); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); }
.post-body pre { background: var(--neutral-900); color: #fff; padding: 18px 20px; border-radius: var(--radius-xl); overflow-x: auto; font-size: 14px; line-height: 1.55; }
.post-body pre code { background: transparent; border: 0; padding: 0; color: inherit; }
.post-body img { width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--border); display: block; }
.post-body > * + img, .post-body > img + * { margin-top: 1.8em; }
.post-body hr { border: 0; border-top: 1px solid var(--border); }
.post-body > * + hr, .post-body > hr + * { margin-top: 2.2em; }

/* Post footer */
.post-foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.post-foot__author { font-size: 13.5px; color: var(--text-muted); }
.post-foot__author b { color: var(--text); font-weight: 600; }
