/* =========================================================
   Taildraggers.com Feature Articles  (tdc-*)
   Upload to the Beehive child theme folder (next to style.css).
   functions-snippet.php loads it on the site and in the editor.
   ========================================================= */

/* ---------- 1. Remove the thin gray borders around single posts ----------
   Scoped to single posts only. If a border survives, right-click it >
   Inspect, copy the class name, and add it to this list. */
body.single-post article.post,
body.single-post .post,
body.single-post .hentry,
body.single-post .entry,
body.single-post .entry-content,
body.single-post .post-content,
body.single-post .single-post-content,
body.single-post .card,
body.single-post .card-body,
body.single-post .site-main > article,
body.single-post .content-area .post-inner,
body.single-post .elementor-widget-theme-post-content,
body.single-post .elementor-widget-theme-post-content > .elementor-widget-container {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* ---------- 2. Tokens + article wrapper ---------- */
.tdc, .tdc-pirep, .tdc-score, .tdc-stats, .tdc-check {
  --tdc-ink: #1d2327; --tdc-muted: #5b6670; --tdc-line: #e3e7ea;
  --tdc-paper: #f6f4ee; --tdc-gold: #c8961e; --tdc-gold-dark: #8b6516;
  --tdc-red: #b8322a; --tdc-cub: #d9a400; --tdc-champ: #c4431f;
  --tdc-mono: ui-monospace, Menlo, Consolas, monospace;
}
.tdc { font-size: 19px; line-height: 1.75; color: var(--tdc-ink); max-width: 780px; margin-left: auto; margin-right: auto; }
.tdc > * + * { margin-top: 0; }
.tdc p { margin: 0 0 22px; }
.tdc a { color: var(--tdc-gold-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.tdc a:hover { color: var(--tdc-red); }
.tdc h2.wp-block-heading { font-size: 29px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; margin: 46px 0 18px; clear: both; }
.tdc::after { content: ""; display: block; clear: both; }

/* Section kicker: small gold label paragraph above an H2 */
.tdc p.tdc-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tdc-gold-dark); margin: 46px 0 6px; clear: both; }
.tdc p.tdc-kicker + h2.wp-block-heading { margin-top: 0; }

/* Byline: first <strong> becomes a dark tag */
.tdc p.tdc-byline { font-size: 14px; color: var(--tdc-muted); border-bottom: 1px solid var(--tdc-line); padding: 12px 0 14px; margin-bottom: 26px; }
.tdc p.tdc-byline strong:first-child { background: var(--tdc-ink); color: #fff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; margin-right: 10px; }

/* Intro + drop cap */
.tdc p.tdc-intro { font-size: 22px; line-height: 1.6; }
.tdc p.tdc-drop::first-letter { float: left; font-size: 78px; line-height: .82; font-weight: 800; margin: 8px 12px 0 0; color: var(--tdc-gold); }

/* ---------- 3. Images ---------- */
.tdc figure.wp-block-image { margin: 0 0 28px; }
.tdc figure.wp-block-image img { width: 100%; height: auto; display: block; border-radius: 8px; }
.tdc .wp-block-image figcaption, .tdc .wp-element-caption { font-size: 14px; line-height: 1.5; color: var(--tdc-muted); text-align: left; margin: 9px 0 0; padding-left: 12px; border-left: 3px solid var(--tdc-gold); }
.tdc figure.tdc-hero img { border-radius: 10px; }
.tdc figure.tdc-right { float: right; width: 46%; margin: 6px 0 20px 30px; }
.tdc figure.tdc-left  { float: left;  width: 46%; margin: 6px 30px 20px 0; }
.tdc figure.tdc-full  { clear: both; margin: 34px 0; }

/* ---------- 4. Stat strip (Columns block) ---------- */
.wp-block-columns.tdc-stats { clear: both; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1px !important; background: var(--tdc-line); border: 1px solid var(--tdc-line); border-radius: 10px; overflow: hidden; margin: 30px 0 !important; padding: 0 !important; }
.tdc-stats > .wp-block-column { background: #fff; padding: 16px 14px; text-align: center; margin: 0 !important; flex-basis: auto !important; }
.tdc-stats .wp-block-column p { margin: 0 !important; font-size: 13px; line-height: 1.35; color: var(--tdc-muted); }
.tdc-stats .wp-block-column p strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--tdc-champ); margin-bottom: 6px; }

/* ---------- 5. PIREP card (Group block) ---------- */
.wp-block-group.tdc-pirep { border: 1px solid var(--tdc-line); border-radius: 10px; padding: 16px 18px 2px; background: #fff; margin: 0 0 14px !important; overflow: hidden; }
.tdc-pirep h3.wp-block-heading { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 0 0 8px !important; }
.tdc-pirep h3 code { font-family: var(--tdc-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; background: var(--tdc-paper); color: var(--tdc-gold-dark); border: 1px solid #e6dcc3; padding: 3px 7px; border-radius: 4px; margin-right: 10px; vertical-align: 3px; white-space: nowrap; }
.tdc-pirep p { font-size: 17.5px; margin: 0 0 14px !important; }

/* ---------- 6. Scorecard (Table block) ---------- */
.wp-block-table.tdc-score { clear: both; display: flex; flex-direction: column; margin: 30px 0; border: 1px solid var(--tdc-line); border-radius: 10px; overflow: hidden; }
.tdc-score .wp-element-caption { order: -1; margin: 0; padding: 14px 16px; border: 0; background: var(--tdc-ink); color: #fff; font-weight: 800; font-size: 18px; }
.tdc-score table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; margin: 0; border: 0; }
.tdc-score th, .tdc-score td { padding: 11px 14px; border: 0; border-top: 1px solid var(--tdc-line); text-align: left; vertical-align: top; }
.tdc-score thead { border: 0; }
.tdc-score thead th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tdc-muted); background: #fafafa; border-top: 0; }
.tdc-score tbody th { font-weight: 700; }
.tdc-score tbody td strong { font-weight: 700; }
.tdc-score mark { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; white-space: nowrap; background: var(--tdc-champ) !important; color: #fff !important; }
.tdc-score mark.cub { background: var(--tdc-cub) !important; color: #2b2100 !important; }
.tdc-score tfoot { border: 0; }
.tdc-score tfoot td { background: var(--tdc-paper); font-weight: 700; font-size: 15.5px; }

/* ---------- 7. Pullquote ---------- */
.wp-block-pullquote.tdc-pull { clear: both; margin: 34px 0; padding: 4px 0 4px 26px; border: 0; border-left: 6px solid var(--tdc-gold); text-align: left; }
.tdc-pull blockquote { margin: 0; padding: 0; border: 0; }
.tdc-pull blockquote p { font-size: 26px !important; line-height: 1.4; font-weight: 750; letter-spacing: -.01em; margin: 0 !important; font-style: normal; }
.tdc-pull cite { display: block; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tdc-muted); margin-top: 10px; }

/* ---------- 8. Run-up checklist (Group block) ---------- */
.wp-block-group.tdc-check { clear: both; margin: 40px 0 30px !important; background: var(--tdc-paper); border: 2px solid var(--tdc-ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--tdc-ink); padding: 0 22px 8px; overflow: hidden; }
.tdc-check > h2.wp-block-heading { background: var(--tdc-ink); color: #fff; margin: 0 -22px 0 !important; padding: 14px 22px; font-size: 24px; }
.tdc-check p.tdc-form { font-family: var(--tdc-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--tdc-ink); color: rgba(255,255,255,.7); margin: 0 -22px 16px !important; padding: 0 22px 12px; }
.tdc-check > p:not(.tdc-form) { font-size: 16px; color: var(--tdc-muted); margin: 0 0 14px !important; }
.wp-block-group.tdc-item { display: grid !important; grid-template-columns: 52px 1fr; gap: 14px; padding: 14px 0; margin: 0 !important; border-top: 1px dashed #cfc6ae; }
.tdc-item > * { margin: 0 !important; }
.tdc-item p.tdc-letter { width: 52px; height: 52px; border-radius: 8px; background: var(--tdc-ink); color: var(--tdc-cub); font-size: 30px; font-weight: 900; line-height: 52px; text-align: center; }
.tdc-item p.tdc-line { font-family: var(--tdc-mono); font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: flex; gap: 8px; align-items: baseline; margin: 0 0 4px !important; }
.tdc-item p.tdc-line::after { content: ""; flex: 1; order: 1; border-bottom: 2px dotted #b9ae92; transform: translateY(-4px); }
.tdc-item p.tdc-line em { font-style: normal; order: 2; color: var(--tdc-champ); }
.tdc-item p { font-size: 17px; line-height: 1.6; margin: 0 !important; }
.tdc p.tdc-closing { text-align: center; font-family: var(--tdc-mono); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tdc p.tdc-sign { text-align: center; font-style: italic; color: var(--tdc-muted); }

/* ---------- 9. Sources (Details block) ---------- */
.tdc details.wp-block-details { clear: both; border-top: 1px solid var(--tdc-line); margin-top: 34px; padding-top: 14px; font-size: 15px; }
.tdc details summary { cursor: pointer; font-weight: 700; }
.tdc details ul { margin: 12px 0 0; padding-left: 20px; line-height: 1.6; }

/* ---------- 10. Phones ---------- */
@media (max-width: 640px) {
  .tdc { font-size: 18px; }
  .tdc p.tdc-intro { font-size: 20px; }
  .tdc h2.wp-block-heading { font-size: 25px; }
  .tdc figure.tdc-right, .tdc figure.tdc-left { float: none; width: 100%; margin: 22px 0; }
  .wp-block-columns.tdc-stats { grid-template-columns: repeat(2, 1fr); }
  .tdc-pull blockquote p { font-size: 22px !important; }
  .tdc-score th, .tdc-score td { padding: 9px 8px; font-size: 14px; }
  .tdc-score .wp-element-caption { font-size: 16px; padding: 12px; }
  .tdc-score thead th:last-child, .tdc-score tbody td:last-child { display: none; }
  .wp-block-group.tdc-check { box-shadow: 4px 4px 0 var(--tdc-ink); padding: 0 16px 4px; }
  .tdc-check > h2.wp-block-heading, .tdc-check p.tdc-form { margin-left: -16px !important; margin-right: -16px !important; padding-left: 16px; padding-right: 16px; }
  .wp-block-group.tdc-item { grid-template-columns: 42px 1fr; }
  .tdc-item p.tdc-letter { width: 42px; height: 42px; line-height: 42px; font-size: 24px; }
}

/* ---------- Child theme 4.25.0: win over the theme's general post styles ---------- */
/* The theme colors every link in post content blue (body.td-look .entry-content a…); keep the article's gold links. */
body.td-look .entry-content .tdc a:not(.button):not(.btn),
body.td-look .tdc a:not(.button):not(.btn) { color: var(--tdc-gold-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
body.td-look .entry-content .tdc a:not(.button):not(.btn):hover,
body.td-look .tdc a:not(.button):not(.btn):hover { color: var(--tdc-red); }
/* The theme sets post text to 15px; articles use their own size. */
body.td-look .entry-content .tdc { font-size: 19px; line-height: 1.75; }
/* The theme gives every blockquote a yellow bar, gray box and padding; the article's pull quote has its own look. */
body.td-look .tdc-pull blockquote { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }

/* ---------- Child theme 4.25.1: Group blocks inside an extra wrapper ----------
   This theme wraps each Group block's content in .wp-block-group__inner-container, so the checklist row
   (letter | text) became one box squeezed into the 52px letter column. Let that wrapper step aside so the
   letter and text sit side by side, and repeat the "direct child" rules for the wrapped version. */
.tdc .wp-block-group__inner-container,
.tdc-check .wp-block-group__inner-container,
.tdc-pirep .wp-block-group__inner-container,
.tdc-item .wp-block-group__inner-container { display: contents; }
.wp-block-group.tdc-item .tdc-item-text { min-width: 0; }
.tdc-item > .wp-block-group__inner-container > * { margin: 0 !important; }
.tdc-check > .wp-block-group__inner-container > h2.wp-block-heading { background: var(--tdc-ink); color: #fff; margin: 0 -22px 0 !important; padding: 14px 22px; font-size: 24px; }
.tdc-check > .wp-block-group__inner-container > p:not(.tdc-form) { font-size: 16px; color: var(--tdc-muted); margin: 0 0 14px !important; }
.tdc-check p.tdc-form { display: block; }
@media (max-width: 640px) {
  .tdc-check > .wp-block-group__inner-container > h2.wp-block-heading { margin-left: -16px !important; margin-right: -16px !important; padding-left: 16px; padding-right: 16px; }
}
/* The checklist's item lines are short labels; keep them on one line beside the letter. */
.tdc-item p.tdc-line { flex-wrap: nowrap; }
