/* EFMI WG EDU – layout and components. Colours live in tokens.css. */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  margin: 1.8em 0 0.5em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }

a { color: var(--color-link); text-underline-offset: 0.18em; }
a:hover { color: var(--color-link-hover); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--color-primary); color: var(--color-primary-text);
  padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--color-heading);
  margin-right: auto;
}
.brand img {
  height: 2.6rem; width: auto;
  background: #fff; border-radius: 6px; padding: 2px 4px;
}
.brand-text { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; font-size: 0.95rem; }
.brand-text small { display: block; font-weight: 500; color: var(--color-text-muted); font-size: 0.78rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 6px;
  text-decoration: none; color: var(--color-text); font-weight: 600; white-space: nowrap;
  font-family: var(--font-heading); font-size: 0.95rem;
}
.site-nav a:hover { background: var(--color-surface-2); color: var(--color-link); }
.site-nav a[aria-current="page"] { color: var(--color-link); box-shadow: inset 0 -3px 0 var(--color-accent); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.6rem;
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 8px;
  font: inherit; font-size: 0.9rem; cursor: pointer;
}
.icon-btn:hover { background: var(--color-surface-2); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle { display: none; }
.theme-toggle { white-space: nowrap; }
/* Wide screens: the full menu fills the header, so the theme button shows its icon only (name stays for screen readers) */
@media (min-width: 70.01rem) {
  .theme-toggle .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (max-width: 70rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a { padding: 0.75rem; }
  .brand-text small { display: none; }
}
@media (max-width: 26rem) {
  .header-inner { gap: 0.5rem; }
  .brand { gap: 0.5rem; min-width: 0; }
  .brand img { height: 2.1rem; }
  .theme-toggle .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* Without JavaScript the menu is always shown */
.no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; }
.no-js .nav-toggle, .no-js .theme-toggle { display: none; }

/* ---------- Page structure ---------- */

main { display: block; }
.page-hero {
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface));
  border-bottom: 1px solid var(--color-border);
  padding: clamp(2rem, 6vw, 4rem) 0;
}
.page-hero .lead { font-size: 1.2rem; color: var(--color-text-muted); max-width: 46rem; }
.page-hero .eyebrow {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.8rem; color: var(--color-link); margin-bottom: 0.5rem;
}
.section { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.section + .section { border-top: 1px solid var(--color-border); }
.section > .container > h2:first-child { margin-top: 0; }
.prose { max-width: 48rem; }

.subnav {
  display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.subnav a {
  display: inline-block; padding: 0.35rem 0.85rem; border: 1px solid var(--color-border);
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  background: var(--color-bg);
}

/* ---------- Components ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.3rem; min-height: 2.75rem;
  border-radius: 999px; border: 2px solid var(--color-primary);
  background: var(--color-primary); color: var(--color-primary-text);
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--color-link-hover); border-color: var(--color-link-hover); color: var(--color-primary-text); }
.btn-secondary { background: transparent; color: var(--color-link); }
.btn-secondary:hover { background: var(--color-surface-2); color: var(--color-link); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.25rem 1.35rem;
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card .meta { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 0.5rem; }
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-link:hover .card { border-color: var(--color-accent); }
.card-link h3 { color: var(--color-link); }

.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.1rem 0.55rem;
  border-radius: 999px; background: var(--color-surface-2); color: var(--color-text);
  border: 1px solid var(--color-border); margin: 0 0.3rem 0.3rem 0;
}

/* Marks text that the WG chairs must confirm before going live */
.validate {
  background: var(--color-validate-bg); color: var(--color-validate-text);
  font-size: 0.78rem; font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; font-family: var(--font-body); vertical-align: middle;
}
/* Hidden on the public site; add ?validate to any page URL to show them (see site.js). */
html:not(.show-validate) .validate,
html:not(.show-validate) .validate-note { display: none; }

/* Placeholder for Baserow iframes / forms and future features */
.placeholder {
  border: 2px dashed var(--color-border); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--color-surface), var(--color-surface) 12px, var(--color-bg) 12px, var(--color-bg) 24px);
  padding: 2rem 1.5rem; text-align: center; color: var(--color-text-muted);
}
.placeholder strong { display: block; font-family: var(--font-heading); color: var(--color-heading); font-size: 1.1rem; margin-bottom: 0.4rem; }
.placeholder code { font-size: 0.85rem; }

