/* ==========================================================================
   Christ's Hope UK — site base, fonts, header and footer (14 October 2026)
   --------------------------------------------------------------------------
   Loaded first on every page. Replaces what the Kadence parent theme supplied:
     1. Fonts: Inter, Jost and Caveat, self-hosted (assets/fonts/README.md).
     2. Base: the element defaults our templates were built on. Copied from
        Kadence's global.min.css and its Customizer output so pages look the
        same after the switch; tidy these up page by page, not here.
     3. The header and menu (header.php, inc/site-chrome.php).
     4. The footer (footer.php).
   ========================================================================== */

/* ---- 1. Fonts ---- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- 2. Base ---- */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { overflow-x: clip; }   /* Kadence clipped sideways overflow on #wrapper; kept */
body {
  margin: 0; background: #fff; color: #196e33;
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
.ch-main { flex: 1 0 auto; display: block; min-width: 0; }
button, input, optgroup, select, textarea { font-size: 100%; margin: 0; }
input, select, optgroup, textarea {
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #196e33;
}
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type=button], [type=reset], [type=submit] { -webkit-appearance: button; }
[hidden] { display: none; }
details { display: block; }
summary { display: list-item; }

h1, h2, h3, h4, h5, h6 { padding: 0; margin: 0; font-family: inherit; font-weight: 700; line-height: 1.5; color: #0ba34d; }
h1 { font-size: 32px; } h2 { font-size: 28px; } h3 { font-size: 24px; }
h4 { font-size: 22px; color: #196e33; } h5 { font-size: 20px; color: #196e33; } h6 { font-size: 18px; color: #64605f; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; text-decoration: none; }
b, strong { font-weight: bold; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; } sup { top: -0.5em; }
dfn, cite, em, i { font-style: italic; }
code, kbd, tt, var { font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; font-size: .8rem; }
pre { background: #edf2f7; font-family: "Courier 10 Pitch", Courier, monospace; font-size: .9375rem; line-height: 1.6; max-width: 100%; overflow: auto; padding: 1.5em; white-space: pre-wrap; }
blockquote { padding-left: 1em; border-left: 4px solid #196e33; }
hr { height: 0; border: 0; border-bottom: 2px solid #cbd5e0; }
ul, ol { margin: 0 0 1.5em 1.5em; padding: 0; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; }
dt { font-weight: 700; } dd { margin: 0 1.5em 1.5em; }
img { display: block; height: auto; max-width: 100%; border-style: none; }
figure { margin: .5em 0; }
table { margin: 0 0 1.5em; width: 100%; }
a { color: #fbc100; background-color: transparent; transition: all .1s linear; }
a:hover, a:focus, a:active { color: #d89a04; }

textarea { width: 100%; overflow: auto; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=number],
input[type=tel], input[type=date], textarea {
  -webkit-appearance: none; color: #64605f; border: 1px solid #cbd5e0; border-radius: 3px;
  padding: .4em .5em; max-width: 100%; background: #fff;
}
input[type=text]:focus, input[type=email]:focus, input[type=url]:focus, input[type=password]:focus,
input[type=search]:focus, input[type=number]:focus, input[type=tel]:focus, input[type=date]:focus, textarea:focus {
  color: #0ba34d; border-color: #020203; outline: 0; box-shadow: 0 5px 15px -7px rgba(0,0,0,.1);
}
::placeholder { color: #020203; }
select {
  border: 1px solid #cbd5e0; padding: .2em 35px .2em .5em; appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' fill='none' stroke-width='2' stroke='%23bbb'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat 98% 50%;
}
fieldset { padding: .625em 1.425em; border: 1px solid #a0aec0; margin: 1.2em 0; }
legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; font-weight: bold; }
button, .button, .wp-block-button__link, .wp-element-button, input[type=button], input[type=reset], input[type=submit] {
  border-radius: 3px; background: #fbc100; color: #fff; padding: .4em 1em; border: 0;
  font-size: 1.125rem; line-height: 1.6; display: inline-block; font-family: inherit; cursor: pointer;
  text-decoration: none; transition: all .2s ease;
}
button:hover, button:focus, button:active, .button:hover, .button:focus, .wp-block-button__link:hover,
input[type=submit]:hover, input[type=submit]:focus { color: #fff; background: #d89a04; box-shadow: 0 15px 25px -7px rgba(0,0,0,.1); }
button:disabled, input[type=submit]:disabled { cursor: not-allowed; opacity: .5; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px;
  overflow: hidden; word-wrap: normal !important;
}
.alignleft { float: left; margin-right: 2rem; }
.alignright { float: right; margin-left: 2rem; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; text-align: center; }

/* ---- 3. Header ---- */
.ch-site-header, .ch-site-footer {
  --c-ink: #14201b; --c-soft: #3d4a44; --c-muted: #5d6863; --c-line: #e4e9e6;
  --c-green: #067a3d; --c-green-dark: #04582c; --c-tint: #e6f5ec; --c-gold: #ffcc01;
  font-family: 'Inter', system-ui, sans-serif;
}
.ch-skip {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: #14201b; color: #fff; padding: 10px 16px; border-radius: 8px;
  font: 600 15px/1 'Inter', system-ui, sans-serif; text-decoration: none;
}
.ch-skip:focus { top: 12px; color: #fff; }
.ch-site-header :focus-visible, .ch-site-footer :focus-visible { outline: 3px solid #14201b; outline-offset: 2px; }

.ch-site-header { position: relative; z-index: 100; background: #fff; border-bottom: 1px solid var(--c-line); }
.ch-hdr {
  max-width: 1208px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px; min-height: 84px;
}
.ch-brand { flex: 0 0 auto; display: block; line-height: 0; }
.ch-brand img { width: 188px; height: auto; }

.ch-nav { margin-left: auto; }
.ch-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.ch-nav-item { position: relative; }
.ch-site-header .ch-nav-top {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 16px/1.2 'Inter', system-ui, sans-serif; color: var(--c-soft);
  background: none; border: 0; border-radius: 8px; padding: 10px 14px; margin: 0;
  text-decoration: none; cursor: pointer; box-shadow: none; transition: color .15s, background .15s;
}
.ch-site-header .ch-nav-top:hover, .ch-site-header .ch-nav-top[aria-expanded="true"] { color: var(--c-ink); background: #f3f6f4; }
.ch-site-header .ch-nav-top[aria-current="page"], .ch-in-group > .ch-nav-top { color: var(--c-ink); box-shadow: inset 0 -2px 0 var(--c-gold); border-radius: 8px 8px 0 0; }
.ch-chev { width: 12px; height: 12px; transition: transform .15s; }
.ch-nav-top[aria-expanded="true"] .ch-chev { transform: rotate(180deg); }

.ch-sub {
  list-style: none; margin: 0; padding: 8px; display: none;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
  box-shadow: 0 2px 4px rgba(20,32,27,.05), 0 18px 40px rgba(20,32,27,.10);
}
.ch-nav-top[aria-expanded="true"] + .ch-sub { display: block; }
.ch-sub a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font: 500 15px/1.3 'Inter', system-ui, sans-serif; color: var(--c-ink); text-decoration: none;
}
.ch-sub a:hover { background: var(--c-tint); color: var(--c-green-dark); }
.ch-sub a[aria-current="page"] { background: var(--c-tint); color: var(--c-green-dark); font-weight: 600; }

.ch-hdr-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  font: 600 16px/1 'Inter', system-ui, sans-serif; color: #fff;
  background: var(--c-green); padding: 13px 20px; border-radius: 8px; text-decoration: none;
  box-shadow: 0 1px 2px rgba(20,32,27,.06), 0 6px 18px rgba(6,122,61,.18);
  transition: background .15s, transform .12s;
}
.ch-hdr-cta:hover, .ch-hdr-cta:focus { color: #fff; background: var(--c-green-dark); transform: translateY(-1px); }

.ch-site-header .ch-menu-btn {
  display: none; align-items: center; gap: 8px; flex: 0 0 auto;
  font: 600 15px/1 'Inter', system-ui, sans-serif; color: var(--c-ink);
  background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 12px; box-shadow: none;
}
.ch-site-header .ch-menu-btn:hover { background: #f3f6f4; color: var(--c-ink); box-shadow: none; }
.ch-menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ch-menu-x { display: none; }
.ch-menu-open .ch-menu-bars { display: none; }
.ch-menu-open .ch-menu-x { display: inline; }

/* Desktop: open a group on hover too, for mouse users */
@media (min-width: 1000px) and (hover: hover) {
  .ch-has-sub:hover > .ch-sub { display: block; }
  .ch-has-sub:hover > .ch-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}

/* Phone and tablet: the menu opens below the header */
@media (max-width: 999px) {
  .ch-hdr { padding: 10px 16px; gap: 10px; min-height: 68px; }
  .ch-brand img { width: 136px; }
  .ch-hdr-cta { margin-left: auto; padding: 11px 14px; font-size: 15px; }
  .ch-site-header .ch-menu-btn { display: inline-flex; }

  .ch-nav { margin: 0; }
  .ch-js .ch-nav { display: none; }
  .ch-js .ch-menu-open .ch-nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    box-shadow: 0 18px 40px rgba(20,32,27,.12);
    max-height: calc(100vh - 68px); overflow-y: auto; padding: 4px 16px 20px;
  }
  .ch-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .ch-site-header .ch-nav-top {
    width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 17px;
    border-radius: 0; border-bottom: 1px solid var(--c-line);
  }
  .ch-site-header .ch-nav-top:hover, .ch-site-header .ch-nav-top[aria-expanded="true"] { background: none; }
  .ch-site-header .ch-nav-top[aria-current="page"], .ch-in-group > .ch-nav-top { box-shadow: inset 3px 0 0 var(--c-gold); padding-left: 14px; border-radius: 0; }
  .ch-sub { position: static; border: 0; box-shadow: none; border-radius: 0; padding: 4px 0 12px 12px; min-width: 0; }
  .ch-sub a { padding: 12px 10px; font-size: 16px; }
  /* Without the menu script, the menu is a plain open list under the logo */
  html:not(.ch-js) .ch-hdr { flex-wrap: wrap; }
  html:not(.ch-js) .ch-nav { order: 9; flex-basis: 100%; }
  html:not(.ch-js) .ch-sub { display: block; }
  html:not(.ch-js) .ch-menu-btn { display: none; }
}
@media (max-width: 420px) {
  .ch-brand img { width: 132px; }
  .ch-menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ch-site-header .ch-menu-btn { padding: 9px; }
}

/* ---- 4. Footer ---- */
.ch-site-footer { background: #f6f9f7; border-top: 1px solid var(--c-line); color: var(--c-soft); font-size: 15px; line-height: 1.6; }
.ch-site-footer.ch-v3 .ch-ftr-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
@media (min-width: 860px) { .ch-site-footer.ch-v3 .ch-ftr-grid { grid-template-columns: 1.15fr .85fr 1.2fr; gap: 48px; } }
.ch-ftr-logo { width: 168px; height: auto; margin-bottom: 16px; }
.ch-ftr-about p { margin: 0; max-width: 34em; }
.ch-site-footer .ch-ftr-h, .ch-site-footer .ch-ftr-news .v3-h3 {
  font: 600 18px/1.3 'Jost', system-ui, sans-serif; color: var(--c-ink); margin: 0 0 14px;
}
.ch-ftr-contact ul { list-style: none; margin: 0; padding: 0; }
.ch-ftr-contact li { margin: 0 0 10px; }
.ch-site-footer a { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; }
.ch-site-footer a:hover { color: var(--c-ink); }
.ch-ftr-news p { margin: 0 0 10px; }
.ch-site-footer .ch-ftr-news .v3-lead-form { max-width: none; }
.ch-site-footer .ch-ftr-news .v3-form { padding: 20px; box-shadow: none; }
.ch-site-footer .ch-ftr-news .v3-field { margin-bottom: 14px; }
.ch-site-footer .ch-ftr-news .v3-field-row { display: block; }   /* name above email: the column is narrow */
.ch-site-footer .ch-ftr-news .v3-form-small { font-size: 13px; }

.ch-ftr-legal { border-top: 1px solid var(--c-line); padding: 20px 0 28px; font-size: 13.5px; color: var(--c-muted); text-align: center; }
.ch-ftr-legal .ch-legal-line { display: block; }
.ch-ftr-legal .ch-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 8px; }

/* ---- 5. Posts and lists (single.php, page.php, index.php) ---- */
.ch-v3 .ch-post-head { padding-top: 56px; padding-bottom: 24px; }
.ch-post-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
  font-size: var(--v3-t-small); font-weight: 600; color: var(--v3-green-ink); text-decoration: none;
}
.ch-post-back:hover { color: var(--v3-ink); }
.ch-post-back .ch-v3-icon { width: 16px; height: 16px; transform: rotate(180deg); }
.ch-v3 .ch-post-title { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.15; margin: 0; }
.ch-post-hero { max-width: 908px; margin: 8px auto 40px; padding: 0 24px; }
.ch-post-hero img { width: 100%; max-height: min(560px, 70vh); object-fit: cover; border-radius: var(--v3-r-card); }   /* portrait photos stay a band */
.ch-post-body img { max-height: 640px; width: auto; margin-inline: auto; }
.ch-v3 .ch-post-body { padding-bottom: 32px; color: var(--v3-ink-soft); font-size: 1.0625rem; line-height: 1.75; word-break: break-word; }
.ch-post-body > * { margin-top: 0; margin-bottom: 1.25em; }
.ch-post-body h2, .ch-post-body h3, .ch-post-body h4 {
  font-family: var(--v3-font-display); color: var(--v3-ink); line-height: 1.25; margin: 1.6em 0 .6em;
}
.ch-post-body h2 { font-size: 1.6rem; } .ch-post-body h3 { font-size: 1.3rem; } .ch-post-body h4 { font-size: 1.1rem; }
.ch-post-body a { color: var(--v3-green-ink); text-decoration: underline; text-underline-offset: 3px; }
.ch-post-body a:hover { color: var(--v3-ink); }
.ch-post-body strong { color: var(--v3-ink); }
.ch-post-body ul, .ch-post-body ol { margin-left: 1.25em; }
.ch-post-body li { margin-bottom: .4em; }
.ch-post-body img { border-radius: 10px; }
.ch-post-body figure { margin: 1.75em 0; }
.ch-post-body figcaption { font-size: var(--v3-t-small); color: var(--v3-muted); margin-top: 8px; text-align: center; }
.ch-post-body blockquote { margin: 1.75em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--v3-gold); color: var(--v3-ink); font-style: italic; }
.ch-post-body blockquote p { margin: 0 0 .8em; }
.ch-v3 .ch-post-foot { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 72px; border-top: 1px solid var(--v3-line); }

.ch-v3 .ch-list-items { padding-bottom: 72px; }
.ch-list-item { padding: 24px 0; border-top: 1px solid var(--v3-line); }
.ch-list-item p { margin: 0; }
.ch-list-meta { font-size: var(--v3-t-small); color: var(--v3-muted); margin-bottom: 6px !important; }
.ch-v3 .ch-list-title { font: 600 1.35rem/1.3 var(--v3-font-display); margin: 0 0 8px; color: var(--v3-ink); }
.ch-list-title a { color: inherit; text-decoration: none; }
.ch-list-title a:hover { color: var(--v3-green-ink); text-decoration: underline; }
.ch-list-more .nav-links { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 24px; }
.ch-list-more .page-numbers { padding: 8px 14px; border: 1px solid var(--v3-line); border-radius: 8px; color: var(--v3-ink); text-decoration: none; }
.ch-list-more .page-numbers.current { background: var(--v3-ink); color: #fff; border-color: var(--v3-ink); }
.ch-search { display: flex; gap: 10px; margin-top: 20px; }
.ch-search input[type=search] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--v3-line); border-radius: 8px; color: var(--v3-ink); font-size: 1rem; }
.ch-search .v3-btn { padding: 12px 20px; }
