/* ============================================================
   NPW Conference Agenda – Front-End Stylesheet  v4
   Colours and sizes are injected as CSS variables by PHP.
   ============================================================ */

:root {
  --npw-bg:          #0a0d1a;
  --npw-accent:      #c9a84c;
  --npw-text:        #e8e6e0;
  --npw-muted:       #6a6a7a;6
  --npw-card-bg:     #111527;
  --npw-card-border: #1e2440;
  --npw-font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --npw-sz-title:    17px;
  --npw-sz-spk-name: 15px;
  --npw-sz-spk-meta: 13px;
  --npw-sz-time:     13px;
}

.npw-agenda-wrap *, .npw-agenda-wrap *::before, .npw-agenda-wrap *::after { box-sizing: border-box; }

.npw-agenda-wrap {
    font-family: var(--npw-font);
    background: var(--npw-bg);
    color: var(--npw-text);
    padding: 56px 28px 80px;
    max-width: 1040px;
    margin: 0 auto;
    border-radius: 6px;
}
.npw-agenda-wrap .hidden { display: none !important; }

/* ── Tabs ── */
.npw-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--npw-accent);
    margin-bottom: 52px;
}
.npw-tab {
    background: transparent;
    border: none;
    color: #9a9281;
    font-family: var(--npw-font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 13px 26px;
    cursor: pointer;
    position: relative;
    transition: color .2s;
    white-space: nowrap;
}
.npw-tab::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 2px;
    background: var(--npw-accent);
    transform: scaleX(0);
    transition: transform .2s;
}
.npw-tab--active, .npw-tab:hover       { color: var(--npw-accent); }
.npw-tab--active::after, .npw-tab:hover::after { transform: scaleX(1); }

/* ── Plenary header ── */
.npw-plenary-header { text-align: center; margin-bottom: 52px; }
.npw-plenary-eyebrow {
    display: block;
    font-size: 0.67rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--npw-accent);
    margin-bottom: 12px;
    opacity: .8;
}
.npw-plenary-title {
    font-size: 1.9rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.npw-plenary-subtitle {
    font-size: 0.82rem;
    color: #7d7568;
    margin: 0;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ── Timeline ── */
.npw-timeline { position: relative; }
.npw-timeline::before {
    content: '';
    position: absolute;
    top: 12px; bottom: 12px;
    left: 176px;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(201,168,76,.2) 8%, rgba(201,168,76,.2) 92%, transparent 100%);
}

/* ── Session row ── */
.npw-session {
    display: grid;
    grid-template-columns: 156px 20px 1fr;
    gap: 0 20px;
    margin-bottom: 36px;
    align-items: start;
}
.npw-session:last-child { margin-bottom: 0; }

/* Time column */
.npw-session__time {
    text-align: right;
    padding-top: 3px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.npw-time-range {
    font-size: var(--npw-sz-time);
    font-variant-numeric: tabular-nums;
    color: var(--npw-accent);
    letter-spacing: .03em;
    white-space: nowrap;
    line-height: 1.4;
}
.npw-time-dur {
    font-size: calc(var(--npw-sz-time) - 1px);
    color: #404464;
    white-space: nowrap;
}

/* Dot */
.npw-session__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--npw-accent);
    border: 2px solid var(--npw-bg);
    box-shadow: 0 0 0 2px var(--npw-accent);
    margin-top: 5px;
    justify-self: center;
}
.npw-session--networking .npw-session__dot,
.npw-session--transition  .npw-session__dot,
.npw-session--interlude   .npw-session__dot,
.npw-session--media       .npw-session__dot {
    background: #252840;
    box-shadow: 0 0 0 2px #252840;
}

/* Body */
.npw-session__body {
    padding-bottom: 36px;
    border-bottom: 1px solid #161a2e;
}
.npw-session:last-child .npw-session__body { border-bottom: none; padding-bottom: 0; }

/* ── Tags / badges ── */
.npw-session__tag {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 10px;
    border: 1px solid transparent;
}
.npw-tag--keynote    { background: rgba(201,168,76,.10); color: #e8c86d; border-color: rgba(201,168,76,.65); }
.npw-tag--panel      { background: rgba(31,78,121,.18);  color: #6bb3e8; border-color: rgba(107,179,232,.35); }
.npw-tag--welcome    { background: rgba(22,70,44,.4);    color: #5dbf8a; border-color: rgba(93,191,138,.35); }
.npw-tag--case-study { background: rgba(60,30,80,.4);    color: #c488e8; border-color: rgba(196,136,232,.35); }
.npw-tag--expert     { background: rgba(20,55,80,.4);    color: #7ec8e8; border-color: rgba(126,200,232,.35); }
.npw-tag--media      { background: rgba(70,20,30,.4);    color: #e87878; border-color: rgba(232,120,120,.35); }
.npw-tag--closing    { background: rgba(60,36,10,.5);    color: #e8b46d; border-color: rgba(232,180,109,.35); }

/* ── Session title ── */
.npw-session__title {
    font-size: var(--npw-sz-title);
    font-weight: 400;
    color: var(--npw-text);
    margin: 0 0 10px;
    line-height: 1.4;
    letter-spacing: 1.5px;
}
.npw-session--networking .npw-session__title,
.npw-session--transition  .npw-session__title,
.npw-session--interlude   .npw-session__title {
    color: #ffffff;
    font-weight: 400;
    font-size: calc(var(--npw-sz-title) - 2px);
}

.npw-session__desc {
    font-size: 0.85rem;
    color: var(--npw-muted);
    margin: 0 0 14px;
    line-height: 1.65;
}

/* ── Speaker cards ── */
.npw-speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}
.npw-speaker {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--npw-card-bg);
    border: 1px solid var(--npw-card-border);
    border-radius: 6px;
    padding: 12px 16px 12px 12px;
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 460px;
}
.npw-speaker__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--npw-accent), #7a5c18);
    color: #0a0d1a;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.npw-speaker__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}
/* Name — full, no truncation */
.npw-speaker__name {
    font-size: var(--npw-sz-spk-name);
    font-weight: 700;
    color: #d8d3c8;
    line-height: 1.3;
    word-break: break-word;
    white-space: normal;
}
/* Designation — full, wrapping */
.npw-speaker__meta {
    font-size: var(--npw-sz-spk-meta);
    color: var(--npw-muted);
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
}

/* ── Mobile ── */
@media (max-width: 660px) {
    .npw-agenda-wrap { padding: 30px 14px 52px; }
    .npw-timeline::before { display: none; }
    .npw-session {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .npw-session__time  { text-align: left; flex-direction: row; gap: 8px; align-items: baseline; }
    .npw-session__dot   { display: none; }
    .npw-session__body  { padding-bottom: 26px; }
    .npw-plenary-title  { font-size: 1.35rem; }
    .npw-tab            { padding: 9px 14px; font-size: 0.7rem; }
    .npw-speaker        { min-width: 100%; max-width: 100%; }
}