.embed-frame { width: 100%; min-height: 32rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }

.callout {
  border-left: 4px solid var(--color-accent); background: var(--color-surface-2);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.callout > :last-child { margin-bottom: 0; }

/* Licence, rights notice and funder logo under a project's resources. */
.funding-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); font-size: 0.9rem; color: var(--color-text-muted); }
.funding-logo { display: block; width: min(100%, 400px); height: auto; margin-top: 1rem; background: #fff; border-radius: 6px; }

/* Survey call to action: text plus a QR code (white tile so it scans in dark mode too). */
.survey-cta {
  display: flex; gap: 1.5rem; align-items: center; margin: 2rem 0;
  border-left: 4px solid var(--color-accent); background: var(--color-surface-2);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.survey-cta > div > :last-child { margin-bottom: 0; }
.survey-cta h3 { margin-top: 0; }
.survey-cta img { flex: none; width: 160px; height: 160px; background: #fff; border-radius: 6px; padding: 4px; }
@media (max-width: 40rem) { .survey-cta { flex-direction: column; align-items: flex-start; } .survey-cta img { width: 140px; height: 140px; } }

.people { list-style: none; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.people li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.8rem 1rem; }
.people .name { font-weight: 700; display: block; }
.people .affil { color: var(--color-text-muted); font-size: 0.93rem; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--color-accent); }
.timeline > li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.timeline > li::before {
  content: ""; position: absolute; left: -0.55rem; top: 0.45rem;
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--color-bg); border: 3px solid var(--color-primary);
}
.timeline .when { font-family: var(--font-heading); font-weight: 700; color: var(--color-link); }

.pubs { padding-left: 1.2rem; }
.pubs li { margin-bottom: 0.8rem; }
.pubs .doi, .pubs .oa { white-space: nowrap; }
.zenodo-note { color: var(--color-text-muted); font-size: 0.93rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { background: var(--color-surface); font-family: var(--font-heading); }
tr:last-child td { border-bottom: 0; }

details { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 0.75rem; background: var(--color-surface); }
summary { cursor: pointer; font-weight: 700; font-family: var(--font-heading); }
details[open] summary { margin-bottom: 0.6rem; }

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

.site-footer {
  margin-top: 3rem; background: var(--color-surface); border-top: 1px solid var(--color-border);
  padding: 2rem 0; font-size: 0.93rem; color: var(--color-text-muted);
}
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.25rem 0; }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .skip-link, .btn-row, .no-print { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000; }
  .card, .feedback, fieldset { break-inside: avoid; }
}

/* ---------- Event pages ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.gallery figure { margin: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { padding: 0.6rem 0.8rem; font-size: 0.85rem; color: var(--color-text-muted); }
.page-hero .eyebrow a { color: inherit; }
.people .affil { display: block; }
.people .profile-links { display: block; margin-top: 0.35rem; font-size: 0.9rem; font-weight: 600; }
.container.prose { max-width: var(--max-width); }
.container.prose > * { max-width: 48rem; }
.embed-form { display: block; }
/* Tall enough for the whole Baserow form, so it never scrolls inside the frame (13 fields incl. profile links: ~2060px desktop, ~2270px phone; re-measure after changing the form) */
.embed-form-join { height: 132rem; }
@media (max-width: 40rem) { .embed-form-join { height: 146rem; } }
.embed-form-share { height: 140rem; }
@media (max-width: 40rem) { .embed-form-share { height: 150rem; } }
.embed-fallback { font-size: 0.9rem; color: var(--color-text-muted); margin-top: 0.5rem; }

