/* Updates "Next Page" to primary brand */
[data-component="search-suggestion"] {
  --text-color-option: #474646;  
}

[data-component="search-bar"] {
  --border-radius: 10px;
}

/* Main Page Header */
.space-overview__detail__intro--title {
  font-size: 32px;
  font-family: Public Sans, sans-serif;
  font-weight: Bold;
  line-height: 40px;
  letter-spacing: 0px;
}

/* Headline H1 / Headline Text */
h1 {
  font-size: 32px;
  font-family: Public Sans, sans-serif;
  font-weight: Bold;
  line-height: 40px;
  letter-spacing: 0px;
}

/* Headline H2sm / Homepage "Updates" */
.space-overview__detail__news--title {
  font-size: 20px;
  font-family: Public Sans, sans-serif;
  font-weight: Bold;
  line-height: 24px;
  letter-spacing: 0px;
}

/* Homepage "Sections" / Headline H2 md */
h2 {
  font-size: 28px;
  font-family: Public Sans, sans-serif;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: 0px;
}

/* Title h3 */
h3 {
  font-size: 24px;
  font-family: Public  Sans, sans-serif;
  font-weight: bold;
  line-height: 32px;
  letter-spacing: 0px;
}

/* Title h4 */
h4 {
  font-size: 20px;
  font-family: Public  Sans, sans-serif;
  font-weight: bold;
  line-height: 28px;
  letter-spacing: 0px;
}

/* Body lg / Body Text */
p {
  font-size: 18px;
  font-family: Source Sans, sans-serif;
  line-height: 28px;
  letter-spacing: 0px;
}

/* Homepage "Sections" */
.external-link {
  font-size: 16px;
  font-weight: 600;
  color: #2D6E8D;
}

/* Remove the date from "Updates" section */
.space-overview__detail__news__post--date {
  display: none;
}

.tree-item {
  font-size: 14px;
}

.search-page__subgrid {
  grid-template-columns: 1fr minmax(min-content,6fr) 1fr;
}

/* Ensure all links are underlined except nav and header */
a {
  text-decoration: underline;
}

nav a,
header a {
  text-decoration: none;
}

/* Explicitly remove bullets from nav/header/footer lists */
nav ul,
header ul,
footer ul {
  list-style-type: none;
}

/* Overwrite sub-bullet styling — scoped to article and portal content only */
.content ul,
.article-body ul {
  list-style-type: disc;
}

.content ul ul,
.article-body ul ul {
  list-style-type: circle;
}

.content ul ul ul,
.article-body ul ul ul {
  list-style-type: square;
}

.content ul ul ul ul,
.article-body ul ul ul ul {
  list-style-type: disc;
}

.content ul ul ul ul ul,
.article-body ul ul ul ul ul {
  list-style-type: circle;
}

.content ul ul ul ul ul ul,
.article-body ul ul ul ul ul ul {
  list-style-type: square;
}

/* Header navigation links */
.header-links a {
  font-size: 16px;
  text-decoration: underline;
}

/* Banner (landing page) headline and subtitle — restore theme sizes overridden by global h1/p rules */
.banner hgroup > h1 {
  font: var(--K15t-font-headline-x-large);
}

.banner hgroup > p {
  font-size: var(--K15t-font-size-headline-medium);
  font-weight: var(--K15t-font-weight-medium);
  line-height: var(--K15t-line-height-medium);
  margin-block: 0;
}

/* Remove dot indicator from leaf tree items in sidebar navigator */
.tree-item-header::before {
  content: none;
}

/* Breadcrumb links: underlined and readable */
.breadcrumbs a {
  text-decoration: underline;
  font-size: 16px;
}

/* Tile titles: match reference site size (theme default is 18px / medium weight) */
.tile-title {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Make text white in dark table headers */
.confluenceTd[data-highlight-colour="#002b5c"] strong,
.confluenceTd[data-highlight-colour="#002b5c"] em,
.confluenceTd[data-highlight-colour="#002060"] strong,
.confluenceTd[data-highlight-colour="#002060"] em,
.confluenceTd[data-highlight-colour="#17315a"] strong,
.confluenceTd[data-highlight-colour="#17315a"] em,
.confluenceTd[data-highlight-colour="#2d6e8d"] strong,
.confluenceTd[data-highlight-colour="#2d6e8d"] em,
.confluenceTd[data-highlight-colour="#2f6e8d"] strong,
.confluenceTd[data-highlight-colour="#2f6e8d"] em,
.confluenceTd[data-highlight-colour="#002b5c"] span,
.confluenceTd[data-highlight-colour="#002060"] span,
.confluenceTd[data-highlight-colour="#17315a"] span,
.confluenceTd[data-highlight-colour="#2d6e8d"] span,
.confluenceTd[data-highlight-colour="#2f6e8d"] span {
  color: #ffffff;
}

/* Hide feedback widget by default */
#jsd-widget {
  display: none !important;
}

/* Show widget only on certain pages */
html:has(meta[name="repository-base-url"][content*="module-5-behavioral-health-services-act-county-policy-manual/"]) #jsd-widget {
  display: inline !important; /* iframes are inline elements by default */
}

/* Style for [NEW] tag in headers */
h2.drafts-for-review::before {
    content: "[NEW] ";
    font-weight: bold;
    color: #963D00;
}