/* CKB 2026-11-16 R1 – focused, reversible visual and content closure.
   No site-wide type/spacing reset. All selectors are scoped to existing pages. */

/* F04 TEAM: deliberately visible and editable via paired WordPress Team Pages. */
body.ckb-wp-shell[data-page="about"] .ckb-about-editorial > p:empty,
body.ckb-wp-shell[data-page="about"] .ckb-about-editorial > p[style*="font-size:32px"]:empty {
  display:none !important;
}
body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,.75fr);
  gap:clamp(18px,3vw,50px);
  align-items:start;
  margin:clamp(36px,5vw,68px) 0 0;
  padding:clamp(24px,3vw,42px);
  border:1px solid #cdd7db;
  background:#eef2f2;
  color:#1d313c;
}
body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved__top { grid-row:span 2; }
body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved__kicker {
  margin:0 0 12px; font-size:12px; font-weight:700; letter-spacing:.095em; color:#516a76;
}
body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved h2 {
  margin:0; font-size:clamp(28px,3.4vw,42px); line-height:1.1; letter-spacing:-.02em;
}
body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved > p {
  margin:0; font-size:clamp(15px,1.6vw,17px); line-height:1.7; max-width:46ch;
}
body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved__link,
body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved__pending {
  grid-column:2; font-size:14px; font-weight:700; text-underline-offset:4px;
}
body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved__link:focus-visible {outline:2px solid #176388;outline-offset:5px;}

/* F04 Team: no fictional biographies, but visible editorial content slots. */
body.ckb-wp-shell[data-page="team"] .ckb-b1-info-editorial,
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial {
  max-width:min(1140px,calc(100% - 2 * clamp(18px,5vw,78px)));
  margin-inline:auto;
  padding-block:clamp(24px,5vw,70px) clamp(64px,7vw,112px);
}
body.ckb-wp-shell[data-page="team"] .ckb-team-editorial-intro,
body.ckb-wp-shell[data-page="social"] .ckb-social-editorial-intro {
  max-width:68ch; line-height:1.75; color:#3c505b; margin:0 0 36px;
}
body.ckb-wp-shell[data-page="team"] .ckb-team-grid,
body.ckb-wp-shell[data-page="social"] .ckb-social-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
  max-width:none;
}
body.ckb-wp-shell[data-page="team"] .ckb-team-slot,
body.ckb-wp-shell[data-page="social"] .ckb-social-card {
  min-width:0; margin:0; padding:clamp(22px,3vw,34px);border:1px solid #d2d9db;
  background:#f4f6f5;display:flex;flex-direction:column;align-items:flex-start;gap:10px;
}
body.ckb-wp-shell[data-page="team"] .ckb-team-slot__eyebrow,
body.ckb-wp-shell[data-page="social"] .ckb-social-card__eyebrow {
  font-size:12px; font-weight:700; letter-spacing:.1em; color:#516a76;margin:0;
}
body.ckb-wp-shell[data-page="team"] .ckb-team-slot h2,
body.ckb-wp-shell[data-page="social"] .ckb-social-card h2 {
  font-size:clamp(23px,2.4vw,32px);line-height:1.2;margin:0;color:#172c37;
}
body.ckb-wp-shell[data-page="team"] .ckb-team-slot p,
body.ckb-wp-shell[data-page="social"] .ckb-social-card p {margin:0;line-height:1.65;}
body.ckb-wp-shell[data-page="social"] .ckb-social-card a {margin-top:auto;font-weight:700;color:#174d69;overflow-wrap:anywhere;}
body.ckb-wp-shell[data-page="social"] .ckb-social-card a:focus-visible{outline:2px solid #176388;outline-offset:5px;}
body.ckb-wp-shell[data-page="team"] .ckb-team-slot__photo-placeholder {
  width:100%;min-height:108px;display:flex;align-items:center;justify-content:center;
  border:1px dashed #b4c4c9;background:#e6edee;color:#4f6470;font-size:14px;
}

/* F01 article archive: real featured images only, never a guessed picture. */
body.ckb-wp-shell .ckb-editorial-archive .ckb-editorial-feature--essay.has-cover {
  display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1fr);gap:clamp(20px,4vw,55px);
  align-items:start;
}
body.ckb-wp-shell .ckb-editorial-archive .ckb-editorial-feature--essay.has-cover .ckb-editorial-feature__media {
  grid-column:1; grid-row:1 / span 2; min-height:230px; aspect-ratio:4 / 3;
}
body.ckb-wp-shell .ckb-editorial-archive .ckb-editorial-feature--essay.has-cover .ckb-editorial-feature__aside,
body.ckb-wp-shell .ckb-editorial-archive .ckb-editorial-feature--essay.has-cover .ckb-editorial-feature__copy {grid-column:2;}
body.ckb-wp-shell .ckb-editorial-archive .ckb-editorial-feature--essay.has-cover .ckb-editorial-feature__image {width:100%;height:100%;object-fit:cover;}

/* F02 Accessibility: content-first without invented building photographs. */
body.ckb-wp-shell[data-page="accessibility"] .ckb-b1-info-editorial {
  max-width:940px; margin:0 auto; padding:36px clamp(16px,3vw,34px) 90px;
  border-top:1px solid #d4dddf;
}
body.ckb-wp-shell[data-page="accessibility"] .ckb-b1-info-editorial > p {
  max-width:70ch; font-size:clamp(17px,1.7vw,20px);line-height:1.85;
  padding:18px 0;margin:0;border-bottom:1px solid #dce2e3;
}
body.ckb-wp-shell[data-page="accessibility"] .ckb-b1-info-editorial img {max-width:100%;height:auto;}

/* F03 Calendar: stronger hierarchy without changing month/day business logic. */
body.ckb-wp-shell[data-page="calendar"] .month-grid-section{ margin-top:clamp(20px,3vw,42px); }
body.ckb-wp-shell[data-page="calendar"] .month-grid .weekday{
  font-size:clamp(13px,1.1vw,16px)!important;letter-spacing:.065em!important;line-height:1.4!important;
  color:#d6e0e7!important;
}
body.ckb-wp-shell[data-page="calendar"] .month-grid .day.has-event {
  box-shadow:inset 0 0 0 1px rgba(225,237,243,.30);
  background:rgba(213,230,239,.08);
}
body.ckb-wp-shell[data-page="calendar"] .month-grid button.day.has-event:hover,
body.ckb-wp-shell[data-page="calendar"] .month-grid button.day.has-event:focus-visible {
  background:rgba(219,236,244,.18);outline:2px solid #9ebccc;outline-offset:-2px;
}
body.ckb-wp-shell[data-page="calendar"] .month-grid .day.has-event small { font-size:clamp(11px,1vw,13px);line-height:1.4; }
body.ckb-wp-shell[data-page="calendar"] .month-grid .day > span:first-child {
  font-variant-numeric:tabular-nums;font-weight:650;
}

/* F06/F08 Contact: align the current editor-owned four service blocks. */
body.ckb-wp-shell[data-page="contact"] .ckb-contact-editorial .service-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(22px,4vw,70px);row-gap:32px;
}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-editorial .service-block {
  display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:10px;
  padding:0 0 26px;border-bottom:1px solid rgba(45,63,71,.27);
}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-editorial .service-block p,
body.ckb-wp-shell[data-page="contact"] .ckb-contact-editorial .service-block h2{margin:0;}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-editorial p:empty,
body.ckb-wp-shell[data-page="contact"] .ckb-contact-editorial .wp-block-spacer[style*="height:0"] {display:none;}

