/* Public templates only. More specific than Mobile Polish's global heading rules. */
body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description p,
body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description .breadcrumbs,
body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description .breadcrumbs a,
body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description .breadcrumbs span {
  color: #e8eeeb !important;
  opacity: 1 !important;
}
body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description::after,
body.ik9-site-corrections.ohah-managed-health #content .entry-header::after {
  color: #cedbd3 !important;
  opacity: 1 !important;
}
.ik9-site-tools[hidden] { display: none !important; }

@media (max-width: 767px) {
  /* 0.45.31: the library owns its gutters; Astra must not add another pair. */
  body.ik9-site-corrections.ik9tl-training-view #content > .ast-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  body.ik9-site-corrections.ik9tl-training-view #primary.ik9tl-main {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  body.ik9-site-corrections #content .ik9tl-shell {
    padding-left: 18px;
    padding-right: 18px;
    min-width: 0;
  }
  body.ik9-site-corrections #content .ik9tl-hero__inner {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  body.ik9-site-corrections #content .ik9tl-section,
  body.ik9-site-corrections #content .ik9tl-section--soft {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  body.ik9-site-corrections #content .ik9tl-category-hero,
  body.ik9-site-corrections #content .ik9tl-article-hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  body.ik9-site-corrections #content .ik9tl h1,
  body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description h1,
  body.ik9-site-corrections.ohah-managed-health #content .entry-header h1 {
    font-size: clamp(1.875rem, 8.2vw, 2.25rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
    text-wrap: initial !important;
    overflow-wrap: anywhere;
  }
  body.ik9-site-corrections #content .ik9tl h2,
  body.ik9-site-corrections.ohah-managed-health #content .ohah-health-article h2 {
    font-size: clamp(1.5rem, 6.2vw, 1.75rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -.015em !important;
    text-wrap: initial !important;
  }
  body.ik9-site-corrections #content .ik9tl-topic-card h3,
  body.ik9-site-corrections #content .ik9tl-guide-card h3,
  body.ik9-site-corrections #content .ik9tl-guide-card h3 a,
  body.ik9-site-corrections.ohah-k9-archive #content .site-main article.post .entry-title,
  body.ik9-site-corrections.ohah-k9-archive #content .site-main article.post .entry-title a {
    font-size: 1.3125rem !important;
    line-height: 1.3 !important;
    letter-spacing: -.015em !important;
    text-wrap: initial !important;
    overflow-wrap: anywhere;
  }
  body.ik9-site-corrections #content .ik9tl-hero__lead {
    font-size: 1rem;
    line-height: 1.5;
    margin: 12px 0 16px;
  }
  body.ik9-site-corrections #content .ik9tl-hero__note {
    margin: 14px 0 0;
    font-size: .875rem;
    line-height: 1.5;
  }
  body.ik9-site-corrections #content .ik9tl-hub .ik9tl-hero h1 {
    font-size: clamp(1.625rem, 7vw, 1.875rem) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  body.ik9-site-corrections #content .ik9tl-hub .ik9tl-eyebrow {
    color: #ff8795;
    font-size: .75rem;
    line-height: 1.4;
    margin: 0 0 10px;
  }
  body.ik9-site-corrections #content .ik9tl-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  body.ik9-site-corrections #content .ik9tl-heading-row p { margin-bottom: 0; }
  body.ik9-site-corrections #content .ik9tl-topic-grid,
  body.ik9-site-corrections #content .ik9tl-guide-grid,
  body.ik9-site-corrections #content .ik9tl-related-topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body.ik9-site-corrections #content .ik9tl-topic-card {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 12px;
    padding: 20px 18px;
    min-width: 0;
  }
  body.ik9-site-corrections #content .ik9tl-guide-card { padding: 20px 18px; min-width: 0; }
  body.ik9-site-corrections #content .ik9tl-topic-card p,
  body.ik9-site-corrections #content .ik9tl-guide-card > p:not(.ik9tl-guide-card__topic) {
    font-size: 1rem;
    line-height: 1.6;
  }
  body.ik9-site-corrections #content .ik9tl-search__controls,
  body.ik9-site-corrections #content .ik9tl-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  body.ik9-site-corrections #content .ik9tl-search { margin-top: 16px; }
  body.ik9-site-corrections #content .ik9tl-actions { margin-top: 16px; }
  body.ik9-site-corrections #content .ik9tl-button { width: 100%; }
  body.ik9-site-corrections #content .ik9tl input[type="search"],
  body.ik9-site-corrections #content .ik9tl-button,
  body.ik9-site-corrections #content .ohah-archive-tools input[type="search"],
  body.ik9-site-corrections #content .ohah-archive-tools select,
  body.ik9-site-corrections #content .ohah-archive-tools button,
  body.ik9-site-corrections #insight_k9_contact_form .elementor-field-textual {
    font-size: 1rem !important;
    min-height: 48px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.ik9-site-corrections #content .ik9tl-button,
  body.ik9-site-corrections #content .ohah-archive-tools button { padding: 12px 18px; }
  /* Reset the desktop flex basis throughout the stacked 701-767px range too. */
  body.ik9-site-corrections #content .ik9tl-search input[type="search"] {
    flex: 0 1 auto;
    line-height: 1.5;
  }
  body.ik9-site-corrections #content .ik9tl-hub .ik9tl-hero .ik9tl-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0 18px;
    margin-top: 8px;
  }
  body.ik9-site-corrections #content .ik9tl-hub .ik9tl-hero .ik9tl-actions .ik9tl-button {
    width: auto;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff !important;
    font-size: .875rem !important;
    line-height: 1.4;
    text-align: left;
    justify-content: flex-start;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    transform: none;
  }
  body.ik9-site-corrections #content .ik9tl-article > .ik9tl-shell { padding-top: 28px; padding-bottom: 36px; }
  body.ik9-site-corrections #content .ik9tl-prose h2 { margin-top: 32px; padding-top: 24px; }

  body.ik9-site-corrections.ohah-k9-archive #content > .ast-container { padding-left: 16px; padding-right: 16px; }
  body.ik9-site-corrections.ohah-k9-archive #primary { margin-top: 24px; }
  body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description {
    padding: 28px 20px 48px !important;
    margin-bottom: 24px !important;
    min-height: 0;
  }
  body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description h1 {
    padding: 0 !important;
    margin: 0 0 16px !important;
    min-height: 0;
    background: none !important;
    border: 0 !important;
  }
  body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description p { font-size: 1rem; line-height: 1.65; }
  body.ik9-site-corrections.ohah-k9-archive #content .ast-archive-description::after {
    left: 20px;
    right: 20px;
    bottom: 16px;
    font-size: .625rem;
    letter-spacing: .08em;
  }
  body.ik9-site-corrections.ohah-k9-archive #content .site-main article.post {
    padding: 20px !important;
    margin-bottom: 20px;
    min-width: 0;
  }
  /* Astra applies another card surface/padding inside the health plugin's card. */
  body.ik9-site-corrections.ohah-k9-archive #content article.post .ast-article-inner,
  body.ik9-site-corrections.ohah-k9-archive #content article.post .post-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    box-shadow: none !important;
    background: transparent !important;
  }
  body.ik9-site-corrections.ohah-k9-archive #content article.post .entry-title { margin: 12px 0 16px; }
  body.ik9-site-corrections.ohah-k9-archive #content article.post .ast-excerpt-container p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
    margin-bottom: 0;
  }
  body.ik9-site-corrections.ohah-k9-archive #content article.post .cat-links { max-width: 100%; white-space: normal; }
  body.ik9-site-corrections #content .ohah-archive-tools { padding: 20px 16px; margin-bottom: 24px; }
  body.ik9-site-corrections #content .ohah-archive-tools__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body.ik9-site-corrections #content .ohah-archive-search { display: flex; flex-direction: column; gap: 10px; }
  body.ik9-site-corrections #content .ohah-sort-form,
  body.ik9-site-corrections #content .ohah-sort-form select { width: 100%; }
  body.ik9-site-corrections #content .ohah-topic-nav { gap: 8px; }
  body.ik9-site-corrections #content .ohah-topic-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  body.ik9-site-corrections.ohah-managed-health #content .entry-header { padding: 28px 20px 48px !important; }
  body.ik9-site-corrections #content .ik9tl a:focus-visible,
  body.ik9-site-corrections #content .ohah-archive-tools :focus-visible,
  body.ik9-site-corrections #content article.post a:focus-visible {
    outline: 3px solid #a51f2d;
    outline-offset: 4px;
  }
  .ik9-site-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 28px;
    position: static;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    background: #fff;
    color: #202825;
    border-top: 1px solid #dce4df;
  }
  .ik9-site-tools__item { display: flex; align-items: center; gap: 10px; font-size: .9375rem; }
  .ik9-site-tools__item > #cookiez-banner,
  .ik9-site-tools__item > #ea11y-root { display: block; width: 48px; min-height: 48px; }
}
