/* KennyDTC collections — native Page templates and editable core-block patterns.
 * This layer intentionally owns presentation only. No titles, prices, client
 * claims, image labels or other translatable content are generated by CSS.
 */

.kd-collection-page,
.editor-styles-wrapper {
  --kdc-navy: #052e5e;
  --kdc-deep: #061e3b;
  --kdc-ink: #0a2342;
  --kdc-body: #294662;
  --kdc-muted: #48617c;
  --kdc-teal: #00767d;
  --kdc-cyan: #0aa7a4;
  --kdc-ice: #edf5ff;
  --kdc-line: #cbddeb;
  --kdc-radius: 18px;
}

.kd-collection-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 22px;
  color: var(--kdc-body);
  background: #fff;
  font-size: 16px;
  line-height: 1.8;
}

:is(.kd-collection-page, .editor-styles-wrapper) [class*="kd-collection-"] {
  box-sizing: border-box;
  min-width: 0;
}

.kd-collection-page :is(h1, h2, h3, h4, p, li, dt, dd, a),
.editor-styles-wrapper :is(.kd-collection-section, .kd-collection-cta, .kd-collection-hero) :is(h1, h2, h3, h4, p, li, a) {
  overflow-wrap: break-word;
}

.kd-collection-page .container {
  width: min(calc(100% - var(--kd-page-gutter, 32px) * 2), 1200px);
  max-width: 1200px;
  margin-inline: auto;
}

/* Spacious title, compact frame. The abstract grid is purely decorative. */
.kd-collection-hero {
  position: relative;
  isolation: isolate;
  width: calc(100% - 32px);
  margin: 16px 16px 0;
  padding: 50px 0 46px;
  overflow: hidden;
  border: 1px solid #17456f;
  border-radius: 24px;
  background-color: #052e5e;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px),
    radial-gradient(ellipse at 95% 15%, #0aa7a433, transparent 52%),
    linear-gradient(115deg, #061e3b, #052e5e 70%, #07516b);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: #d6e7f7;
}

.kd-collection-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -170px;
  right: -120px;
  width: 580px;
  height: 580px;
  border: 1px solid #88e6e525;
  border-radius: 50%;
  box-shadow: 0 0 0 70px #88e6e508, 0 0 0 140px #88e6e505;
  pointer-events: none;
}

.kd-collection-hero-inner {
  position: relative;
  z-index: 1;
}

.kd-collection-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--kdc-teal, #00767d);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .1em;
}

