/* === Base theme overrides === */
.reveal {
    font-family: 'Karla', 'Helvetica Neue', sans-serif;
    color: #1B1B1B;
    background: #ffffff;
}

.reveal .slides section {
    text-align: left;
    box-sizing: border-box;
    height: 100%;
}

/* === Headings === */
.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif !important;
    font-weight: 700 !important;
    color: #1B1B1B !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1B1B1B !important;
    text-shadow: none !important;
}

/* === Progress bar === */
.reveal .progress {
    background: #e8e8e8;
    height: 3px;
}

.reveal .progress span {
    background: #6CCBB2;
}

/* === Slide number === */
.reveal .slide-number {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    background: transparent;
    color: #1B1B1B;
    bottom: 12px;
    right: 12px;
}

/* === Links === */
.reveal a {
    color: #3390C3;
    text-decoration: underline dotted 0.1rem;
    position: unset;
}

.reveal a:hover {
    color: #6CCBB2;
    text-decoration: underline;
}

/* === Images === */
.reveal .slides section img {
    background: unset !important;
    border: none !important;
    box-shadow: none !important;
}

/* === Code === */
.reveal code {
    font-size: 70%;
    line-height: 1;
}

/* ====================================================
   TITLE SLIDE
   Photo is set via data-background-image (Reveal handles sizing).
   Gradient overlay via ::before (inset:0 fills the section reliably).
   Content uses normal document flow — no height:100% chains.
   ==================================================== */

/* White-to-transparent gradient overlay over the background photo */
.reveal .slides section.slide-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #ffffff 38%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0) 78%);
    z-index: 0;
    pointer-events: none;
}

/* Text content — normal flow, pushed down with padding-top */
.title-content {
    position: relative;
    z-index: 1;
    padding-top: 252px; /* ≈ 36% of 700px Reveal default height */
    padding-left: 3%;
    width: 68%;
    box-sizing: border-box;
}

/* Date label */
.title-date {
    margin: 0 0 20px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.55em;
    color: #1B1B1B;
    letter-spacing: 0.02em;
}

/* Main title */
.reveal .slides section.slide-title h1 {
    margin: 0 0 14px;
    font-size: 1.7em;
    line-height: 1.15;
    color: #1B1B1B !important;
    -webkit-text-fill-color: #1B1B1B !important;
}

/* Subtitle line */
.title-subtitle {
    margin: 0 0 28px;
    font-family: 'Karla', sans-serif;
    font-size: 0.72em;
    color: #1B1B1B;
    line-height: 1.4;
}

/* Author block with teal left border accent */
.title-author-block {
    border-left: 3px solid #6CCBB2;
    padding-left: 10px;
}

/* Author name */
.title-author {
    margin: 0 0 4px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.6em;
    color: #1B1B1B;
}

/* Role / tagline */
.title-role {
    margin: 0;
    font-family: 'Karla', sans-serif;
    font-size: 0.52em;
    color: #555555;
}

/* ====================================================
   STANDARD CONTENT SLIDES
   ==================================================== */

/* Gray header bar (title area) */
.slide-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    padding: 0 2.5%;
    box-sizing: border-box;
    overflow: visible;
}

.slide-header h2 {
    margin: 0;
    font-size: 1.4em;
    line-height: 1.1;
    color: #1B1B1B;
}

/* Teal gradient underline below the header */
.slide-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30%;
    height: 8px;
    background: linear-gradient(to right, #6CCBB2, rgba(255, 255, 255, 0));
}

/* Content body — area below header */
.slide-body {
    position: absolute;
    top: 22%;
    left: 2.5%;
    right: 2.5%;
    bottom: 12%;
    box-sizing: border-box;
}

/* Two full-height photos side by side (e.g. "Who is this talk for?" slide) */
.slide-two-photos {
    display: flex;
    gap: 2%;
    height: 100%;
    align-items: center;
}

.slide-two-photos img {
    width: 49%;
    height: 100%;
    object-fit: cover;
}

/* ====================================================
   UTILITY CLASSES
   ==================================================== */
.small {
    font-size: 60%;
}

.smaller {
    font-size: 50%;
}

.teal {
    color: #6CCBB2;
}

.blue {
    color: #3390C3;
}

.container {
    display: flex;
    justify-content: center;
    position: relative;
}

.container > * {
    padding: 5px;
}

/* em / strong — solid teal accent, no gradient */
.reveal em {
    font-style: italic;
    color: #35977D;
}

.reveal strong {
    font-weight: 700;
    color: #1B1B1B;
}

/* Lists — keep bullets subtle */
.reveal ul {
    list-style-type: disc;
    margin-left: 1em;
}

.reveal ul li,
.reveal ol li {
    margin-bottom: 0.25em;
}

/* Fixed bottom-right teal accent line (matches slide master decoration) */
.slide-footer-accent {
    position: fixed;
    bottom: 3.2%;
    right: 0;
    width: 11%;
    height: 4px;
    background: #6CCBB2;
    z-index: 100;
    pointer-events: none;
}

/* Print/export — hide fixed overlay */
@media print {
    .slide-footer-accent { display: none; }
}

/* === Slide 3: Badge + QR wrapper === */
.intro-badge-wrap {
    position: absolute;
    top: 18%;
    left: 0;
    right: 0;
    bottom: 0;
}

/* HTML-drawn HELLO badge */
.hello-badge-outer {
    position: absolute;
    left: 20%;
    right: 20%;
    top: 10%;
    bottom: 10%;
}

.hello-badge-outer::before,
.hello-badge-outer::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 5%;
    height: 10%;
    border: 5px solid #1B1B1B;
    border-top: none;
    border-radius: 0 0 50% 50%;
}
.hello-badge-outer::before { left: 5%; }
.hello-badge-outer::after  { right: 5%; }

.hello-badge {
    position: absolute;
    inset: 0;
    bottom: 10%;
    border: 5px solid #1B1B1B;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hello-badge-top {
    flex: 0 0 30%;
    background: #6CCBB2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 5px solid #1B1B1B;
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: 2em;
    color: #1B1B1B;
    letter-spacing: 0.06em;
}

.hello-badge-body {
    flex: 1;
    background: #f0f0f0;
    position: relative;
}

.intro-photo {
    position: absolute;
    bottom: 10%;
    right: 5%;
    height: 80%;
}

.intro-qr-group {
    position: absolute;
    bottom: 10%;
    left: 5%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.intro-card {
    width: 100%;
}

.intro-url-label {
    position: absolute;
    bottom: -5%;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6em;
    color: #1B1B1B;
}