/* F07: a one-image gallery is a complete still image, never an inert slider. */
body.ckb-wp-shell .entry-content .wp-block-gallery:has(> figure:only-child),
body.ckb-wp-shell .entry-content .wp-block-gallery:has(> .wp-block-image:only-child) {
  display:flex!important;justify-content:center;max-width:900px;margin:36px auto;
}
body.ckb-wp-shell .entry-content .wp-block-gallery:has(> figure:only-child) > figure,
body.ckb-wp-shell .entry-content .wp-block-gallery:has(> .wp-block-image:only-child) > .wp-block-image {
  width:100%!important;max-width:900px; flex:0 1 100%;margin:0;
}
body.ckb-wp-shell .entry-content .wp-block-gallery:has(> figure:only-child) img {display:block;max-height:780px;object-fit:contain;}

/* F09: consent-to-load Google Maps remains explicit; CTA is clearer. */
body.ckb-wp-shell[data-page="contact"] .ckb-contact-map-stage {
  border:1px solid #bdcbd0; background:#eff3f4;
}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-map-stage p {max-width:60ch;line-height:1.65;}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-map-load {
  min-height:48px;padding:12px 22px;border:2px solid #143b50;background:#143b50;color:#fff;
  font-weight:700;cursor:pointer;
}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-map-load:hover {background:#235772;color:#fff;}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-map-load:focus-visible {outline:3px solid #1f6f99;outline-offset:4px;}

@media (max-width:800px){
  body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved{grid-template-columns:1fr;padding:22px;gap:16px;}
  body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved__top{grid-row:auto;}
  body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved__link,
  body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved__pending{grid-column:1;}
  body.ckb-wp-shell[data-page="team"] .ckb-team-grid,
  body.ckb-wp-shell[data-page="social"] .ckb-social-grid,
  body.ckb-wp-shell[data-page="contact"] .ckb-contact-editorial .service-grid {grid-template-columns:1fr;}
  body.ckb-wp-shell .ckb-editorial-archive .ckb-editorial-feature--essay.has-cover{grid-template-columns:1fr;}
  body.ckb-wp-shell .ckb-editorial-archive .ckb-editorial-feature--essay.has-cover .ckb-editorial-feature__media,
  body.ckb-wp-shell .ckb-editorial-archive .ckb-editorial-feature--essay.has-cover .ckb-editorial-feature__aside,
  body.ckb-wp-shell .ckb-editorial-archive .ckb-editorial-feature--essay.has-cover .ckb-editorial-feature__copy {grid-column:1;grid-row:auto;}
  body.ckb-wp-shell[data-page="calendar"] .month-grid .day.has-event small{font-size:11px;}
}
@media(prefers-reduced-motion:reduce){
  body.ckb-wp-shell[data-page="about"] .ckb-about-team-reserved,
  body.ckb-wp-shell[data-page="contact"] .ckb-contact-map-load{transition:none;}
}

/* ================================================================
   CKB-VISUAL-R1-R003 — Browser layout correction (2026-11-15)
   Exact R002 stylesheet revision only. Preserves theme PHP, CMS data,
   route handling, and newsletter guard. No global rules.
   ================================================================ */

/* The Gutenberg Group block may contain a legacy inner-container.
   Style both outer grid AND that single intermediate child as a grid;
   a one-child outer grid previously left the entire right column empty. */
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-grid,
body.ckb-wp-shell[data-page="team"] .ckb-b1-info-editorial .ckb-team-grid {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(16px, 2.2vw, 26px) !important;
  width: 100%;
  max-width: 1040px !important;
  min-width: 0;
  margin: 0 0 clamp(38px, 5vw, 66px);
}
body.ckb-wp-shell[data-page="social"] .ckb-social-grid > .wp-block-group__inner-container,
body.ckb-wp-shell[data-page="team"] .ckb-team-grid > .wp-block-group__inner-container {
  box-sizing: border-box;
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(16px, 2.2vw, 26px) !important;
  width: 100%;
  min-width: 0;
}
/* Social: restore contrast on the dark outer surface and light cards. */
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-editorial-intro {
  color: #3c505b !important;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  opacity: 1;
  max-width: 70ch;
}
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card {
  box-sizing: border-box;
  align-items: stretch;
  min-height: 198px;
  padding: clamp(22px, 2.4vw, 32px);
  background: #f5f7f6;
  color: #29414e;
  border: 1px solid #cbd7dc;
  border-top: 3px solid #83a7b5;
  box-shadow: none;
}
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card .ckb-social-card__eyebrow { display: none; }
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card h2 {
  color: #18323f !important;
  font-size: clamp(24px, 2.4vw, 33px);
  line-height: 1.15;
  margin: 0;
}
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card p {
  color: #37515e !important;
  font-size: 16px;
  margin: 0;
  line-height: 1.55;
}
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card p:last-child { margin-top: auto; }
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #174d69 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card a:focus-visible {
  outline: 3px solid #176388; outline-offset: 4px;
}

