/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --bg:           #fafcfe;
  --fg:           #111110;
  --muted:        #6b6b67;
  --accent:       #1a5fa8;
  --accent-dark:  #134a88;
  --accent-light: #e2eef7;
  --border:       #d8e8f0;
  --radius:       6px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --max-w:        700px;
  --nav-h:        64px;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(26,95,168,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--fg);
  caret-color: var(--fg);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-top: 2.5rem;
  background: linear-gradient(to bottom, rgba(13,45,80,0.06) 0%, transparent 140px), #fff;
  max-width: 850px;
  width: 100%;
  margin-inline: auto;
  box-shadow: 0 0 0 1px var(--border), 0 0 60px rgba(13,45,80,0.07);
}

/* ─── Typography ───────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Layout ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.two-col {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ─── Nav ──────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0d2d50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  max-width: var(--max-w);
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  padding-block: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-align: center;
  color: #fff;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 2.25rem);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* ─── Dropdown ─────────────────────────────────────── */
.nav-links li {
  position: relative;
}

.caret {
  font-size: 0.7em;
  opacity: 0.6;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  list-style: none;
  background: #0d2d50;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  min-width: 160px;
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 200;
}

/* invisible bridge fills the gap so hover isn't lost */
.nav-links li:hover > .dropdown::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.nav-links li:hover > .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

