/* ==========================================================================
   Dr. Yue Teng — site styles
   Edit the variables in :root to change colours and fonts site-wide.
   ========================================================================== */

:root {
  --accent: #a0a7ef;
  --accent-soft: #f4f8fe;
  --accent-text: #a0a7ef;
  --nav-active: #ff8fa2;
  --nav-active-bg: #fff7f6;
  --bg: #ffffff;
  --bg-alt: #f5f6f5;
  --text: #1a1a1a;
  --muted: #5f6b66;
  --line: #e2e6e4;
  --card: #ffffff;
  --skeleton: #eceeed;
  --font-body:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 10px;
  --container: 960px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #a0a7ef;
    --accent-soft: #1f2238;
    --accent-text: #c3c8f7;
    --nav-active: #ff8fa2;
    --nav-active-bg: #3a2228;
    --bg: #101413;
    --bg-alt: #171d1b;
    --text: #e8ebea;
    --muted: #9aa5a0;
    --line: #262e2b;
    --card: #151b19;
    --skeleton: #222a27;
  }
}

/* The Awards page keeps the original green accent. */
.page-awards {
  --accent: #1f4d3a;
  --accent-soft: #e4efe9;
  --accent-text: #17392b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-awards {
    --accent: #7fc4a4;
    --accent-soft: #1d2f27;
    --accent-text: #a9dcc4;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* column layout keeps the footer at the bottom of the window on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 {
  font-size: 2.4rem;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.6rem;
  margin-top: 0;
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  padding-left: 1.2em;
}
small,
.muted {
  color: var(--muted);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Floral pattern at both ends of the header, fading towards the middle.
   One image holds both sprays: its left end shows on the left, its right end
   on the right. */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(50%, 300px);
  z-index: -1;
  background: url("../assets/img/header-floral.svg") no-repeat left top -78px /
    auto 210px;
  -webkit-mask-image: linear-gradient(to right, #000 65%, transparent);
  mask-image: linear-gradient(to right, #000 65%, transparent);
  pointer-events: none;
}
.site-header::after {
  left: auto;
  right: 0;
  background-position: right top -50px;
  -webkit-mask-image: linear-gradient(to left, #000 65%, transparent);
  mask-image: linear-gradient(to left, #000 65%, transparent);
}

/* Home page: a wider column than the other pages (header and footer follow it),
   and a faint rose in the top right corner, behind the content. */
.page-home {
  --container: 1140px;
  position: relative;
}
.page-home::before {
  content: "";
  position: absolute;
  top: 64px;
  right: 0;
  width: min(60%, 400px);
  aspect-ratio: 852 / 724;
  z-index: -1;
  background: url("../assets/img/home-floral.svg") no-repeat right top / contain;
  pointer-events: none;
}

/* Dark theme: invert the patterns so their near-white ground turns black, and
   screen them onto the page so only the flowers show. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header::before,
  :root:not([data-theme="light"]) .site-header::after,
  :root:not([data-theme="light"]) .page-home::before {
    filter: invert(1) hue-rotate(180deg) brightness(2.2);
    mix-blend-mode: screen;
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
  color: var(--nav-active);
}

.site-nav {
  display: flex;
  gap: 6px;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
  text-decoration: none;
}
.site-nav a.active {
  color: var(--nav-active);
  background: var(--nav-active-bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Nine nav links need about 880px beside the brand; collapse to the menu button below that */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 12px 12px;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 10px 12px;
  }
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

/* main.container, not main: .container's own padding would otherwise win on specificity */
main.container {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 72px;
}
main.container > :last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  main.container {
    padding-top: 32px;
    padding-bottom: 56px;
  }
}

.section {
  margin-bottom: 56px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: 22px;
  position: relative;
}
/* Divider under section headings and year / status group headings: a grey rule ending in a rose at the right.
   The rule sits 41px down the 60px-high image, so the image hangs 19px below. */
.section-head::after,
.year-group > h3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 60px;
  background: url("../assets/img/section-divider.svg") no-repeat right top /
    auto 60px;
  pointer-events: none;
}
/* Dark theme: invert the grey drawing so it reads as a faint sketch on the dark ground. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-head::after,
  :root:not([data-theme="light"]) .year-group > h3::after {
    filter: invert(1) brightness(1.5);
  }
}
/* Small screens: a smaller rose, and room beside it so a long heading does not run under it. */
@media (max-width: 600px) {
  .section-head::after,
  .year-group > h3::after {
    height: 40px;
    bottom: -13px;
    background-size: auto 40px;
  }
  .section-head h2 {
    padding-right: 88px;
  }
}
.section-head h2 {
  margin: 0;
}
.section-head .more {
  font-size: 0.9rem;
  white-space: nowrap;
}

.page-title {
  margin-bottom: 6px;
}
.page-title + .filters,
.page-title + .section {
  margin-top: 24px;
}
.page-intro {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* Long-form paragraphs are justified. Phones get ragged-right text: a
   phone-width justified column opens wide gaps between words. */
.bio p,
.page-intro.justified,
.research-point p,
.project .desc,
.project-details p {
  text-align: justify;
}
@media (max-width: 768px) {
  .bio p,
  .page-intro.justified,
  .research-point p,
  .project .desc,
  .project-details p {
    text-align: left;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin: 0 6px 6px 0;
  line-height: 1.5;
}
.tags-lg .tag {
  font-size: 1rem;
  padding: 6px 16px;
  margin: 0 10px 10px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  opacity: 0.9;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Home: profile column + biography
   -------------------------------------------------------------------------- */

main.home {
  padding: 56px 20px 72px;
}

.home-about {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px 56px;
  align-items: start;
}

.profile {
  text-align: center;
}
.profile img {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.profile h1 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}
.profile .role {
  color: var(--muted);
}
.profile .dept {
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 6px;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.profile-links a {
  padding: 6px;
  border-radius: 8px;
  color: var(--accent);
}
.profile-links a:hover {
  background: var(--accent-soft);
}
.profile-links svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.bio h2 {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.bio p {
  margin: 0;
  font-size: 1.05rem;
}
.bio p + p {
  margin-top: 12px;
}
.bio-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-top: 36px;
}
.bio-facts > div {
  min-width: 0;
}
.bio-facts h3 {
  margin-bottom: 10px;
}

.interest-list {
  margin: 0;
}
.interest-list li {
  padding: 4px 0;
  white-space: nowrap;
}
.interest-list li::marker {
  color: var(--accent);
}
.interest-list a {
  color: inherit;
}
.interest-list a:hover {
  color: var(--accent);
}

.edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.edu-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 4px 0;
}
.edu-list .where {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}
.edu-list .nowrap {
  white-space: nowrap;
}
.edu-logo {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  object-fit: contain;
}
/* Featured video: 16:9, poster with a play button until clicked, then the native controls. */
.home-video {
  margin-top: 64px;
}
.video-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(60, 70, 120, 0.12);
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-play svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
  fill: currentColor;
}
.video-play:hover,
.video-play:focus-visible {
  transform: scale(1.08);
  background: #fff;
}
.video-frame.is-playing .video-play {
  display: none;
}
.video-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  main.home {
    padding: 32px 20px 56px;
  }
  .home-video {
    margin-top: 44px;
  }
  .video-play {
    width: 60px;
    height: 60px;
  }
  .video-play svg {
    width: 28px;
    height: 28px;
  }
  .home-about {
    grid-template-columns: 1fr;
  }
  .profile img {
    width: 160px;
    height: 160px;
  }
  .bio h2 {
    font-size: 1.9rem;
  }
  .bio-facts {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .interest-list li {
    white-space: normal;
  }
  h1 {
    font-size: 2rem;
  }
}

/* Awards: centred heading, then cards with the certificate on the right */
.awards-head {
  text-align: center;
  margin-bottom: 40px;
}
.awards-head .page-intro {
  margin-bottom: 0;
}
.award-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.award {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.09),
    0 2px 6px rgba(0, 0, 0, 0.05);
}
.award h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.award dl {
  margin: 0;
  font-size: 0.9rem;
}
.award dl div {
  margin-top: 8px;
}
.award dt {
  display: inline;
  color: var(--muted);
  margin-right: 4px;
}
.award dd {
  display: inline;
  margin: 0;
}
.award .note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 10px 0 0;
}
.award-thumb {
  flex: 0 0 96px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}
.award-thumb img {
  width: 100%;
  max-height: 132px;
  object-fit: contain;
}
.award-thumb.placeholder {
  display: grid;
  place-items: center;
  height: 120px;
  background: var(--nav-active-bg);
  color: var(--accent);
  box-shadow: none;
}
.award-thumb svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 768px) {
  .award-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 420px) {
  .award {
    padding: 18px;
    gap: 14px;
  }
  .award-thumb {
    flex-basis: 76px;
  }
  .award-thumb.placeholder {
    height: 96px;
  }
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.link-list a {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Publications
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filters button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.filters button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filters button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.year-group {
  margin-bottom: 32px;
}
.year-group > h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
  margin-bottom: 22px;
  position: relative; /* rose divider, see .section-head::after */
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Journal-style references with a hanging indent. */
.pub {
  padding: 7px 0 7px 1.6em;
  text-indent: -1.6em;
  overflow-wrap: anywhere;
}
.pub em {
  font-style: italic;
}
.pub strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.project h3 {
  margin: 4px 0 6px;
  font-size: 1.15rem;
}
.project .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.project .desc {
  margin: 0;
  font-size: 0.95rem;
}
.project .tag {
  margin-bottom: 4px;
}
.project-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.project-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-toggle svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}
.project-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.project-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.project-details p {
  margin: 0 0 12px;
  font-size: 0.95rem;
}
/* never wider than the file itself, so small figures from the Sheet are not upscaled */
.project-details img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 8px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Teaching
   -------------------------------------------------------------------------- */

.course-code {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 4px;
}
/* Titles and in-text links that read as body text: black, underlined on hover. */
.more-link,
.project h3 a,
.pub a,
.news-item a.title,
.join p a {
  color: var(--text);
}
.join p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.course h3 {
  margin-bottom: 6px;
}
.course .level {
  color: var(--muted);
  font-size: 0.85rem;
}

.interest-icon {
  display: block;
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.interest h3 {
  margin-bottom: 8px;
}
.interest h3:last-child {
  margin-bottom: 0;
}
.interest p {
  margin: 0;
  font-size: 0.95rem;
}
.interest[id] {
  scroll-margin-top: 84px;
}
/* "More" on a research theme card links to that theme's own page */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 500;
}
.more-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* theme page (research-*.html): one row per research point, figure on the left, optional h2 title and description on the right */
.back-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.research-point {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 36px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.research-point:last-child {
  border-bottom: 1px solid var(--line);
}
.research-point h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.25;
}
.research-point p {
  margin: 0;
  font-size: 1.02rem;
}
.research-point img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
@media (max-width: 768px) {
  .research-point {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
  }
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.member-group {
  margin-bottom: 36px;
}
.member-group h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.member {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.avatar {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.7rem;
}
.member .name {
  font-weight: 600;
}
.member .name a {
  color: inherit;
}
.member .name a:hover {
  color: var(--accent);
}
.member .role {
  color: var(--muted);
  font-size: 0.88rem;
}
.member .bio {
  font-size: 0.92rem;
  margin: 4px 0 0;
}
.member .bio a {
  color: inherit;
}
.member .bio a:hover {
  color: var(--accent);
}
.member .email {
  font-size: 0.85rem;
}
.member .email a {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   News timeline
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child {
  border-bottom: 0;
}
.news-item .date {
  color: var(--muted);
  font-size: 0.88rem;
  padding-top: 3px;
}
.news-item .title {
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 4px;
  display: block;
}
.news-item .desc {
  margin: 0;
  font-size: 0.95rem;
}
.news-item .tag {
  margin: 0 0 6px;
}
.news-item img {
  margin-top: 12px;
  border-radius: 8px;
  max-height: 320px;
  width: auto;
}
@media (max-width: 600px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* --------------------------------------------------------------------------
   Loading / empty states
   -------------------------------------------------------------------------- */

.skeleton {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: var(--skeleton);
  margin: 12px 0;
}
.skeleton.w60 {
  width: 60%;
}
.skeleton.w80 {
  width: 80%;
}
.notice {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 12px 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.footer-wrap a {
  color: var(--muted);
}
.footer-wrap a:hover {
  color: var(--accent);
}
.footer-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
