/* 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 {
    width: min(400px, 85vw);
    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;
}
/* 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%;
}
