/* Techalicious v2 extras */

/* Shared presentation column (title, slide, Prev/Next, deep-dive) */
:root {
    --pres-width: 960px;
    --pres-pad-x: 1.25rem;
}

/* Stand-out notice: red bar, white text */
.banner-notice {
    background: #DC2626;
    color: #ffffff;
    padding: 0.95rem 1.25rem;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.5;
    border-bottom: 3px solid #991B1B;
    font-weight: 500;
}
.banner-notice strong {
    color: #ffffff;
    font-weight: 800;
}
.banner-notice a {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 700;
}
.banner-notice a:hover {
    color: #FEE2E2 !important;
}

.hero.v2-hero {
    text-align: center;
    padding: 2.25rem 1.25rem 1.25rem;
    max-width: 720px;
    margin: 0 auto;
}
.hero.v2-hero .hero-logo {
    /* slightly larger logo (was 400px) */
    width: min(480px, 90vw);
    margin: 0 auto 1.1rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0 0.5rem;
}

.story-card {
    background: var(--ice);
    border: 1px solid var(--ice-deep);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    margin: 1.75rem auto;
    max-width: 960px;
    box-shadow: 0 4px 12px var(--shadow);
}
.story-card h2 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
}
.story-card p { color: var(--text); margin: 0.65rem 0; }
.story-card p:first-of-type { margin-top: 0.5rem; }
.story-card p:last-child { margin-bottom: 0; }
.story-card ul {
    margin: 0.65rem 0 0.65rem 1.2rem;
    color: var(--text);
}
.story-card li { margin: 0.35rem 0; }

.page-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}
.page-narrow h1 { margin: 0.75rem 0; }
.page-narrow h2,
.page-narrow h3 { margin: 0.85rem 0; }
.page-narrow p { margin: 0.75rem 0; }
.page-narrow ol, .page-narrow ul { margin: 0.75rem 0 0.75rem 1.25rem; }
.page-narrow li { margin: 0.35rem 0; }

.section-title {
    text-align: center;
    margin: 2rem 0;
    padding: 0 1rem;
}
.section-title h2 { margin: 0.5rem 0; }
.section-title .meta {
    color: var(--text-light);
    font-size: 0.95rem;
}

.bio-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}
.bio-row img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--ice-deep);
}
@media (max-width: 560px) {
    .bio-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

body.v2 {
    font-size: 17px;
    line-height: 1.7;
}
body.v2 .page { flex: 1; }

/* presentation detail — one shared content width for title, slide, nav, notes */
.slide-frame {
    max-width: var(--pres-width);
    margin: 0 auto 1.5rem;
    padding: 0 var(--pres-pad-x);
    box-sizing: border-box;
    width: 100%;
}
.slide-frame img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--ice-deep);
    box-shadow: 0 4px 16px var(--shadow);
}
.deep-dive {
    max-width: var(--pres-width);
    margin: 0 auto 2rem;
    padding: 0 var(--pres-pad-x) 2rem;
    box-sizing: border-box;
    width: 100%;
}
/* Headings in deep-dive notes: equal air above and below */
.deep-dive h1,
.deep-dive h2,
.deep-dive h3,
.deep-dive h4 {
    margin: 0.9rem 0;
    line-height: 1.35;
}
.deep-dive p {
    margin: 0.75rem 0;
}
.deep-dive p.li {
    margin: 0.35rem 0 0.35rem 0.5rem;
}
.deep-dive pre {
    background: var(--navy-deep);
    color: var(--code-text);
    padding: 0.9rem 1.1rem;
    /* wrap long shell lines instead of forcing a page-wide scroll */
    overflow-x: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-radius: var(--radius);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0.9rem 0;
    border: 1px solid var(--navy);
    max-width: 100%;
    box-sizing: border-box;
}
.deep-dive pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
    /* pre-wrap = keep newlines/indent, wrap at container edge */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* ASCII boxes / diagrams: monospaced columns must not wrap mid-line */
.deep-dive pre.ascii-diagram,
.deep-dive pre.ascii-diagram code {
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    overflow-x: auto;
}
/* Full install/setup scripts: keep structure, scroll if needed */
.deep-dive pre.script-block {
    max-height: min(70vh, 48rem);
    overflow: auto;
}
.deep-dive pre.script-block,
.deep-dive pre.script-block code {
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
}
/* Real HTML tables (from markdown | a | b | blocks) */
.deep-dive table.md-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.45;
    box-sizing: border-box;
}
.deep-dive table.md-table th,
.deep-dive table.md-table td {
    border: 1px solid var(--ice-deep);
    padding: 0.55rem 0.75rem;
    text-align: left;
    vertical-align: top;
}
.deep-dive table.md-table th {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
}
.deep-dive table.md-table tr:nth-child(even) td {
    background: var(--ice);
}
.deep-dive table.md-table code {
    font-size: 0.88em;
}
@media (max-width: 640px) {
    .deep-dive table.md-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.deep-dive code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--ice);
    color: var(--navy-deep);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.slide-placeholder {
    background: var(--ice);
    border: 1px dashed var(--ice-deep);
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-light);
}
.slide-placeholder .sp-title {
    margin: 0;
    font-weight: 700;
    color: var(--navy);
}
.slide-placeholder .sp-note {
    margin: 0.75rem 0 0;
}
.deep-dive ul,
.deep-dive ol {
    margin: 0.75rem 0 0.75rem 1.25rem;
}
.deep-dive li {
    margin: 0.35rem 0;
}
/* Prev/Next: same column as slide + deep-dive */
.slide-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: var(--pres-width);
    margin: 0 auto 1.5rem;
    padding: 0 var(--pres-pad-x);
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
}
.slide-nav .cta-btn {
    flex: 0 1 auto;
}
/* title strip above slides: same column */
.page > .page-narrow {
    max-width: var(--pres-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pres-pad-x);
    padding-right: var(--pres-pad-x);
    box-sizing: border-box;
    width: 100%;
}

