/* Post pages and section indexes (src/render/post.js). Loaded after listing.css, whose hero,
   eyebrow, chip, rail-card and band components these pages reuse. Mobile is the base; the
   340px rail sits beside the body from 1024px. Not from a Claude Design template yet. */

.post { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; padding-bottom: 48px; }
.post__main { flex: 1; min-width: 0; }
.post__rail { display: flex; flex-direction: column; gap: 16px; }
/* on a phone the facts of an event or a job (when, where, apply) come before the long text */
.post--event .post__rail, .post--career .post__rail { order: -1; }
.post__title { max-width: 900px; }
.post__img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; border: 1px solid var(--gray-200); margin-bottom: 24px; background: var(--gray-100); }
.post__tags { margin-top: 28px; }

/* body copy: only the tags the sanitizer lets through */
.post__body { font-size: 17px; line-height: 1.7; color: var(--fg-1); max-width: 720px; overflow-wrap: anywhere; }
.post__body p { margin: 0 0 18px; }
.post__body h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.015em; line-height: 1.2; margin: 32px 0 12px; }
.post__body h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 28px 0 10px; }
.post__body h4 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.post__body ul, .post__body ol { margin: 0 0 18px; padding-left: 24px; }
.post__body li { margin-bottom: 6px; }
.post__body a { color: var(--accent-pressed); text-decoration: underline; text-underline-offset: 2px; }
.post__body a:hover { color: var(--brand-cyan); }
.post__body img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
.post__body blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand-cyan); color: var(--fg-2); }
.post__body hr { border: 0; border-top: 1px solid var(--gray-200); margin: 28px 0; }
.post__body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; overflow-wrap: normal; }
.post__body th, .post__body td { border: 1px solid var(--gray-200); padding: 8px 10px; text-align: left; vertical-align: top; }
.post__body th { background: var(--gray-50); font-weight: 700; }

/* rail card rows */
.pc__row { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gray-200); font-size: 15px; }
.pc__row:first-of-type { border-top: 0; padding-top: 0; }
.pc__label { font-size: 13px; font-weight: 700; color: var(--gray-500); }
.pc__val { color: var(--fg-1); line-height: 1.45; overflow-wrap: anywhere; }
.pc__cta { width: 100%; min-height: 48px; margin-top: 16px; }
.pc .more { display: inline-block; margin-top: 14px; }

