:root {
    --bg: #f5f7f2;
    --surface: #ffffff;
    --surface-soft: #eef5ee;
    --ink: #17211d;
    --muted: #5b6b64;
    --line: #dfe7df;
    --green: #1f6f4a;
    --green-dark: #164a37;
    --teal: #1f7a7a;
    --gold: #b2873b;
    --shadow: 0 18px 50px rgba(23, 33, 29, 0.10);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(31, 111, 74, 0.10), transparent 34rem),
        linear-gradient(180deg, var(--bg) 0%, #ffffff 58%);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans TC", "Noto Sans SC", sans-serif;
    line-height: 1.65;
}

.skip-link {
    background: var(--green-dark);
    border-radius: 0 0 8px 0;
    color: #ffffff;
    font-weight: 800;
    left: 0;
    padding: 10px 14px;
    position: fixed;
    top: 0;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
    z-index: 20;
}

.skip-link:focus {
    transform: translateY(0);
}

.lang-en {
    display: revert;
}

.lang-zh {
    display: none;
}

html[lang="zh-Hant"] .lang-en,
html[lang="zh-Hans"] .lang-en {
    display: none;
}

html[lang="zh-Hant"] .lang-zh,
html[lang="zh-Hans"] .lang-zh {
    display: revert;
}

html[lang="en"] body .lang-zh,
html[lang="zh-Hant"] body .lang-en,
html[lang="zh-Hans"] body .lang-en {
    display: none !important;
}

a {
    color: var(--green);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--teal);
}

.layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    padding: 28px 18px;
    backdrop-filter: blur(18px);
}

.brand {
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding: 0 8px 20px;
}

.brand-wordmark {
    color: var(--green-dark);
    font-size: 1.04rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.brand-title {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.84rem;
    margin-top: 7px;
}

.hkmu-logo-link {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    margin: 18px 8px;
    padding: 10px 12px;
}

.hkmu-logo-link:hover {
    border-color: rgba(31, 111, 74, 0.36);
}

.hkmu-logo {
    display: block;
    height: auto;
    max-width: 100%;
}

.language-switch {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 8px;
    padding: 4px;
}

.language-switch button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    min-height: 34px;
}

.language-switch button.active {
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(23, 33, 29, 0.08);
    color: var(--green-dark);
}

.nav-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    margin: 0 8px 8px;
    text-transform: uppercase;
}

.sidebar ul {
    display: grid;
    gap: 4px;
    list-style: none;
}

.sidebar a {
    border-radius: 8px;
    color: #2a3a33;
    display: block;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 10px 12px;
    text-decoration: none;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--surface-soft);
    color: var(--green-dark);
}

.sidebar a.active {
    box-shadow: inset 3px 0 0 var(--green);
}

.sidebar a[aria-current="page"] {
    background: var(--surface-soft);
    color: var(--green-dark);
    box-shadow: inset 3px 0 0 var(--green);
}

.content {
    max-width: 1040px;
    padding: 44px clamp(22px, 5vw, 72px) 64px;
    width: 100%;
}

.hero {
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: #ffffff;
    margin-bottom: 36px;
    min-height: 460px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    background-image:
        linear-gradient(90deg, rgba(10, 26, 20, 0.82) 0%, rgba(10, 26, 20, 0.58) 42%, rgba(10, 26, 20, 0.12) 76%),
        url("assets/hero-sustainable-tourism.png");
    background-position: center;
    background-size: cover;
    content: "";
    inset: 0;
    position: absolute;
}

.hero-content {
    max-width: 840px;
    padding: clamp(34px, 7vw, 72px);
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.22;
}

h1 {
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 4.3rem);
    letter-spacing: 0;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(1.35rem, 2.45vw, 2.25rem);
    max-width: 820px;
}

.hero h1 span,
.bilingual-heading span {
    display: block;
}

.hero h1 .zh-title {
    font-size: 0.7em;
    line-height: 1.32;
    margin-bottom: 10px;
}

.hero h1 .en-title {
    line-height: 1.14;
}

.project-code {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-top: 18px;
}

.project-facts {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    max-width: 720px;
}

.project-fact {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.92);
    padding: 12px 14px;
}

.project-fact strong {
    color: #ffffff;
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.lede {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.18rem);
    margin-top: 14px;
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 750;
    min-height: 44px;
    padding: 10px 16px;
    text-decoration: none;
}

.button.primary {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--green-dark);
}

.button:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--surface-soft);
    color: var(--green-dark);
}

.page-header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
    padding-bottom: 22px;
}

