/* ---- Reduced vertical spacing for Exam Selector ---- */
.esp-wrapper { max-width:1200px; margin:12px auto; font-family: Arial, Helvetica, sans-serif; }

.esp-results {
  background:#f8f8f8;
  border:1px solid #e6e6e6;
  padding:16px;            /* was 30px — reduced */
  margin-top:12px;         /* was 16px */
  min-height:240px;        /* optionally reduce if you want a shorter box */
  box-shadow: 0 8px 0 rgba(0,0,0,0.07);
  border-radius:4px;
}

/* Section spacing */
.esp-section { margin-bottom:14px; }   /* was 36px */

/* Heading spacing */
.esp-section h3 {
  font-size:20px;
  font-weight:600;
  margin: 6px 0 10px;      /* was margin-bottom:18px; tightened */
}

/* Individual paper items: smaller padding and line-height */
.esp-item {
  font-size:18px;          /* slightly smaller if needed */
  padding:6px 0;           /* was 18px 0; reduced vertical padding */
  margin:0;                /* ensure no extra margins */
  line-height:1.25;        /* controls distance between wrapped lines */
}

/* Link style remains similar but slightly smaller spacing when inline */
.esp-link { display:inline-block; vertical-align:middle; }
.esp-link, .esp-link:visited { color:#a62e2e; text-decoration:none; }
.esp-link:hover { text-decoration:underline; }

/* small adjustments for header area */
.esp-header { padding:12px 16px; }   /* tightened header padding */
#esp-year-select { font-size:18px; padding:5px 8px; }
#esp-get-btn { padding:8px 12px; font-size:16px; }

/* placeholder / messages */
.esp-loading, .esp-error, .esp-empty, .esp-placeholder { font-size:15px; color:#444; padding:8px; }


/* === FORCE REDUCE SPACING FOR EXAM SELECTOR === */
.esp-results .esp-section h3 {
  margin: 4px 0 6px 0 !important;   /* much less space above/below headings */
  padding: 0 !important;
}

.esp-results .esp-item {
  font-size: 17px !important;
  padding: 2px 0 !important;        /* reduce vertical padding between lines */
  margin: 0 !important;
  line-height: 1.1 !important;      /* tighter line spacing */
}

.esp-results .esp-section {
  margin-bottom: 8px !important;    /* less space between sections */
  padding: 0 !important;
}

.esp-results {
  padding: 12px 16px !important;    /* reduce white space inside box */
}

.esp-wrapper {
  margin: 8px auto !important;
}

/* optional: make the list look more compact visually */
.esp-item a {
  color: #b22222 !important;       /* red color like your screenshot */
  text-decoration: none !important;
}
.esp-item a:hover {
  text-decoration: underline !important;
}