.kd-collection-eyebrow::before {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.kd-collection-hero .kd-collection-eyebrow {
  color: #8ee8e6;
}

.kd-collection-hero h1,
.editor-styles-wrapper .kd-collection-hero h1 {
  max-width: 990px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.7vw, 52px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.kd-collection-intro {
  max-width: 870px;
  margin: 19px 0 0;
  color: #d6e7f7;
  font-size: 16px;
  line-height: 1.85;
}

.kd-collection-intro > :first-child { margin-top: 0; }
.kd-collection-intro > :last-child { margin-bottom: 0; }
.kd-collection-hero .kd-collection-intro a { color: #a1efed; }

/* Native Gutenberg body: each section is independently editable. */
.kd-collection-content {
  padding-top: 38px;
  padding-bottom: 16px;
}

.kd-collection-content > :first-child { margin-top: 0; }
.kd-collection-content > :last-child { margin-bottom: 0; }

.kd-collection-section {
  margin-block: 0 42px;
  padding: 0;
  color: var(--kdc-body, #294662);
}

.kd-collection-section > :first-child { margin-top: 0; }
.kd-collection-section > :last-child { margin-bottom: 0; }

.kd-collection-section :is(h2, h3, h4),
.kd-collection-related h2,
.editor-styles-wrapper .kd-collection-section :is(h2, h3, h4) {
  color: var(--kdc-ink, #0a2342);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.022em;
}

.kd-collection-section > h2,
.kd-collection-related > h2,
.editor-styles-wrapper .kd-collection-section > h2 {
  margin: 0 0 19px;
  font-size: clamp(25px, 2.35vw, 32px);
  line-height: 1.35;
}

.kd-collection-section > h2 + p {
  max-width: 940px;
  margin-top: -7px;
  margin-bottom: 23px;
  color: var(--kdc-muted, #48617c);
}

.kd-collection-section :is(p, li),
.kd-collection-panel :is(p, li) {
  font-size: 15px;
  line-height: 1.85;
}

.kd-collection-section p { margin-block: 0 14px; }
.kd-collection-section :is(ul, ol) { padding-inline-start: 22px; margin-block: 14px; }
.kd-collection-section li + li { margin-top: 7px; }
.kd-collection-section :is(ul, ol) :is(ul, ol) { margin-block: 8px; }
.kd-collection-section li::marker { color: var(--kdc-teal, #00767d); }

.kd-collection-section > .wp-block-columns,
.kd-collection-section .wp-block-columns:last-child { margin-bottom: 0; }
.kd-collection-section > :is(.wp-block-columns, .wp-block-table, .kd-collection-grid, .kd-collection-faq, .kd-collection-media) { width: 100%; max-width: none; margin-inline: 0; }

.kd-collection-section .wp-block-column > :first-child { margin-top: 0; }
.kd-collection-section .wp-block-column > :last-child { margin-bottom: 0; }

/* Published-page cards: no fixed height and no visual placeholder cards. */
.kd-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  width: 100%;
  margin-block: 0;
}

.kd-collection-industry.is-overview .kd-collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kd-collection-grid > * { margin-block: 0; min-width: 0; }

.kd-collection-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.kd-collection-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kd-collection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--kdc-line, #cbddeb);
  border-radius: var(--kdc-radius, 18px);
  background: #fff;
  box-shadow: 0 6px 24px #052e5e06;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.kd-collection-card:hover,
.kd-collection-card:focus-within {
  border-color: #76aabf;
  box-shadow: 0 12px 30px #052e5e0d;
}

.kd-collection-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, #052e5e 0 64%, #0aa7a4 64%);
  pointer-events: none;
}

.kd-collection-card:nth-child(even)::before {
  background: linear-gradient(90deg, #0aa7a4 0 36%, #052e5e 36%);
}

.wp-block-group.kd-collection-card { padding: 25px; }
.wp-block-group.kd-collection-card > :first-child { margin-top: 0; }
.wp-block-group.kd-collection-card > :last-child { margin-bottom: 0; }

.kd-collection-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 26px;
}

.kd-collection-body > :first-child { margin-top: 0; }
.kd-collection-body > :last-child { margin-bottom: 0; }

.kd-collection-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
}

.kd-collection-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #bfdae6;
  border-radius: 6px;
  background: #edf8fc;
  color: #185c72;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.kd-collection-card h3,
.editor-styles-wrapper .kd-collection-card h3 {
  width: 100%;
  margin: 0 0 12px;
  color: #052e5e;
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.kd-collection-card h3 a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.kd-collection-card h3 a:hover { color: #00767d; text-decoration: underline; }

.kd-collection-card .kd-collection-summary {
  margin: 0 0 20px;
  color: #48617c;
  font-size: 14px;
  line-height: 1.85;
}

.kd-collection-facts {
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid #dbe7f0;
}

.kd-collection-facts > div {
  display: grid;
  grid-template-columns: minmax(62px, .3fr) minmax(0, 1fr);
  gap: 8px 15px;
  padding-block: 13px;
  border-bottom: 1px solid #dbe7f0;
}

.kd-collection-facts dt {
  margin: 0;
  color: #446681;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.8;
}

.kd-collection-facts dd {
  margin: 0;
  color: #244966;
  font-size: 14px;
  line-height: 1.75;
}

.kd-collection-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 45px;
  max-width: 100%;
  margin-top: auto;
  padding: 10px 15px;
  border: 1px solid #aac8dc;
  border-radius: 9px;
  background: #f5faff;
  color: #052e5e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}

.kd-collection-card-link:hover {
  border-color: #00767d;
  background: #eaf7fb;
  color: #006974;
}

.kd-collection-card-link svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: currentColor;
}

.kd-collection-all-link { margin-top: 22px; }

/* Screenshots remain complete, including captions and evidence at the edges. */
.kd-collection-media {
  width: 100%;
  margin: 20px 0;
  padding: 12px;
  border: 1px solid #cbddeb;
  border-radius: 14px;
  background: #f1f7fc;
}

.kd-collection-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 760px;
  margin: 0 auto;
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
}

.kd-collection-media figcaption {
  margin: 11px 3px 2px;
  color: #48617c;
  font-size: 12px;
  line-height: 1.75;
  text-align: start;
}

/* Draft starters retain an image uploader in Gutenberg. Until an image is
   supplied, its empty frame must not create a decorative strip on the site.
   Keep caption-only figures and responsive picture sources visible. */
.kd-collection-page figure.kd-collection-media:not(.editor-styles-wrapper *):not(:has(img[src]:not([src=""]), img[srcset]:not([srcset=""]), source[srcset]:not([srcset=""]), figcaption)) {
  display: none;
}

.kd-collection-hero-media {
  margin: 0 0 30px;
  padding: 12px;
  border: 1px solid #cbddeb;
  border-radius: 16px;
  background: #f1f7fc;
}

.kd-collection-hero-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 680px;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.kd-collection-card > .kd-collection-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid #d6e4ee;
  border-radius: 0;
  background: linear-gradient(130deg, #edf5ff, #eaf7fb);
}

.kd-collection-card > .kd-collection-media img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  border-radius: 5px;
  object-fit: contain;
}

.kd-collection-grid > .kd-collection-card:only-child:has(> .kd-collection-media) {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.kd-collection-grid > .kd-collection-card:only-child > .kd-collection-media {
  height: 100%;
  min-height: 250px;
  aspect-ratio: auto;
  border: 0;
  border-inline-end: 1px solid #d6e4ee;
}

/* Service criteria, deliverables and editorial context use real core columns. */
.kd-collection-panels,
.kd-collection-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
  gap: 16px;
  margin-block: 20px 0;
}

.kd-collection-panel,
.kd-collection-panels > .wp-block-column {
  margin: 0;
  padding: 25px;
  border: 1px solid #cbddeb;
  border-radius: 15px;
  background: #f4f9fe;
}

.kd-collection-panel h3,
.kd-collection-panels > .wp-block-column h3 {
  margin: 0 0 13px;
  color: #052e5e;
  font-size: 20px;
  line-height: 1.45;
}

.kd-collection-panel:nth-child(even),
.kd-collection-panels > .wp-block-column:nth-child(even) {
  background: #eff9fa;
  border-color: #c8e2e7;
}

.kd-collection-process {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.kd-collection-process > .wp-block-column {
  position: relative;
  margin: 0;
  padding: 22px 22px 20px;
  border: 1px solid #cbddeb;
  border-top: 3px solid #008491;
  border-radius: 12px;
  background: #fff;
}

.kd-collection-process h3 {
  margin: 0 0 10px;
  color: #052e5e;
  font-size: 18px;
  line-height: 1.5;
}

.kd-collection-process p { color: #48617c; font-size: 14px; }

.kd-collection-section .wp-block-table {
  width: 100%;
  max-width: 100%;
  margin-block: 20px;
  overflow-x: auto;
  border: 1px solid #cbddeb;
  border-radius: 12px;
  background: #fff;
}

.kd-collection-section .wp-block-table table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.8;
}

.kd-collection-section .wp-block-table :is(th, td) {
  padding: 14px 17px;
  border: 0;
  border-bottom: 1px solid #d7e4ed;
  vertical-align: top;
  text-align: start;
  overflow-wrap: break-word;
}

.kd-collection-section .wp-block-table th {
  background: #eaf3fc;
  color: #173d65;
  font-weight: 700;
}

.kd-collection-section .wp-block-table tr:last-child td { border-bottom: 0; }
.kd-collection-section .wp-block-table tbody tr:nth-child(even) { background: #f8fbfe; }
.kd-collection-section .wp-block-table figcaption { margin: 0; padding: 10px 16px; color: #48617c; font-size: 12px; }

/* Clear provenance and limitations, deliberately distinct from proof/results. */
.kd-collection-provenance {
  margin-block: 24px 32px;
  padding: 19px 23px;
  border: 1px solid #bdd9e6;
  border-inline-start: 4px solid #0a8999;
  border-radius: 0 13px 13px 0;
  background: #edf7fc;
  color: #365975;
  font-size: 14px;
  line-height: 1.85;
}

.kd-collection-provenance > :first-child { margin-top: 0; }
.kd-collection-provenance > :last-child { margin-bottom: 0; }
.kd-collection-provenance :is(h2, h3, strong) { color: #123d63; }
.kd-collection-provenance :is(h2, h3) { margin: 0 0 9px; font-size: 18px; }
.kd-collection-provenance p { margin-block: 8px; }
.kd-collection-provenance a { color: #006d78; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.kd-collection-provenance .kd-collection-card-link { margin-top: 11px; color: #052e5e; text-decoration: none; }
.kd-collection-provenance-type { color: #126675; font-weight: 700; }

.kd-collection-faq {
  padding: 25px 28px;
  border: 1px solid #cbddeb;
  border-radius: 17px;
  background: #f7fbff;
}

.kd-collection-faq > h2 { margin-bottom: 10px; }

.kd-collection-faq .wp-block-details {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #cbddeb;
  border-radius: 0;
  background: transparent;
}

.kd-collection-faq .wp-block-details:last-child { border-bottom: 0; }

.kd-collection-faq summary {
  position: relative;
  min-height: 56px;
  padding: 17px 34px 17px 0;
  color: #173d65;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.7;
  list-style: none;
  cursor: pointer;
}

.kd-collection-faq summary::-webkit-details-marker { display: none; }
.kd-collection-faq summary::marker { content: ""; }
.kd-collection-faq summary::before,
.kd-collection-faq summary::after {
  content: "";
  position: absolute;
  top: 29px;
  right: 4px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: #00767d;
}
.kd-collection-faq summary::after { transform: rotate(90deg); transition: transform .15s ease; }
.kd-collection-faq details[open] > summary::after { transform: rotate(0deg); }
.kd-collection-faq summary:hover { color: #00767d; }
.kd-collection-faq details > :not(summary) { margin-top: 0; padding-inline-end: 30px; color: #48617c; }
.kd-collection-faq details > :last-child { margin-bottom: 18px; }

.kd-collection-related {
  margin-block: 35px;
  padding-top: 30px;
  border-top: 1px solid #cbddeb;
}

.kd-collection-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kd-collection-link-list li { margin: 0; padding: 0; list-style: none; }
.kd-collection-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid #b8d1e2;
  border-radius: 9px;
  background: #f0f7fd;
  color: #173d65;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
  text-decoration: none;
}
.kd-collection-link-list a:hover { border-color: #0a8794; background: #e8f7fa; color: #006b77; }

/* Shared action style is also available without the frontend's .kd-block-content. */
:is(.kd-collection-content, .kd-collection-section, .kd-collection-cta) .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-block: 21px 0;
}

:is(.kd-collection-content, .kd-collection-section, .kd-collection-cta) .wp-block-button { margin: 0; max-width: 100%; }

:is(.kd-collection-content, .kd-collection-section, .kd-collection-cta) .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 21px;
  border: 1px solid #052e5e;
  border-radius: 10px;
  background: linear-gradient(115deg, #052e5e, #074c7d);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  box-shadow: 0 5px 15px #052e5e12;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

:is(.kd-collection-content, .kd-collection-section, .kd-collection-cta) .wp-block-button__link:hover {
  background: #074c7d;
  border-color: #074c7d;
  color: #fff;
  box-shadow: 0 9px 20px #052e5e20;
}

:is(.kd-collection-content, .kd-collection-section) .is-style-outline .wp-block-button__link {
  background: #fff;
  border-color: #a9c5d9;
  color: #052e5e;
  box-shadow: none;
}

:is(.kd-collection-content, .kd-collection-section) .is-style-outline .wp-block-button__link:hover {
  border-color: #087f8c;
  background: #edf7fc;
  color: #052e5e;
}

.kd-collection-cta {
  position: relative;
  margin-block: 30px 12px;
  padding: 34px 36px;
  border: 1px solid #12446d;
  border-radius: 20px;
  background: radial-gradient(ellipse at 100% 0, #0aa7a440, transparent 60%), linear-gradient(115deg, #061e3b, #052e5e);
  color: #d5e7f7;
}

.kd-collection-cta h2,
.editor-styles-wrapper .kd-collection-cta h2 {
  max-width: 900px;
  margin: 0 0 13px;
  color: #fff;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.35;
  letter-spacing: -.025em;
}

.kd-collection-cta p { max-width: 880px; margin: 0; color: #d5e7f7; font-size: 15px; line-height: 1.85; }
.kd-collection-cta .kd-collection-eyebrow { margin-bottom: 15px; color: #8ee8e6; }
.kd-collection-cta .wp-block-buttons { margin-top: 22px; }
.kd-collection-cta .wp-block-button__link { background: #8be8e7; border-color: #8be8e7; color: #052e5e; box-shadow: none; }
.kd-collection-cta .wp-block-button__link:hover { background: #b4f5f0; border-color: #b4f5f0; color: #052e5e; }
.kd-collection-cta .is-style-outline .wp-block-button__link { background: #ffffff05; border-color: #7eabc7; color: #fff; }
.kd-collection-cta .is-style-outline .wp-block-button__link:hover { background: #ffffff12; border-color: #b0d0e3; color: #fff; }

.kd-collection-empty {
  margin-block: 20px;
  padding: 22px 24px;
  border: 1px dashed #9cbdd5;
  border-radius: 12px;
  background: #f2f8fe;
  color: #45617c;
  font-size: 14px;
  line-height: 1.8;
}

/* Optional real-content entries on the existing home, service and price pages. */
.kdc-entry-section {
  margin: 0;
  padding-block: 46px;
  color: #294662;
  background: #f2f8fd;
}

.kdc-entry-section--home {
  padding-block: 45px 48px;
  border-block: 1px solid #dce8f1;
  background: linear-gradient(135deg, #edf5ff, #effafa);
}

.kdc-entry-section--service,
.kdc-entry-section--pricing { padding-block: 35px 40px; background: #f6faff; }
.kdc-entry-section + .kdc-entry-section { padding-top: 0; }

.kdc-entry-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.kdc-entry-heading > div { min-width: 0; max-width: 850px; }
.kdc-entry-heading .kd-eyebrow { margin: 0 0 11px; color: #00767d; font-size: 12px; }
.kdc-entry-heading h2 { margin: 0; color: #0a2342; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.35; letter-spacing: -.025em; }
.kdc-entry-heading p:not(.kd-eyebrow) { max-width: 780px; margin: 12px 0 0; color: #48617c; font-size: 15px; line-height: 1.8; }
.kdc-entry-heading > .button { flex: 0 0 auto; max-width: 100%; min-height: 46px; margin: 0; padding: 11px 16px; border-color: #9fbfd5; background: #fff; color: #052e5e; box-shadow: none; }
.kdc-entry-heading > .button:hover { border-color: #00767d; background: #e8f6fb; color: #006e79; }
.kdc-entry-grid { margin-top: 20px; }
.kdc-industry-link-label { display: block; margin-top: 6px; color: #00767d; font-size: 12px; font-weight: 650; line-height: 1.6; }

.kdc-entry-section :is(a, button):focus-visible { outline: 3px solid #079aa5; outline-offset: 4px; }

:is(.kd-collection-page, .kd-collection-section, .kd-collection-cta, .kd-collection-related) :is(a, button, summary):focus-visible {
  outline: 3px solid #079aa5;
  outline-offset: 4px;
}

/* The same native block layouts remain legible in the editor canvas. */
.editor-styles-wrapper :is(.kd-collection-section, .kd-collection-cta, .kd-collection-grid, .kd-collection-panels, .kd-collection-process) {
  max-width: 1200px;
}
.editor-styles-wrapper :is(.kd-collection-section, .kd-collection-cta) > * { max-width: 100%; }
.editor-styles-wrapper :is(.kd-collection-grid, .kd-collection-panels, .kd-collection-process) > .block-editor-inner-blocks,
.editor-styles-wrapper :is(.kd-collection-grid, .kd-collection-panels, .kd-collection-process) > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: contents;
}
.editor-styles-wrapper :is(.kd-collection-grid, .kd-collection-panels, .kd-collection-process) > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block {
  min-width: 0;
  max-width: none;
  margin-block: 0;
}
.editor-styles-wrapper .kd-collection-section .wp-block-columns > .wp-block-column { min-width: 0; max-width: none; }
.editor-styles-wrapper .kd-collection-panels .wp-block-column {
  margin: 0;
  padding: 25px;
  border: 1px solid #cbddeb;
  border-radius: 15px;
  background: #f4f9fe;
}
.editor-styles-wrapper .kd-collection-panels .wp-block-column:nth-child(even) { background: #eff9fa; border-color: #c8e2e7; }
.editor-styles-wrapper .kd-collection-panels .wp-block-column h3 { margin: 0 0 13px; color: #052e5e; font-size: 20px; line-height: 1.45; }
.editor-styles-wrapper .kd-collection-process .wp-block-column {
  margin: 0;
  padding: 22px;
  border: 1px solid #cbddeb;
  border-top: 3px solid #008491;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 1100px) {
  .kd-collection-industry.is-overview .kd-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-collection-body { padding: 23px; }
  .kd-collection-card h3 { font-size: 21px; }
  .kd-collection-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .kd-collection-hero { padding-block: 38px 34px; border-radius: 19px; }
  .kd-collection-hero h1 { font-size: clamp(32px, 5.2vw, 42px); }
  .kd-collection-hero::after { right: -350px; opacity: .65; }
  .kd-collection-content { padding-top: 28px; }
  .kd-collection-section { margin-bottom: 32px; }
  .kd-collection-grid { gap: 15px; }
  .kd-collection-body { padding: 21px; }
  .kd-collection-badges { margin-bottom: 13px; }
  .kd-collection-facts > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .kd-collection-facts dt { font-size: 12px; }
  .kd-collection-panels { grid-template-columns: minmax(0, 1fr); }
  .kd-collection-panel, .kd-collection-panels > .wp-block-column { padding: 23px; }
  .kd-collection-faq { padding: 22px 24px; }
  .kd-collection-cta { padding: 29px; }
  .kdc-entry-heading { align-items: flex-start; gap: 18px; }
  .kdc-entry-heading > .button { font-size: 13px; padding-inline: 13px; }
}

@media (max-width: 600px) {
  .kd-collection-page { --kd-page-gutter: 20px; padding-bottom: 12px; }
  .kd-collection-page .container { width: calc(100% - 40px); }
  .kd-collection-hero { width: calc(100% - 20px); margin: 10px 10px 0; padding-block: 30px; border-radius: 17px; }
  .kd-collection-hero .container { width: calc(100% - 36px); }
  .kd-collection-eyebrow { font-size: 11px; letter-spacing: .055em; gap: 9px; margin-bottom: 13px; }
  .kd-collection-hero h1 { font-size: clamp(30px, 8.2vw, 38px); line-height: 1.26; letter-spacing: -.03em; }
  .kd-collection-intro { margin-top: 16px; font-size: 15px; line-height: 1.8; }
  .kd-collection-content { padding-top: 26px; padding-bottom: 8px; }
  .kd-collection-section > h2, .kd-collection-related > h2 { font-size: 25px; margin-bottom: 16px; }
  .kd-collection-section > h2 + p { margin-top: -4px; margin-bottom: 19px; }
  .kd-collection-grid,
  .kd-collection-industry.is-overview .kd-collection-grid,
  .kd-collection-grid:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kd-collection-card { border-radius: 15px; }
  .kd-collection-card h3 { font-size: 23px; }
  .kd-collection-body { padding: 23px; }
  .kd-collection-card .kd-collection-summary { font-size: 15px; margin-bottom: 18px; }
  .kd-collection-facts > div { grid-template-columns: minmax(54px, .26fr) minmax(0, 1fr); gap: 8px 14px; }
  .kd-collection-card-link { min-height: 46px; }
  .kd-collection-grid > .kd-collection-card:only-child:has(> .kd-collection-media) { grid-template-columns: minmax(0, 1fr); }
  .kd-collection-grid > .kd-collection-card:only-child > .kd-collection-media { min-height: 0; height: auto; aspect-ratio: 16 / 9; border: 0; border-bottom: 1px solid #d6e4ee; }
  .kd-collection-media { padding: 8px; border-radius: 11px; }
  .kd-collection-media figcaption { font-size: 12px; }
  .kd-collection-process { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kd-collection-process > .wp-block-column { padding: 20px; }
  .kd-collection-process h3 { font-size: 19px; }
  .kd-collection-process p { font-size: 15px; }
  .kd-collection-panel, .kd-collection-panels > .wp-block-column { padding: 22px; }
  .kd-collection-provenance { margin-block: 21px 27px; padding: 17px 19px; font-size: 14px; }
  .kd-collection-section .wp-block-table :is(th, td) { min-width: 115px; padding: 12px; }
  .kd-collection-section .wp-block-table table { min-width: 440px; font-size: 13px; }
  .kd-collection-faq { padding: 20px; border-radius: 14px; }
  .kd-collection-faq summary { padding-block: 16px; font-size: 15px; }
  .kd-collection-faq summary::before, .kd-collection-faq summary::after { top: 28px; }
  .kd-collection-faq details > :not(summary) { padding-inline-end: 4px; }
  .kd-collection-cta { margin-block: 26px 8px; padding: 26px 23px; border-radius: 16px; }
  .kd-collection-cta h2 { font-size: 27px; }
  .kd-collection-cta .wp-block-buttons { gap: 10px; margin-top: 20px; }
  .kd-collection-related { margin-block: 29px; padding-top: 26px; }
  .kd-collection-link-list { gap: 8px; }
  .kd-collection-link-list a { padding-inline: 13px; }
  .kd-collection-hero-media { padding: 8px; margin-bottom: 25px; border-radius: 12px; }
  .kdc-entry-section, .kdc-entry-section--home { padding-block: 31px; }
  .kdc-entry-section--service, .kdc-entry-section--pricing { padding-block: 29px; }
  .kdc-entry-heading { flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .kdc-entry-heading h2 { font-size: 26px; }
  .kdc-entry-heading > .button { font-size: 14px; }
}

@media (max-width: 370px) {
  .kd-collection-page .container { width: calc(100% - 32px); }
  .kd-collection-hero .container { width: calc(100% - 32px); }
  .kd-collection-hero h1 { font-size: 29px; }
  .kd-collection-body { padding: 21px 19px; }
  .kd-collection-facts > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .kd-collection-panel, .kd-collection-panels > .wp-block-column { padding: 21px 19px; }
  .kd-collection-cta { padding: 25px 20px; }
  .kd-collection-cta .wp-block-button { width: 100%; }
  .kd-collection-cta .wp-block-button__link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .kd-collection-card,
  .kd-collection-card-link,
  .kd-collection-faq summary::after,
  :is(.kd-collection-content, .kd-collection-section, .kd-collection-cta) .wp-block-button__link { transition: none; }
}
