/* =============================================
   SI^NZ Forum 2026 — Shared Stylesheet
   ============================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal: #1a8282;
    --teal-dark: #0b2228;
    --teal-mid: #0f4048;
    --teal-light: #e0f4f4;
    --teal-accent: #4ab8b0;
    --gold: #d4952a;
    --gold-light: #fdf4e3;
    --text: #1a1a2e;
    --text-muted: #555568;
    --bg: #ffffff;
    --bg-alt: #f4f8f8;
    --border: #d8e6e6;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .08);
    --nav-h: 64px;
    --serif: 'Georgia', 'Times New Roman', serif;
    --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--teal-dark);
}

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--teal-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    /* needed so the mobile dropdown positions relative to the nav bar */
    overflow: visible;
}

.nav-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
}

.nav-brand:hover {
    color: #fff;
    text-decoration: none;
}

.nav-brand span {
    color: var(--gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, .85);
    padding: .35rem .75rem;
    border-radius: var(--radius);
    font-size: .9rem;
    transition: background .15s, color .15s;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, .15);
    color: var(--teal-accent);
}

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(160deg, rgba(11, 34, 40, 0.82) 0%, rgba(14, 52, 60, 0.72) 55%, rgba(10, 62, 62, 0.68) 100%),
        url('../static/background.png') center / cover no-repeat;
    color: #fff;
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    /* subtle vignette to deepen edges */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .35) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    padding: .3rem 1rem;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.2;
    margin-bottom: .5rem;
}

.hero h1 sup {
    font-size: .55em;
    vertical-align: super;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: .95rem;
    color: rgba(255, 255, 255, .9);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.hero-meta-item svg {
    opacity: .7;
}

.hero-cta {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    padding: .85rem 2.5rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .02em;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 15px rgba(200, 151, 42, .4);
    text-decoration: none;
}

.hero-cta:hover {
    background: #b5841f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 151, 42, .5);
    text-decoration: none;
    color: #fff;
}

/* ---------- Section Shell ---------- */
.section {
    padding: 4.5rem 2rem;
}

.section--alt {
    background: var(--bg-alt);
}

.section--teal-light {
    background: var(--teal-light);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    color: var(--teal);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.25;
}

h3.section-title {
    font-size: 1.3rem;
    font-style: italic;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.divider {
    width: 50px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

/* ---------- About Cards ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--teal);
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--teal-dark);
}

.card p {
    font-size: .92rem;
    color: var(--text-muted);
}

/* ---------- Programme Table ---------- */
.programme-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.programme-table thead th {
    background: var(--teal-dark);
    color: #fff;
    padding: .75rem 1.25rem;
    text-align: left;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.programme-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.programme-table tbody tr:hover {
    background: var(--teal-light);
}

.programme-table td {
    padding: .9rem 1.25rem;
    vertical-align: top;
}

.programme-table .time-col {
    white-space: nowrap;
    font-weight: 600;
    color: var(--teal-dark);
    width: 200px;
}

.programme-table .location-col {
    font-size: .88rem;
    color: var(--text-muted);
    width: 220px;
}

.prog-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: .15rem .55rem;
    margin-bottom: .25rem;
}

.prog-tag--workshop {
    background: #e3f2f2;
    color: #0a6b6e;
}

.prog-tag--break {
    background: #fef9ed;
    color: #a07020;
}

.prog-tag--talks {
    background: #eef2ff;
    color: #3948a8;
}

.prog-tag--panel {
    background: #fff0f3;
    color: #9b2039;
}

.prog-tag--social {
    background: #f0fdf4;
    color: #1a7a3a;
}

.prog-tag--arrival {
    background: #f5f5f5;
    color: #555;
}

.programme-table .activity-name {
    font-weight: 600;
    margin-bottom: .2rem;
}

.programme-table .activity-desc {
    color: var(--text-muted);
    font-size: .88rem;
}

/* ---------- Past Events Grid ---------- */
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.past-event-link-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.past-event-link-card .year-badge {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 20px;
    padding: .25rem .85rem;
    margin-bottom: 1rem;
}

.year-badge--cancelled {
    background: var(--text-muted) !important;
}

.past-event-link-card h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin-bottom: .4rem;
}

.past-event-meta {
    font-size: .8rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .75rem !important;
}

.past-event-link-card p {
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex: 1;
}

.btn {
    display: inline-block;
    padding: .6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: var(--teal);
    color: #fff;
}

.btn-primary:hover {
    background: var(--teal-dark);
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--teal);
    color: var(--teal);
    background: transparent;
}

.btn-outline:hover {
    background: var(--teal);
    color: #fff;
}

/* ---------- Register CTA Section ---------- */
.register-section {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 50%, var(--teal) 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.register-section h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: .75rem;
}

.register-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, .8);
    max-width: 560px;
    margin: 0 auto 2rem;
}

