/* Custom styles for your presentation template.
   A clean, light "paper" theme: blue / cyan / gold accents, Arial type,
   left-aligned content, gold-underlined section headings. Pair with the
   reveal.js "white" theme (see index.html). */

/* Root variables for easy theming */

:root {
    --ink: #17212b;
    --muted: #5a6875;
    --rule: #d9e0e7;
    --blue: #00407a;
    --cyan: #00a5c8;
    --gold: #f2a900;
    --paper: #fbfcfd;
    --code-background: #2d2d2d;
}

body {
    background: var(--paper);
}

.reveal {
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

.reveal .slides {
    text-align: left;
}

.reveal .slides section {
    box-sizing: border-box;
    padding-bottom: 34px;
}

/* ===== Headings ===== */

.reveal h1,
.reveal h2,
.reveal h3 {
    color: var(--blue);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.reveal h1 {
    max-width: 940px;
    font-size: 2.18em;
    line-height: 1.02;
}

.reveal h2 {
    margin-bottom: 0.65em;
    border-bottom: 4px solid var(--gold);
    padding-bottom: 0.18em;
    font-size: 1.34em;
}

.reveal h3 {
    margin-bottom: 0.35em;
    font-size: 0.74em;
}

/* ===== Body text ===== */

.reveal p,
.reveal li {
    font-size: 0.63em;
    line-height: 1.34;
}

.reveal ul {
    margin-left: 1.05em;
}

.reveal li {
    margin-bottom: 0.35em;
}

.reveal ul li::marker {
    color: var(--cyan);
}

.reveal a {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid var(--cyan);
}

.reveal a:hover {
    color: var(--cyan);
}

/* ===== Tables ===== */

.reveal table {
    font-size: 0.6em;
}

.reveal table th {
    color: var(--blue);
    border-bottom: 2px solid var(--gold);
}

.reveal table th,
.reveal table td {
    border-color: var(--rule);
}

/* ===== Images ===== */

.reveal img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border: 1px solid var(--rule);
    border-radius: 4px;
    box-shadow: none;
    background: white;
}

/* ===== Code blocks ===== */

.reveal pre {
    box-shadow: 0 4px 12px rgb(23 33 43 / 12%);
    border-radius: 8px;
    margin: 0.8em 0;
}

.reveal pre code {
    background-color: var(--code-background);
    padding: 1em;
    border-radius: 8px;
    font-size: 0.7em;
    line-height: 1.4;
}

.reveal code {
    color: var(--blue);
}

/* ===== Title slide ===== */

.reveal .title-slide {
    text-align: left;
}

.title-slide h1 {
    margin-top: 0.25em;
    margin-bottom: 0.16em;
    font-size: 2.55em;
}

.title-slide h3 {
    color: var(--ink);
    font-size: 0.86em;
    font-weight: 500;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1.1em;
    margin-top: 0.7em;
    color: var(--muted);
    font-size: 0.5em;
    font-weight: 600;
}

.contact-row .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.contact-row a.contact-item {
    color: var(--muted);
    border-bottom: none;
}

.contact-row a.contact-item:hover {
    color: var(--cyan);
}

.qr-follow {
    position: absolute;
    top: 0.6em;
    right: 0.6em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
}

.qr-follow img {
    width: 190px;
    height: 190px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgb(23 33 43 / 10%);
}

.qr-follow p {
    margin: 0;
    color: var(--muted);
    font-size: 0.34em;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.org-badges {
    position: absolute;
    right: 0.6em;
    bottom: 1.5em;
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.org-badges .badge {
    display: flex;
    align-items: center;
    padding: 0.45em 0.75em;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgb(23 33 43 / 10%);
}

.org-badges .badge img {
    height: 82px;
    width: auto;
    margin: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

/* ===== Reusable text helpers ===== */

.eyebrow,
.source-line {
    color: var(--cyan);
    font-size: 0.48em !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.byline {
    margin-top: 1.2em;
    color: var(--blue);
    font-size: 0.72em !important;
    font-weight: 700;
}

.muted,
.caption {
    color: var(--muted);
}

.source-line {
    margin-top: 2.6em;
}

.source-line a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.source-line a:hover {
    color: var(--blue);
}

.caption {
    margin-top: 0.5em;
    font-size: 0.48em !important;
}

.takeaway {
    margin-top: 0.8em;
    border-left: 6px solid var(--gold);
    padding: 0.42em 0 0.42em 0.75em;
    color: var(--ink);
    font-weight: 700;
}

.large-claim {
    max-width: 980px;
    color: var(--blue);
    font-size: 0.92em !important;
    font-weight: 700;
    line-height: 1.18 !important;
}

.metric {
    border-left: 6px solid var(--cyan);
    padding-left: 16px;
}

.metric strong {
    color: var(--blue);
    font-size: 1.5em;
}

/* ===== Math helpers ===== */

.math-block {
    margin: 0.4em 0 0.7em;
    color: var(--blue);
    font-size: 0.82em !important;
}

.small-math {
    font-size: 0.58em !important;
}

.inline-math {
    white-space: nowrap;
}

/* Dense, categorized citation footnote (beats the .reveal p 0.63em rule). */
.reveal p.ml-refs {
    margin: 0.55em 0 0;
    color: var(--muted);
    font-size: 0.3em;
    line-height: 1.32;
}

.reveal p.ml-refs strong {
    color: var(--blue);
}

/* Compact two-column list + takeaway, scoped to the AI-efforts slide so the
   four cited categories, the rigor list, refs, and takeaway all fit at 720px. */
.reveal .ai-efforts li {
    font-size: 0.55em;
    line-height: 1.24;
    margin-bottom: 0.22em;
}

.reveal p.takeaway.ai-take {
    margin-top: 0.45em;
    font-size: 0.6em;
}

/* ===== Layout grids ===== */

.two-col,
.three-col,
.figure-left,
.figure-claim {
    display: grid;
    gap: 36px;
    align-items: center;
}

.two-col {
    grid-template-columns: 1fr 1fr;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.figure-left {
    grid-template-columns: 1.08fr 0.92fr;
}

.figure-left img {
    height: 440px;
    object-fit: contain;
}

.figure-claim {
    grid-template-columns: 1.45fr 0.75fr;
}

.figure-claim img {
    height: 420px;
    object-fit: contain;
}

/* Full-width hero photo/render with an attribution credit. */

.hero-figure {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0.35em 0 0.3em;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 8px;
}

.hero-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.img-credit {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 9px;
    border-radius: 4px;
    background: rgb(0 0 0 / 55%);
    color: #fff;
    font-size: 0.32em;
    letter-spacing: 0.01em;
}

/* Candidate-site map (slide 11). */

.viz-frame.map-panel {
    height: 452px;
    margin: 0.2em 0;
}

/* Calibration uncertainty figure (slide 17). */

.viz-frame.cal {
    height: 236px;
    margin: 0.15em 0 0.1em;
}

/* Distributed-sensing figure (slide 18). */

.viz-frame.sensors {
    height: 246px;
    margin: 0.15em 0 0.1em;
}

/* Matched-filter search animation (slide 21). */

.viz-frame.mf {
    height: 392px;
    margin: 0.1em 0;
}

/* Time-slide background animation (slide 22). */

.viz-frame.ts {
    height: 392px;
    margin: 0.1em 0;
}

/* Geometry comparison (slide 13). */

.viz-frame.geo {
    height: 196px;
    margin: 0.15em 0;
}

.geometry-cols {
    gap: 48px;
    margin-top: 0.05em;
    align-items: start;
}

.geometry-cols ul {
    margin: 0;
}

.geometry-cols li {
    margin-bottom: 0.12em;
}

.ref {
    margin: 0.28em 0 0;
    color: var(--muted);
    font-size: 0.28em;
    line-height: 1.28;
}

/* Card panels (e.g. inside .three-col) */

.three-col > div,
.card {
    border-top: 4px solid var(--cyan);
    background: #eef7fa;
    padding: 20px 22px;
}

/* ===== Visual explanation stages ===== */

.viz-frame {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 0.3em 0 0.32em;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 88%), rgb(246 250 252 / 96%)),
        radial-gradient(
            circle at 18% 15%,
            rgb(0 165 200 / 10%),
            transparent 30%
        ),
        radial-gradient(
            circle at 86% 85%,
            rgb(242 169 0 / 12%),
            transparent 30%
        );
}

.viz-frame.compact {
    height: 310px;
}

.viz-frame.hero-viz {
    height: 545px;
    margin-top: 0.45em;
}

/* Hero viz that shares the slide with a caption/takeaway. */

.viz-frame.hero-viz.compact-hero {
    height: 452px;
    margin-top: 0.3em;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 545px;
    margin: 0.45em 0 0.35em;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: #0c1118;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
}

.gw150914-frame {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    grid-template-rows: 1fr 1fr auto;
    gap: 12px 16px;
    width: 100%;
    height: 505px;
    margin-top: 0.38em;
}

.gw-panel {
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: white;
}

.gw-panel h3 {
    margin: 0;
    border-bottom: 1px solid var(--rule);
    background: #eef7fa;
    padding: 7px 12px;
    color: var(--ink);
    font-size: 0.42em;
}

.gw-panel img {
    width: 100%;
    height: calc(100% - 35px);
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.gw-spectrogram {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.gw-fact {
    grid-column: 1 / span 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    border-left: 5px solid var(--gold);
    background: #fff8e8;
    padding: 8px 14px;
    color: var(--ink);
    font-size: 0.44em;
}

.gw-fact strong,
.gw-fact span {
    white-space: nowrap;
}

.gw-fact span::before {
    content: '|';
    margin-right: 10px;
    color: var(--muted);
}

.viz-frame svg,
.viz-frame canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.viz-label {
    fill: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.viz-small {
    fill: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.viz-axis {
    stroke: #8593a0;
    stroke-width: 1.4;
}

.viz-blue {
    stroke: var(--blue);
}

.viz-cyan {
    stroke: var(--cyan);
}

.viz-gold {
    stroke: var(--gold);
}

.notice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 0.35em;
}

.notice-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-left: 4px solid var(--cyan);
    background: #eef7fa;
    padding: 4px 10px;
    color: var(--ink);
    font-size: 0.42em;
    font-weight: 700;
    line-height: 1.15;
}

.notice-row span:nth-child(2n) {
    border-left-color: var(--gold);
}

.pulse-dot {
    transform-origin: center;
    animation: pulse-dot 1.8s ease-in-out infinite;
}

.flow-line {
    stroke-dasharray: 10 9;
    animation: dash-flow 1.7s linear infinite;
}

.draw-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw-line 4.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

@keyframes dash-flow {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -38;
    }
}

@keyframes draw-line {
    0% {
        stroke-dashoffset: 600;
    }

    38%,
    78% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -600;
    }
}

.card.gold {
    border-top-color: var(--gold);
}

/* Highlight box */

.highlight-box {
    background-color: rgb(0 165 200 / 8%);
    border-left: 4px solid var(--cyan);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

/* ===== Chrome: footer, slide number, progress ===== */

.deck-footer {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 10;
    color: #6c7a86;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.reveal .slide-number {
    right: auto;
    bottom: 20px;
    left: 18px;
    color: var(--blue);
    background: transparent;
    font-size: 14px;
}

.reveal .progress {
    color: var(--gold);
}

/* ===== Fragment animations ===== */

.reveal .fragment.highlight-current-blue.current-fragment {
    color: var(--cyan);
    font-weight: bold;
}

/* ===== Mobile responsiveness ===== */
@media (width <= 768px) {
    .two-col,
    .three-col,
    .figure-left,
    .figure-claim {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ===== Print styles for PDF export ===== */
@media print {
    .reveal .slides section {
        page-break-after: always;
    }

    .reveal .fragment {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
