/* Roundroost / Kadence Free. Scoped to the standard wp-theme-kadence body class.
   Source hooks checked against page-source HTML and the v0.2 plugin package.
   Entirely screen-only: the tools plugin retains ownership of print styling.
   No remote assets, fonts, imports, animation, or page-title hiding. */

@media screen {
  body.wp-theme-kadence {
    --rr-site-ink: #182b43;
    --rr-site-muted: #465a6b;
    --rr-site-teal: #087f8c;
    --rr-site-teal-dark: #06636e;
    --rr-site-paper: #faf9f5;
    --rr-site-white: #ffffff;
    --rr-site-soft: #edf4f1;
    --rr-site-line: #c4cfce;
    --rr-site-wide: 1160px;
    --rr-site-measure: 72ch;
    background: var(--rr-site-paper);
    color: var(--rr-site-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.75;
    -webkit-text-size-adjust: 100%;
  }

  body.wp-theme-kadence .content-container {
    max-width: var(--rr-site-wide);
    margin-inline: auto;
  }
  body.wp-theme-kadence .entry-content {
    color: var(--rr-site-ink);
    overflow-wrap: break-word;
  }
  body.wp-theme-kadence .entry-content :where(h1, h2, h3, h4):where(:not(.rr-tool *)),
  body.wp-theme-kadence .entry-title {
    color: var(--rr-site-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 750;
    line-height: 1.18;
    text-wrap: balance;
  }
  body.wp-theme-kadence .entry-title,
  body.wp-theme-kadence .entry-content h1:where(:not(.rr-tool *)) {
    max-width: 26ch;
    font-size: clamp(2.125rem, 4.8vw, 3.5rem);
    letter-spacing: -0.035em;
  }
  body.wp-theme-kadence .entry-content h2:where(:not(.rr-tool *)) {
    margin-block: 2.75rem 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.025em;
  }
  body.wp-theme-kadence .entry-content h3:where(:not(.rr-tool *)) {
    margin-block: 2rem 0.75rem;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    letter-spacing: -0.015em;
  }
  body.wp-theme-kadence .entry-content :where(p, ul, ol):where(:not(.rr-tool *)) { margin-block: 0 1.25rem; }
  body.wp-theme-kadence .entry-content > :where(p, ul, ol, h1, h2, h3, h4, blockquote),
  body.wp-theme-kadence .entry-header {
    max-width: var(--rr-site-measure);
    margin-inline: auto;
  }
  body.wp-theme-kadence .entry-content > p:first-child {
    margin-block-end: 1.75rem;
    color: var(--rr-site-muted);
    font-size: 1.125rem;
    line-height: 1.7;
  }
  body.wp-theme-kadence .entry-content :where(ul, ol):where(:not(.rr-tool *)) { padding-inline-start: 1.5rem; }
  body.wp-theme-kadence .entry-content li:where(:not(.rr-tool *)) { margin-block: 0.5rem; padding-inline-start: 0.2rem; }
  body.wp-theme-kadence .entry-content li:where(:not(.rr-tool *))::marker { color: var(--rr-site-teal-dark); font-weight: 700; }

  body.wp-theme-kadence :where(a) {
    color: var(--rr-site-teal-dark);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.18em;
  }
  body.wp-theme-kadence .entry-content :where(p, li, figcaption) a { text-decoration-line: underline; }
  body.wp-theme-kadence :where(a):hover { color: var(--rr-site-ink); text-decoration-thickness: 0.13em; }
  body.wp-theme-kadence :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--rr-site-ink);
    outline-offset: 4px;
    box-shadow: 0 0 0 3px var(--rr-site-white);
  }
  body.wp-theme-kadence .entry-content :where(input, select, textarea):not(.rr-tool *) {
    max-width: 100%;
    min-height: 44px;
    border-color: #718699;
    border-radius: 0.375rem;
    background: var(--rr-site-white);
    color: var(--rr-site-ink);
    font-family: inherit;
    font-size: max(16px, 1rem);
  }

  /* Native theme hooks only; Kadence owns header and mobile-menu layout. */
  body.wp-theme-kadence .site-header {
    border-block-end: 1px solid var(--rr-site-line);
    background: var(--rr-site-white);
    color: var(--rr-site-ink);
  }
  body.wp-theme-kadence .site-header .site-title {
    font-family: inherit;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
  }
  body.wp-theme-kadence .site-header :where(.site-title a, nav a) { color: var(--rr-site-ink); text-decoration: none; }
  body.wp-theme-kadence .site-header nav a { font-family: inherit; font-size: 1rem; font-weight: 650; }
  body.wp-theme-kadence .site-header :where(.site-title a, nav a):hover,
  body.wp-theme-kadence .site-header nav [aria-current="page"] {
    color: var(--rr-site-teal-dark);
    text-decoration: underline;
    text-underline-offset: 0.35em;
  }
  body.wp-theme-kadence .skip-link:focus {
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    background: var(--rr-site-ink);
    color: var(--rr-site-white);
  }

  /* Editable core Group/Columns blocks in the suggested homepage and hubs. */
  body.wp-theme-kadence .entry-content .rr-home { max-width: var(--rr-site-wide); margin-inline: auto; }
  body.wp-theme-kadence .entry-content .rr-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-block: 0 2.5rem;
    padding: clamp(1.5rem, 5.5vw, 4rem);
    border: 1px solid var(--rr-site-line);
    border-radius: 1.25rem;
    background: #f0f5ef;
  }
  body.wp-theme-kadence .entry-content .rr-hero::before {
    position: absolute;
    z-index: -1;
    inset-block-start: -7rem;
    inset-inline-end: -9rem;
    width: 25rem;
    height: 25rem;
    border: 3rem solid #d8e8df;
    border-radius: 50%;
    content: "";
    pointer-events: none;
  }
  body.wp-theme-kadence .entry-content .rr-hero :where(h1, h2) {
    max-width: 22ch;
    margin-block: 0.625rem 1.25rem;
    font-size: clamp(2.125rem, 4.8vw, 3.875rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
  }
  body.wp-theme-kadence .entry-content .rr-hero p {
    max-width: 58ch;
    margin-block-end: 1.25rem;
    color: var(--rr-site-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
  }
  body.wp-theme-kadence .entry-content .rr-hero .rr-kicker {
    margin-block: 0 0.75rem;
    color: var(--rr-site-teal-dark);
    font-size: 0.875rem;
    font-weight: 750;
    letter-spacing: 0.065em;
    line-height: 1.5;
    text-transform: uppercase;
  }
  body.wp-theme-kadence .entry-content .wp-block-columns.rr-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.125rem;
    align-items: stretch;
    margin-block: 1.5rem 3rem;
  }
  body.wp-theme-kadence .entry-content .rr-card-grid > * { min-width: 0; margin-block: 0; }
  body.wp-theme-kadence .entry-content .rr-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding: clamp(1.125rem, 2.5vw, 1.625rem);
    border: 1px solid var(--rr-site-line);
    border-radius: 0.875rem;
    background: var(--rr-site-white);
    color: var(--rr-site-ink);
  }
  body.wp-theme-kadence .entry-content .rr-card::before {
    display: block;
    width: 2.5rem;
    height: 0.3125rem;
    margin-block-end: 0.5rem;
    border-radius: 999px;
    background: var(--rr-site-teal);
    content: "";
  }
  body.wp-theme-kadence .entry-content .rr-card :where(h2, h3) { margin: 0; font-size: 1.375rem; line-height: 1.25; }
  body.wp-theme-kadence .entry-content .rr-card p { margin: 0; color: var(--rr-site-muted); font-size: 1rem; line-height: 1.7; }
  body.wp-theme-kadence .entry-content .rr-card > .wp-block-buttons { margin-block-start: auto; }
  body.wp-theme-kadence .entry-content .rr-link-list li { margin-block: 0; padding-block: 1rem; border-block-end: 1px solid var(--rr-site-line); }
  body.wp-theme-kadence .entry-content .rr-link-list li a { font-weight: 700; }

  body.wp-theme-kadence .entry-content .wp-block-button__link,
  body.wp-theme-kadence .entry-content .rr-resource-download a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.125rem;
    border: 2px solid var(--rr-site-teal);
    border-radius: 0.5rem;
    background: var(--rr-site-teal);
    color: var(--rr-site-white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
  }
  body.wp-theme-kadence .entry-content :where(.wp-block-button__link, .rr-resource-download a):hover {
    border-color: var(--rr-site-teal-dark);
    background: var(--rr-site-teal-dark);
    color: var(--rr-site-white);
  }
  body.wp-theme-kadence .entry-content .wp-block-button.is-style-outline > .wp-block-button__link {
    background: var(--rr-site-white);
    color: var(--rr-site-teal-dark);
  }
  body.wp-theme-kadence .entry-content .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--rr-site-soft); }
  body.wp-theme-kadence .entry-content .rr-resource-download { margin-block: 0.75rem; }
  body.wp-theme-kadence .entry-content .rr-resource-download a { max-width: 100%; justify-content: flex-start; text-align: start; }
  body.wp-theme-kadence .entry-content .rr-resource-preview {
    box-sizing: border-box;
    width: 100%;
    max-width: 34rem;
    margin: 2rem auto;
    padding: clamp(0.75rem, 2.5vw, 1.25rem);
    border: 1px solid var(--rr-site-line);
    border-radius: 0.875rem;
    background: #f0f3ef;
  }
  body.wp-theme-kadence .entry-content .rr-home .rr-resource-preview { max-width: 26rem; }
  body.wp-theme-kadence .entry-content .rr-resource-preview a { display: block; border-radius: 0.25rem; }
  body.wp-theme-kadence .entry-content .rr-resource-preview img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #bdc7c6;
    border-radius: 0.25rem;
    background: var(--rr-site-white);
    box-shadow: 0 0.5rem 1.25rem rgb(24 43 67 / 8%);
  }
  body.wp-theme-kadence .entry-content figcaption {
    margin-block: 0.75rem 0;
    color: var(--rr-site-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: start;
  }
  body.wp-theme-kadence .entry-content .wp-block-table {
    max-width: 100%;
    margin-block: 2rem;
    overflow-x: auto;
    border: 1px solid var(--rr-site-line);
    border-radius: 0.625rem;
    background: var(--rr-site-white);
    overscroll-behavior-inline: contain;
  }
  body.wp-theme-kadence .entry-content .wp-block-table table {
    width: 100%;
    min-width: 34rem;
    margin: 0;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 1rem;
    line-height: 1.6;
    text-align: start;
  }
  body.wp-theme-kadence .entry-content .wp-block-table :where(th, td) {
    padding: 0.875rem 1rem;
    border: 1px solid var(--rr-site-line);
    vertical-align: top;
    text-align: inherit;
    overflow-wrap: break-word;
  }
  body.wp-theme-kadence .entry-content .wp-block-table th { background: var(--rr-site-soft); color: var(--rr-site-ink); font-weight: 700; }
  body.wp-theme-kadence .entry-content .wp-block-table figcaption { padding: 0 1rem 0.75rem; }
  body.wp-theme-kadence .entry-content blockquote {
    padding: 1.25rem 1.5rem;
    border-inline-start: 4px solid var(--rr-site-teal);
    background: var(--rr-site-soft);
    color: var(--rr-site-ink);
    font-style: normal;
  }
  body.wp-theme-kadence .entry-content .wp-block-separator { margin-block: 2.5rem; border-color: var(--rr-site-line); }
  body.wp-theme-kadence .entry-content .rr-tool { max-width: 100%; margin-block: 2rem; border-color: #aebfbe; background: #f4f7f2; }

  body.wp-theme-kadence .site-footer {
    margin-block-start: 3rem;
    border-block-start: 1px solid var(--rr-site-ink);
    background: var(--rr-site-ink);
    color: var(--rr-site-paper);
    font-size: 1rem;
    line-height: 1.7;
  }
  body.wp-theme-kadence .site-footer :where(h2, h3, h4, p, a) { color: var(--rr-site-paper); }
  body.wp-theme-kadence .site-footer a { text-decoration: underline; text-underline-offset: 0.2em; }
  body.wp-theme-kadence .site-footer a:hover { color: var(--rr-site-white); }
  body.wp-theme-kadence .site-footer :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline-color: var(--rr-site-white);
    box-shadow: 0 0 0 3px var(--rr-site-ink);
  }
}

