/* Africa Gateway — Sectors hub (sectors.html design; site header/footer stay separate) */

body.ag-concept .sectors-hub .company-breadcrumb {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 18px 0;
  font-size: 0.875rem;
  color: var(--muted);
}

body.ag-concept .sectors-hub .company-breadcrumb a:hover {
  color: var(--green);
  text-decoration: underline;
}

body.ag-concept .sectors-hub .company-hero {
  background: var(--navy);
  padding: 55px 0 60px;
  color: #fff;
}

body.ag-concept .sectors-hub .company-hero .eyebrow {
  color: #c4df92;
  margin-bottom: 19px;
}

body.ag-concept .sectors-hub .company-hero .eyebrow::before {
  display: none;
}

body.ag-concept .sectors-hub .company-hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  max-width: 900px;
  color: #fff;
  line-height: 1.1;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.045em;
  margin: 0;
}

body.ag-concept .sectors-hub .company-hero h1 em {
  color: var(--lime, #d7ed91);
  font-style: italic;
}

body.ag-concept .sectors-hub .company-hero .intro {
  color: #cfddda;
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 710px;
  margin-top: 22px;
}

body.ag-concept .sectors-hub .sector-directory {
  padding: 46px 0 60px;
  background: var(--bg);
}

body.ag-concept .sectors-hub .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
}

body.ag-concept .sectors-hub .section-title .eyebrow {
  margin-bottom: 9px;
}

body.ag-concept .sectors-hub .section-title h2 {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  font-family: var(--font-display), Georgia, serif;
}

body.ag-concept .sectors-hub #sector-count {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}

body.ag-concept .sectors-hub .hierarchy-note {
  font-size: 0.9375rem;
  max-width: 850px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0 0;
}

body.ag-concept .sectors-hub .sector-search {
  max-width: 610px;
  margin: 26px 0 30px;
}

body.ag-concept .sectors-hub .sector-search label {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 10px;
  color: var(--ink);
}

body.ag-concept .sectors-hub .sector-input {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #b8ccc4;
  background: #fff;
  padding: 0 16px;
  border-radius: 5px;
}

body.ag-concept .sectors-hub .sector-input > span {
  font-size: 1.7rem;
  color: var(--green);
  line-height: 1;
}

body.ag-concept .sectors-hub .sector-input input {
  border: 0;
  background: transparent;
  padding: 15px 0;
  font-size: 1rem;
  min-width: 0;
  width: 100%;
  color: var(--ink);
}

body.ag-concept .sectors-hub .sector-input:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

body.ag-concept .sectors-hub .sector-input input:focus {
  outline: 0;
}

