/*
Theme Name: TCS Blank
Theme URI: https://example.com/
Author: The Church Shop
Description: A minimal classic WordPress theme built as a clean starting point for custom site design.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcs-blank
*/

:root {
  --site-background: #ffffff;
  --site-marketing-background:
    radial-gradient(circle at 15% 18%, rgba(184, 236, 212, 0.52), transparent 34%),
    radial-gradient(circle at 90% 6%, rgba(58, 154, 107, 0.18), transparent 30%),
    linear-gradient(180deg, #fbfefc 0%, #f2faf6 48%, #ffffff 100%);
  --site-foreground: #111827;
  --site-muted: #6b7280;
  --site-border: #e5e7eb;
  --site-accent: #2563eb;
  --site-max-width: 72rem;
  --site-content-width: 46rem;
  --site-spacing: 1.5rem;
  --site-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--site-marketing-background);
  color: var(--site-foreground);
  font-family: var(--site-font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-shell {
  min-height: calc(100vh - 32px);
}

a {
  color: var(--site-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: none;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin-block-start: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header,
.site-footer {
  border-color: var(--site-border);
}

.site-header {
  border-bottom: 1px solid var(--site-border);
}

.site-header__inner,
.site-footer__inner {
  width: min(100% - 2rem, var(--site-max-width));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  color: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.site-logo img {
  max-height: 3rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--site-accent);
}

.site-main {
  width: min(100% - 2rem, var(--site-max-width));
  margin-inline: auto;
  padding-block: 3rem;
  flex: 1;
}

.site-main--canvas {
  width: 100%;
  max-width: none;
  padding-block: 0;
  overflow-x: hidden;
  background: var(--site-marketing-background);
}

.page-template-landing-page .site-main,
.has-jadefunds-marketing-page .site-main,
.site-main:has(.jf-home) {
  width: 100%;
  max-width: none;
  padding-block: 0;
  overflow-x: hidden;
  background: var(--site-marketing-background);
}

.site-footer {
  border-top: 1px solid var(--site-border);
}

.site-footer__inner {
  padding-block: 1.5rem;
  color: var(--site-muted);
  font-size: 0.875rem;
}

.page-header,
.entry-header {
  max-width: var(--site-content-width);
  margin-bottom: 2rem;
}

.entry-title,
.page-title {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.entry-meta,
.post-meta {
  color: var(--site-muted);
  font-size: 0.9375rem;
}

.entry-content,
.entry-summary {
  max-width: var(--site-content-width);
}

.front-page .entry-content,
.landing-page .entry-content,
.has-jadefunds-marketing-page .entry-content,
.canvas-page .entry-content {
  max-width: none;
}

.front-page .entry-content > :not(.alignfull):not(.alignwide):not(.jf-home):not(.jf-jadefunds-page-block),
.landing-page .entry-content > :not(.alignfull):not(.alignwide):not(.jf-home):not(.jf-jadefunds-page-block) {
  max-width: var(--site-content-width);
  margin-inline: auto;
}

.front-page .entry-content > .jf-jadefunds-page-block,
.front-page .entry-content > .wp-block-tcs-blank-jadefunds-page,
.has-jadefunds-marketing-page .entry-content > .jf-jadefunds-page-block,
.has-jadefunds-marketing-page .entry-content > .wp-block-tcs-blank-jadefunds-page {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.canvas-page .entry-content > * {
  max-width: none;
}

.entry-content:has(.jf-home),
.entry-content:has(.jf-home) > *,
.has-jadefunds-marketing-page .entry-content > *,
.front-page .entry-content:has(.jf-home) > *,
.landing-page .entry-content:has(.jf-home) > *,
.canvas-page .entry-content > * {
  max-width: none;
}

.entry-content:has(.jf-home) > * + *,
.canvas-page .entry-content > * + * {
  margin-top: 0;
}

.entry-content > * + *,
.entry-summary > * + * {
  margin-top: var(--site-spacing);
}

.post-list {
  display: grid;
  gap: 2rem;
  max-width: var(--site-content-width);
}

.post-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--site-border);
}

.post-card__title {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--site-accent);
}

.alignwide {
  max-width: var(--site-max-width);
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-block-image img {
  height: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  color: var(--site-muted);
  font-size: 0.875rem;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-numbers,
.post-page-numbers {
  display: inline-flex;
  min-width: 2.25rem;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--site-border);
  border-radius: 0.375rem;
  color: inherit;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
}

.page-numbers.current,
.post-page-numbers.current {
  border-color: var(--site-accent);
  background: var(--site-accent);
  color: #ffffff;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #111827;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 30px rgb(17 24 39 / 18%);
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-header__inner {
    min-height: auto;
    padding-block: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-main {
    padding-block: 2rem;
  }

  .entry-title,
  .page-title {
    font-size: 2rem;
  }
}