.register-section .hero-cta {
    margin: 0 auto;
}

/* ---------- People Grid (organisers / panelists) ---------- */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.person-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.person-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--teal-light);
    border: 3px solid var(--teal);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 2.25rem;
    overflow: hidden;
}

.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.person-card .person-role {
    font-size: .82rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
}

.person-card .person-affiliation {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.person-card .person-bio {
    font-size: .83rem;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-alt);
    border-radius: 6px;
    padding: .5rem .75rem;
}

.placeholder-note {
    display: inline-block;
    background: var(--gold-light);
    border: 1px dashed var(--gold);
    color: #8a6010;
    font-size: .78rem;
    border-radius: 4px;
    padding: .2rem .6rem;
    margin-top: .5rem;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    background:
        linear-gradient(160deg, rgba(11, 34, 40, 0.88) 0%, rgba(14, 58, 65, 0.82) 100%),
        url('../static/background.png') center / cover no-repeat;
    color: #fff;
    padding: 3.5rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: .5rem;
}

.page-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .8);
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
    background:
        linear-gradient(160deg, rgba(11, 34, 40, 0.92) 0%, rgba(14, 52, 60, 0.90) 100%),
        url('../static/background.png') center / cover no-repeat;
    color: rgba(255, 255, 255, .75);
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: .87rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .85);
}

.site-footer a:hover {
    color: #fff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.5rem;
    margin-bottom: 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, .5);
}

/* ---------- Utilities ---------- */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* ---------- Sponsors ---------- */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform .2s, box-shadow .2s;
    min-width: 220px;
    max-width: 300px;
    flex: 1 1 220px;
}

.sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    text-decoration: none;
    color: var(--text);
}

.sponsor-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-name {
    font-weight: 700;
    font-size: .95rem;
    text-align: center;
    line-height: 1.3;
}

.sponsor-url {
    font-size: .8rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ---------- Working Groups ---------- */
.wg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.wg-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.wg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.wg-card-header {
    background: var(--teal-dark);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    /* 3 lines of h3 text (1rem × 1.3 line-height) + top & bottom padding */
    min-height: calc(1rem * 1.3 * 3 + 2 * 1.25rem);
    border-bottom: 2px solid var(--teal-accent);
}

.wg-label {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold);
    line-height: 1;
    min-width: 1.75rem;
}

.wg-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.wg-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wg-blurb {
    font-size: .93rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

/* ---------- Panelist Bio Section ---------- */
.bio-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.bio-entry {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 210px 1fr;
}

.bio-sidebar {
    background: var(--teal-dark);
    color: #fff;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
}

.bio-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-mid);
    color: rgba(255, 255, 255, .5);
    flex-shrink: 0;
    margin-bottom: .25rem;
}

.bio-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-sidebar h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.bio-role-badge {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
}

.bio-affiliation {
    font-size: .8rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.5;
}

.bio-body {
    padding: 2rem;
}

.bio-whakapapa {
    border-left: 4px solid var(--teal);
    background: var(--teal-light);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: .9rem;
    color: var(--teal-dark);
    line-height: 2;
    margin-bottom: 1.5rem;
}

.bio-body p {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: .9rem;
}

.bio-body p:last-child {
    margin-bottom: 0;
}

.bio-link {
    display: inline-block;
    margin-top: auto;
    padding-top: .75rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    letter-spacing: .02em;
}

.bio-link:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

.wg-blurb.tbc {
    font-style: italic;
    color: #aaa;
}

.wg-lead {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.wg-lead-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
}

.wg-lead-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wg-lead-info {
    line-height: 1.3;
}

.wg-lead-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--teal);
}

.wg-lead-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
}

.wg-lead-tbc {
    font-size: .85rem;
    font-style: italic;
    color: #aaa;
}

.wg-placeholder-note {
    display: inline-block;
    background: var(--gold-light);
    border: 1px dashed var(--gold);
    color: #8a6010;
    font-size: .75rem;
    border-radius: 4px;
    padding: .2rem .6rem;
}

.wg-intro {
    background: var(--teal-light);
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ---------- Hamburger button ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    border-radius: var(--radius);
    transition: background .15s;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, .15);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
    transform-origin: center;
}

/* Animate to × when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
    .hero {
        padding: 3.5rem 1.25rem 3rem;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        /* Hidden by default on mobile */
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--teal-dark);
        flex-direction: column;
        padding: .5rem 1rem 1rem;
        gap: .25rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
        z-index: 99;
    }

    .nav-links--open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: .6rem 1rem;
        font-size: 1rem;
    }

    .programme-table .time-col {
        width: auto;
    }

    .bio-entry {
        grid-template-columns: 1fr;
    }

    .bio-sidebar {
        flex-direction: row;
        text-align: left;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
        align-items: center;
    }

    .bio-avatar-lg {
        width: 70px;
        height: 70px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .bio-body {
        padding: 1.5rem;
    }
}