/* —— Events page (feature flow, not side-by-side thumb) —— */
.page-events {
    max-width: var(--pres-width);
    margin: 0 auto;
    padding: 1.75rem var(--pres-pad-x) 3rem;
    box-sizing: border-box;
    width: 100%;
}
.events-page-header {
    text-align: left;
    margin: 0 0 1.5rem;
    padding: 0;
}
.events-page-header h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.75rem, 3vw, 2.1rem);
}
.events-page-header .meta {
    margin: 0;
    max-width: 38rem;
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.55;
}
.events-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
}
.events-kicker.past {
    color: var(--text-light);
}
.events-empty {
    max-width: 960px;
    margin: 0 auto 1.75rem;
    padding: 1rem 1.15rem;
    background: var(--white);
    border: 1px dashed var(--ice-deep);
    border-radius: var(--radius);
    color: var(--text);
    line-height: 1.5;
}

/* One vertical feature: full-width art → copy → CTAs */
.event-feature {
    margin: 0 0 2.75rem;
    background: var(--white);
    border: 1px solid var(--ice-deep);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 22px var(--shadow);
}
.event-feature-hero {
    display: block;
    line-height: 0;
    background: #0b1220;
}
.event-feature-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 640px);
    object-fit: cover;
    object-position: center 40%;
}
.event-feature-body {
    padding: 1.5rem 1.6rem 1.75rem;
}
.event-feature-body .tag-row {
    margin: 0 0 0.55rem;
}
.event-feature-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    line-height: 1.3;
}
.event-feature-title a {
    color: inherit;
    text-decoration: none;
}
.event-feature-title a:hover {
    color: var(--blue);
    text-decoration: underline;
}
.event-feature-lead {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text);
}
.event-feature-body p {
    margin: 0.85rem 0;
    max-width: 42rem;
}
.event-feature-sub {
    margin: 1.35rem 0 0.5rem;
    font-size: 1.05rem;
}
.event-feature-list {
    margin: 0.35rem 0 1rem 1.2rem;
    padding: 0;
    max-width: 42rem;
}
.event-feature-list li {
    margin: 0.5rem 0;
}
.event-feature-cta {
    justify-content: flex-start;
    margin: 1.35rem 0 0;
}

.events-more {
    margin: 0 0 2rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--ice-deep);
}
.events-more h2 {
    margin: 1.25rem 0 0.55rem;
    font-size: 1.2rem;
}
.events-more p {
    margin: 0.55rem 0;
    max-width: 40rem;
    color: var(--text);
}
.events-home-link {
    margin-top: 1.25rem !important;
}

/* Home teaser: wider art, still compact row */
.event-card {
    display: grid;
    grid-template-columns: minmax(160px, 280px) 1fr;
    gap: 0;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto 1.75rem;
    background: var(--white);
    border: 1px solid var(--ice-deep);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 14px var(--shadow);
}
.event-card-cover {
    display: block;
    line-height: 0;
    background: #0b1220;
    min-height: 100%;
}
.event-card-cover img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: block;
    object-fit: cover;
    object-position: center 40%;
}
.event-card-body {
    padding: 1.2rem 1.35rem 1.35rem;
}
.event-card-body h3 {
    margin: 0.35rem 0 0.65rem;
    font-size: 1.15rem;
    line-height: 1.35;
}
.event-card-body h3 a {
    color: inherit;
    text-decoration: none;
}
.event-card-body h3 a:hover {
    color: var(--blue);
    text-decoration: underline;
}
.event-card-body p {
    margin: 0.5rem 0 0.75rem;
}
.event-card .cta-row {
    margin-top: 0.85rem;
    justify-content: flex-start;
}
@media (max-width: 700px) {
    .event-card {
        grid-template-columns: 1fr;
    }
    .event-card-cover img {
        min-height: 0;
        max-height: 320px;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
    .event-feature-hero img {
        max-height: min(55vh, 420px);
    }
    .event-feature-body {
        padding: 1.2rem 1.15rem 1.4rem;
    }
}
