/* =============================================================
   AI Scientist — AACL-IJCNLP 2026 Tutorial
   Editorial refinements layered on top of the base template.
   ============================================================= */

:root {
  --navy: #0e1b4d;
  --navy-deep: #060c22;
  --accent: #f82249;
  --accent-warm: #ff5a76;
  --cream: #faf7f2;
  --paper: #f6f7fd;
  --ink: #2f3138;
  --ink-soft: #4a5269;
  --rule: #e3e7f7;
  --rule-soft: #ecedf5;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --display: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

/* ---------- Type system ---------- */
body {
  font-family: var(--sans);
  font-feature-settings: "kern" 1, "liga" 1;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); color: var(--navy); }

.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11.5px;
}

.serif-quote { font-family: var(--serif); font-style: normal; font-weight: 300; }

/* ---------- Decorative section header refinement ---------- */
.section-header {
  margin-bottom: 56px;
  padding-bottom: 0;
  text-align: center;
}
.section-header h2 {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px 0;
}
.section-header::before { display: none; }
.section-header .display-title {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: 44px;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 auto 12px auto;
  max-width: 820px;
  display: block;
}
.section-header .display-title em {
  font-style: normal;
  color: var(--accent);
}
.section-header p {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  font-style: normal;
}
@media (max-width: 768px) {
  .section-header .display-title { font-size: 30px; }
}

/* ---------- Navigation ---------- */
.navbar a, .navbar a:focus {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(202, 206, 221, 0.85);
}
.navbar > ul > li > a:before { background-color: var(--accent); }

/* ---------- Hero refinements ---------- */
#hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(248,34,73,0.25), transparent 32%),
    radial-gradient(circle at 82% 68%, rgba(65,91,180,0.3), transparent 38%),
    linear-gradient(135deg, #060c22 0%, #0e1b4d 58%, #151d3e 100%);
  background-attachment: scroll;
}
@media (min-width: 1024px) {
  #hero { background-attachment: scroll; }
}
#hero:before {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(248,34,73,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(14,27,77,0.4) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6,12,34,0.55) 0%, rgba(6,12,34,0.86) 100%);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: rgba(255,255,255,0.78);
}
.hero-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(248,34,73,0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(248,34,73,0.18); }
  50%      { box-shadow: 0 0 0 10px rgba(248,34,73,0.04); }
}
#hero h1 {
  font-family: var(--display);
  font-size: 60px;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
#hero h1 .serif {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  color: #ffd2db;
  display: block;
  margin-top: 8px;
  letter-spacing: -0.005em;
}
#hero h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 19px !important;
  line-height: 1.5;
  color: rgba(255,255,255,0.86) !important;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 991px) {
  #hero h1 { font-size: 38px; }
  #hero h2 { font-size: 15px !important; }
}

.hero-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-top: 28px;
}
.hero-meta span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.04);
  font-weight: 500;
  transition: all 0.3s ease;
}
.hero-meta span:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(248,34,73,0.12);
}

.hero-scroll {
  position: absolute;
  bottom: 38px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  text-transform: uppercase;
  z-index: 10;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px; height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), transparent);
  margin: 12px auto 0;
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1); opacity: 1; transform-origin: top; }
}
@media (max-width: 768px) { .hero-scroll { display: none; } }

/* ---------- About (dark hero-style section) ---------- */
#about {
  background: #0a112d;
  position: relative;
  color: #fff;
  padding: 100px 0 90px 0;
  overflow: hidden;
}
#about:before {
  content: "";
  background:
    radial-gradient(ellipse at 10% 0%, rgba(248,34,73,0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(14,27,77,0.6) 0%, transparent 55%);
  position: absolute; inset: 0;
  z-index: 0;
}
#about::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}
#about .container { position: relative; z-index: 2; }

#about .about-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
#about h2 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 40px;
  max-width: 920px;
}
#about h2 em { color: #ffd2db; font-style: normal; }
#about p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  line-height: 1.75;
  max-width: 880px;
  margin-bottom: 22px;
}
#about p b { color: #fff; font-weight: 600; }
#about p em {
  color: var(--accent);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
}
#about .about-takeaways {
  margin-top: 12px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  max-width: 1000px;
}
#about .about-takeaways-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-right: 12px;
}
@media (max-width: 768px) {
  #about h2 { font-size: 32px; }
  #about p { font-size: 15.5px; }
}

/* ---------- Tutorial Outline (editorial cards) ---------- */
#outline { background: var(--cream); padding: 110px 0 100px; }
#outline .section-with-bg-inner {
  background: var(--cream);
}
.section-with-bg { background-color: var(--cream); }

.outline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 768px) { .outline-grid { grid-template-columns: 1fr; } }

