@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ----------------------------
   Global
----------------------------- */
body {
  margin: 0;
  padding: 0; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
               'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #000000;
  background-color: #ffffff;
}

a {
  color: #1a73e8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.hero {
  background: #1c1c1c; 
  color: #ffffff;
  padding: 48px 24px 36px;
}

.hero-title {
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 19px;
  color: #d0d0d0; 
  margin: 0 0 6px;
}

.hero-subsubtitle {
  font-size: 20px;
  font-weight: 400;
  color: #d0d0d0;
  margin: 0 0 10px 0; 
}

.hero-meta {
  font-size: 14px;
  color: #a5a5a5;
  margin-top: 0;   
}

.hero-image {
  flex: 1 1 220px;
  min-width: 200px;
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}


/* ----------------------------
   Main content + sidebar grid
----------------------------- */
.page {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) 260px;
  column-gap: 56px; 

  max-width: 1200px; 
  margin: 0 auto;
  padding: 48px 40px 80px 40px; 
  box-sizing: border-box;
}

.content {
  max-width: 960px; 
  justify-self: stretch;  
  grid-column: 2;
}

.sidebar {
  font-size: 14px;
  line-height: 1.6;
  align-self: flex-start;
  position: sticky;
  top: 120px;
  grid-column: 3;
}

.sidebar-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 12px;
  color: #000000;
  letter-spacing: 0.06em;
}

.sidebar-link-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
}

.sidebar-link-list li {
  margin-bottom: 0;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-link-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar-link-list a {
  color: #57068c;
  text-decoration: none;
}

.sidebar-link-list a:hover {
  color: #7a0db8;
  text-decoration: underline;
}

/* -----------------------------------------
   Academic-style Comparative Table
------------------------------------------ */
#comparative {
  border: 1.5px dashed #cbd5e1;
  padding: 28px;
  border-radius: 6px;
  background: #ffffff;
}

#comparative h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  background-color: #57068c;
  padding: 16px 20px;
  border-radius: 6px;
}

#comparative p {
  margin: 0 0 16px;
  color: #000000;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;   
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #d1d5db;
  padding: 6px 8px;  
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  font-weight: 600;
  background: #f9fafb;
}

.comparison-table td strong {
  font-weight: 600;
  color: #000000;
}

#comparative .comparison-note {
  font-size: 13px;
  color: #000000;
  margin-top: 6px;
  font-style: italic;
}

/* ----------------------------
   Typography
----------------------------- */
h1, h2, h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #000000;
}

h2 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 12px;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 8px;
  font-weight: 500;
}

p {
  margin: 0 0 16px;
  color: #000000;
}

strong {
  color: #57068c;
  font-weight: 600;
}

/* ----------------------------
   Figures
----------------------------- */
.figure {
  margin: 32px 0;
  text-align: center;
}

.figure-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px auto;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.figure-img-png {
  max-width: 100%;   
}

.figure-caption {
  font-size: 13px;
  color: #000000;
  margin-top: 20px;
  margin-bottom: 20px;
  font-style: italic;
}

.svg-isolated {
  isolation: isolate;
  display: block;
}

#dataset, #whats-new, #research-questions, #cmn, #transformer-xl, #eacl, #ket, #new-insights, #comparative {
  border: 1.5px dashed #cbd5e1;
  padding: 28px;
  border-radius: 6px;
  background: #ffffff;
}

#dataset h2, #whats-new h2, #research-questions h2, #cmn h2, #transformer-xl h2, #eacl h2, #ket h2, #new-insights h2, #comparative h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  background-color: #57068c;
  padding: 16px 20px;
  border-radius: 6px;
}

#intro h2 a, #dataset h2 a, #whats-new h2 a, #research-questions h2 a, #cmn h2 a, #transformer-xl h2 a, #eacl h2 a, #ket h2 a, #new-insights h2 a, #comparative h2 a, #key-insights h2 a, #github-repo h2 a, #poster h2 a, #references h2 a {
  color: inherit;
  text-decoration: none;
}

