/*
Theme Name: CrossTalk Community
Theme URI: https://community.crosstalkpublishing.com
Description: A Divi child theme for the CrossTalk Publishing reader community.
Author: Craig Marvin Johnson
Template: Divi
Version: 1.4.0
Text Domain: crosstalk-community
*/

:root {
  --ctc-ink: #161b1f;
  --ctc-paper: #f4f1ea;
  --ctc-white: #ffffff;
  --ctc-red: #b43b2f;
  --ctc-gold: #d89b2b;
  --ctc-blue: #176b87;
  --ctc-green: #487a55;
  --ctc-orange: #dc6c25;
  --ctc-dark: #172027;
  --ctc-line: rgba(22, 27, 31, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ctc-site { margin: 0; background: var(--ctc-paper); color: var(--ctc-ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; }
.ctc-site main { display: block; }
.ctc-site p { padding-bottom: 0; }
.ctc-site a { color: inherit; }
.ctc-site img { display: block; max-width: 100%; }
.ctc-site h1, .ctc-site h2, .ctc-site h3 { color: inherit; font-family: Georgia, serif; font-weight: 700; letter-spacing: 0; }

.ctc-header { position: sticky; top: 0; z-index: 999; min-height: 72px; padding: 0 4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: rgba(244, 241, 234, 0.97); border-bottom: 1px solid var(--ctc-line); backdrop-filter: blur(12px); }
.admin-bar .ctc-header { top: 32px; }
.ctc-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.ctc-brand-mark { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; background: var(--ctc-red); color: white; font-size: 12px; font-weight: 800; }
.ctc-brand > span:last-child { display: grid; line-height: 1.05; }
.ctc-brand strong { font-family: Georgia, serif; font-size: 17px; }
.ctc-brand small { margin-top: 4px; color: var(--ctc-red); text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: 0.14em; }
.ctc-desktop-nav { display: flex; align-items: center; }
.ctc-desktop-nav a { padding: 4px 16px; border-left: 1px solid var(--ctc-line); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ctc-desktop-nav a:first-child { border-left: 0; }
.ctc-account-action { justify-self: end; padding: 10px 14px; border: 1px solid var(--ctc-red); color: var(--ctc-red) !important; font-size: 12px; font-weight: 800; text-decoration: none; }
.ctc-mobile-menu { display: none; }

.ctc-community-hero { position: relative; min-height: 660px; overflow: hidden; color: white; }
.ctc-cover-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #111; }
.ctc-cover-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.ctc-hero-shade { position: absolute; inset: 0; background: rgba(11, 15, 18, 0.72); }
.ctc-hero-copy { position: relative; z-index: 2; width: min(860px, 86vw); padding: 120px 7vw 110px; }
.ctc-kicker, .ctc-section-label { margin: 0 0 16px; text-transform: uppercase; font-size: 11px; line-height: 1.3; font-weight: 800; letter-spacing: 0.16em; }
.ctc-hero-copy h1 { margin: 0; color: white; font-size: clamp(54px, 7vw, 104px); line-height: 0.94; }
.ctc-hero-copy > p:not(.ctc-kicker) { max-width: 760px; margin: 28px 0 34px; font-family: Georgia, serif; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; }
.ctc-actions, .ctc-account-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ctc-primary-action, .ctc-secondary-action { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ctc-red); background: var(--ctc-red); color: white !important; font-size: 13px; font-weight: 800; text-decoration: none; }
.ctc-secondary-action { background: transparent; color: var(--ctc-ink) !important; border-color: var(--ctc-ink); }
.ctc-secondary-action.inverse { color: white !important; border-color: white; }
.ctc-primary-action.inverse { background: white; border-color: white; color: var(--ctc-ink) !important; }
.ctc-text-action { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 4px; border-bottom: 2px solid var(--ctc-red); font-weight: 800; text-decoration: none; }
.ctc-text-action.light { color: white; border-color: var(--ctc-gold); }

.ctc-welcome-band { padding: 96px 7vw; display: grid; grid-template-columns: 1fr 0.8fr; gap: 10vw; align-items: end; }
.ctc-welcome-band h2, .ctc-section-heading h2, .ctc-craig-band h2, .ctc-root-link h2, .ctc-page-hero h1, .ctc-prompts-band h2 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.ctc-welcome-band > div:last-child > p { margin: 0 0 26px; font-size: 18px; line-height: 1.7; }
.ctc-section-label { color: var(--ctc-red); }
.ctc-section-label.light { color: #f1b94f; }

.ctc-discussion-section, .ctc-latest-section, .ctc-author-posts, .ctc-resource-list { padding: 100px 5vw; }
.ctc-discussion-section { background: white; }
.ctc-section-heading { padding: 0 2vw 52px; display: grid; grid-template-columns: 1fr 0.65fr; gap: 8vw; align-items: end; }
.ctc-section-heading > p { margin: 0; font-size: 17px; line-height: 1.7; }
.ctc-book-hubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ctc-book-hub { --accent: var(--ctc-red); display: grid; grid-template-rows: 330px auto; min-width: 0; background: var(--ctc-paper); border-top: 4px solid var(--accent); text-decoration: none; }
.accent-orange { --accent: var(--ctc-orange); }
.accent-gold { --accent: var(--ctc-gold); }
.accent-blue { --accent: var(--ctc-blue); }
.accent-green { --accent: var(--ctc-green); }
.ctc-book-hub img { width: 100%; height: 100%; padding: 24px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0,0,0,0.2)); }
.ctc-book-hub > span { padding: 24px; display: grid; align-content: start; }
.ctc-book-hub small { color: var(--accent); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.ctc-book-hub strong { margin: 10px 0 20px; font-family: Georgia, serif; font-size: 23px; line-height: 1.1; overflow-wrap: anywhere; }
.ctc-book-hub em { font-size: 12px; font-style: normal; font-weight: 800; }

.ctc-latest-section { background: var(--ctc-dark); color: white; }
.ctc-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ctc-post-card { padding: 28px; border-top: 1px solid rgba(255,255,255,0.24); }
.ctc-post-card h3 { margin: 10px 0 16px; font-size: 28px; line-height: 1.15; }
.ctc-post-card h3 a { text-decoration: none; }
.ctc-post-card > p:not(.ctc-post-meta) { color: #d0d6d9; line-height: 1.65; }
.ctc-post-meta { margin: 0; color: #6a7074; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.ctc-latest-section .ctc-post-meta { color: #aeb8bd; }
.ctc-empty-state { grid-column: 1 / -1; padding: 42px; border: 1px solid currentColor; }
.ctc-empty-state h2, .ctc-empty-state h3 { margin-top: 0; }

.ctc-craig-band { padding: 100px 7vw; display: grid; grid-template-columns: minmax(260px, 0.7fr) 1.3fr; gap: 9vw; align-items: center; }
.ctc-craig-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.ctc-craig-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 28%; }
.ctc-craig-band > div:last-child > p:not(.ctc-section-label) { max-width: 740px; margin: 26px 0 32px; font-size: 18px; line-height: 1.75; }
.ctc-root-link { padding: 88px 7vw; background: var(--ctc-red); color: white; text-align: center; }
.ctc-root-link h2 { margin-bottom: 30px; color: white; }

.ctc-footer { padding: 42px 5vw; display: grid; grid-template-columns: 1fr auto auto; gap: 5vw; align-items: center; border-top: 1px solid var(--ctc-line); font-size: 12px; }
.ctc-footer > div > p { max-width: 360px; margin: 14px 0 0; color: #64696c; }
.ctc-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.ctc-footer nav a { font-weight: 700; }

.ctc-page-hero { padding: 92px 7vw; background: var(--ctc-dark); color: white; }
.ctc-page-hero h1 { color: white; }
.ctc-page-hero > p:last-child { max-width: 760px; margin: 24px 0 0; color: #d0d6d9; font-family: Georgia, serif; font-size: 24px; line-height: 1.45; }
.ctc-feed-layout { padding: 80px 7vw 100px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 8vw; align-items: start; }
.ctc-feed-item { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--ctc-line); }
.ctc-feed-item h2 { margin: 12px 0 16px; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.ctc-feed-item h2 a { text-decoration: none; }
.ctc-feed-item > p:not(.ctc-post-meta) { font-size: 17px; line-height: 1.7; }
.ctc-feed-aside { position: sticky; top: 112px; padding-top: 26px; border-top: 4px solid var(--ctc-red); }
.ctc-feed-aside h2 { margin: 0; font-size: 34px; line-height: 1.1; }
.ctc-feed-aside > p:not(.ctc-section-label) { margin: 18px 0 26px; line-height: 1.65; }

.ctc-hub-list { background: white; border-top: 1px solid var(--ctc-line); }
.ctc-hub-row { --accent: var(--ctc-red); min-height: 430px; padding: 58px 7vw; display: grid; grid-template-columns: 44px 230px minmax(0, 1fr); gap: 5vw; align-items: center; border-bottom: 1px solid var(--ctc-line); }
.ctc-hub-row > img { width: 100%; max-height: 320px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0,0,0,0.2)); }
.ctc-hub-number { align-self: start; color: var(--accent); font-size: 12px; font-weight: 800; }
.ctc-hub-row .ctc-section-label { color: var(--accent); }
.ctc-hub-row h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1; }
.ctc-hub-row > div:last-child > p:not(.ctc-section-label) { max-width: 720px; font-size: 17px; line-height: 1.7; }

.ctc-book-room-hero { min-height: 520px; padding: 80px 9vw; display: grid; grid-template-columns: minmax(220px, 310px) minmax(0, 1fr); gap: 8vw; align-items: center; }
.ctc-book-room-hero > img { width: 100%; max-height: 420px; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,0.22)); }
.ctc-book-room-hero .ctc-section-label { color: var(--accent); }
.ctc-book-room-hero h1 { margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: 0.94; }
.ctc-book-room-hero > div > p:not(.ctc-section-label) { max-width: 720px; margin: 24px 0 28px; font-family: Georgia, serif; font-size: 22px; line-height: 1.5; }
.ctc-book-room-hero .ctc-actions { margin-top: 28px; }
.ctc-prompts-band { padding: 78px 8vw; display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 9vw; background: var(--ctc-dark); color: white; }
.ctc-prompts-band h2 { color: white; font-size: clamp(38px, 4vw, 62px); }
.ctc-prompts-band ol { margin: 0; padding-left: 28px; }
.ctc-prompts-band li { padding: 15px 0 15px 12px; border-bottom: 1px solid rgba(255,255,255,0.18); font-family: Georgia, serif; font-size: 20px; line-height: 1.45; }
.ctc-room-intro { padding: 64px 12vw; background: white; }

.ctc-article, .ctc-standard-page { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0; }
.ctc-article > header h1, .ctc-standard-page > header h1 { margin: 14px 0 0; font-size: clamp(46px, 7vw, 82px); line-height: 0.98; }
.ctc-featured-image { margin: 42px 0; }
.ctc-featured-image img { width: 100%; max-height: 620px; object-fit: cover; }
.ctc-entry-content { font-family: Georgia, serif; font-size: 19px; line-height: 1.8; }
.ctc-entry-content h2 { margin: 1.5em 0 0.5em; font-size: 38px; line-height: 1.15; }
.ctc-entry-content h3 { margin: 1.4em 0 0.4em; font-size: 28px; }
.ctc-entry-content a { color: var(--ctc-red); text-decoration: underline; }
.ctc-article-footer { margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--ctc-line); font-size: 13px; font-weight: 700; }

