/*
Theme Name:  The Chicago Independent
Theme URI:   https://tcindependent.wpenginepowered.com
Description: Themeco Pro child theme for The Chicago Independent. Layouts are built in Cornerstone; colors, fonts and base type live in Global Colors, Global Fonts and Theme Options. This file only holds the few rules Cornerstone has no control for (form fields and play circles).
Author:      Yellowbox Agency
Template:    pro
Version:     1.7.0
Text Domain: tci
*/

/* Form fields (Raw Content elements). Cornerstone has no plain input element.
   Scoped under .x-root so they win over Pro's base input[type] rules. */
.x-root form.tci-form { margin: 0; }
.x-root form.tci-form::before, .x-root form.tci-form::after { display: none; }
.x-root .tci-label { display: flex; flex-direction: column; gap: 6px; margin: 0; font: 600 13px/1.2 "Archivo", sans-serif; color: #13294B; }
.x-root .tci-input,
.x-root .tci-select,
.x-root .tci-textarea {
	box-sizing: border-box; width: 100%; max-width: none; height: 48px; margin: 0; padding: 0 14px;
	border: 1px solid #9FB3C8; border-radius: 0; box-shadow: none; background: #FFFFFF;
	font: 400 16px/1.2 "Archivo", sans-serif; color: #1A1F2B;
}
.x-root .tci-select { height: 44px; padding: 0 10px; font-size: 15px; }
.x-root .tci-textarea { height: auto; padding: 12px; font-size: 15px; line-height: 1.5; resize: vertical; }
.x-root .tci-input:focus, .x-root .tci-select:focus, .x-root .tci-textarea:focus { outline: 2px solid #13294B; outline-offset: 0; border-color: #13294B; box-shadow: none; }
.x-root .tci-input--hero { height: 56px; border: 2px solid #13294B; padding: 0 16px; font-size: 18px; }
.x-root .tci-input--bare { border: 0; }
.x-root .tci-input--mono { height: 46px; background: #F3F7FA; font: 400 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.x-root .tci-check { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; font: 400 15px/1.4 "Archivo", sans-serif; color: #1A1F2B; }
.x-root .tci-check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: #13294B; }
.x-root .tci-check--card { min-height: 44px; padding: 0 14px; background: #FFFFFF; border: 1px solid #D9E2EA; font-weight: 600; color: #13294B; }

/* Round play buttons (the design's only circles besides avatars). */
.tci-play { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }


/* ---------------------------------------------------------------- Accessibility */
/* Skip link: hidden until focused. */
.tci-skip { position: absolute; left: 12px; top: -60px; z-index: 100000; padding: 12px 18px; background: #13294B;
  color: #FFFFFF; font: 700 15px/1 "Archivo", sans-serif; text-decoration: none; }
.tci-skip:focus { top: 12px; }
#main:focus { outline: none; }

/* Focus ring that shows on every background: white inner ring, navy outer ring. */
.x-root a:focus-visible, .x-root button:focus-visible, .x-root input:focus-visible, .x-root select:focus-visible,
.x-root textarea:focus-visible, .x-root summary:focus-visible, .x-root [tabindex]:focus-visible {
  outline: 3px solid transparent !important; outline-offset: 2px;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px #13294B !important; }

@media (prefers-reduced-motion: reduce) { .x-root *, .x-root *::before, .x-root *::after { transition: none !important;
  animation: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- Search filters */
.x-root .tci-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.x-root .tci-fieldset legend { padding: 0 0 8px; font: 800 15px/normal "Archivo", sans-serif; color: #13294B; }
.x-root .tci-label--legend { font-size: 15px; font-weight: 800; }
.x-root .tci-label--inline { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: #1A1F2B; }
.x-root .tci-select--s { height: 40px; padding: 0 8px; font-size: 14px; width: auto; }
.x-root .tci-apply { height: 44px; padding: 0 18px; background: #13294B; color: #FFFFFF; border: 0; cursor: pointer;
  font: 700 14px/1 "Archivo", sans-serif; }
.x-root .tci-apply:hover { background: #C8102E; }

/* ---------------------------------------------------------------- Players */
.x-root .tci-audio { background: #FFFFFF; padding: 12px 14px; }
.x-root .tci-audio .mejs-container, .x-root .tci-audio .mejs-container .mejs-controls { background: #FFFFFF; }
.x-root .tci-audio .mejs-button > button { filter: invert(14%) sepia(39%) saturate(2000%) hue-rotate(196deg); }
.x-root .tci-audio .mejs-time { color: #4A5568; font: 400 12px "Archivo", sans-serif; }
.x-root .tci-audio .mejs-time-total { background: #D9E2EA; }
.x-root .tci-audio .mejs-time-loaded { background: #C5D1DC; }
.x-root .tci-audio .mejs-time-current, .x-root .tci-audio .mejs-horizontal-volume-current { background: #13294B; }
.x-root .tci-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0B1A33; }
.x-root .tci-embed iframe, .x-root .tci-embed .wp-video, .x-root .tci-embed video { position: absolute; inset: 0;
  width: 100% !important; height: 100% !important; border: 0; }

/* Transcript disclosure */
.x-root .tci-details summary { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; cursor: pointer;
  border: 2px solid #13294B; color: #13294B; font: 700 14px/1 "Archivo", sans-serif; list-style: none; }
.x-root .tci-details summary::-webkit-details-marker { display: none; }
.x-root .tci-details[open] summary { background: #13294B; color: #FFFFFF; }
.x-root .tci-details__body { margin-top: 16px; font: 400 17px/1.65 "Source Serif 4", serif; color: #1A1F2B; }

/* ---------------------------------------------------------------- Podcast player (assets/podcastplayer) */
.podcastplayer { --pp-bg: #13294B; --pp-tint: #0D1E38; --pp-accent: #C8102E; --pp-track: rgba(255, 255, 255, .25);
  --pp-dim: #C9D6E5; --pp-z: 99990; font-family: "Archivo", sans-serif; }
.podcastplayer .pp-title a:focus-visible, .podcastplayer button:focus-visible, .podcastplayer [role=slider]:focus-visible {
  outline: 2px solid #FFFFFF !important; outline-offset: 2px; box-shadow: none !important; }
/* The Listen button shows pause while its episode is playing. */
.x-root .tci-listen.is-playing [data-x-icon-s]::before { content: "\f04c"; }
.x-root .tci-listen.is-active { box-shadow: inset 0 0 0 2px currentColor; }

/* ---------------------------------------------------------------- Forms posted to WordPress */
.x-root form.tci-form input[name="website"], .x-root form.tci-form label:has(input[name="website"]) {
  position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.x-root .tci-check--pref { align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid #D9E2EA;
  cursor: pointer; min-height: 0; }
.x-root .tci-check--pref input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; }
.x-root .tci-check--pref span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.x-root .tci-check--pref strong { font-weight: 800; color: #13294B; }
.x-root .tci-check--pref small { font-size: 14px; color: #4A5568; }

/* ---------------------------------------------------------------- Comments (Cornerstone Comment List + Form) */
.x-root .tci-comments ol, .x-root .tci-comments ul { list-style: none; margin: 0; padding: 0; }
.x-root .tci-comments .x-comments-list li.comment { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 0; padding: 16px 0;
  border-bottom: 1px solid #D9E2EA; }
.x-root .tci-comments .x-comments-list .children { flex: 1 0 100%; margin: 12px 0 0 52px; }
.x-root .tci-comments .x-comments-list .children li.comment { border-bottom: 0; border-top: 1px solid #D9E2EA; padding-bottom: 0; }
.x-root .tci-comments .x-comment-img { flex: 0 0 40px; width: 40px; float: none; margin: 0; }
.x-root .tci-comments .x-comment-img .avatar-wrap { display: block; padding: 0; border: 0; background: none; box-shadow: none; }
.x-root .tci-comments .x-comment-img img { display: block; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  background: #DCE6EE; box-shadow: none; }
.x-root .tci-comments article.comment { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; }
.x-root .tci-comments article.comment::before, .x-root .tci-comments article.comment::after { display: none; }
.x-root .tci-comments .x-comment-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 6px;
  padding: 0; border: 0; }
.x-root .tci-comments .x-comment-author { font: 700 15px/1.3 "Archivo", sans-serif; color: #13294B; letter-spacing: 0;
  text-transform: none; }
.x-root .tci-comments .x-comment-author-icon { display: none; }
.x-root .tci-comments .x-comment-time { font: 400 13px/1.3 "Archivo", sans-serif; color: #4A5568; letter-spacing: 0;
  text-transform: none; text-decoration: none; }
.x-root .tci-comments .x-comment-content { margin: 0; font: 400 16px/1.55 "Archivo", sans-serif; color: #1A1F2B; }
.x-root .tci-comments .x-comment-content p { margin: 0 0 8px; }
.x-root .tci-comments .x-reply { margin: 0; }
.x-root .tci-comments .x-reply a { font: 600 14px/1.3 "Archivo", sans-serif; color: #13294B; text-decoration: underline; }
.x-root .tci-comments .x-reply a i, .x-root .tci-comments .x-reply a span[data-x-icon-s] { display: none; }
.x-root .tci-comments .comment-reply-title { margin: 0; font: 700 14px/1.3 "Archivo", sans-serif; }
.x-root .tci-comments .comment-form { margin: 0; }
.x-root .tci-comments .comment-form p { margin: 0 0 12px; }
.x-root .tci-comments textarea { display: block; width: 100%; height: 96px; min-height: 96px; padding: 12px 14px; margin: 0;
  border: 1px solid #C5D1DC; border-radius: 0; font: 400 16px/1.5 "Archivo", sans-serif; color: #1A1F2B; background: #FFFFFF;
  box-shadow: none; resize: vertical; }
.x-root .tci-comments label { display: block; margin-bottom: 6px; font: 600 14px/1.3 "Archivo", sans-serif; color: #1A1F2B; }
.x-root .tci-comments input[type="submit"], .x-root .tci-comments button[type="submit"] { height: 44px; padding: 0 20px; border: 0;
  border-radius: 0; background: #13294B; color: #FFFFFF; font: 700 15px/1 "Archivo", sans-serif; cursor: pointer;
  text-shadow: none; box-shadow: none; }
.x-root .tci-comments input[type="submit"]:hover, .x-root .tci-comments button[type="submit"]:hover { background: #C8102E; }
.x-root .tci-comments .must-log-in { margin: 0; font: 400 15px/1.5 "Archivo", sans-serif; color: #4A5568; }
.x-root .tci-comments .must-log-in a { font-weight: 700; color: #13294B; }

/* Private feed link: wraps instead of being cut off on narrow screens. */
.x-root .tci-feed-url { display: block; min-height: 46px; padding: 12px; border: 1px solid #C5D1DC; background: #F3F7FA;
  color: #1A1F2B; font: 400 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere;
  word-break: break-all; border-radius: 0; }

/* Long words and links wrap instead of running off narrow screens. */
.x-root .x-text, .x-root .x-the-content, .x-root .tci-comments .x-comment-content, .x-root .tci-check { overflow-wrap: break-word; }
.x-root .tci-comments .x-comment-content { overflow-wrap: anywhere; }


/* ---------------------------------------------------------------- Paywall prompt (inc/paywall.php) */
.x-root .tci-paywall-fade { height: 72px; margin-top: -72px; position: relative; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0), #FFFFFF); }
.x-root .tci-paywall { margin: 28px 0 8px; padding: 32px 28px; background: #FFFFFF; border: 1px solid #D9E2EA;
  border-top: 6px solid #C8102E; font-family: "Archivo", sans-serif; color: #1A1F2B; }
.x-root .tci-paywall > * { margin: 0 0 14px; }
.x-root .tci-paywall > *:last-child { margin-bottom: 0; }
.x-root .tci-paywall__kicker { font: 700 13px/1.2 "Archivo", sans-serif; letter-spacing: .14em; color: #C8102E; }
.x-root .tci-paywall__title { font: 900 30px/1.15 "Archivo", sans-serif; color: #13294B; letter-spacing: 0; text-transform: none; }
.x-root .tci-paywall__text { font: 400 18px/1.55 "Source Serif 4", serif; color: #4A5568; }
.x-root .tci-paywall__error { padding: 12px 14px; background: #FDECEE; border-left: 4px solid #C8102E; font: 600 16px/1.45 "Archivo", sans-serif; color: #8A0B20; }
.x-root .tci-paywall__form { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.x-root .tci-paywall__form .tci-label { font-size: 16px; color: #1A1F2B; }
.x-root .tci-paywall__form .tci-input { height: 52px; font-size: 18px; }
.x-root .tci-paywall__hint { font: 400 15px/1.4 "Archivo", sans-serif; color: #4A5568; }
.x-root .tci-paywall .tci-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.x-root .tci-paywall__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.x-root .tci-paywall__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border: 2px solid #13294B; background: #FFFFFF; color: #13294B; font: 700 17px/1.2 "Archivo", sans-serif; text-decoration: none;
  cursor: pointer; border-radius: 0; text-align: center; }
.x-root .tci-paywall__btn--primary { border-color: #C8102E; background: #C8102E; color: #FFFFFF; }
.x-root .tci-paywall__btn:hover { background: #13294B; border-color: #13294B; color: #FFFFFF; }
.x-root .tci-paywall__links { font: 400 16px/1.6 "Archivo", sans-serif; color: #4A5568; }
.x-root .tci-paywall__links a { font-weight: 700; color: #13294B; }
@media (max-width: 767px) { .x-root .tci-paywall { padding: 24px 18px; } .x-root .tci-paywall__title { font-size: 25px; }
  .x-root .tci-paywall__btn { width: 100%; } }

/* ---------------------------------------------------------------- Round 1 fixes (inc/fixes.php) */
/* Issue 18: Subscribe billing toggle. The selected period is the filled (red) button; the other is outlined. */
html body .x-root .tci-billing-btn { background-color: transparent !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
html body .x-root .tci-billing-btn .x-anchor-text-primary { color: #FFFFFF !important; }
html body .x-root .tci-billing-btn.is-active { background-color: #C8102E !important; box-shadow: none; }
html body .x-root .tci-billing-btn.is-active .x-anchor-text-primary { color: #FFFFFF !important; }

/* Issue 15: phones. Form text 17px; checkboxes and article tag chips get 44px tap areas. */
@media (max-width: 767px) {
  .x-root .tci-label, .x-root .tci-hint, .x-root .tci-check, .x-root .tci-input, .x-root .tci-select, .x-root .tci-textarea,
  .tci-form-page .woocommerce form .form-row label, .tci-form-page .woocommerce form .input-text, .tci-form-page .woocommerce table,
  .tci-form-page .woocommerce-checkout-review-order, .tci-form-page .woocommerce p { font-size: 17px !important; line-height: 1.45; }
  .x-root .tci-check { min-height: 44px; }
  .x-root .tci-check input[type="checkbox"], .x-root .tci-check input[type="radio"] { width: 24px; height: 24px; }
  .x-root a.x-anchor[href*="/tag/"] { min-height: 44px; }
}
.x-root .tci-check { cursor: pointer; }
