:root {
  --ckib-red: #b5222c;
  --ckib-red-dark: #7f1119;
  --ckib-ink: #171717;
  --ckib-muted: #60646c;
  --ckib-paper: #fffdf9;
  --ckib-sand: #f3ede3;
  --ckib-border: #ded7cc;
  --ckib-focus: #005fcc;
  --ckib-container: 1320px;
  --ckib-text-scale: 1;
  --ckib-ticker-height: 0px;
  color-scheme: light;
  font-size: calc(100% * var(--ckib-text-scale));
}

html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ckib-ink); background: var(--ckib-paper); font-family: Inter, "Noto Sans", Arial, sans-serif; font-size: 1rem; line-height: 1.65; padding-bottom: var(--ckib-ticker-height); }
body, button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; }
a { color: var(--ckib-red-dark); text-underline-offset: .18em; }
a:hover { color: var(--ckib-red); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--ckib-focus) !important; outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ckib-container { width: min(calc(100% - 2rem), var(--ckib-container)); margin-inline: auto; }
.ckib-skip-link { position: fixed; z-index: 100000; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .75rem 1rem; background: #fff; color: #000; border: 3px solid var(--ckib-focus); font-weight: 800; }
.ckib-skip-link:focus { transform: none; }

.ckib-accessibility-bar { background: #1f2023; color: #fff; font-size: .875rem; }
.ckib-accessibility-inner { min-height: 44px; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding-block: .35rem; }
.ckib-accessibility-label { font-weight: 700; margin-right: auto; }
.ckib-accessibility-controls { display: flex; gap: .25rem; }
.ckib-accessibility-bar button, .ckib-accessibility-bar a { min-height: 34px; border: 1px solid #85878d; border-radius: 4px; background: transparent; color: #fff; padding: .3rem .65rem; cursor: pointer; }
.ckib-accessibility-bar a { display: inline-flex; align-items: center; text-decoration: none; }
.ckib-accessibility-bar button:hover, .ckib-accessibility-bar a:hover, .ckib-accessibility-bar button[aria-pressed="true"] { background: #fff; color: #111; }

.ckib-site-header { position: sticky; top: 0; z-index: 9990; background: color-mix(in srgb, var(--ckib-paper) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ckib-border); }
.admin-bar .ckib-site-header { top: 32px; }
.ckib-header-inner { min-height: 92px; display: flex; align-items: center; gap: 2rem; }
.ckib-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.ckib-brand img, .ckib-brand .custom-logo { width: auto; max-width: 180px; max-height: 74px; object-fit: contain; }
.ckib-primary-nav { margin-left: auto; }
.ckib-nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.ckib-nav-list a { display: block; padding: .7rem .72rem; color: var(--ckib-ink); font-size: .92rem; font-weight: 700; text-decoration: none; border-radius: 6px; }
.ckib-nav-list a:hover, .ckib-nav-list .current-menu-item > a { background: var(--ckib-sand); color: var(--ckib-red-dark); }
.ckib-menu-toggle { display: none; margin-left: auto; min-width: 44px; min-height: 44px; border: 1px solid var(--ckib-border); background: #fff; border-radius: 6px; font-size: 1.5rem; }

.ckib-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 330px); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding-block: clamp(2rem, 5vw, 5rem); }
.ckib-page-layout:has(.ckib-promo-zone.is-empty) { grid-template-columns: minmax(0, 1fr); }
.ckib-main-content { min-width: 0; }
.ckib-promo-zone { min-width: 300px; position: sticky; top: 118px; }
.ckib-promo-zone.is-empty { display: none; }
.ckib-promo-zone img { display: block; width: 100%; border-radius: 10px; }
.ckib-promo-zone > * + * { margin-top: 1rem; }
.ckib-entry-header, .ckib-archive-header { max-width: 900px; margin-bottom: 2.25rem; }
.ckib-entry-header h1, .ckib-archive-header h1 { margin: .25rem 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -.03em; }
.ckib-eyebrow { color: var(--ckib-red-dark); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.ckib-entry-meta, .ckib-card-meta { color: var(--ckib-muted); font-size: .9rem; }
.ckib-featured-image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 18px; }
.ckib-prose { max-width: 790px; font-size: 1.08rem; }
.ckib-prose h2, .ckib-prose h3 { margin-top: 2em; line-height: 1.2; }
.ckib-prose a { overflow-wrap: anywhere; }

.ckib-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.ckib-card { overflow: hidden; background: #fff; border: 1px solid var(--ckib-border); border-radius: 14px; box-shadow: 0 14px 40px rgba(54, 38, 20, .08); }
.ckib-card-media { display: block; aspect-ratio: 16 / 10; background: var(--ckib-sand); }
.ckib-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ckib-card-body { padding: 1.25rem; }
.ckib-card h2 { margin: .35rem 0 .75rem; font-size: 1.25rem; line-height: 1.2; }
.ckib-card h2 a { color: var(--ckib-ink); text-decoration: none; }
.ckib-card h2 a:hover { color: var(--ckib-red-dark); text-decoration: underline; }
.ckib-empty-state { padding-block: 7rem; text-align: center; }
.ckib-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.15rem; border-radius: 6px; background: var(--ckib-red-dark); color: #fff; font-weight: 750; text-decoration: none; }
.ckib-button:hover { background: var(--ckib-red); color: #fff; }

.ckib-site-footer { background: #1d1b1a; color: #f4f1eb; padding: clamp(3rem, 7vw, 5rem) 0 1.25rem; }
.ckib-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 3rem; }
.ckib-footer-title { color: #fff; font-size: 1.05rem; margin: 0 0 1rem; }
.ckib-site-footer a { color: #fff; }
.ckib-site-footer address { font-style: normal; }
.ckib-footer-menu { list-style: none; padding: 0; margin: 0; }
.ckib-footer-menu li + li { margin-top: .4rem; }
.ckib-social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.ckib-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid #44403b; margin-top: 3rem; padding-top: 1.25rem; font-size: .9rem; }

body.ckib-high-contrast { --ckib-paper: #000; --ckib-ink: #fff; --ckib-muted: #eee; --ckib-sand: #151515; --ckib-border: #fff; --ckib-red: #ffe600; --ckib-red-dark: #ffe600; --ckib-focus: #00e5ff; background: #000; color: #fff; }
body.ckib-high-contrast :where(.ckib-card, .ckib-site-header, .ckib-button, input, textarea, select) { background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
body.ckib-high-contrast :where(a, .ckib-card h2 a) { color: #ffe600 !important; }
body.ckib-high-contrast img { filter: contrast(1.12); }

@media (max-width: 1100px) {
  .ckib-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ckib-page-layout { grid-template-columns: minmax(0, 1fr); }
  .ckib-promo-zone { position: static; min-width: 0; width: 100%; }
}
@media (max-width: 940px) {
  .ckib-menu-toggle { display: block; }
  .ckib-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 1rem; background: var(--ckib-paper); border-bottom: 1px solid var(--ckib-border); }
  .ckib-primary-nav.is-open { display: block; }
  .ckib-nav-list { display: grid; }
  .ckib-nav-list a { padding: .8rem; }
}
@media (max-width: 782px) { .admin-bar .ckib-site-header { top: 46px; } }
@media (max-width: 700px) {
  .ckib-accessibility-label { width: 100%; }
  .ckib-header-inner { min-height: 74px; }
  .ckib-brand img, .ckib-brand .custom-logo { max-height: 58px; max-width: 145px; }
  .ckib-card-grid, .ckib-footer-grid { grid-template-columns: 1fr; }
  .ckib-footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

