/* Layout for the insights section. Typography, colours and the header/footer
   come from tennyson.css; this file only adds what that stylesheet has no
   equivalent for — the player/transcript panes and the insight cards. */

:root {
    --ink: #303030;
    --body: #606060;
    --head: #404040;
    --quiet: #808080;
    --rule: #e0e0e0;
    --panel: #f7f7f7;
    --panel-rule: #e8e8e8;
    --accent: #c42600;
}

/* tennyson.css indents every li by 8%; the lists here are navigation, not prose. */
#insights li, #insights ul {
    margin-left: 0;
    padding-left: 0;
}

#insights {
    color: var(--ink);
    margin: 0 3em 4em 3em;
    max-width: 64em;
}

#insights h1 {
    font-family: "P22 Underground", "Trebuchet MS";
    font-size: 212%;
    font-weight: normal;
    color: var(--head);
    margin: 0.2em 0 0.15em 0;
    line-height: 115%;
}

#insights h2 {
    font-size: 114%;
    font-weight: bold;
    color: var(--head);
    margin: 1.4em 0 0.6em 0;
}

#insights h3 {
    font-size: 85%;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--quiet);
    margin: 1.8em 0 0.7em 0;
}

#insights p {
    line-height: 144%;
}

.sub {
    color: var(--body);
    font-size: 85%;
    line-height: 144%;
    margin-bottom: 1.4em;
}

.sub a, .backlink {
    color: var(--body);
}

/* ---- transcript page: player left, transcript right ---- */

.wrap {
    display: flex;
    gap: 2em;
    align-items: flex-start;
}

.left {
    flex: 1.1;
    min-width: 21em;
}

.right {
    flex: 1;
    min-width: 19em;
    max-height: 78vh;
    overflow-y: auto;
    border-left: 1px solid var(--rule);
    padding-left: 1.4em;
}

.videobox {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
}

.videobox iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.nav a.navch {
    display: block;
    font-size: 92%;
    line-height: 135%;
    padding: 3px 0;
    color: var(--body);
    text-decoration: none;
}

.nav a.navch:hover {
    color: var(--accent);
}

.nav .pg, .nav .tcode {
    display: inline-block;
    min-width: 4.2em;
    color: var(--quiet);
}

/* ---- insight blocks ---- */

.idea {
    margin: 0 0 1.1em 0;
}

.idea .head {
    margin-bottom: 0.2em;
}

.idea .head .t {
    font-weight: bold;
    color: var(--head);
}

.idea .head .jump {
    color: var(--accent);
    text-decoration: none;
    margin-right: 0.5em;
    font-size: 92%;
}

.idea .head a.jump:hover {
    text-decoration: underline;
}

.idea p {
    margin: 0;
    font-size: 96%;
}

a.ts {
    color: var(--accent);
    text-decoration: none;
}

a.ts:hover {
    text-decoration: underline;
}

.hint, .quiet {
    color: var(--quiet);
    font-size: 85%;
    line-height: 140%;
}

/* ---- transcript column ---- */

p.seg {
    margin: 0 0 0.55em 0;
    cursor: pointer;
    font-size: 96%;
    line-height: 140%;
}

p.seg .ts {
    display: inline-block;
    min-width: 3.6em;
    color: var(--quiet);
}

p.seg:hover .tx {
    color: var(--ink);
}

p.seg.active .tx {
    color: #202020;
    font-weight: bold;
}

h3.chapter {
    border-top: 1px solid var(--rule);
    padding-top: 0.8em;
}

h3.chapter .ct {
    color: var(--quiet);
    font-weight: normal;
}

label.toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--quiet);
    font-size: 85%;
    cursor: pointer;
    user-select: none;
}

/* ---- landing page ---- */

section.entry {
    border-top: 1px solid var(--rule);
    padding-top: 1.6em;
    margin-top: 2.2em;
}

.vhead {
    display: flex;
    gap: 1.2em;
    align-items: flex-start;
}

.vhead a.thumb {
    flex: 0 0 160px;
    display: block;
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
}

.vhead a.thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.vhead .meta h2 {
    margin: 0 0 0.15em 0;
    font-size: 125%;
}

.vhead .meta h2 a {
    text-decoration: none;
    color: var(--head);
}

.vhead .meta h2 a:hover {
    color: var(--accent);
}

.vhead .meta .src {
    color: var(--quiet);
    font-size: 85%;
}

.vhead .meta .open {
    display: inline-block;
    margin-top: 0.5em;
    font-size: 85%;
    color: var(--accent);
    text-decoration: none;
}

.vhead .meta .open:hover {
    text-decoration: underline;
}

/* tennyson.css gives #footer a fixed 80em width, which overflows this section
   on anything narrower; the insights pages set their own. */
#footer.insights-footer {
    width: auto;
    max-width: 64em;
    margin-left: 3em;
}

@media (max-width: 70em) {
    #insights { margin-left: 1.2em; margin-right: 1.2em; }
    #footer.insights-footer { margin-left: 1.2em; }
    .wrap { flex-direction: column; }
    /* Stacked: the column is no longer its own scroll container, so the
       page scrolls instead and the overflow must go with the max-height. */
    .right { max-height: none; overflow-y: visible; border-left: 0; padding-left: 0;
             border-top: 1px solid var(--rule); padding-top: 1em; }
}


/* Publication date, directly beneath the title on both the list and a video. */
.date {
    color: var(--quiet);
    font-size: 85%;
    margin: 0 0 0.2em 0;
}

/* Straight to the video on YouTube, for when the reading page is not what you want. */
a.yt {
    color: var(--quiet);
}

.vhead .meta a.open.yt {
    color: var(--quiet);
    margin-left: 1.2em;
}

.vhead .meta a.open.yt:hover {
    color: var(--accent);
}

/* The generated-content notice, which should not be mistaken for body text. */
.disclaimer {
    border-left: 3px solid var(--accent);
    padding-left: 0.9em;
    margin-top: 0.9em;
}

.disclaimer strong {
    color: var(--head);
}