#dataset p, #whats-new p, #research-questions p, #cmn p, #ket p {
  margin: 0 0 16px;
  color: #000000; 
}

#dataset ul {
  padding-left: 20px; 
  margin: 0 0 16px;
}

#dataset ul li {
  margin-bottom: 8px;
  color: #000000;
  line-height: 1.6;
}

#dataset h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  margin-left: -8px;
  margin-right: -8px;
  font-weight: 600;
  color: #ffffff;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ab82c5 0%, #c5a3d9 100%);
  border-left: 4px solid #57068c;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#research-questions {
  border: 1.5px dashed #cbd5e1;
  padding: 28px;
  border-radius: 6px;
  background: #ffffff;
}

#research-questions h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  background-color: #57068c;
  padding: 16px 20px;
  border-radius: 6px;
}

#research-questions p {
  margin: 0 0 16px;
  color: #000000; 
}

#whats-new ul, #research-questions ul {
  padding-left: 0;
  margin: 0 0 16px;
  list-style: none;
}

#whats-new ul li, #research-questions ul li {
  margin-bottom: 20px;
  color: #000000;
  line-height: 1.6;
  background-color: #eee6f3;
  padding: 16px 20px;
  border-radius: 6px;
}

#research-questions ol li strong {
  display: block;
  margin-bottom: 8px;
}

#cmn {
  border: 1.5px dashed #cbd5e1;
  padding: 28px;
  border-radius: 6px;
  background: #ffffff;
}

#cmn h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  background-color: #57068c;
  padding: 16px 20px;
  border-radius: 6px;
}

#cmn p {
  margin: 0 0 16px;
  color: #000000; 
}

#cmn h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  margin-left: -8px;
  margin-right: -8px;
  font-weight: 600;
  color: #ffffff;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ab82c5 0%, #c5a3d9 100%);
  border-left: 4px solid #57068c;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#intro {
  border: 1.5px dashed #cbd5e1;
  padding: 28px;
  border-radius: 6px;
  background: #ffffff;
}

#intro h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  background-color: #57068c;
  padding: 16px 20px;
  border-radius: 6px;
}

#intro p {
  margin: 0 0 16px;
  color: #000000; 
}

#transformer-xl {
  border: 1.5px dashed #cbd5e1;
  padding: 28px;
  border-radius: 6px;
  background: #ffffff;
}

#transformer-xl h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  background-color: #57068c;
  padding: 16px 20px;
  border-radius: 6px;
}

#transformer-xl p {
  margin: 0 0 16px;
  color: #000000; 
}

#transformer-xl h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  margin-left: -8px;
  margin-right: -8px;
  font-weight: 600;
  color: #ffffff;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ab82c5 0%, #c5a3d9 100%);
  border-left: 4px solid #57068c;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#eacl {
  border: 1.5px dashed #cbd5e1;
  padding: 28px;
  border-radius: 6px;
  background: #ffffff;
}

#eacl h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  background-color: #57068c;
  padding: 16px 20px;
  border-radius: 6px;
}

#eacl p {
  margin: 0 0 16px;
  color: #000000; 
}

#eacl h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  margin-left: -8px;
  margin-right: -8px;
  font-weight: 600;
  color: #ffffff;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ab82c5 0%, #c5a3d9 100%);
  border-left: 4px solid #57068c;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#ket {
  border: 1.5px dashed #cbd5e1;
  padding: 28px;
  border-radius: 6px;
  background: #ffffff;
}

#ket h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  background-color: #57068c;
  padding: 16px 20px;
  border-radius: 6px;
}

#ket p {
  margin: 0 0 16px;
  color: #000000; 
}

#ket ul {
  padding-left: 20px; 
  margin: 0 0 16px;
}

#ket ul li {
  margin-bottom: 8px;
  color: #000000;
}

#ket h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  margin-left: -8px;
  margin-right: -8px;
  font-weight: 600;
  color: #ffffff;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ab82c5 0%, #c5a3d9 100%);
  border-left: 4px solid #57068c;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#new-insights {
  border: 1.5px dashed #cbd5e1;
  padding: 28px;
  border-radius: 6px;
  background: #ffffff;
}