.ctc-comments { padding: 80px max(7vw, calc((100vw - 920px) / 2)); background: white; }
.ctc-comments-heading h2 { margin: 0 0 40px; font-size: 42px; }
.ctc-comment-list, .ctc-comment-list .children { list-style: none; }
.ctc-comment-list { margin: 0 0 60px; padding: 0; }
.ctc-comment-list .children { margin: 18px 0 0 36px; padding-left: 24px; border-left: 2px solid var(--ctc-line); }
.ctc-comment-list li.comment { margin-bottom: 22px; }
.ctc-comment-list .comment-body { padding: 24px; background: var(--ctc-paper); border-top: 3px solid var(--ctc-line); }
.ctc-comment-list .comment-author { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.ctc-comment-list .comment-author img { border-radius: 50%; }
.ctc-comment-list .comment-meta { margin: 8px 0 18px; font-size: 11px; }
.ctc-comment-list .reply a { font-size: 12px; font-weight: 800; }
.ctc-comment-signin { padding: 36px; border: 1px solid var(--ctc-line); }
.ctc-comment-signin h3 { margin-top: 0; font-size: 28px; }
.comment-form textarea { width: 100%; min-height: 180px; padding: 14px; border: 1px solid var(--ctc-line); background: var(--ctc-paper); font: inherit; }
.ctc-submit-comment { min-height: 46px; padding: 0 20px; border: 0; background: var(--ctc-red); color: white; font-weight: 800; cursor: pointer; }

.ctc-account-page { min-height: 680px; padding: 90px 8vw; display: grid; grid-template-columns: 1fr minmax(340px, 0.7fr); gap: 9vw; align-items: start; }
.ctc-account-page h1 { margin: 0; font-size: clamp(48px, 6vw, 78px); line-height: 0.98; }
.ctc-account-page > div:first-child > p:last-child { max-width: 680px; font-size: 18px; line-height: 1.7; }
.ctc-account-panel { padding: 34px; background: white; border-top: 4px solid var(--ctc-red); }
.ctc-account-panel h2 { margin: 0; font-size: 34px; }
.ctc-account-panel label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.ctc-account-panel input[type="text"], .ctc-account-panel input[type="password"] { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--ctc-line); }
.ctc-account-panel .login-submit input { min-height: 44px; padding: 0 18px; border: 0; background: var(--ctc-red); color: white; font-weight: 800; }
.ctc-register-note { margin: 24px 0; }