/* ---------- Dropdown sub-menus ---------- */
.site-nav .has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.7rem; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  color: var(--color-text); font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; white-space: nowrap;
}
.sub-toggle::after {
  content: ""; width: 0.45rem; height: 0.45rem; margin-top: -0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.sub-toggle:hover { background: var(--color-surface-2); color: var(--color-link); }
.sub-toggle.is-current { color: var(--color-link); box-shadow: inset 0 -3px 0 var(--color-accent); }
.site-nav .submenu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  flex-direction: column; gap: 0; min-width: 15rem; padding: 0.4rem;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.site-nav .submenu a { font-weight: 500; }
.site-nav .submenu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--color-accent); background: var(--color-surface-2); }
.site-nav .has-sub:hover > .submenu,
.site-nav .has-sub:focus-within > .submenu,
.site-nav .sub-toggle[aria-expanded="true"] + .submenu { display: flex; }
.site-nav .has-sub.is-closed > .submenu { display: none; }
.site-nav .menu > li:last-child .submenu { left: auto; right: 0; }

@media (max-width: 70rem) {
  .site-nav .submenu, .site-nav .has-sub:hover > .submenu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0.4rem 1rem; min-width: 0; }
  .site-nav .has-sub.is-closed > .submenu { display: flex; }
  .sub-toggle { cursor: default; color: var(--color-text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.75rem 0.75rem 0.25rem; }
  .sub-toggle::after { display: none; }
  .sub-toggle.is-current { box-shadow: none; }
}
.no-js .site-nav .submenu { display: flex; position: static; box-shadow: none; border: 0; }

/* Section tabs under the page title */
.page-hero .subnav a[aria-current="page"] { background: var(--color-primary); color: var(--color-primary-text); border-color: var(--color-primary); }

/* EFMI AC2 accreditation mark */
.ac2-logo img { width: min(100%, 18rem); height: auto; background: #fff; border-radius: 12px; padding: 0.4rem; }
.ac2-badge { height: 2.2rem; width: auto; vertical-align: middle; background: #fff; border-radius: 6px; padding: 2px; margin-right: 0.3rem; }

/* Table filters (accredited programmes) */
.table-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1.25rem; margin: 1.25rem 0 0.9rem; }
.table-filters[hidden] { display: none; }
.table-filters label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.92rem; }
.table-filters select {
  font: inherit; font-weight: 400; min-height: 2.75rem; padding: 0.4rem 0.6rem; min-width: 12rem;
  color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.table-filters .filter-count { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; padding-bottom: 0.6rem; }
.filter-empty { margin-top: 0.75rem; color: var(--color-text-muted); }
tr[hidden] { display: none; }
@media (max-width: 70rem) {
  .site-nav.is-open { max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem); overflow-y: auto; overscroll-behavior: contain; }
}