body.ag-concept .sectors-hub .sector-input button {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

body.ag-concept .sectors-hub .tree-controls {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 25px 0 14px;
  font-size: 0.875rem;
}

body.ag-concept .sectors-hub .tree-controls > span {
  font-weight: 650;
  color: var(--ink);
}

body.ag-concept .sectors-hub .tree-controls > div {
  display: flex;
  gap: 16px;
}

body.ag-concept .sectors-hub .tree-controls button {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 9px 0;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}

body.ag-concept .sectors-hub .sector-tree,
body.ag-concept .sectors-hub .sector-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.ag-concept .sectors-hub .sector-tree {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

body.ag-concept .sectors-hub .tree-branch.level-0 + li {
  border-top: 1px solid var(--line);
}

body.ag-concept .sectors-hub .tree-branch summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

body.ag-concept .sectors-hub .tree-branch summary::-webkit-details-marker {
  display: none;
}

body.ag-concept .sectors-hub .tree-branch summary:hover {
  background: #f4f8f5;
}

body.ag-concept .sectors-hub .branch-name {
  font-size: 1rem;
  font-weight: 650;
  flex: 1;
  min-width: 0;
  color: var(--ink);
}

body.ag-concept .sectors-hub .child-count {
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

body.ag-concept .sectors-hub .tree-chevron {
  font-size: 1.4rem;
  color: var(--green);
  width: 25px;
  text-align: center;
}

body.ag-concept .sectors-hub .tree-branch details[open] > summary {
  background: #edf5f0;
  color: var(--green);
}

body.ag-concept .sectors-hub .tree-branch details[open] > summary .branch-name {
  color: var(--green);
}

body.ag-concept .sectors-hub .tree-branch details[open] > summary .tree-chevron {
  font-size: 0;
}

body.ag-concept .sectors-hub .tree-branch details[open] > summary .tree-chevron:after {
  content: "−";
  font-size: 1.4rem;
}

body.ag-concept .sectors-hub .branch-content {
  padding: 0 24px 22px;
}

body.ag-concept .sectors-hub .parent-link {
  display: inline-block;
  margin: 18px 0;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

body.ag-concept .sectors-hub .parent-link:hover {
  text-decoration: underline;
}

body.ag-concept .sectors-hub .branch-content > ul {
  border-left: 2px solid #dce9e1;
  margin-left: 10px;
  padding-left: 20px;
}

body.ag-concept .sectors-hub .tree-leaf a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 15px 12px;
  border-bottom: 1px solid #edf0ee;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
}

body.ag-concept .sectors-hub .tree-leaf a:hover {
  background: #f4f8f5;
  color: var(--ink);
}

body.ag-concept .sectors-hub .tree-link-action {
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--green);
}

body.ag-concept .sectors-hub .tree-branch summary:focus-visible {
  outline: 3px solid #c49b32;
  outline-offset: -3px;
}

body.ag-concept .sectors-hub .sectors-btn {
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 23px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

body.ag-concept .sectors-hub .sectors-btn:hover {
  background: var(--green-dark, #075b46);
  color: #fff;
}

body.ag-concept .sectors-hub .empty {
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed #aebfb9;
  border-radius: 6px;
  background: #fff;
  margin-top: 12px;
}

body.ag-concept .sectors-hub .empty h3 {
  color: var(--ink);
  margin: 0;
}

body.ag-concept .sectors-hub .empty p {
  margin-top: 12px;
  color: var(--muted);
}

body.ag-concept .sectors-hub .empty .sectors-btn {
  margin-top: 20px;
}

body.ag-concept .sectors-hub .sector-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 32px;
  background: #e7f0eb;
  border-radius: 6px;
  margin-top: 38px;
}

body.ag-concept .sectors-hub .sector-help h2 {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-display), Georgia, serif;
}

body.ag-concept .sectors-hub .sector-help p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

body.ag-concept .sectors-hub [hidden] {
  display: none !important;
}

@media (max-width: 1000px) {
  body.ag-concept .sectors-hub .sector-help {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  body.ag-concept .sectors-hub .company-hero {
    padding: 36px 0 40px;
  }

  body.ag-concept .sectors-hub .company-hero .intro {
    font-size: 1rem;
  }

  body.ag-concept .sectors-hub .company-breadcrumb {
    font-size: 0.8125rem;
  }
}

@media (max-width: 600px) {
  body.ag-concept .sectors-hub .sector-directory {
    padding: 30px 0 40px;
  }

  body.ag-concept .sectors-hub .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  body.ag-concept .sectors-hub .section-title h2 {
    font-size: 1.65rem;
  }

  body.ag-concept .sectors-hub .sector-input {
    padding-inline: 12px;
  }

  body.ag-concept .sectors-hub .tree-controls {
    gap: 10px;
    flex-wrap: wrap;
  }

  body.ag-concept .sectors-hub .tree-branch summary {
    padding: 18px 16px;
    gap: 10px;
  }

  body.ag-concept .sectors-hub .child-count {
    display: none;
  }

  body.ag-concept .sectors-hub .branch-content {
    padding: 0 14px 18px;
  }

  body.ag-concept .sectors-hub .branch-content > ul {
    margin-left: 2px;
    padding-left: 12px;
  }

  body.ag-concept .sectors-hub .tree-leaf a {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 14px 6px;
  }

  body.ag-concept .sectors-hub .sector-help {
    padding: 24px;
  }

  body.ag-concept .sectors-hub .sector-help .sectors-btn {
    width: 100%;
    white-space: normal;
  }
}