.outline-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 36px 36px 32px 36px;
  box-shadow:
    0 1px 0 rgba(14,27,77,0.04),
    0 8px 24px rgba(14,27,77,0.06);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s ease;
}
.outline-card::before {
  content: attr(data-num);
  position: absolute;
  right: -8px;
  top: -28px;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 200;
  font-size: 180px;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: color 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.outline-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(14,27,77,0.04),
    0 20px 48px rgba(14,27,77,0.12);
  border-color: rgba(248,34,73,0.25);
}
.outline-card:hover::before {
  color: #fde8ed;
  transform: scale(1.05) rotate(-3deg);
}

.outline-card .module-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.outline-card .module-tag::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.outline-card h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}
.outline-card p {
  position: relative;
  z-index: 1;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.outline-card p b { color: var(--navy); font-weight: 600; }

/* ---------- Pull quote (editorial magazine style) ---------- */
.quote-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a6b 100%);
  color: #fff;
  padding: 80px 60px;
  border-radius: 18px;
  margin: 90px 0 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(14,27,77,0.25);
}
.quote-banner::before {
  content: "“";
  position: absolute;
  top: -40px;
  left: 30px;
  font-family: var(--serif);
  font-size: 260px;
  line-height: 1;
  color: rgba(248,34,73,0.18);
  font-weight: 400;
  font-style: normal;
  pointer-events: none;
}
.quote-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
}
.quote-banner p {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.35;
  color: #fff;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 880px;
  letter-spacing: -0.005em;
}
.quote-banner .quote-attr {
  font-family: var(--mono);
  font-style: normal;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.28em;
  margin-top: 26px;
  text-transform: uppercase;
  font-weight: 500;
  text-align: left;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote-banner .quote-attr::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--accent);
  display: block;
}
@media (max-width: 768px) {
  .quote-banner { padding: 50px 28px; }
  .quote-banner p { font-size: 21px; }
  .quote-banner::before { font-size: 180px; top: -20px; }
}

/* ---------- Takeaways (refined grid) ---------- */
#takeaways { padding: 110px 0 90px; background: #fff; }
.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
@media (max-width: 992px) { .takeaway-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .takeaway-grid { grid-template-columns: 1fr; } }

.takeaway-item {
  padding: 32px 28px 28px 28px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.takeaway-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.takeaway-item:hover {
  background: #fff;
  border-color: rgba(248,34,73,0.2);
  box-shadow: 0 14px 40px rgba(14,27,77,0.08);
  transform: translateY(-3px);
}
.takeaway-item:hover::before { transform: scaleX(1); }
.takeaway-item .takeaway-num {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.takeaway-item h5 {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
  margin: 14px 0 10px 0;
  letter-spacing: -0.005em;
}
.takeaway-item p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Schedule (refined) ---------- */
#schedule { background: var(--cream); padding: 110px 0; }
.schedule-table {
  border: none !important;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--sans) !important;
  margin-top: 24px !important;
}
.schedule-table thead th {
  background: transparent !important;
  border-bottom: 2px solid var(--navy) !important;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 14px 18px !important;
}
.schedule-table tbody td {
  background: #fff !important;
  border-bottom: 1px solid var(--rule-soft) !important;
  padding: 18px 18px !important;
  font-size: 15.5px;
  color: var(--ink);
  transition: background-color 0.25s ease;
}
.schedule-table tbody tr:nth-child(even) td { background: #fafbff !important; }
.schedule-table tbody tr:hover td { background: #f0f3ff !important; }
.schedule-table tbody td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
  width: 110px;
}
.schedule-table tbody td:nth-child(2) {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  width: 230px;
}
.schedule-table tr.break-row td {
  background: #fff8e1 !important;
  color: #8a6d3b !important;
  font-style: normal;
}
.schedule-table tr.welcome-row td {
  background: #e7f3ff !important;
}
.schedule-table tr.total-row td {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 600;
}
.schedule-table tr.total-row td:first-child { color: #ffd2db !important; }
.schedule-table tr.total-row td:nth-child(2) { color: #fff !important; }

/* ---------- Audience ---------- */
#audience { padding: 110px 0; background: #fff; }
.audience-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 30px;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 6px 24px rgba(14,27,77,0.04);
  height: 100%;
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.audience-card:hover {
  border-color: rgba(248,34,73,0.2);
  box-shadow: 0 16px 40px rgba(14,27,77,0.08);
  transform: translateY(-3px);
}
.audience-card .audience-icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--cream);
  color: var(--accent);
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 18px;
}
.audience-card h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.audience-card p, .audience-card ul {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}
.audience-card ul { padding-left: 20px; }
.audience-card ul li { margin-bottom: 4px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  background: var(--cream);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rule-soft);
}

/* ---------- Organizers ---------- */
#organizers { background: var(--cream); padding: 110px 0 100px; }
#organizers .speaker {
  margin-bottom: 44px;
  position: relative;
  text-align: center;
}
#organizers .speaker img {
  width: 170px !important;
  height: 170px !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 20px;
  filter: grayscale(0%) saturate(0.95);
  transition: filter 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 26px rgba(14,27,77,0.12);
}
#organizers .speaker:hover img {
  filter: grayscale(0%) saturate(1.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14,27,77,0.2);
}
#organizers .speaker a {
  font-family: var(--display) !important;
  font-weight: 700;
  font-size: 19px !important;
  color: var(--navy) !important;
  letter-spacing: -0.005em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  padding-bottom: 1px;
}
#organizers .speaker a:hover {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}
#organizers .speaker .org-affil {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 6px;
  font-style: normal;
  font-family: var(--serif);
  font-weight: 400;
}