/* Besuch: the four Gutenberg service blocks must share the same gutter
   and form a compact 2x2 grid, also with a legacy inner-container. */
body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-grid {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: clamp(24px, 4vw, 64px) !important;
  row-gap: clamp(26px, 3vw, 40px) !important;
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: clamp(30px, 4vw, 56px) 0 clamp(26px, 3vw, 38px);
}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-grid > .wp-block-group__inner-container {
  box-sizing: border-box;
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(26px, 3vw, 40px) clamp(24px, 4vw, 64px) !important;
  width: 100%;
  min-width: 0;
}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-grid .service-block {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
  padding: 0 0 22px !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(182, 199, 207, .22) !important;
  margin: 0 !important;
}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-block > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-block h2 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.16;
  margin: 0;
}
body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-block p,
body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-block a {
  line-height: 1.55;
  overflow-wrap: anywhere;
}
/* Keep address, service tiles and map aligned to the SAME content gutter. */
body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial,
body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-map-section {
  box-sizing: border-box;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Desktop calendar density: previous B1 style forced 177px tall day boxes.
   Preserve current date data, event markers, and today emphasis. */
@media (min-width: 861px) {
  body.ckb-wp-shell[data-page="calendar"] .month-grid .weekday {
    min-height: 47px !important;
    padding: 12px 10px !important;
    font-size: 16px !important;
    letter-spacing: .055em !important;
  }
  body.ckb-wp-shell[data-page="calendar"] .month-grid .day {
    min-height: 114px !important;
    padding: 12px !important;
  }
  body.ckb-wp-shell[data-page="calendar"] .month-grid .day > span:first-child {
    font-size: clamp(26px, 2.6vw, 32px) !important;
    line-height: 1.12 !important;
  }
  body.ckb-wp-shell[data-page="calendar"] .month-grid .day small {
    font-size: 12px !important;
    line-height: 1.35 !important;
    bottom: 13px !important;
    left: 12px !important;
    right: 9px;
  }
  body.ckb-wp-shell[data-page="calendar"] .month-grid .day i {
    left: 12px !important;
    bottom: 46px !important;
  }
}
@media (max-width: 759px) {
  body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-grid,
  body.ckb-wp-shell[data-page="team"] .ckb-b1-info-editorial .ckb-team-grid,
  body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-grid,
  body.ckb-wp-shell[data-page="social"] .ckb-social-grid > .wp-block-group__inner-container,
  body.ckb-wp-shell[data-page="team"] .ckb-team-grid > .wp-block-group__inner-container,
  body.ckb-wp-shell[data-page="contact"] .service-grid > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card { min-height: 168px; }
  body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-grid {
    row-gap: 20px !important;
    padding-block: 24px 22px;
  }
}

/* Use the full, not abbreviated, desktop selector to override the
   inherited inner-container rule in narrow viewports. */
@media (max-width: 759px) {
  body.ckb-wp-shell[data-page="contact"] .ckb-contact-main .ckb-contact-editorial .service-grid > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* ==============================================================
   CKB-VISUAL-R1-R004 / Editorial & Responsive Final Closure.
   Narrowly scoped overlays on the audited R003 CSS. No change to
   gallery kinetics, event filtering, WPML routes, CMS data or mail.
   ============================================================== */

/* Home / phone: a metadata row, then a full-width readable headline.
   The old flex-basis(calc(100% - 85px)) forced multi-line headlines
   alongside the News rubric, leading to cramped 393px layout. */
@media (max-width:640px) {
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker {
    padding-top:14px;
    padding-bottom:5px;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker > a {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px 10px;
    align-items:baseline;
    width:100%;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-type {
    grid-column:1;grid-row:1;
    justify-self:start;
    font-size:12px;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker time {
    grid-column:2;grid-row:1;
    white-space:nowrap;
    font-size:11px;
    margin:0;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-title {
    grid-column:1 / -1;grid-row:2;
    min-width:0;
    max-width:100%;
    flex-basis:auto !important;
    font-size:15px;
    font-weight:600;
    line-height:1.5;
    overflow-wrap:break-word;
    hyphens:auto;
  }
}

/* Accessibility: two factual text panels, natural content height,
   then a working contact link. Existing German / Chinese Page bodies
   remain WordPress-owned; no facilities or photos are invented. */
body.ckb-wp-shell[data-page="accessibility"] .ckb-b1-info-editorial {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  width:min(980px,calc(100% - 2 * clamp(20px,5vw,80px)));
  max-width:980px;
  min-height:0 !important;
  margin:0 auto;
  padding:clamp(28px,4vw,50px) 0 clamp(36px,5vw,60px);
  border:0;
  align-items:stretch;
}
body.ckb-wp-shell[data-page="accessibility"] .ckb-b1-info-editorial > p {
  box-sizing:border-box;
  max-width:none;
  min-width:0;
  margin:0 !important;
  padding:clamp(20px,2.6vw,30px) !important;
  border:1px solid #d6dedf;
  border-top:3px solid #789dad;
  background:#f5f7f6;
  color:#25343d;
  font-size:clamp(16px,1.3vw,19px);
  line-height:1.75;
  overflow-wrap:anywhere;
}
body.ckb-wp-shell[data-page="accessibility"] .ckb-b1-info-editorial .ckb-accessibility-actions {
  grid-column:1 / -1;
  max-width:none;
  margin:5px 0 0;
  display:flex;
  align-items:center;
}
body.ckb-wp-shell[data-page="accessibility"] .ckb-accessibility-actions a {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:48px;
  padding:12px 22px;
  color:#fff;
  background:#153e53;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
}
body.ckb-wp-shell[data-page="accessibility"] .ckb-accessibility-actions a:hover { background:#245e79; }
body.ckb-wp-shell[data-page="accessibility"] .ckb-accessibility-actions a:focus-visible {
  outline:3px solid #176388;
  outline-offset:4px;
}

/* Essays without a verified cover: a deliberate editorial layout,
   not an empty reserved media slot. A future featured image activates
   the existing .has-cover branch without additional programming. */
body.ckb-wp-shell[data-page="essays"] .ckb-editorial-archive .ckb-editorial-feature--essay.no-cover {
  grid-template-columns:minmax(118px,.22fr) minmax(0,1fr);
  gap:clamp(20px,3vw,48px);
  padding:22px 0 32px;
  align-items:start;
}
body.ckb-wp-shell[data-page="essays"] .ckb-editorial-archive .ckb-editorial-feature--essay.no-cover h2 {
  font-size:clamp(34px,3.2vw,53px);
  line-height:1.22;
  max-width:25em;
}
body.ckb-wp-shell[data-page="essays"] .ckb-editorial-archive .ckb-editorial-feature--essay.no-cover .ckb-editorial-feature__rubric {
  font-size:clamp(20px,2vw,29px);
}
@media (max-width:860px) {
  body.ckb-wp-shell[data-page="essays"] .ckb-editorial-archive .ckb-editorial-feature--essay.no-cover {
    grid-template-columns:minmax(0,1fr);
    gap:16px;
    padding:18px 0 22px;
  }
}
@media (max-width:640px) {
  body.ckb-wp-shell[data-page="accessibility"] .ckb-b1-info-editorial {
    grid-template-columns:minmax(0,1fr);
    width:calc(100% - 40px);
    gap:14px;
    padding-block:24px 38px;
  }
  body.ckb-wp-shell[data-page="accessibility"] .ckb-b1-info-editorial > p {
    padding:20px !important;
    font-size:16px;
    line-height:1.7;
  }
  body.ckb-wp-shell[data-page="essays"] .ckb-editorial-archive .ckb-editorial-feature--essay.no-cover h2 {
    font-size:clamp(29px,8.1vw,39px);
  }
}


/* CKB-VISUAL-R004-P2 One-direction seamless single-item Gallery.
   Render-only clones repeat the existing card on the SAME moving track.
   Multiple-poster looping and phone swiping are unchanged. */
body.ckb-wp-shell[data-page="home"].ckb-gallery-single-kinetic .gallery-swipe-hint {
  display:none !important;
}
body.ckb-wp-shell[data-page="home"].ckb-gallery-single-kinetic .gallery-heading .gallery-toggle:not([hidden]) {
  display:inline-flex !important;
  align-items:center;
  min-height:38px;
  padding:7px 0;
  cursor:pointer;
}
body.ckb-wp-shell[data-page="home"].ckb-gallery-single-kinetic .gallery-viewport {
  overflow-x:hidden !important;
  scroll-snap-type:none !important;
  touch-action:pan-y !important;
}
body.ckb-wp-shell[data-page="home"].ckb-gallery-single-kinetic .gallery-track {
  will-change:transform;
  width:max-content !important;
}
body.ckb-wp-shell[data-page="home"].ckb-gallery-single-kinetic .poster-link[data-clone="true"] {
  /* Mobile CSS normally hides multi-item clones; single-item requires them. */
  display:flex !important;
}
@media (min-width:641px) and (max-width:1240px) {
  body.ckb-wp-shell[data-page="home"].ckb-gallery-single-kinetic .poster-link {
    flex:0 0 min(650px, calc(100vw - 112px)) !important;
    width:min(650px, calc(100vw - 112px)) !important;
  }
}
@media (max-width:640px) {
  body.ckb-wp-shell[data-page="home"].ckb-gallery-single-kinetic .poster-link {
    /* Keep the existing comfortable card width for the scrolling loop. */
    flex:0 0 calc(100vw - 40px) !important;
    width:calc(100vw - 40px) !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.ckb-wp-shell[data-page="home"].ckb-gallery-single-kinetic .gallery-track {
    will-change:auto;
  }
}

/* CKB_SOCIAL_QR_CSS_R001: editor-owned official QR blocks, Social page only. */
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card .ckb-social-official-qr-r001 {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 10px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card .ckb-social-official-qr-r001 img {
  box-sizing: border-box;
  display: block;
  width: min(172px, 100%);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 1px solid #cbd7dc;
  background: #fff;
  object-fit: contain;
}
@media (max-width: 759px) {
  body.ckb-wp-shell[data-page="social"] .ckb-b1-info-editorial .ckb-social-card .ckb-social-official-qr-r001 img {
    width: min(172px, 100%);
  }
}

/* ==============================================================
   CKB-R004-POST-LAUNCH-MOBILE-HOME-VISUAL-R1
   Phone-only editorial rhythm. Preserve content, gallery JS, tablet,
   desktop, shared navigation behavior and the approved 16:9 frame.
   Existing visual-gap enqueue uses filemtime for cache identity.
   ============================================================== */
@media (max-width: 640px) {
  body.ckb-wp-shell[data-page="home"] {
    --ckb-phone-home-gutter: clamp(16px, 5.1vw, 24px);
    --ckb-phone-home-column: calc(100% - 2 * var(--ckb-phone-home-gutter));
  }
  /* Keep the sticky header's existing height and curtain geometry. */
  body.ckb-wp-shell[data-page="home"] .site-header {
    width: var(--ckb-phone-home-column) !important;
    gap: 10px;
  }
  body.ckb-wp-shell[data-page="home"] .site-header .brand-lockup {
    min-width: 0;
    flex: 1 1 auto;
  }
  body.ckb-wp-shell[data-page="home"] .site-header .brand-lockup-full,
  body.ckb-wp-shell[data-page="home"] .site-header .brand-lockup-full-dark {
    max-width: 100% !important;
    height: auto;
  }
  body.ckb-wp-shell[data-page="home"] .site-header .header-right {
    gap: 8px !important;
    flex: 0 0 auto;
  }
  body.ckb-wp-shell[data-page="home"] .site-header .mobile-menu-trigger {
    margin-left: 0;
    min-height: 44px;
  }
  /* Latest news: rubric and date, then a readable headline. */
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker {
    width: var(--ckb-phone-home-column);
    padding: 22px 0 24px;
    border-bottom: 1px solid var(--hairline, rgba(11,11,11,.16));
  }
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker > a {
    gap: 10px 12px;
    min-height: 44px;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-type,
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker time {
    font-size: 12px;
    line-height: 1.4;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-title {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  /* Gallery: full card, aligned with the editorial content column.
     Do not change overflow, transforms, clones, snapping or JS. */
  body.ckb-wp-shell[data-page="home"] .hero {
    padding-top: 28px !important;
  }
  body.ckb-wp-shell[data-page="home"] .gallery-heading,
  body.ckb-wp-shell[data-page="home"] .gallery-viewport {
    width: var(--ckb-phone-home-column) !important;
  }
  body.ckb-wp-shell[data-page="home"] .gallery-heading {
    margin-bottom: 18px !important;
    gap: 12px;
  }
  body.ckb-wp-shell[data-page="home"] .gallery-heading .section-kicker {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .09em;
  }
  body.ckb-wp-shell[data-page="home"] .hero .poster-link {
    width: calc(100vw - 2 * var(--ckb-phone-home-gutter)) !important;
    flex-basis: calc(100vw - 2 * var(--ckb-phone-home-gutter)) !important;
    min-width: 0;
  }
  body.ckb-wp-shell[data-page="home"] .hero .poster-link > .ckb-icon-r2-marker {
    margin-bottom: 12px;
    line-height: 1.35;
  }
  body.ckb-wp-shell[data-page="home"] .hero .poster-copy {
    padding-top: 16px !important;
    gap: 8px !important;
  }
  body.ckb-wp-shell[data-page="home"] .hero .poster-pagination:empty {
    display: none;
  }
  body.ckb-wp-shell[data-page="home"] .hero .poster-date {
    font-size: 13px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
    letter-spacing: .02em !important;
  }
  body.ckb-wp-shell[data-page="home"] .hero .poster-title {
    font-size: clamp(19px, 5.1vw, 22px) !important;
    line-height: 1.38 !important;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
  }
  body.ckb-wp-shell[data-page="home"] .hero .poster-meta {
    font-size: 12px !important;
    line-height: 1.5 !important;
    letter-spacing: .02em !important;
  }
  /* Upcoming: readable headline with separate, full-height text actions. */
  body.ckb-wp-shell[data-page="home"] .upcoming,
  body.ckb-wp-shell[data-page="home"] .ckb-p3-greeting {
    width: var(--ckb-phone-home-column) !important;
  }
  body.ckb-wp-shell[data-page="home"] .upcoming:not(.ckb-r010-no-events) {
    padding-top: 42px !important;
    padding-bottom: 38px !important;
  }
  body.ckb-wp-shell[data-page="home"] .upcoming .section-heading {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "title actions" !important;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    padding-bottom: 12px;
  }
  body.ckb-wp-shell[data-page="home"] .upcoming .section-heading > h2 {
    grid-area: title;
    font-size: clamp(28px, 7.8vw, 32px) !important;
    line-height: 1.15 !important;
    overflow-wrap: normal;
  }
  body.ckb-wp-shell[data-page="home"] .upcoming .section-heading-actions {
    grid-area: actions;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 12px;
  }
  body.ckb-wp-shell[data-page="home"] .upcoming .section-heading-actions .text-link {
    font-size: 12px !important;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }
  body.ckb-wp-shell[data-page="home"] .upcoming .ckb-b1p3-upcoming-empty {
    font-size: 15px;
    line-height: 1.6;
    padding: 20px 0 0;
    margin: 0;
  }
  body.ckb-wp-shell[data-page="home"] .upcoming .event-row h3 {
    line-height: 1.35 !important;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-p3-greeting {
    padding-top: 32px;
    padding-bottom: 52px;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-p3-greeting h2 {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.16;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-p3-greeting-detail p {
    line-height: 1.65;
  }
}
@media (max-width: 355px) {
  /* Narrow phones: keep heading and both actions intact rather than squeeze. */
  body.ckb-wp-shell[data-page="home"] .upcoming .section-heading {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "title" "actions" !important;
    align-items: start;
    row-gap: 4px;
  }
  body.ckb-wp-shell[data-page="home"] .upcoming .section-heading-actions {
    justify-content: flex-start;
  }
}
