/* Court Dark: shared by the editorial page types (best-of guides, posts, the blog index, the author page).
   Queued by bsd_ed_enqueue() in court/inc/blog.php. Classes are prefixed cd-ed-. */

/* ------------------------------------------------------------ breadcrumb line with kind chip and date */
.cd-ed-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cd-muted); }
.cd .cd-ed-crumbs a { color: var(--cd-muted); padding: 12px 0; margin: -12px 0; }
.cd .cd-ed-crumbs a:hover { color: var(--cd-accent); }
.cd-ed-crumbs > span[aria-hidden] { color: var(--cd-text); }
.cd-ed-crumbs .is-accent:not(.cd-ed-kind) { color: var(--cd-accent); }
.cd-ed-kind { background: var(--cd-chip); border: 1px solid var(--cd-border); padding: 7px 14px; border-radius: 999px; color: var(--cd-text); line-height: 1.2; }
.cd-ed-kind.is-accent { background: var(--cd-ground); border-color: var(--cd-accent); color: var(--cd-accent); }
.cd-ed-crumbs__date { color: var(--cd-muted); }
@media (max-width: 767px) { .cd-ed-crumbs { font-size: 12px; gap: 8px 10px; } .cd-ed-kind { padding: 5px 10px; } }

/* ------------------------------------------------------------ headlines (posts) */
.cd-ed-h1 { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; color: var(--cd-text); overflow-wrap: break-word; letter-spacing: -0.3px; }
.cd-ed-h1--l { font-size: 112px; line-height: 0.92; }
.cd-ed-h1--m { font-size: 88px; line-height: 0.95; }
.cd-ed-h1--s { font-size: 72px; line-height: 0.98; }
@media (max-width: 1099px) { .cd-ed-h1--l { font-size: 88px; } .cd-ed-h1--m { font-size: 68px; } .cd-ed-h1--s { font-size: 56px; } }
@media (max-width: 767px) { .cd-ed-h1--l { font-size: 56px; } .cd-ed-h1--m { font-size: 44px; } .cd-ed-h1--s { font-size: 38px; line-height: 1; } }
@media (max-width: 374px) { .cd-ed-h1--l { font-size: 48px; } .cd-ed-h1--m { font-size: 40px; } .cd-ed-h1--s { font-size: 34px; } }

/* ------------------------------------------------------------ byline */
.cd-ed-byline { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--cd-text-2); }
.cd-ed-byline__text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cd-ed-byline__text strong, .cd .cd-ed-byline__text a { color: var(--cd-text); font-weight: 700; }
.cd .cd-ed-byline__text a:hover { color: var(--cd-accent); }
.cd-ed-byline__dot { color: var(--cd-text); }
.cd-ed-avatar { flex-shrink: 0; width: var(--size, 48px) !important; height: var(--size, 48px) !important; border-radius: 999px; object-fit: cover; background: var(--cd-chip); }
img.cd-ed-avatar { width: 48px; height: 48px; }
span.cd-ed-avatar { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--cd-border); font-family: var(--cd-display); font-size: calc(var(--size, 48px) * 0.4); color: var(--cd-text-2); line-height: 1; }
.cd-ed-avatar--house { color: var(--cd-accent) !important; }
@media (max-width: 767px) {
  .cd-ed-byline { font-size: 15px; gap: 12px; }
  .cd-ed-byline__text { flex-direction: column; align-items: flex-start; gap: 0; }
  .cd-ed-byline__dot { display: none; }
}

