/* Talks content only. The shared Jemdoc stylesheet owns the page shell,
   sidebar, title, typography, palette, and responsive navigation. */
.talks-page { container-type: inline-size; }
.talks-page [hidden] { display: none !important; }
.talks-page :is(button, input, select) { font: inherit; color: inherit; }
.talks-page button { cursor: pointer; }
.talks-page :is(input, select, summary):focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

.talk-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 24px;
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 8px;
    background: var(--surface-soft);
}
.talk-feature:not(:has(.talk-feature-media)) { grid-template-columns: 1fr; }
.talk-eyebrow {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.talk-feature h2 { margin: 0.75rem 0; padding: 0; border: 0; }
.talk-feature p { font-size: 0.9rem; color: var(--muted); }
.talks-page .talk-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 650;
    text-decoration: none;
    min-height: 44px;
}
.talks-page .talk-cta:hover { background: var(--surface-soft); color: var(--accent-warm); }
.talk-feature-media { min-width: 0; }
.talk-feature-media .talk-preview { padding: 0; }
.talk-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 2rem 0 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--line);
}
.talk-section-title h2 { margin: 0; padding: 0; border: 0; }
.talk-section-title span { font-size: 0.75rem; color: var(--muted); }
.talk-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.talk-search {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 9px;
    min-width: 180px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
}
.talk-search > span { font-size: 24px; line-height: 1; }
.talk-search input {
    width: 100%;
    min-width: 0;
    padding: 11px 0;
    border: 0;
    background: transparent;
    font-size: 0.85rem;
}
.talk-controls select {
    min-height: 44px;
    padding: 10px 25px 10px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    font-size: 0.8rem;
}
.talk-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 16px; }
.talk-filters button {
    padding: 7px 10px;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
}
.talk-filters button[aria-pressed=true] {
    background: var(--surface-soft);
    border-color: var(--line-strong);
    color: var(--accent-dark);
    font-weight: 650;
}
.talk-filters button:hover { border-color: var(--line); }
.talk-countline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1px 0 12px;
    font-size: 0.75rem;
    color: var(--muted);
}
.talks-page .talk-reset {
    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 0.75rem;
    text-decoration: underline;
}
.talk-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 23px 0;
    border-top: 1px solid var(--line);
}
.talk-row.no-preview .talk-row-body { grid-column: 1 / 3; }
.talk-preview {
    display: block;
    width: 100%;
    padding: 9px;
    border-radius: 6px;
    background: var(--surface-soft);
}
.talk-preview img { display: block; width: 100%; height: auto; border-radius: 3px; }
.talk-row h3 { margin: 7px 0 8px; line-height: 1.4; }
.talk-row h3 a { text-decoration: none; }
.talk-row h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.talk-row p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.talk-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 0.7rem;
}
.talk-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.talk-actions { display: flex; flex-direction: column; gap: 7px; font-size: 0.8rem; white-space: nowrap; }
.talk-footer { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.talk-footer summary { cursor: pointer; }
.talk-footer p { margin-top: 12px; }
.talk-empty { padding: 35px 15px; text-align: center; border-top: 1px solid var(--line); }

#talk-dialog {
    width: min(890px, 93vw);
    max-height: 92vh;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
}
#talk-dialog::backdrop { background: rgba(19, 41, 75, 0.75); }
.talk-dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.talk-dialog-top h2 { margin: 0; padding: 0; border: 0; }
.talk-dialog-top p { margin: 7px 0; font-size: 0.85rem; color: var(--muted); }
#talk-dialog-close { padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 22px; }
#talk-dialog-image { display: block; max-height: 65vh; max-width: 100%; margin: auto; object-fit: contain; border: 1px solid var(--line); }
.talk-dialog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; font-size: 0.8rem; }
#talk-dialog-source { color: var(--muted); }

/* Adapt to the shared content column, not a second set of page breakpoints. */
@container (max-width: 640px) {
    .talk-feature { grid-template-columns: 1fr; }
    .talk-feature-media { display: none; }
    .talk-search { flex-basis: 100%; }
    .talk-controls select { flex: 1; min-width: 0; }
    .talk-row { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
    .talk-row > .talk-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
}
@container (max-width: 400px) {
    .talk-section-title { flex-direction: column; gap: 7px; }
    .talk-row { grid-template-columns: 65px minmax(0, 1fr); }
    .talk-preview { padding: 5px; }
    .talk-filters { gap: 3px; }
    .talk-filters button { padding: 7px; }
}
@media (max-width: 520px) {
    #talk-dialog { padding: 17px; }
    .talk-dialog-bottom { align-items: start; flex-direction: column; }
}
@media print {
    .talk-tools, .talk-countline button { display: none; }
    .talk-feature, .talk-row { break-inside: avoid; }
}
