/*
Theme Name:   Newspaper Child
Theme URI:    https://twistyapps.com
Description:  TwistyApps child theme of Newspaper 12.x. Holds the site's reusable
              article components (reading-time, prompt boxes, tool cards, FAQ
              accordion), typography overrides, and template tweaks so the parent
              Newspaper theme can update without losing customizations.
Author:       TwistyApps
Template:     Newspaper
Version:      1.0.0
Text Domain:  newspaper-child
*/

/* ============================================================
   Brand typography (single source of truth)
   ------------------------------------------------------------
   Newspaper 12's parent stylesheet sets the body font to a
   Verdana/system stack. TwistyApps uses Roboto Condensed
   site-wide; the font file is loaded by the Theme Panel's
   Google Fonts, and the panel-generated CSS already applies it
   to headings and block titles. The parent leaves body copy,
   post/page content and captions on the system stack, so we
   restore the brand font for those here.

   Change --twisty-font-sans to restyle the brand font site-wide.
   This stylesheet is enqueued after the parent framework (see
   functions.php), so these element rules win the cascade without
   !important; only the inline-style cleanup below needs it.
   ============================================================ */
:root {
  --twisty-font-sans: 'Roboto Condensed', Verdana, Geneva, sans-serif;
}

body,
p,
.td-post-content,
.td-page-content,
.wp-caption-text,
.wp-caption-dd,
figcaption,
.wp-block-image figcaption,
.wp-block-gallery figcaption {
  font-family: var(--twisty-font-sans);
}

/* Force the brand font onto legacy posts that carry inline Verdana styles. */
.td-post-content [style*="font-family: Verdana"],
.td-post-content [style*="font-family: verdana"],
.td-page-content [style*="font-family: Verdana"],
.td-page-content [style*="font-family: verdana"] {
  font-family: var(--twisty-font-sans) !important;
}

/* TwistyApps reusable article components. */
.td-post-content .twisty-reading-time,
.td-page-content .twisty-reading-time {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 4px 0 20px;
  padding: 7px 11px;
}
.td-post-content .twisty-prompt-box,
.td-page-content .twisty-prompt-box {
  background: #f7f8fa;
  border: 1px solid #d9dde3;
  border-left: 4px solid #d85b2a;
  color: #1f2933;
  font-size: 16px;
  line-height: 1.65;
  margin: 22px 0;
  padding: 16px 18px;
  text-align: left;
  text-transform: none;
}
.td-post-content .twisty-prompt-box:before,
.td-page-content .twisty-prompt-box:before {
  color: #9a3412;
  content: "\1F4A1  Prompt to try";
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.td-post-content .twisty-prompt-box p,
.td-page-content .twisty-prompt-box p {
  margin: 0 0 12px;
}
.td-post-content .twisty-prompt-box p:last-child,
.td-post-content .twisty-prompt-box ul:last-child,
.td-page-content .twisty-prompt-box p:last-child,
.td-page-content .twisty-prompt-box ul:last-child {
  margin-bottom: 0;
}
.td-post-content .twisty-prompt-box ul,
.td-page-content .twisty-prompt-box ul {
  margin: 8px 0 0 20px;
}
.td-post-content .twisty-tool-grid,
.td-page-content .twisty-tool-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 30px;
}
.td-post-content .twisty-tool-card,
.td-page-content .twisty-tool-card {
  background: #ffffff;
  border: 1px solid #d9dde3;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.td-post-content .twisty-tool-card h3,
.td-page-content .twisty-tool-card h3 {
  background: #111827;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
  padding: 14px 16px;
}
.td-post-content .twisty-tool-card-body,
.td-page-content .twisty-tool-card-body {
  padding: 16px;
}
.td-post-content .twisty-tool-fit,
.td-page-content .twisty-tool-fit {
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
  padding: 9px 10px;
}
.td-post-content .twisty-tool-columns,
.td-page-content .twisty-tool-columns {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.td-post-content .twisty-tool-panel,
.td-page-content .twisty-tool-panel {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.td-post-content .twisty-tool-panel-title,
.td-page-content .twisty-tool-panel-title {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-size: 15px;
  letter-spacing: .02em;
  margin: 0;
  padding: 9px 10px;
  text-transform: uppercase;
}
.td-post-content .twisty-tool-list,
.td-page-content .twisty-tool-list {
  margin: 0;
  padding: 0;
}
.td-post-content .twisty-tool-item,
.td-page-content .twisty-tool-item {
  border-bottom: 1px solid #edf0f3;
  color: #374151;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  padding: 10px;
}
.td-post-content .twisty-tool-item:last-child,
.td-page-content .twisty-tool-item:last-child {
  border-bottom: 0;
}
.td-post-content #rank-math-faq .rank-math-list,
.td-page-content #rank-math-faq .rank-math-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
.td-post-content #rank-math-faq .rank-math-list-item,
.td-post-content #rank-math-faq .rank-math-faq-item,
.td-page-content #rank-math-faq .rank-math-list-item,
.td-page-content #rank-math-faq .rank-math-faq-item {
  border: 1px solid #d9dde3;
  border-radius: 6px;
  margin: 0 0 10px;
  overflow: hidden;
}
.td-post-content #rank-math-faq .rank-math-question,
.td-page-content #rank-math-faq .rank-math-question {
  background: #f7f8fa;
  color: #111827;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
  padding: 14px 44px 14px 16px;
  position: relative;
}
.td-post-content #rank-math-faq .rank-math-question:after,
.td-page-content #rank-math-faq .rank-math-question:after {
  content: "+";
  font-size: 24px;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 12px;
}
.td-post-content #rank-math-faq .rank-math-question.is-open:after,
.td-page-content #rank-math-faq .rank-math-question.is-open:after {
  content: "-";
}
.td-post-content #rank-math-faq .rank-math-answer,
.td-page-content #rank-math-faq .rank-math-answer {
  padding: 14px 16px;
}
.td-post-content #rank-math-faq.twisty-faq-ready .rank-math-answer,
.td-page-content #rank-math-faq.twisty-faq-ready .rank-math-answer {
  display: none;
}
.td-post-content #rank-math-faq.twisty-faq-ready .rank-math-answer.is-open,
.td-page-content #rank-math-faq.twisty-faq-ready .rank-math-answer.is-open {
  display: block;
}
@media (max-width: 767px) {
  .td-post-content .twisty-tool-grid,
  .td-post-content .twisty-tool-columns,
  .td-page-content .twisty-tool-grid,
  .td-page-content .twisty-tool-columns {
    grid-template-columns: 1fr;
  }
}