/* ------------------------------------------------------------ article body (dark prose) */
.cd-ed-prose { color: var(--cd-text-2); }
/* base.css resets .cd p margins at higher specificity than .cd-prose's rhythm, so restate it */
.cd .cd-ed-prose > * + * { margin-top: 1.1em; }
.cd .cd-ed-prose li + li { margin-top: 0.5em; }
.cd-ed-prose > :first-child { margin-top: 0; }
.cd .cd-ed-prose h1, .cd .cd-ed-prose h2 { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; color: var(--cd-text); font-size: 56px; line-height: 1; margin-top: 1.5em; }
.cd .cd-ed-prose h3 { margin-top: 1.4em; font-family: var(--cd-body); font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--cd-text); }
.cd-ed-prose h4, .cd-ed-prose h5, .cd-ed-prose h6 { font-family: var(--cd-body); font-size: 20px; font-weight: 700; color: var(--cd-text); }
.cd .cd-ed-prose h1 + *, .cd .cd-ed-prose h2 + *, .cd .cd-ed-prose h3 + * { margin-top: 0.7em; }
.cd-ed-prose blockquote { margin-left: 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--cd-accent); font-family: var(--cd-body); text-transform: none; font-size: 26px; line-height: 1.4; font-weight: 500; color: var(--cd-text); }
.cd-ed-prose blockquote p + p { margin-top: 0.6em; }
.cd-ed-prose blockquote cite { display: block; font-size: 15px; font-style: normal; color: var(--cd-muted); margin-top: 10px; }
.cd-ed-prose li::marker { color: var(--cd-muted); }
.cd-ed-prose img { height: auto; }
.cd-ed-prose img.cd-ed-portrait { max-width: min(100%, 480px); margin-inline: auto; }
.cd .cd-ed-prose p:has(> img:only-child), .cd .cd-ed-prose p:has(> a:only-child > img:only-child) { margin-block: 1.6em; }
.cd-ed-prose .wp-caption { max-width: 100%; }
.cd-ed-prose figure { margin-block: 1.6em; }
.cd-ed-prose .aligncenter { margin-inline: auto; }
.cd-ed-prose iframe, .cd-ed-prose video, .cd-ed-prose embed { max-width: 100%; }
.cd-ed-prose hr { border: 0; border-top: 1px solid var(--cd-hair); margin-block: 2em; }
.cd-ed-prose .cd-ed-table { overflow-x: auto; border: 1px solid var(--cd-border); border-radius: 16px; background: var(--cd-raised); -webkit-overflow-scrolling: touch; }
.cd-ed-prose table { width: 100%; border-collapse: collapse; font-size: 16px; color: var(--cd-text); }
.cd-ed-prose th, .cd-ed-prose td { padding: 12px 16px; border-bottom: 1px solid var(--cd-hair); text-align: left; vertical-align: top; }
.cd-ed-prose tr:last-child td { border-bottom: 0; }
.cd-ed-prose th, .cd-ed-prose thead td { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cd-muted); background: var(--cd-chip); }
.cd-ed-prose ins.adsbygoogle { display: block; }
@media (max-width: 767px) {
  .cd .cd-ed-prose h1, .cd .cd-ed-prose h2 { font-size: 36px; }
  .cd .cd-ed-prose h3 { font-size: 22px; }
  .cd-ed-prose blockquote { font-size: 21px; padding-left: 18px; }
  .cd-ed-prose th, .cd-ed-prose td { padding: 10px 14px; }
}

/* ------------------------------------------------------------ index head (blog) and section heads */
.cd-ed-indexhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 72px; }
.cd-ed-indexhead__title { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; font-size: 176px; line-height: 0.85; color: var(--cd-text); }
.cd-ed-indexhead__count { font-size: 15px; color: var(--cd-muted); padding-bottom: 12px; text-align: right; }
.cd-ed-index { padding-top: 48px; }
.cd-ed-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.cd-ed-sechead p { font-size: 15px; padding-bottom: 6px; }
@media (max-width: 1099px) { .cd-ed-indexhead__title { font-size: 128px; } }
@media (max-width: 767px) {
  .cd-ed-indexhead { padding-top: 32px; }
  .cd-ed-index { padding-top: 24px; }
  .cd-ed-indexhead__title { font-size: 76px; }
  .cd-ed-indexhead__count { padding-bottom: 6px; }
  .cd-ed-hide-phone { display: none; }
  .cd-ed-sechead { margin-bottom: 16px; flex-wrap: wrap; }
}

/* ------------------------------------------------------------ post cards */
.cd-ed-card { display: flex; flex-direction: column; background: var(--cd-raised); border: 1px solid var(--cd-border); border-radius: var(--cd-radius); color: var(--cd-text) !important; min-width: 0; overflow: hidden; transition: border-color .15s; }
.cd-ed-card:hover { border-color: var(--cd-border-hover); }
.cd-ed-card:hover .cd-ed-card__title { color: var(--cd-accent); }
.cd-ed-card__photo { display: block; aspect-ratio: 16 / 9; background: var(--cd-chip); }
.cd-ed-card__body { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 28px; flex-grow: 1; min-height: 240px; }
.cd-ed-card.has-photo .cd-ed-card__body { min-height: 0; }
.cd-ed-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.cd-ed-card__kind { background: var(--cd-chip); border: 1px solid var(--cd-border); padding: 6px 10px; border-radius: 999px; color: var(--cd-text); }
.cd-ed-card__date { color: var(--cd-muted); }
.cd-ed-card__text { display: flex; flex-direction: column; gap: 16px; }
.cd-ed-card__title { font-size: 23px; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; transition: color .15s; }
.cd-ed-card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.cd-ed-card__by { color: var(--cd-muted); }
.cd-ed-card__cta { font-weight: 700; color: var(--cd-accent); white-space: nowrap; }