.page-header .kicker {
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-header p {
    color: var(--muted);
    font-size: 1.06rem;
    margin-top: 14px;
    max-width: 70ch;
}

.section {
    margin: 32px 0;
}

.section h2 {
    border-bottom: 1px solid var(--line);
    color: var(--green-dark);
    font-size: 1.35rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.section h3 {
    color: var(--ink);
    font-size: 1.02rem;
    margin: 22px 0 8px;
}

.section p,
.section ul {
    color: #33433c;
    margin-bottom: 15px;
}

.section ul {
    padding-left: 22px;
}

.section li {
    margin-bottom: 8px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 33, 29, 0.06);
    padding: 22px;
}

.panel h2,
.panel h3 {
    border: 0;
    margin-bottom: 10px;
    padding: 0;
}

.lang-pair {
    display: grid;
    gap: 10px;
}

.lang-pair .zh,
.lang-pair .en {
    margin-bottom: 0;
}

.lang-pair .en {
    color: var(--muted);
}

.institution-strip {
    align-items: center;
    background: var(--green-dark);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: #ffffff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 32px 0;
    padding: 26px;
}

.institution-strip h2 {
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin: 8px 0 6px;
}

.institution-strip p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.institution-logo {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(10, 26, 20, 0.22);
    flex: 0 0 170px;
    max-width: 170px;
    padding: 10px;
    width: 170px;
}

.role-tag {
    color: var(--green);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.institution-strip .role-tag {
    color: rgba(255, 255, 255, 0.72);
}

.profile-lead {
    align-items: start;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    padding: clamp(24px, 4vw, 34px);
}

.profile-photo {
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 33, 29, 0.12);
    height: auto;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.profile-body {
    min-width: 0;
}

.profile-lead h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.profile-title {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 18px;
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.profile-links a {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-dark);
    display: inline-flex;
    font-weight: 750;
    min-height: 42px;
    padding: 8px 14px;
    text-decoration: none;
}

.profile-links a:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #ffffff;
}

.updates-list {
    display: grid;
    gap: 18px;
}

.update-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 33, 29, 0.06);
    padding: 24px;
}

.update-card time {
    color: var(--green);
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.update-card h2 {
    color: var(--green-dark);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    margin-bottom: 12px;
}

.update-card p {
    color: #33433c;
    margin-bottom: 14px;
}

.update-card p:last-child {
    margin-bottom: 0;
}

.impact-showcase {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.impact-card {
    background:
        linear-gradient(135deg, rgba(31, 111, 74, 0.10), rgba(31, 122, 122, 0.04)),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 33, 29, 0.08);
    min-height: 245px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.impact-card::after {
    background: var(--green);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.impact-icon {
    align-items: center;
    background: var(--green-dark);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 850;
    height: 46px;
    justify-content: center;
    margin-bottom: 18px;
    width: 46px;
}

.impact-card h2 {
    color: var(--green-dark);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.impact-card p {
    color: #33433c;
    margin-bottom: 12px;
}

.impact-card p:last-child {
    color: var(--muted);
    margin-bottom: 0;
}

.engage-card {
    min-height: 230px;
}

.feedback-panel {
    background:
        linear-gradient(135deg, rgba(31, 111, 74, 0.12), rgba(178, 135, 59, 0.08)),
        var(--surface);
}

.contact-button {
    align-items: center;
    background: var(--green-dark);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    margin-top: 8px;
    min-height: 46px;
    padding: 10px 16px;
    text-decoration: none;
}

.contact-button:hover {
    background: var(--teal);
    color: #ffffff;
}

.contact-fallback {
    color: var(--muted);
    font-size: 0.94rem;
    margin-top: 14px;
}

.funding {
    background: #fbfcf8;
    border-left: 4px solid var(--gold);
    margin-top: 38px;
}

.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-list li {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
}

.contact-list li:last-child {
    border-bottom: 0;
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 20px 0 34px;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    color: #33433c;
    line-height: 1.5;
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface-soft);
    color: var(--green-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

tr:last-child td {
    border-bottom: 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 32px 0;
}

@media (max-width: 820px) {
    .layout {
        display: block;
    }

    .sidebar {
        height: auto;
        padding: 16px;
        position: static;
    }

    .brand {
        align-items: center;
        display: flex;
        gap: 12px;
        margin-bottom: 14px;
        padding: 0 0 14px;
    }

    .brand-wordmark {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .sidebar ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content {
        padding: 24px 16px 44px;
    }

    .hero {
        min-height: 560px;
    }

    .hero::before {
        background-image:
            linear-gradient(180deg, rgba(10, 26, 20, 0.86) 0%, rgba(10, 26, 20, 0.64) 54%, rgba(10, 26, 20, 0.22) 100%),
            url("assets/hero-sustainable-tourism.png");
        background-position: center;
    }

    .hero-content {
        padding: 26px 20px;
    }

    .hero h1 {
        font-size: clamp(1.12rem, 5.45vw, 1.72rem);
        max-width: 100%;
    }

    .grid.two {
        grid-template-columns: 1fr;
    }

    .profile-lead {
        grid-template-columns: 1fr;
    }

    .institution-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .institution-logo {
        flex-basis: auto;
        max-width: 180px;
        width: 70%;
    }

    .profile-photo {
        max-width: 260px;
    }

    .impact-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .sidebar ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar a {
        font-size: 0.86rem;
        min-height: 48px;
        padding: 8px 10px;
    }

    .hero {
        min-height: 560px;
    }

    .lede {
        font-size: 0.95rem;
    }
}
