.catalog-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(220px, .9fr);
  gap: 12px;
  width: min(590px, 100%);
}

.catalog-search select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 11px 40px 11px 14px;
  font: 600 14px/1.4 Manrope, sans-serif;
}

.catalog-search select:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
}

.study-cadence {
  margin-top: 9px;
  border: 1px solid #cfe1db;
  background: #fff;
}

.study-cadence summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.study-cadence summary::-webkit-details-marker { display: none; }
.study-cadence summary span { color: #08795e; font: 500 18px/1 "DM Mono", monospace; }
.study-cadence[open] summary { border-bottom: 1px solid #cfe1db; }
.study-cadence[open] summary span { transform: rotate(45deg); }

.study-cadence > div {
  padding: 15px;
}

.study-cadence > div > b {
  color: #08795e;
  font: 500 10px/1.5 "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.study-cadence ol {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 19px;
  color: #405b54;
  font-size: 13px;
  line-height: 1.5;
}

.study-cadence small {
  display: block;
  color: #6c817b;
  font-size: 11px;
  line-height: 1.55;
}

.faq {
  background:
    radial-gradient(circle at 95% 8%, rgba(20, 223, 170, .15), transparent 27%),
    #f4f8f6;
}

.faq-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr);
  gap: 8vw;
  align-items: end;
}

.faq-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.schedule-framework {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1px;
  margin-top: 46px;
  border: 1px solid #24473e;
  background: #24473e;
}

.schedule-framework > div,
.schedule-framework > ol {
  margin: 0;
  padding: 34px;
  background: #09241e;
}

.schedule-framework > div > span {
  color: var(--mint);
  font: 500 10px/1.5 "DM Mono", monospace;
  letter-spacing: .09em;
}

.schedule-framework h3 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: 28px;
  line-height: 1.16;
}

.schedule-framework p {
  color: #adc2bc;
  font-size: 14px;
  line-height: 1.7;
}

.schedule-framework a {
  display: inline-block;
  margin-top: 9px;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.schedule-framework ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  list-style: none;
}

.schedule-framework li {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 152px;
  padding: 24px;
  background: #10352d;
}

.schedule-framework li b {
  color: var(--mint);
  font: 500 11px/1.4 "DM Mono", monospace;
  letter-spacing: .06em;
}

.schedule-framework li span {
  color: #d2e2de;
  font-size: 14px;
  line-height: 1.6;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.faq-list details {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { flex: 0 0 auto; color: #08795e; font: 500 19px/1 "DM Mono", monospace; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details > p { margin: 0; padding: 20px 22px 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 41;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 17px 8px 9px;
  border: 1px solid rgba(191, 255, 234, .5);
  background: var(--mint);
  color: #052019;
  box-shadow: 0 14px 34px rgba(4, 27, 22, .25);
  font: 700 14px/1 Manrope, sans-serif;
  cursor: pointer;
}

.chat-launcher span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #09241e;
  color: var(--aqua);
  font: 700 10px/1 "DM Mono", monospace;
}

.chat-launcher:hover,
.chat-launcher:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid #09241e;
  outline-offset: 2px;
}

.research-chat {
  position: fixed;
  right: 22px;
  bottom: 150px;
  z-index: 42;
  display: grid;
  grid-template-rows: auto auto minmax(150px, 1fr) auto auto;
  width: min(400px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 175px));
  border: 1px solid #2e5b50;
  background: #fff;
  box-shadow: 0 28px 70px rgba(2, 19, 15, .35);
}

.research-chat[hidden] { display: none !important; }

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 19px;
  background: #09241e;
  color: #fff;
}

.chat-head > div { display: grid; gap: 4px; }
.chat-head span { color: var(--mint); font: 500 9px/1.4 "DM Mono", monospace; letter-spacing: .09em; }
.chat-head strong { font-size: 17px; }
.chat-head button { border: 0; background: transparent; color: #fff; font: 300 28px/1 Manrope, sans-serif; cursor: pointer; }
.chat-head button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.chat-boundary {
  padding: 9px 16px;
  border-bottom: 1px solid #d9e5e1;
  background: #eef8f5;
  color: #3c6358;
  font: 500 9px/1.5 "DM Mono", monospace;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 17px;
  overflow-y: auto;
  background: #f7faf9;
}

.chat-message {
  max-width: 88%;
  padding: 12px 13px;
  border: 1px solid #d8e5e0;
  background: #fff;
}

.chat-message.user {
  justify-self: end;
  border-color: #184c3f;
  background: #10352d;
  color: #fff;
}

.chat-message p { margin: 0; font-size: 14px; line-height: 1.55; }
.chat-message a { display: inline-block; margin-top: 9px; color: #08795e; font-size: 13px; font-weight: 700; text-underline-offset: 3px; }

.chat-prompts {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  border-top: 1px solid #d9e5e1;
  background: #fff;
}

.chat-prompts button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #b9d6cd;
  background: #f2faf7;
  color: #185548;
  font: 700 12px/1.3 Manrope, sans-serif;
  cursor: pointer;
}

.chat-prompts button:hover,
.chat-prompts button:focus-visible { border-color: #08795e; outline: none; }

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 1px solid #d9e5e1;
}

.chat-form input {
  min-width: 0;
  border: 0;
  padding: 15px;
  color: var(--ink);
  font: 400 14px/1.4 Manrope, sans-serif;
}

.chat-form input:focus { outline: 2px solid var(--mint); outline-offset: -2px; }
.chat-form button { border: 0; background: #09241e; color: #fff; padding: 0 17px; font: 700 13px Manrope, sans-serif; cursor: pointer; }
.chat-form button:hover, .chat-form button:focus-visible { background: #155143; outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1200px) {
  .catalog-controls { align-items: stretch; flex-direction: column; }
  .catalog-tools { width: 100%; }
}

@media (max-width: 900px) {
  .faq-heading,
  .schedule-framework { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .catalog-tools,
  .faq-list,
  .schedule-framework ol { grid-template-columns: 1fr; }
  .schedule-framework > div { padding: 27px 23px; }
  .schedule-framework li { min-height: 0; }
  .chat-launcher { right: 12px; bottom: 68px; padding: 8px; }
  .chat-launcher b { display: none; }
  .research-chat { right: 12px; bottom: 120px; width: calc(100vw - 24px); max-height: calc(100vh - 140px); }
}