/* the accent lead card */
.cd-ed-card--feature { background: var(--cd-accent); border-color: var(--cd-accent); color: var(--cd-on-accent) !important; border-radius: 24px; }
.cd-ed-card--feature:hover { border-color: var(--cd-text); background: var(--cd-accent-hover); }
.cd-ed-card--feature:hover .cd-ed-card__title { color: var(--cd-on-accent); }
.cd-ed-card--feature .cd-ed-card__body { padding: 40px; gap: 40px; min-height: 420px; }
.cd-ed-card--feature .cd-ed-card__kind { background: var(--cd-ground); border-color: var(--cd-ground); color: var(--cd-accent); }
.cd-ed-card--feature .cd-ed-card__date, .cd-ed-card--feature .cd-ed-card__by, .cd-ed-card--feature .cd-ed-card__cta { color: var(--cd-on-accent); }
.cd-ed-card--feature .cd-ed-card__title { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; font-size: 64px; line-height: 0.95; }
.cd-ed-card__excerpt { font-size: 18px; line-height: 1.5; max-width: 600px; }
.cd-ed-card--feature .cd-ed-card__foot { font-size: 16px; font-weight: 700; }
.cd-ed-card--feature .cd-ed-card__by { font-weight: 700; }

/* the top block: feature + up to two stacked */
.cd-ed-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.cd-ed-top > .cd-ed-card--feature { grid-column: span 7; }
.cd-ed-top--1 > .cd-ed-card--feature { grid-column: 1 / -1; }
.cd-ed-top__side { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.cd-ed-top__side > .cd-ed-card { flex-grow: 1; }
.cd-ed-top__side .cd-ed-card__body { min-height: 0; }

/* the grid after it: 6 tracks so a last row of two can split in half */
.cd-ed-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.cd-ed-top + .cd-ed-grid { margin-top: 24px; }
.cd-ed-grid > .cd-ed-card { grid-column: span 2; }
.cd-ed-grid > .cd-ed-card.is-half3 { grid-column: span 3; }
.cd-ed-grid > .cd-ed-card.is-wide3 { grid-column: 1 / -1; }
/* a lone last card lies flat: title on the left, byline and Read on the right */
@media (min-width: 1100px) {
  .cd-ed-grid > .is-wide3 .cd-ed-card__body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta foot" "text foot"; align-items: end; gap: 16px 48px; }
  .cd-ed-grid > .is-wide3 .cd-ed-card__meta { grid-area: meta; }
  .cd-ed-grid > .is-wide3 .cd-ed-card__text { grid-area: text; }
  .cd-ed-grid > .is-wide3 .cd-ed-card__foot { grid-area: foot; flex-direction: column; align-items: flex-end; gap: 8px; }
  .cd-ed-grid > .is-wide3.has-photo { flex-direction: row; }
  .cd-ed-grid > .is-wide3.has-photo .cd-ed-card__photo { width: 40%; aspect-ratio: auto; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .cd-ed-grid > .is-wide2 .cd-ed-card__body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta foot" "text foot"; align-items: end; gap: 16px 40px; }
  .cd-ed-grid > .is-wide2 .cd-ed-card__meta { grid-area: meta; }
  .cd-ed-grid > .is-wide2 .cd-ed-card__text { grid-area: text; }
  .cd-ed-grid > .is-wide2 .cd-ed-card__foot { grid-area: foot; flex-direction: column; align-items: flex-end; gap: 8px; }
}

@media (max-width: 1279px) { .cd-ed-card--feature .cd-ed-card__title { font-size: 52px; } }
@media (max-width: 1099px) {
  .cd-ed-top > .cd-ed-card--feature { grid-column: 1 / -1; }
  .cd-ed-top__side { grid-column: 1 / -1; flex-direction: row; }
  .cd-ed-top__side > .cd-ed-card { flex: 1 1 0; }
  .cd-ed-card--feature .cd-ed-card__body { min-height: 360px; padding: 36px; }
  .cd-ed-card--feature .cd-ed-card__title { font-size: 56px; }
  .cd-ed-grid > .cd-ed-card, .cd-ed-grid > .cd-ed-card.is-half3, .cd-ed-grid > .cd-ed-card.is-wide3 { grid-column: span 3; }
  .cd-ed-grid > .cd-ed-card.is-wide2 { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .cd-ed-top, .cd-ed-grid { display: flex; flex-direction: column; gap: 14px; }
  .cd-ed-top + .cd-ed-grid { margin-top: 14px; }
  .cd-ed-top__side { flex-direction: column; gap: 14px; }
  .cd-ed-top__side > .cd-ed-card { flex: none; }
  .cd-ed-card__body { min-height: 0; padding: 22px 20px; gap: 14px; }
  .cd-ed-card { border-radius: 18px; }
  .cd-ed-card__title { font-size: 19px; }
  .cd-ed-card__cta { display: none; }
  .cd-ed-card--feature .cd-ed-card__cta { display: inline; }
  .cd-ed-card--feature .cd-ed-card__body { min-height: 0; padding: 24px; gap: 18px; }
  .cd-ed-card--feature .cd-ed-card__title { font-size: 40px; line-height: 0.95; }
  .cd-ed-card--feature .cd-ed-card__text { gap: 14px; }
  .cd-ed-card__excerpt { font-size: 16px; }
  .cd-ed-card--feature .cd-ed-card__foot { flex-direction: column; gap: 10px; }
  .cd-ed-card--feature .cd-ed-card__by { display: none; }
}

/* ------------------------------------------------------------ pager: Newer / numbers / Older */
.cd-ed-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--cd-hair); }
.cd-ed-pager__end { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--cd-border-strong); color: var(--cd-text) !important; font-weight: 700; font-size: 15px; white-space: nowrap; }
.cd-ed-pager__end:hover { border-color: var(--cd-text-2); }
.cd-ed-pager__end.is-disabled { border-color: var(--cd-hair); color: var(--cd-border-strong) !important; }
.cd-ed-pager__nums { display: flex; gap: 8px; align-items: center; }
.cd-ed-pager__num { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--cd-border); font-weight: 700; font-size: 15px; color: var(--cd-text) !important; }
.cd-ed-pager__num:hover { border-color: var(--cd-text-2); }
.cd-ed-pager__num.is-current { background: var(--cd-accent); border-color: var(--cd-accent); color: var(--cd-on-accent) !important; }
.cd-ed-pager__gap { color: var(--cd-muted); padding: 0 4px; }
.cd-ed-pager__compact { display: none; color: var(--cd-text-2); font-size: 15px; }
@media (max-width: 767px) { .cd-ed-pager__nums { display: none; } .cd-ed-pager__compact { display: inline; } .cd-ed-pager__end { padding: 0 16px; } }