@media screen and (max-width: 900px) {
  body.wp-theme-kadence .entry-content .wp-block-columns.rr-card-grid { grid-template-columns: minmax(0, 1fr); }
  body.wp-theme-kadence .entry-content .rr-card { gap: 0.625rem; }
}
@media screen and (max-width: 600px) {
  body.wp-theme-kadence { font-size: 17px; line-height: 1.75; }
  body.wp-theme-kadence .entry-content .rr-hero { border-radius: 0.875rem; }
  body.wp-theme-kadence .entry-content .rr-hero::before { inset-block-start: -9rem; inset-inline-end: -14rem; }
  body.wp-theme-kadence .entry-content .rr-resource-download a,
  body.wp-theme-kadence .entry-content .wp-block-button,
  body.wp-theme-kadence .entry-content .wp-block-button__link { width: 100%; }
  body.wp-theme-kadence .entry-content .rr-resource-preview { margin-block: 1.5rem; }
}
@media screen and (forced-colors: active) {
  body.wp-theme-kadence :where(a, button, input, select, textarea, [tabindex]):focus-visible { outline-color: Highlight; }
  body.wp-theme-kadence .entry-content .rr-hero::before,
  body.wp-theme-kadence .entry-content .rr-card::before { display: none; }
}

.rr-footer-links {
    background: #182b43;
    color: #faf9f5;
    padding: 0.5rem 1rem 1.25rem;
}
.rr-footer-links-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.25rem;
    margin: 0 auto;
    padding: 0;
}
.rr-footer-links-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #faf9f5;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.rr-footer-links-list a:hover, .rr-footer-links-list a:focus-visible { color: #fff; }
.rr-footer-links-list a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