#new-insights h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
  background-color: #57068c;
  padding: 16px 20px;
  border-radius: 6px;
}

#new-insights p {
  margin: 0 0 16px;
  color: #000000; 
}

#new-insights h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
  margin-left: -8px;
  margin-right: -8px;
  font-weight: 600;
  color: #ffffff;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ab82c5 0%, #c5a3d9 100%);
  border-left: 4px solid #57068c;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.insight-pink-box {
  background-color: #eee6f3;
  padding: 16px 20px;
  border-radius: 6px;
  margin-top: 24px;
  line-height: 1.6;
}

.insight-pink-title {
  color: #57068c;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

#references {
  margin-top: 56px;
}

#references h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #000000;
  text-align: left;
}

#references p {
  margin: 0 0 20px;
  color: #000000;
  line-height: 1.8;
}

#references a {
  color: #57068c;
  text-decoration: underline;
}

#references a:hover {
  color: #7a0db8;
}

/* ----------------------------
   Key insights block 
----------------------------- */
#key-insights {
  margin-top: 56px;
  padding: 24px 20px;
  background: #eee6f3;
  border-radius: 6px;
}
#github-repo {
  margin-top: 56px;
  padding: 24px 20px;
  background: #f5f5f5;
  border-radius: 6px;
}
#poster {
  margin-top: 56px;
  padding: 24px 20px;
  background: #fff4e5;
  border-radius: 6px;
}

#key-insights h2 {
  margin-top: 0;
  color: #000000;
}
#github-repo h2 {
  margin-top: 0;
  color: #000000;
}
#poster h2 {
  margin-top: 0;
  color: #000000;
}

#key-insights ol {
  padding-left: 20px;
}

#key-insights ol li {
  padding-left: 4px;
  margin-bottom: 12px;
  line-height: 1.5;
}

#key-insights strong {
  color: #57068c;
}
#github-repo strong {
  color: #57068c;
}
#poster strong {
  color: #57068c;
}

section + section {
  margin-top: 36px;
}
/* ----------------------------
   Responsive (mobile / tablet)
----------------------------- */
@media (max-width: 900px) {

  body {
    padding: 0 12px;  
  }

  .hero {
    padding: 40px 24px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    grid-template-columns: 1fr;   
    padding: 32px 24px 56px;
    row-gap: 40px;
  }

  .sidebar {
    position: static;
    top: auto;
  }
}



/* ----------------------------
   Section 4: Transformer-XL Styles
----------------------------- */

/* Image styling */
.architecture-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 30px auto 20px auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
}

/* Caption styling */
.caption {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  color: #5f6368;
  margin-top: 8px;
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.5;
}

/* Highlight spans */
.highlight {
  background-color: #fff3cd;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Key insight box */
.key-insight {
  background-color: #e8f4f8;
  border-left: 4px solid #1a73e8;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 4px;
  font-size: 16px;
}

.key-insight strong {
  color: #1a73e8;
}

/* Comparison boxes */
.comparison {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.comparison-box {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  border-radius: 8px;
  font-size: 15px;
}

.comparison-box h4 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
}

.comparison-box ul {
  margin: 10px 0;
  padding-left: 20px;
  font-size: 15px;
  list-style-type: disc;
}

.comparison-box li {
  margin-bottom: 8px;
}

.before {
  background-color: #ffe6e6;
  border: 2px solid #e74c3c;
}

.after {
  background-color: #d5f4e6;
  border: 2px solid #27ae60;
}

/* Code styling */
code {
  background-color: #f1f3f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #202124;
}

/* Lists in content */
.content ul {
  margin: 16px 0;
  padding-left: 24px;
}

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

/* Responsive adjustments */
@media (max-width: 800px) {
  .comparison {
    flex-direction: column;
  }
  
  .comparison-box {
    width: 100%;
    min-width: unset;
  }
  
  .architecture-img {
    margin: 20px 0;
  }
}