/* TwistyApps single post readability and meta layout. */
.single-post .entry-crumbs {
  color: #8b95a1;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
}
.single-post .entry-crumbs a {
  color: #7b8490;
}
.single-post .entry-crumbs a:hover {
  color: #d96527;
}
.single-post .td-post-title .entry-title {
  margin-bottom: 12px;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 14px;
  gap: 10px 16px;
  line-height: 1.4;
  margin: 0 0 22px;
  padding: 6px 0 18px;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info:before,
.single-post .td-post-header > .td-post-title > .td-module-meta-info:after {
  display: none;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .td-post-author-name,
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .td-post-date,
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .td-post-views,
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .td-post-comments,
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .twisty-post-reading-time {
  color: #667085;
  float: none;
  margin: 0;
  position: static;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .td-post-author-name {
  align-items: center;
  display: inline-flex;
  font-weight: 400;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info .td-post-author-name .td-author-by {
  margin-right: 4px;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info .td-post-author-name a {
  color: #111827;
  font-weight: 700;
  margin-right: 0;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info .td-author-line {
  display: none;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .td-post-date,
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .td-post-views,
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .td-post-comments a,
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .twisty-post-reading-time {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .twisty-post-reading-time:before {
  color: #98a2b3;
  content: "\23F1";
  font-size: 14px;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info > .td-post-views {
  margin-right: 0;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info .td-post-views span,
.single-post .td-post-header > .td-post-title > .td-module-meta-info .td-post-comments a {
  color: #667085;
  line-height: 1.4;
}
.single-post .td-post-header > .td-post-title > .td-module-meta-info .td-icon-views,
.single-post .td-post-header > .td-post-title > .td-module-meta-info .td-icon-comments {
  color: #98a2b3;
  font-size: 13px;
  line-height: 1;
  margin-right: 0;
}
.single-post .td-post-content,
.single-post .td-post-content p,
.single-post .td-post-content li {
  font-size: 16px;
  line-height: 1.75;
}
.single-post .td-post-sharing-top {
  margin: 0 0 22px;
}
.single-post .td-social-sharing-button {
  border-radius: 4px;
}
.single-post .td-social-googleplus {
  display: none !important;
}
@media (max-width: 767px) {
  .single-post .td-post-header > .td-post-title > .td-module-meta-info {
    gap: 8px 12px;
    padding-bottom: 14px;
  }
  .single-post .td-post-content,
  .single-post .td-post-content p,
  .single-post .td-post-content li {
    font-size: 16px;
    line-height: 1.7;
  }
}