/* author */
.pa { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-navy); }
.pa__tile { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg-tint); color: var(--accent-pressed); font-size: 16px; font-weight: 900; }
.pa__tile--sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.pa__name { display: block; font-weight: 700; line-height: 1.3; }
.pa__meta { display: block; font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.pa:hover .pa__name { color: var(--brand-cyan); }

/* section indexes */
.post-list { display: grid; gap: 16px; padding-top: 28px; padding-bottom: 56px; }
.post-list__empty { color: var(--fg-2); }
.pl { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--gray-200); border-radius: 16px; background: #fff; text-decoration: none; color: var(--brand-navy); box-shadow: var(--shadow-xs); }
.pl:hover { border-color: var(--brand-cyan); color: var(--brand-navy); }
.pl__body { flex: 1; min-width: 0; }
.pl__title { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
.pl--story { flex-direction: column; }
.pl--story .pl__title { font-size: 21px; font-weight: 900; letter-spacing: -0.01em; margin: 8px 0 8px; }
.pl__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--gray-100); }
.pl__excerpt { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0 0 12px; }
.pl__by { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.pl__meta { font-size: 14px; color: var(--fg-2); margin-top: 4px; }
.pl--job { flex-direction: column; gap: 10px; }
.pl__side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl__date { font-size: 13px; color: var(--gray-500); }

@media (min-width: 720px) {
  .pl--job { flex-direction: row; align-items: center; }
  .pl__side { justify-content: flex-end; flex-shrink: 0; }
  .post-list--articles, .post-list--newsletter { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1024px) {
  .post { flex-direction: row; gap: 40px; align-items: flex-start; padding-top: 32px; }
  .post .post__rail { width: 340px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + 16px); order: 0; }
  .post-list--articles { grid-template-columns: repeat(3, 1fr); }
}

/* /events-calendar (src/render/calendar.js). Mobile is the base: the days that have events,
   as a list. From 860px the month is a seven-column grid. Blue tonal ladder only. */
.cal { padding-top: 24px; padding-bottom: 56px; }
.cal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal__title { font-size: 24px; font-weight: 900; letter-spacing: -0.015em; margin: 0; }
.cal__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cal__nav .is-on { border-color: var(--brand-navy); background: var(--brand-navy); color: #fff; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--fg-2); }
.cal__legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal__dot { width: 10px; height: 10px; border-radius: 50%; }
.cal__dot--a, .cal__ev--a { --tone: var(--brand-navy); }
.cal__dot--b, .cal__ev--b { --tone: var(--accent-pressed); }
.cal__dot--c, .cal__ev--c { --tone: var(--brand-cyan); }
.cal__dot--d, .cal__ev--d { --tone: var(--brand-sky); }
.cal__dot { background: var(--tone); }
.cal__head { display: none; }
.cal__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal__day { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; min-width: 0; }
.cal__day--empty, .cal__day--pad { display: none; }
.cal__day--today { border-color: var(--brand-cyan); box-shadow: var(--shadow-xs); }
.cal__num { font-size: 13px; font-weight: 700; color: var(--fg-2); }
.cal__ev { display: block; padding: 6px 8px 6px 10px; border-left: 3px solid var(--tone); border-radius: 6px; background: var(--bg-muted); font-size: 14px; line-height: 1.35; color: var(--brand-navy); text-decoration: none; overflow-wrap: anywhere; }
.cal__ev:hover { background: var(--bg-tint); color: var(--brand-navy); }
.cal__time { font-weight: 700; white-space: nowrap; }
.cal__none { padding: 24px 20px; border: 1px dashed var(--gray-300); border-radius: 16px; background: var(--bg-muted); }
.cal__year { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cal__month { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; text-decoration: none; color: var(--brand-navy); }
.cal__month:hover { border-color: var(--brand-cyan); color: var(--brand-navy); }
.cal__month--empty { color: var(--gray-500); }
.cal__mname { font-size: 17px; font-weight: 700; }
.cal__mcount { font-size: 14px; color: var(--fg-2); }
@media (min-width: 860px) {
  .cal__head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
  .cal__head li { padding: 0 8px; }
  .cal__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .cal__day, .cal__day--empty, .cal__day--pad { display: flex; min-height: 112px; padding: 8px; border-radius: 10px; }
  .cal__day--pad { border-style: dashed; background: transparent; }
  .cal__wd { display: none; }
  .cal__ev { font-size: 12px; padding: 4px 6px 4px 8px; }
  .cal__year { grid-template-columns: repeat(4, 1fr); }
}

/* News: the hub and kind indexes (renderNews), item labels and the boxes around a News item's
   body (src/render/post.js). Blue tonal ladder only; a paid feature reads as paid at a glance. */
.nw-tabs { margin-top: 20px; }
.nw-tab:hover { border-color: var(--brand-cyan); color: var(--brand-navy); }
.nw-tab.is-on { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.nw-badge { margin: 2px 0 4px; }
.nw-label--paid { color: var(--brand-navy); }
.pl--paid { background: var(--bg-muted); }
.pl--lead { border-color: var(--brand-navy); }
.pl--lead .pl__title { font-size: 26px; }
.nw-paid { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--brand-navy); border-radius: 12px; background: var(--bg-tint); font-size: 15px; line-height: 1.5; color: var(--brand-navy); max-width: 720px; }
.nw-paid a, .nw-box a, .nw-disclosure a { color: var(--accent-pressed); text-decoration: underline; text-underline-offset: 2px; }
.nw-disclosure { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--fg-2); max-width: 720px; }
.nw-box { margin: 28px 0 0; padding: 18px 20px; border: 1px solid var(--gray-200); border-radius: 14px; background: #fff; max-width: 720px; }
.nw-box .eyebrow { margin-bottom: 10px; }
.nw-box ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.nw-box li { margin-bottom: 6px; }
.nw-record { border-color: var(--brand-cyan); background: var(--bg-tint); }
.nw-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.nw-lang { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--accent-pressed); }
.nw-person + .nw-person { margin-top: 10px; }
.nw-standards .pc__row { grid-template-columns: 120px 1fr; }
@media (min-width: 720px) {
  .post-list--news { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .post-list--news .pl--lead, .post-list--newsletter .pl--lead, .post-list--articles .pl--lead { grid-column: 1 / -1; }
  .nw-standards .pc__row { grid-template-columns: 180px 1fr; }
}
@media (min-width: 1024px) {
  .post-list--news { grid-template-columns: repeat(3, 1fr); }
}
