.academic-page {
  background: #f7f8fb;
}

.academic-page .site-nav a.active {
  border-bottom-color: var(--academic);
}

.academic-hero {
  min-height: 142px;
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(420px, 1.15fr) minmax(250px, 0.55fr);
  align-items: center;
  gap: 42px;
  padding: 20px clamp(18px, 3vw, 46px);
  background: var(--academic);
  color: #fff;
}

.academic-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.05;
}

.academic-title p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.academic-search {
  height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.academic-search input,
.academic-search button {
  min-width: 0;
  height: 46px;
  border: 0;
  border-radius: 0;
}

.academic-search input {
  padding: 0 18px;
  outline: none;
}

.academic-search button {
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.research-observation {
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.research-observation p {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
}

.research-observation strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}

.research-observation span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.category-bar {
  min-height: 60px;
  display: grid;
  grid-template-columns: repeat(8, minmax(112px, 1fr));
  align-items: stretch;
  gap: 0;
  padding: 0 clamp(18px, 3vw, 46px);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.category-bar button {
  min-width: 118px;
  min-height: 60px;
  padding: 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #3e3b36;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.category-bar button:hover,
.category-bar button:focus-visible,
.category-bar button.active {
  border-bottom-color: var(--academic);
  color: var(--academic);
  outline: none;
}

.category-bar button.active {
  font-weight: 750;
}

.category-bar .count {
  margin-left: 4px;
  color: #8b867e;
  font-size: 9px;
}

.academic-layout {
  width: min(1560px, 100%);
  min-height: calc(100vh - 318px);
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(0, 3fr);
  gap: 16px;
  margin: 0 auto;
  padding: 18px;
}

.academic-directory,
.stream-pane,
.insight-pane {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}

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

.directory-heading {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.directory-heading p { margin: 0 0 4px; color: var(--academic); font-size: 10px; font-weight: 750; }
.directory-heading h2 { margin: 0; font-family: var(--serif); font-size: 26px; }
.directory-heading span { display: block; margin-top: 5px; color: #858078; font-size: 10px; }

.academic-directory .category-bar {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: visible;
  border-bottom: 0;
}

.academic-directory .category-bar button {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #eceae5;
  border-left: 3px solid transparent;
  text-align: left;
}

.academic-directory .category-bar button:hover,
.academic-directory .category-bar button:focus-visible,
.academic-directory .category-bar button.active {
  border-bottom-color: #eceae5;
  border-left-color: var(--academic);
  background: var(--academic-soft);
}

.insight-pane { display: none; }
.academic-detail-open .academic-directory,
.academic-detail-open .stream-pane { display: none; }
.academic-detail-open .academic-layout { display: block; }
.academic-detail-open .insight-pane { display: block; width: min(1080px, 100%); max-height: none; margin: 0 auto; position: static; }

.academic-detail-back {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--academic);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
  padding: 0 18px;
}

.academic-detail-jump,
.academic-section-toggle { display: none; }

.pane-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.pane-heading p {
  margin: 0 0 2px;
  color: var(--academic);
  font-size: 10px;
  font-weight: 750;
}

.pane-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
}

.pane-heading span {
  display: block;
  margin-top: 4px;
  color: #858078;
  font-size: 10px;
}

.pane-heading button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  color: #5d5953;
  cursor: pointer;
  font-size: 11px;
}

.feed {
  max-height: calc(100vh - 394px);
  min-height: 590px;
  overflow: auto;
}

.feed-item {
  width: 100%;
  min-height: 142px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 82px;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid #e8e6e0;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.feed-item:hover {
  background: #fbfcff;
}

.feed-item.selected {
  background: var(--academic-soft);
  box-shadow: inset 3px 0 var(--academic);
}

.feed-icon {
  width: 58px;
  min-height: 80px;
  display: grid;
  place-items: center;
  align-self: start;
  border: 1px solid #cad8f1;
  background: #f4f7fc;
  color: var(--academic);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.feed-copy {
  min-width: 0;
}

.feed-item h3 {
  margin: 0;
  color: #201e1a;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  margin-top: 8px;
  color: #79746c;
  font-size: 9px;
}

.feed-meta .tag,
.keyword-row span {
  padding: 3px 7px;
  border-radius: 3px;
  background: #eef3fc;
  color: var(--academic);
}

.feed-item p {
  margin: 10px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #66615a;
  font-size: 11px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-side {
  color: #817c74;
  font-size: 9px;
  text-align: right;
}

.feed-side strong {
  display: block;
  margin-bottom: 10px;
  color: #4b4741;
  font-size: 10px;
}

.carrier-label,
.detail-tag {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #c9d7ef;
  border-radius: 3px;
  background: #f5f8fe;
  color: var(--academic);
  font-size: 9px;
}

.insight-pane {
  position: sticky;
  top: 14px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.insight-content {
  min-height: 680px;
}

.insight-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.insight-head h2 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.45;
}

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 13px;
  color: #79746c;
  font-size: 10px;
}

.insight-body {
  padding: 10px 24px 24px;
}

.fact-grid {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.fact-grid span:nth-child(odd) {
  color: #77726a;
}

.fact-grid strong {
  overflow-wrap: anywhere;
  font-weight: 500;
}

.insight-section {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.insight-section h3 {
  margin: 0;
  color: #25221e;
  font-family: var(--serif);
  font-size: 15px;
}

.insight-section p,
.quote-block {
  margin: 0;
  white-space: pre-wrap;
  color: #5d5851;
  font-size: 11px;
  line-height: 1.8;
}

.argument-list {
  display: grid;
  gap: 9px;
}

.argument {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  color: #5d5851;
  font-size: 11px;
  line-height: 1.7;
}

.argument b {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  background: var(--academic-soft);
  color: var(--academic);
  font-size: 9px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.insight-actions a,
.insight-actions button {
  min-width: 132px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--academic);
  border-radius: 3px;
  background: var(--academic);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.insight-actions button {
  border-color: #a7b7d4;
  background: #fff;
  color: var(--academic);
}

.insight-actions .document-action:not(.primary),
.insight-actions .source-action {
  border-color: #a7b7d4;
  background: #fff;
  color: var(--academic);
}

.ai-content-notice {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #d8e0ed;
  border-left: 3px solid var(--academic);
  background: #f7f9fc;
  color: #6c6963;
}

.ai-content-notice strong {
  color: #334d78;
  font-size: 10px;
  line-height: 1.7;
}

.ai-content-notice p {
  margin: 0;
  font-size: 10px;
  line-height: 1.75;
}

.detail-empty,
.feed-empty {
  min-height: 560px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 38px;
  color: #817c74;
  text-align: center;
}

.detail-empty strong,
.feed-empty strong {
  color: #302d28;
  font-family: var(--serif);
  font-size: 20px;
}

.detail-empty span,
.feed-empty span {
  font-size: 11px;
}

.share-dialog {
  width: min(620px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.share-dialog::backdrop {
  background: rgba(11, 25, 58, 0.56);
}

.share-dialog article {
  position: relative;
  padding: 28px;
}

.share-close {
  position: absolute;
  right: 18px;
  top: 18px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #77726a;
  cursor: pointer;
}

.share-eyebrow {
  margin: 0;
  color: var(--academic);
  font-size: 10px;
  font-weight: 750;
}

.share-dialog h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
}

.share-description,
.share-feedback {
  color: #77726a;
  font-size: 11px;
}

.share-field {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  color: #67625b;
  font-size: 10px;
}

.share-field input {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
}

.share-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.share-actions button {
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--academic);
  border-radius: 3px;
  background: #fff;
  color: var(--academic);
  cursor: pointer;
}

.share-actions .share-primary {
  background: var(--academic);
  color: #fff;
}

@media (max-width: 1080px) {
  .academic-hero {
    grid-template-columns: 1fr 1.5fr;
  }

  .research-observation {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
  }

  .academic-layout { grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr); }

  .insight-pane {
    position: static;
    max-height: none;
  }

  .feed {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .academic-page:not(.academic-detail-open) .academic-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px;
  }

  .academic-page:not(.academic-detail-open) .academic-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .academic-page:not(.academic-detail-open) .academic-title h1 { font-size: 30px; }
  .academic-page:not(.academic-detail-open) .academic-title p { margin: 0; font-size: 11px; }
  .academic-page:not(.academic-detail-open) .research-observation { display: none; }

  .academic-page:not(.academic-detail-open) .academic-search {
    height: 42px;
    grid-template-columns: minmax(0, 1fr) 66px;
  }
  .academic-page:not(.academic-detail-open) .academic-search input,
  .academic-page:not(.academic-detail-open) .academic-search button { height: 42px; }

  .academic-layout { display: block; padding: 8px; min-height: 0; }
  .academic-directory { margin-bottom: 8px; }
  .directory-heading { display: none; }
  .academic-directory .category-bar {
    display: flex;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .academic-directory .category-bar button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 3px;
  }
  .academic-directory .category-bar button.active { border-color: var(--academic); }
  .pane-heading { min-height: 58px; padding: 10px 12px; }
  .pane-heading p, .pane-heading span { display: none; }
  .pane-heading h2 { font-size: 21px; }
  .feed { min-height: 0; max-height: none; }
  .academic-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .academic-title h1 {
    font-size: 40px;
  }

  .academic-layout {
    padding: 10px;
  }

  .feed-item {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .feed-icon {
    width: 38px;
    min-height: 52px;
  }

  .feed-side {
    grid-column: 2;
    text-align: left;
  }

  .insight-section,
  .fact-grid,
  .ai-content-notice {
    grid-template-columns: 1fr;
  }

  .insight-actions a,
  .insight-actions button {
    flex: 1 1 120px;
  }

  .academic-detail-open .site-header,
  .academic-detail-open .academic-hero { display: none; }
  .academic-detail-open .academic-layout { padding: 0; }
  .academic-detail-open .insight-pane { border: 0; }
  .academic-detail-open .academic-detail-back { position: sticky; top: 0; z-index: 30; min-height: 44px; padding: 0 12px; }
  .academic-detail-open .insight-head { padding: 14px 12px 12px; }
  .academic-detail-open .insight-head h2 { font-size: 21px; line-height: 1.35; }
  .academic-detail-open .insight-body { padding: 0 12px 20px; }
  .academic-detail-jump {
    position: sticky;
    top: 44px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 -12px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.97);
  }
  .academic-detail-jump a { min-height: 38px; display: grid; place-items: center; color: var(--academic); font-size: 11px; }
  .academic-mobile-collapsible .academic-section-content { max-height: 118px; overflow: hidden; }
  .academic-mobile-collapsible.expanded .academic-section-content { max-height: none; }
  .academic-section-toggle {
    display: block;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--academic);
    cursor: pointer;
    font-size: 11px;
  }
  .academic-detail-open .fact-grid { grid-template-columns: 82px minmax(0,1fr); padding: 12px 0; }
  .academic-detail-open .insight-section { padding: 14px 0; }
}