.ctc-author-hero { padding: 82px 9vw; display: grid; grid-template-columns: 300px 1fr; gap: 8vw; align-items: center; }
.ctc-author-hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 48% 28%; }
.ctc-author-hero h1 { margin: 0; font-size: clamp(56px, 8vw, 100px); line-height: 0.95; }
.ctc-author-hero > div > p:last-child { max-width: 700px; font-family: Georgia, serif; font-size: 23px; line-height: 1.5; }
.ctc-author-posts { background: white; }
.ctc-author-posts > article { padding: 38px 2vw; display: grid; grid-template-columns: 140px 1fr auto; gap: 3vw; align-items: start; border-bottom: 1px solid var(--ctc-line); }
.ctc-author-posts h2 { margin: 0; font-size: 34px; }
.ctc-author-posts h2 a { text-decoration: none; }

.ctc-resource-list > article { padding: 48px 2vw; display: grid; grid-template-columns: 60px 1fr; gap: 3vw; border-bottom: 1px solid var(--ctc-line); }
.ctc-resource-list > article > span { color: var(--ctc-red); font-size: 12px; font-weight: 800; }
.ctc-resource-list h2 { margin: 0; font-size: 40px; }
.ctc-resource-list p { max-width: 720px; font-size: 17px; line-height: 1.7; }
.ctc-resource-content { padding: 64px 9vw; background: white; }
.ctc-not-found { min-height: 620px; padding: 110px 8vw; }
.ctc-not-found h1 { margin: 0; font-size: clamp(52px, 7vw, 90px); }

