/* Styles for the GLOBAL dynamic shortcodes (breadcrumb, byline, author box,
   related, share, featured, more-links). Kept separate from any single design so
   the shortcodes are styled wherever they are used. Built to dist/styles/shortcodes.css
   (scoped under .tw-single) and enqueued on every post using the Tailwind template. */

:root {
  --sc-main: #51adb9;
  --sc-accent: #f8674c;
  --sc-ink: #14343a;
  --sc-muted: #8fa3a8;
  --sc-line: #e4ecee;
  --sc-tint: #eef8f9;
}

/* Breadcrumb — Home / category chain / POST TITLE (light, for the dark hero) */
.tw-single .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; font-family: 'Poppins', sans-serif; font-size: 12.5px; line-height: 1.6; color: #b9d2d5; }
.tw-single .breadcrumb a { color: #b9d2d5; }
.tw-single .breadcrumb a:hover { color: #fff; }
.tw-single .breadcrumb .sep { color: #5f7f85; }
.tw-single .breadcrumb .current { color: #7fd0da; font-weight: 500; }

/* Byline (author + reviewer + date + reading time), in the hero */
.tw-single .byline { position: relative; margin: 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; border-top: 1px solid rgba(255,255,255,.14); }
.tw-single .byline-author { display: flex; align-items: center; gap: 14px; font-family: 'Poppins', sans-serif; font-size: 13.5px; line-height: 21px; }
.tw-single .byline-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 52px; }
.tw-single .byline-author .name { color: #fff; }
.tw-single .byline-author .label { color: #8fa8ad; }
.tw-single .byline-author .name a { color: #fff; font-weight: 600; }
.tw-single .byline-author .review a { color: #7fd0da; font-weight: 500; }
.tw-single .post-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; font-family: 'Poppins', sans-serif; font-size: 13px; color: #c3d6d9; }
.tw-single .post-meta div { display: flex; align-items: center; gap: 8px; }
.tw-single .post-meta strong { color: #fff; font-weight: 400; }

/* Featured image */
.tw-single .featured { margin: 0 0 32px; }
.tw-single .featured .frame { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; }
.tw-single .featured img { width: 100%; height: 100%; object-fit: cover; }
.tw-single figcaption { display: none; }

/* More links */
.tw-single .more-links { border: 1px solid var(--sc-line); border-radius: 16px; padding: 24px 26px; margin: 0 0 44px; }
.tw-single .more-links .kicker { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sc-main); margin-bottom: 16px; }
.tw-single .more-links .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 14px 26px; }
.tw-single .more-links a { display: flex; gap: 10px; font-family: 'Poppins', sans-serif; font-size: 15.5px; line-height: 24px; font-weight: 500; color: var(--sc-ink); }
.tw-single .more-links a::before { content: "\2192"; color: var(--sc-accent); }
.tw-single .more-links a:hover { color: var(--sc-accent); }

/* Share row */
.tw-single .share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 26px; font-family: 'Poppins', sans-serif; }
.tw-single .share-row p { margin: 0; font-size: 13.5px; color: var(--sc-muted); }
.tw-single .share-row p strong { color: var(--sc-ink); font-weight: 600; }
.tw-single .share { display: flex; align-items: center; gap: 7px; }
.tw-single .share .label { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a9babe; margin-right: 2px; }
.tw-single .share a { width: 30px; height: 30px; border-radius: 50%; background: var(--sc-tint); display: flex; align-items: center; justify-content: center; color: #2b8996; }
.tw-single .share a.copy { background: var(--sc-accent); color: #fff; }

/* Author box */
.tw-single .author-box { display: flex; flex-wrap: wrap; gap: 22px; background: #f7fafb; border-radius: 16px; padding: 26px 28px; margin: 0 0 40px; }
.tw-single .author-box img { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.tw-single .author-box .info { flex: 1; min-width: 240px; }
.tw-single .author-box .kicker { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sc-muted); margin-bottom: 8px; }
.tw-single .author-box h3 { font-size: 20px; margin: 0 0 8px; }
.tw-single .author-box p { margin: 0 0 12px; font-size: 16px; line-height: 27px; color: #4c6469; }
.tw-single .author-box .links { display: flex; gap: 16px; font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 500; }

/* Related-card thumbnail — fixed, EQUAL height even when a webp optimizer wraps
   the <img> in an (inline) <picture> element. Used by the Tailwind design. */
.tw-single .tw-rel-thumb { display: block; width: 100%; height: 180px; overflow: hidden; }
.tw-single .tw-rel-thumb img, .tw-single .tw-rel-thumb picture { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Related posts */
.tw-single .related { margin-top: 44px; background: #f7fafb; border-top: 1px solid var(--sc-line); padding: 56px 0 46px; }
.tw-single .related .container { padding: 0 15px; }
.tw-single .related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.tw-single .related-head h2 { font-size: 26px; }
.tw-single .related-head a { font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 600; }
.tw-single .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.tw-single .related-card { background: #fff; border: 1px solid var(--sc-line); border-radius: 16px; overflow: hidden; display: block; }
.tw-single .related-card img, .tw-single .related-card picture { display: block; height: 180px; width: 100%; object-fit: cover; }
.tw-single .related-card picture img { height: 100%; }
.tw-single .related-card .card-body { padding: 18px 20px 22px; }
.tw-single .related-card .cat { font-family: 'Poppins', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sc-main); }
.tw-single .related-card .cat.alt { color: var(--sc-accent); }
.tw-single .related-card h3 { font-size: 17px; line-height: 26px; font-weight: 600; margin: 8px 0 10px; }
.tw-single .related-card .time { font-family: 'Poppins', sans-serif; font-size: 12.5px; color: var(--sc-muted); }

@media (max-width: 1023px) {
  .tw-single .related { padding: 40px 0 36px; }
  .tw-single .related .container { padding: 0 24px; }
}