/* ---------- Materials ---------- */
#materials { padding: 110px 0; background: #fff; }
.materials-card {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 80% -10%, rgba(248,34,73,0.18) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, #182660 100%);
  color: #fff;
  border-radius: 18px;
  padding: 40px 38px;
  box-shadow: 0 14px 40px rgba(14,27,77,0.18);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.materials-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n3'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n3)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}
.materials-card > * { position: relative; z-index: 1; }
.materials-card .materials-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.materials-card h4 {
  color: #fff !important;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.materials-card p {
  color: rgba(255,255,255,0.78);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.materials-card a.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 10px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.92);
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-right: 8px;
  margin-top: 8px;
  transition: all 0.3s ease;
}
.materials-card a.btn-ghost::after {
  content: "→";
  font-family: var(--sans);
  letter-spacing: 0;
  transition: transform 0.3s ease;
}
.materials-card a.btn-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.materials-card a.btn-ghost:hover::after { transform: translateX(3px); }

/* ---------- Footer ---------- */
#footer {
  background: var(--navy-deep);
  padding: 50px 0 36px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  text-align: center;
}
#footer .container > div { margin-bottom: 10px; }
#footer .copyright {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
}
#footer .credits a {
  color: var(--accent-warm);
  border-bottom: 1px dashed rgba(255,90,118,0.4);
}
#footer .credits a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Back-to-top refinement ---------- */
.back-to-top {
  background: var(--navy) !important;
  border: 1px solid rgba(248,34,73,0.4);
}
.back-to-top:hover { background: var(--accent) !important; }

/* ---------- Section dividers (subtle ornament) ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 12px;
  color: var(--accent);
}
.ornament::before, .ornament::after {
  content: "";
  width: 36px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.ornament span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

/* ---------- Reading List (tutorial-page format) ---------- */
#reading { background: #fff; padding: 110px 0 100px; }

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

/* Small legend at top of reading list */
.reading-legend {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 20px;
  margin: -16px 0 48px 0;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: #fff;
}
.reading-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.reading-legend strong {
  color: var(--navy);
  font-weight: 600;
}
.reading-legend .legend-item.pre strong { color: var(--accent); }

/* Module block — numbered like "1. Foundations of Agents" */
.reading-module {
  padding: 48px 0 8px 0;
  border-top: 1px solid var(--rule);
}
.reading-module:first-of-type { border-top: none; padding-top: 8px; }

.reading-module h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 12px 0;
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.reading-module h3 .module-number {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  font-size: 26px;
  letter-spacing: 0;
}
.reading-module .module-intro {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 0 28px 0;
}

/* Group: Pre-reading or Additional reading */
.papers-group { margin-top: 32px; }
.papers-group:first-of-type { margin-top: 24px; }
.papers-group .group-label {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 18px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  letter-spacing: -0.005em;
}
.papers-group.pre .group-label {
  color: var(--accent);
  border-bottom-color: rgba(248,34,73,0.25);
}

/* Paper: title on top, authors below */
.paper-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.paper-list .paper {
  padding: 14px 0;
  display: block;
}
.paper-list .paper + .paper {
  border-top: 1px solid #f4f5fa;
}

.paper .paper-title {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  display: block;
  margin-bottom: 4px;
}
.paper .paper-link {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
  vertical-align: baseline;
}
.paper .paper-link::before { content: "["; color: var(--ink-soft); opacity: 0.55; margin-right: 1px; }
.paper .paper-link::after { content: "]"; color: var(--ink-soft); opacity: 0.55; margin-left: 1px; }
.paper .paper-link:hover {
  color: var(--navy);
  border-bottom-color: var(--accent);
}
.paper .paper-authors {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  display: block;
}

@media (max-width: 600px) {
  .reading-module h3 { font-size: 22px; }
  .reading-module h3 .module-number { font-size: 22px; }
  .paper .paper-title { font-size: 15px; }
  .paper .paper-authors { font-size: 13.5px; }
}

/* ---------- AOS animation polish ---------- */
[data-aos] { will-change: transform, opacity; }

/* ---------- Academic refinement: no italics (emphasis carried by color/weight) ---------- */
em, i, cite, .serif, .serif-quote { font-style: normal; }