.bbpress .bbp-forums, .bbpress .bbp-topics { border-color: var(--ctc-line); }
.bbpress .bbp-header { background: var(--ctc-dark); color: white; }
.bbpress button, .bbpress .button { background: var(--ctc-red) !important; color: white !important; border: 0 !important; border-radius: 0 !important; }

@media (max-width: 1120px) {
  .ctc-header { grid-template-columns: 1fr auto auto; gap: 18px; }
  .ctc-desktop-nav { display: none; }
  .ctc-mobile-menu { display: block; position: relative; }
  .ctc-mobile-menu summary { width: 42px; height: 42px; display: grid; place-content: center; gap: 4px; cursor: pointer; list-style: none; }
  .ctc-mobile-menu summary::-webkit-details-marker { display: none; }
  .ctc-mobile-menu summary span { width: 20px; height: 2px; background: var(--ctc-ink); }
  .ctc-mobile-menu nav { position: absolute; top: 50px; right: 0; width: min(300px, 86vw); padding: 12px; display: grid; background: var(--ctc-paper); border: 1px solid var(--ctc-line); box-shadow: 0 16px 30px rgba(0,0,0,0.16); }
  .ctc-mobile-menu nav a { padding: 12px; border-bottom: 1px solid var(--ctc-line); font-weight: 700; text-decoration: none; }
  .ctc-book-hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctc-author-posts > article { grid-template-columns: 110px 1fr; }
  .ctc-author-posts > article .ctc-text-action { grid-column: 2; justify-self: start; }
}