/* ---------- Home highlights (next activity / news) ---------- */
.highlights { padding-bottom: 0; }
.highlights + .section { border-top: 0; }
.highlight {
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-primary); border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.highlight + .highlight { margin-top: 1rem; }
.highlight h3 { margin: 0.25rem 0 0.5rem; font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.highlight .meta { color: var(--color-text-muted); font-size: 0.95rem; }
.highlight > p:not(.meta):not(.highlight-label) { max-width: 52rem; }
.highlight .btn-row { margin-top: 1rem; }
.highlight .btn-row + .meta { margin: 0.75rem 0 0; }
.calendar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.75rem 0 0; }
.calendar-links span { font-weight: 600; margin-right: 0.25rem; }
.calendar-links a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.85rem; border: 1px solid var(--color-border); border-radius: 999px; text-decoration: none; font-size: 0.9375rem; }
.calendar-links a:hover { background: var(--color-surface-2); }
.highlight .calendar-links + .meta { margin: 0.75rem 0 0; }
.highlight-label {
  display: inline-block; margin: 0; padding: 0.15rem 0.7rem; border-radius: 999px;
  background: var(--color-primary); color: var(--color-primary-text);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.is-expired, .upcoming-events .grid[hidden], .events-empty[hidden] { display: none; }
.events-empty { color: var(--color-text-muted); max-width: 52rem; }

/* Guidelines: mapping template download */
.template-card { margin-top: 1.5rem; border-left: 6px solid var(--color-primary); }
.template-card > p:first-of-type { max-width: 52rem; }

/* Education groups worldwide */
.tag-good { background: var(--color-good-bg); color: var(--color-good); border-color: transparent; }
.note { color: var(--color-text-muted); font-size: 0.92rem; margin-top: 1.25rem; max-width: 52rem; }

/* Header links: WG EDU on efmi.org and LinkedIn (on every page) */
.header-links { display: flex; gap: 0.4rem; }
.header-links .icon-btn { padding: 0; width: 2.75rem; text-decoration: none; color: var(--color-link); }
.header-links .icon-btn:hover { color: var(--color-link-hover); }
.efmi-mark { font-family: var(--font-heading); font-weight: 800; font-size: 0.68rem; letter-spacing: 0.02em; }
@media (max-width: 26rem) { .brand-text { min-width: 0; } .header-links { gap: 0.25rem; } .header-links .icon-btn { width: 2.5rem; min-width: 2.5rem; } }
@media (max-width: 23rem) { .header-links .icon-btn:first-child { display: none; } }
@media (max-width: 21rem) { .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.ac2-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* ---------- Home layout ---------- */
/* Highlight + upcoming events are grouped so the hero's "Upcoming events" link lands on whichever is shown first. */
.section-group + .section { border-top: 1px solid var(--color-border); }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 36rem) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
/* Mission objectives: plain list, so only cards that are links look like cards */
.objectives {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .objectives { grid-template-columns: repeat(2, 1fr); } }
.objectives li { border-top: 1px solid var(--color-border); padding-top: 1rem; }
.objectives h3 { margin: 0 0 0.35rem; }
.objectives p { margin: 0; color: var(--color-text-muted); }
.objectives-note {
  margin-top: 2rem; padding: 1.1rem 1.35rem;
  background: var(--color-surface-2); border-radius: var(--radius);
}
.objectives-note h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.objectives-note p { margin: 0; }
/* Closing invitation */
.join-band { background: var(--color-surface-2); }
.join-band h2 { margin-top: 0; }
.join-band p { max-width: 46rem; }
/* A single upcoming event keeps the width of one column instead of stretching across the page */
.upcoming-events .grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }

/* ---------- Conference papers (read from data/conference-papers.csv) ---------- */
.paper-filters input[type="search"] {
  font: inherit; font-weight: 400; min-height: 2.75rem; padding: 0.4rem 0.6rem; min-width: 16rem;
  color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
@media (max-width: 40rem) { .paper-filters label, .paper-filters select, .paper-filters input[type="search"] { width: 100%; min-width: 0; } }
.paper-event { margin-top: 1.75rem; }
.paper-event[hidden], .paper[hidden] { display: none; }
.paper-event h3 { margin: 0 0 0.5rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--color-accent); }
.paper-items { list-style: none; margin: 0; padding: 0; }
.paper { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.paper:last-child { border-bottom: 0; }
.paper p { margin: 0; }
.paper-kind {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-muted); display: flex; gap: 0.5rem; align-items: center;
}
.paper-proposed { padding: 0 0.5rem; border-radius: 999px; background: var(--color-surface-2); color: var(--color-link); letter-spacing: 0.03em; }
.paper-title { margin-top: 0.2rem !important; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; line-height: 1.35; max-width: 52rem; }
.paper-meta { margin-top: 0.3rem !important; color: var(--color-text-muted); font-size: 0.92rem; }
.paper-why { margin-top: 0.45rem !important; max-width: 52rem; }
.paper-tags { margin-top: 0.6rem !important; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.paper-tags .tag {
  display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.7rem; border-radius: 999px;
  background: var(--color-surface-2); border: 1px solid var(--color-border); font-size: 0.85rem; text-decoration: none;
}
.paper-tags .tag:hover { border-color: var(--color-link); }
.paper-link { margin-left: auto; color: var(--color-text-muted); font-size: 0.85rem; }
.paper-slides { font-size: 0.85rem; font-weight: 600; }
.paper-download { margin-top: 1.5rem; }