.dropdown li a:hover {
  color: #fff;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0.3rem 0;
}

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── Section tag ──────────────────────────────────── */
.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── Page banner ──────────────────────────────────── */
.page-banner {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto 0;
  height: 50px;
  border-radius: calc(var(--radius) * 3);
  background-size: cover;
  background-position: center calc(50% - 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-banner span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ─── Intro (hero + about combined) ────────────────── */
.intro {
  padding-block: 4rem;
}

.intro h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.intro .hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1rem;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-sub {
  font-size: 1.15rem;
}

/* ─── About ────────────────────────────────────────── */
.col-label {
  padding-top: 0.3rem;
}

.about-facts {
  list-style: none;
  margin-left: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.about-facts li {
  font-size: 1.15rem;
  color: var(--muted);
  padding-left: 1.5rem;
  position: relative;
}

.about-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 14px;
  height: 0.75em;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M1.5 0 L1.5 10.5 L14 10.5' stroke='black' stroke-width='2.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M1.5 0 L1.5 10.5 L14 10.5' stroke='black' stroke-width='2.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--accent-dark);
}

/* ─── Full post list ────────────────────────────────── */
.post-list-section {
  padding-block: 2rem 4rem;
}

.post-full {
  scroll-margin-top: calc(var(--nav-h) + 3rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  background: #fff;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.post-full:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(26,95,168,0.1);
}

.post-full-body {
  padding: 1.75rem;
}

.post-full-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.post-full-header h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  white-space: normal;
  overflow-wrap: break-word;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.post-full-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  white-space: normal;
  overflow-wrap: break-word;
}

.post-full-body a,
.post-card-body a {
  color: #6b9ab8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-full-body a:hover,
.post-card-body a:hover {
  color: #4a7a9b;
}

.post-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.post-img-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.post-img-grid img:hover {
  opacity: 0.8;
}

/* ─── Documents ────────────────────────────────────── */
.doc-section {
  padding-block: 2.5rem;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--fg);
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-row:hover {
  border-color: var(--muted);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.doc-icon {
  color: var(--muted);
  flex-shrink: 0;
  display: flex;
}

.doc-name {
  flex: 1;
  font-weight: 500;
}

.doc-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ─── Doc archive ──────────────────────────────────── */
.doc-archive {
  margin-top: 0.35rem;
}

.doc-archive-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s, color 0.2s;
}

.doc-archive-toggle::-webkit-details-marker { display: none; }

.doc-archive-toggle::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] .doc-archive-toggle::before {
  transform: rotate(45deg);
}

.doc-archive-toggle:hover {
  border-color: var(--muted);
  color: var(--fg);
}

.doc-archive-list {
  margin-top: 0.35rem;
  padding-left: 0;
}

/* ─── Members ──────────────────────────────────────── */
.members {
  padding-block: 2.5rem 4rem;
}

.members-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: calc(var(--radius) * 2);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.member-card:hover {
  box-shadow: 0 4px 16px rgba(26,95,168,0.1);
}

.member-info h3 {
  font-size: 0.95rem;
  font-family: var(--font);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.member-role {
  font-size: 0.8rem;
  color: var(--muted);
}

.member-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.member-contact a {
  color: var(--muted);
  transition: color 0.2s;
}

.member-contact a:hover {
  color: var(--fg);
}

/* ─── Contact ──────────────────────────────────────── */
.contact {
  padding-block: 7rem;
  border-top: 1px solid var(--border);
  background: var(--accent-light);
}

.contact h2 {
  margin-bottom: 1rem;
}

/* ─── Footer ───────────────────────────────────────── */
footer {
  background: #0d2d50;
  padding-block: 1.75rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
  gap: 0.2rem;
}

.footer-inner a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-inner a:hover {
  color: #fff;
}

/* ─── Hamburger ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.nav-toggle {
  display: none;
}

.nav-toggle:checked ~ .nav-links {
  display: flex;
}

.nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

}

@media (max-width: 600px) {
  header {
    height: var(--nav-h);
    display: flex;
    align-items: center;
  }

  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-block: 0;
    gap: 0;
  }

  .logo {
    flex-direction: row;
    text-align: left;
    gap: 0.6rem;
  }

  .nav-logo-img {
    height: 32px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #0d2d50;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    padding: 1.25rem clamp(1.25rem, 5vw, 3rem);
    gap: 1.1rem;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(255,255,255,0.2);
    border-radius: 0;
    padding: 0.4rem 0 0 1rem;
    margin-top: 0.5rem;
    min-width: unset;
  }

  .dropdown li a {
    padding: 0.3rem 0;
    font-size: 0.9rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }

  .page-banner {
    width: 90%;
  }
}

/* ─── Forms ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}

.form-group input,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--fg);
}

/* ─── Alerts ────────────────────────────────────────── */
.alert {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ─── Login ─────────────────────────────────────────── */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem clamp(1.25rem, 5vw, 3rem);
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-card .section-tag {
  display: flex;
  margin-bottom: 0.75rem;
}

.login-card h2 {
  margin-bottom: 2rem;
}

.login-btn {
  width: 100%;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.login-btn:hover {
  background: var(--accent-dark);
}

.login-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0 1.25rem;
}

.login-footer {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ─── Posts ─────────────────────────────────────────── */
.posts {
  padding-block: 7rem;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,95,168,0.1);
  border-color: var(--accent);
}

.post-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.post-card-no-img {
  height: 100px;
  background: linear-gradient(135deg, var(--accent) 0%, #3a8fd4 100%);
  opacity: 0.18;
}

.post-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.post-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 0.4rem;
}

.post-card-content {
  position: relative;
  max-height: 4.65rem;
  overflow: hidden;
}

.post-card-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.post-card-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.post-card:hover .post-card-footer {
  color: var(--fg);
}

.post-card-footer svg {
  transition: transform 0.2s;
}

.post-card:hover .post-card-footer svg {
  transform: translateX(3px);
}

.posts-empty {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* ─── Gallery ───────────────────────────────────────── */
.gallery-section {
  padding-block: 3rem 4rem;
}

.gallery-block {
  margin-bottom: 3.5rem;
}

.gallery-block-title {
  text-align: center;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 1rem;
}

/* ─── Competition gallery ───────────────────────────── */
.comp-gallery {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.comp-year-header {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 1rem;
}
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.comp-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.comp-entry:last-child { border-right: none; }
.comp-place {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.comp-entry img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: calc(var(--radius) / 2);
  cursor: pointer;
  transition: opacity 0.15s;
}
.comp-entry img:hover { opacity: 0.82; }
.comp-title {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}
.comp-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}
@media (max-width: 580px) {
  .comp-grid { grid-template-columns: 1fr; }
  .comp-entry { border-right: none; border-bottom: 1px solid var(--border); }
  .comp-entry:last-child { border-bottom: none; }
}

.slideshow {
  position: relative;
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  cursor: zoom-in;
}

.slideshow .slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.slide-btn--prev { left: 0.75rem; }
.slide-btn--next { right: 0.75rem; }

.slide-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.dot.active {
  background: #fff;
}

/* ─── Lightbox ──────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 500;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: default;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-nav--prev { left: 1.5rem; }
.lightbox-nav--next { right: 1.5rem; }

/* ─── Post inline attachments ───────────────────────── */
.post-doc-list .doc-row {
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  gap: 0.45rem;
  text-decoration: none;
}

.post-doc-list .doc-icon svg { width: 13px; height: 13px; }

.post-doc-list .doc-type {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
}