/* ------------------------------------------------------------ author page head */
.cd-ed-authorhead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; padding-top: 72px; }
.cd-ed-authorhead__photo { grid-column: span 3; aspect-ratio: 1 / 1; max-height: 312px; border-radius: 24px; overflow: hidden; background: var(--cd-raised); }
.cd-ed-authorhead__photo .cd-photo { width: 100%; height: 100%; object-fit: cover; }
.cd-ed-authorhead__initials { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--cd-display); font-size: 96px; color: var(--cd-muted); border: 1px solid var(--cd-border); border-radius: 24px; }
.cd-ed-authorhead__main { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cd-ed-authorhead__name { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; font-size: 144px; line-height: 0.85; color: var(--cd-text); overflow-wrap: break-word; }
.cd-ed-authorhead__bio { max-width: 760px; font-size: 19px; line-height: 1.6; color: var(--cd-text-2); }
.cd-ed-authorhead__bio p + p { margin-top: 0.8em; }
.cd-ed-authorhead__stats { display: flex; flex-wrap: wrap; gap: 16px 48px; padding-top: 14px; border-top: 1px solid var(--cd-hair); }
.cd-ed-authorhead__stats > div { display: flex; flex-direction: column; gap: 4px; }
.cd-ed-authorhead__stats .cd-num { font-size: 48px; color: var(--cd-text); }
.cd-ed-stat-label { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--cd-muted); }
@media (max-width: 1099px) {
  .cd-ed-authorhead__photo { grid-column: span 4; }
  .cd-ed-authorhead__main { grid-column: 5 / -1; }
  .cd-ed-authorhead__name { font-size: 96px; }
  .cd-ed-authorhead__bio { font-size: 17px; }
}
@media (max-width: 767px) {
  .cd-ed-authorhead { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 32px; }
  .cd-ed-authorhead__photo { width: 120px; border-radius: 18px; }
  .cd-ed-authorhead__initials { font-size: 44px; border-radius: 18px; }
  .cd-ed-authorhead__main { gap: 16px; }
  .cd-ed-authorhead__name { font-size: 64px; }
  .cd-ed-authorhead__stats .cd-num { font-size: 36px; }
}

/* Zack, 2026-10-08: the author's name lines nearly touched when the name wraps, and it sat tight against the breadcrumb
   and the bio. Looser lines and clear gaps around it. */
.cd-ed-authorhead__name { line-height: 0.95; margin: 6px 0 4px !important; }
.cd-ed-authorhead__main { gap: 26px; }
@media (max-width: 767px) { .cd-ed-authorhead__name { line-height: 1; } .cd-ed-authorhead__main { gap: 20px; } }
