/* CRIE.PUBLIC.TERRITORY.RESEARCH.01 */
.cc-territory-research {
  scroll-margin-top: 96px;
}

.cc-research-entry,
.cc-rais-research,
.cc-capability-research,
.cc-research-questions {
  position: relative;
  overflow: hidden;
}

.cc-research-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  gap: 24px;
  align-items: end;
  background:
    radial-gradient(circle at 100% 0%, rgba(25,118,210,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,249,.98));
}

.cc-research-entry__copy h2,
.cc-research-heading h2 {
  margin: 4px 0 10px;
}

.cc-research-entry__copy p,
.cc-research-heading p {
  margin: 0;
  max-width: 76ch;
}

.cc-research-entry__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cc-research-entry__actions a,
.cc-research-continuity a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,61,46,.12);
  background: rgba(255,255,255,.88);
  color: #153a2d;
  font-weight: 800;
}

.cc-research-entry__actions a:hover,
.cc-research-continuity a:hover {
  border-color: rgba(25,118,210,.28);
  transform: translateY(-1px);
}

.cc-research-entry__actions .cc-research-primary {
  color: white;
  background: #153f67;
  border-color: #153f67;
}

.cc-research-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.cc-rais-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.cc-research-metric {
  min-height: 118px;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(15,61,46,.10);
  background: rgba(255,255,255,.78);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.cc-research-metric span {
  color: #5d7180;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}

.cc-research-metric strong {
  color: #123d31;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
}

.cc-research-metric small {
  color: #6c7d89;
}

.cc-research-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cc-research-rank {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(25,118,210,.10);
  background: rgba(247,250,253,.82);
}

.cc-research-rank > header {
  margin-bottom: 14px;
}

.cc-research-rank > header small,
.cc-research-capability > small,
.cc-research-frontier > small {
  display: block;
  margin-bottom: 4px;
  color: #236a82;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}

.cc-research-rank h3,
.cc-research-related h3,
.cc-research-frontiers h3 {
  margin: 0 0 6px;
}

.cc-research-rank p,
.cc-research-related p,
.cc-research-frontiers p {
  margin: 0;
  color: #66798a;
}

.cc-research-row {
  padding: 12px 0;
  border-top: 1px solid rgba(15,61,46,.08);
}

.cc-research-row:first-child {
  border-top: 0;
  padding-top: 4px;
}

.cc-research-row__head {
  display: grid;
  gap: 3px;
}

.cc-research-row__head strong {
  color: #15382f;
}

.cc-research-row__head span {
  color: #607386;
  font-size: 12px;
  line-height: 1.45;
}

.cc-research-row__bar {
  height: 7px;
  margin-top: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(25,118,210,.09);
}

.cc-research-row__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1b6e88, #2e7d55);
}

.cc-research-method {
  margin-top: 18px;
  border-top: 1px solid rgba(15,61,46,.10);
  padding-top: 14px;
}

.cc-research-method summary {
  cursor: pointer;
  font-weight: 900;
  color: #163c31;
}

.cc-research-method div {
  margin-top: 10px;
  color: #607386;
}

.cc-research-method a {
  color: #15658c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-research-capabilities,
#research-related-capabilities,
#research-frontiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cc-research-capability,
.cc-research-frontier {
  min-height: 120px;
  border-radius: 18px;
  padding: 15px;
  border: 1px solid rgba(15,61,46,.10);
  background: rgba(255,255,255,.80);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cc-research-capability strong,
.cc-research-frontier strong {
  color: #133c32;
  line-height: 1.2;
}

.cc-research-capability span,
.cc-research-frontier span {
  margin-top: auto;
  color: #66798a;
  font-size: 12px;
  line-height: 1.45;
}

.cc-research-capability--related {
  background: rgba(244,249,255,.88);
}

.cc-research-related,
.cc-research-frontiers {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,61,46,.10);
}

.cc-research-related > p,
.cc-research-frontiers > p {
  margin-bottom: 12px;
}

.cc-research-frontier {
  border-color: rgba(242,184,75,.22);
  background: rgba(255,250,239,.86);
}

.cc-research-question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cc-research-question-grid > a {
  min-height: 190px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15,61,46,.10);
  background: rgba(255,255,255,.78);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.cc-research-question-grid > a:hover {
  transform: translateY(-2px);
  border-color: rgba(25,118,210,.25);
  box-shadow: 0 14px 30px rgba(25,70,90,.08);
}

.cc-research-question-grid > a > span {
  color: #246f87;
  font-weight: 900;
  font-size: 12px;
}

.cc-research-question-grid > a > strong {
  color: #143b30;
  font-size: 18px;
}

.cc-research-question-grid > a > p {
  margin: 0;
  color: #607386;
  line-height: 1.55;
}

.cc-research-continuity {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,61,46,.10);
}

.cc-research-empty {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(15,61,46,.16);
  background: rgba(255,255,255,.64);
}

.cc-research-empty strong {
  display: block;
  color: #173e33;
  margin-bottom: 4px;
}

.cc-research-empty p {
  margin: 0;
  color: #677a88;
}

[data-cc-state="not_integrated"] {
  border-color: rgba(100,116,139,.16);
}

@media (max-width: 1040px) {
  .cc-rais-snapshot,
  .cc-research-capabilities,
  #research-related-capabilities,
  #research-frontiers,
  .cc-research-question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .cc-research-entry,
  .cc-research-heading,
  .cc-research-rank-grid {
    grid-template-columns: 1fr;
  }

  .cc-research-entry__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .cc-rais-snapshot,
  .cc-research-capabilities,
  #research-related-capabilities,
  #research-frontiers,
  .cc-research-question-grid {
    grid-template-columns: 1fr;
  }

  .cc-research-entry__actions,
  .cc-research-continuity {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cc-research-entry__actions a,
  .cc-research-continuity a {
    width: 100%;
  }
}

/* CRIE.PUBLIC.TERRITORY.RESEARCH.02 */
.cc-research-focus-option {
  width: 100%;
  appearance: none;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.cc-research-focus-option:hover,
.cc-research-focus-option:focus-visible {
  border-color: rgba(25,118,210,.28);
  box-shadow: 0 10px 24px rgba(25,70,90,.07);
  outline: none;
}

.cc-research-focus-option.is-selected {
  border-color: rgba(25,118,210,.48);
  background: rgba(238,248,255,.94);
  box-shadow: 0 0 0 3px rgba(25,118,210,.07);
}

.cc-research-add {
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(25,118,210,.08);
  color: #176483;
  font-size: 11px;
  font-weight: 900;
}

.cc-research-focus-option.is-selected .cc-research-add {
  background: rgba(46,125,85,.12);
  color: #245f45;
}

.cc-research-notebook {
  background:
    radial-gradient(circle at 100% 0%, rgba(46,125,85,.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,251,249,.98));
}

.cc-research-notebook__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.cc-research-notebook__evidence,
.cc-research-notebook__question {
  min-height: 100%;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15,61,46,.10);
  background: rgba(255,255,255,.82);
}

.cc-research-notebook__head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cc-research-notebook__head strong,
.cc-research-notebook__question label {
  color: #153a2d;
  font-weight: 900;
}

.cc-research-notebook__head button,
.cc-research-evidence-item button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #4d6a7b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cc-research-notebook__head button:disabled {
  opacity: .42;
  cursor: default;
}

.cc-research-evidence-list {
  display: grid;
  gap: 9px;
}

.cc-research-evidence-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 13px;
  border-radius: 15px;
  background: rgba(245,250,252,.95);
  border: 1px solid rgba(25,118,210,.10);
}

.cc-research-evidence-item > div {
  display: grid;
  gap: 3px;
}

.cc-research-evidence-item small {
  color: #2d7187;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 900;
}

.cc-research-evidence-item strong {
  color: #143b30;
}

.cc-research-evidence-item span {
  color: #66798a;
  font-size: 12px;
  line-height: 1.4;
}

.cc-research-notebook__question {
  display: grid;
  gap: 10px;
}

.cc-research-notebook__question textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid rgba(15,61,46,.14);
  border-radius: 16px;
  padding: 13px 14px;
  background: white;
  color: #18392f;
  font: inherit;
  line-height: 1.55;
}

.cc-research-notebook__question textarea:focus {
  outline: 3px solid rgba(25,118,210,.08);
  border-color: rgba(25,118,210,.34);
}

.cc-research-notebook__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cc-research-notebook__actions button,
.cc-research-notebook__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 13px;
  border: 1px solid rgba(15,61,46,.12);
  background: rgba(255,255,255,.94);
  color: #153a2d;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.cc-research-notebook__actions .cc-research-primary {
  border-color: #153f67;
  background: #153f67;
  color: white;
}

.cc-research-notebook__question > small {
  color: #6c7d89;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .cc-research-notebook__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cc-research-notebook__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cc-research-notebook__actions button,
  .cc-research-notebook__actions a {
    width: 100%;
  }

  .cc-research-evidence-item {
    grid-template-columns: 1fr;
  }
}