@media (max-width: 782px) { .admin-bar .ctc-header { top: 46px; } }

@media (max-width: 760px) {
  .ctc-header { min-height: 64px; padding: 0 18px; gap: 10px; }
  .ctc-account-action { display: none; }
  .ctc-brand strong { font-size: 15px; }
  .ctc-community-hero { min-height: 720px; }
  .ctc-cover-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
  .ctc-hero-shade { background: rgba(11,15,18,0.76); }
  .ctc-hero-copy { width: 100%; padding: 110px 24px 90px; }
  .ctc-hero-copy h1 { font-size: clamp(50px, 15vw, 72px); }
  .ctc-welcome-band, .ctc-section-heading, .ctc-craig-band, .ctc-prompts-band, .ctc-account-page { grid-template-columns: 1fr; }
  .ctc-welcome-band, .ctc-craig-band, .ctc-account-page { padding: 72px 24px; gap: 42px; }
  .ctc-discussion-section, .ctc-latest-section, .ctc-author-posts, .ctc-resource-list { padding: 72px 18px; }
  .ctc-section-heading { padding: 0 6px 38px; gap: 22px; }
  .ctc-book-hubs, .ctc-post-grid { grid-template-columns: 1fr; }
  .ctc-book-hub { grid-template-columns: 125px 1fr; grid-template-rows: auto; }
  .ctc-book-hub img { min-height: 210px; padding: 16px; }
  .ctc-craig-photo { max-height: 560px; }
  .ctc-footer { padding: 38px 24px; grid-template-columns: 1fr; align-items: start; }
  .ctc-page-hero { padding: 70px 24px; }
  .ctc-feed-layout { padding: 60px 24px; grid-template-columns: 1fr; }
  .ctc-feed-aside { position: static; }
  .ctc-hub-row { padding: 52px 24px; grid-template-columns: 34px 1fr; gap: 24px 16px; }
  .ctc-hub-row > img { grid-column: 2; width: min(220px, 68vw); }
  .ctc-hub-row > div:last-child { grid-column: 1 / -1; }
  .ctc-book-room-hero { padding: 64px 24px; grid-template-columns: 1fr; gap: 44px; }
  .ctc-book-room-hero > img { width: min(240px, 72vw); }
  .ctc-prompts-band { padding: 64px 24px; gap: 32px; }
  .ctc-article, .ctc-standard-page { width: min(100% - 40px, 920px); padding: 64px 0; }
  .ctc-comments { padding: 64px 20px; }
  .ctc-comment-list .children { margin-left: 12px; padding-left: 12px; }
  .ctc-author-hero { padding: 64px 24px; grid-template-columns: 1fr; }
  .ctc-author-hero img { width: min(280px, 80vw); }
  .ctc-author-posts > article { grid-template-columns: 1fr; }
  .ctc-author-posts > article .ctc-text-action { grid-column: auto; }
  .ctc-resource-list > article { grid-template-columns: 38px 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
