/* Blog post + page (round 23/24 mockup "post.html"), applied to the real WordPress block content. */
.phead { padding-block: 28px 0; }
.crumbs { font-size: 14px; font-weight: 700; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--teal); text-decoration: none; }
.phead h1 { font-size: clamp(32px, 4.6vw, 54px); margin-top: 14px; max-width: 900px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--aqua); }
.byline b { color: var(--ink); }
.byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.phero { position: relative; margin-top: 26px; }
.phero .ph { aspect-ratio: 21 / 9; overflow: hidden; border-radius: 40px; clip-path: url(#wavy-bottom); }
.phero img { width: 100%; height: 100%; object-fit: cover; }
.disclose { font-size: 13.5px; color: var(--muted); margin-top: 22px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); padding-block: 26px 60px; }
.layout.solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.article { max-width: 720px; min-width: 0; }
.article > * + * { margin-top: 18px; }
.article h2 { margin-top: 52px; font-size: clamp(26px, 3vw, 34px); scroll-margin-top: 100px; }
.article h2::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: 12px; vertical-align: -0.08em; background: var(--coral);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 23 C10 18 5 14.5 5 9.5 a7 7 0 0 1 14 0 C19 14.5 14 18 12 23 Z M12 6.7 a2.8 2.8 0 1 0 0.01 0 Z' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 23 C10 18 5 14.5 5 9.5 a7 7 0 0 1 14 0 C19 14.5 14 18 12 23 Z M12 6.7 a2.8 2.8 0 1 0 0.01 0 Z' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat; }
.article h3 { margin-top: 36px; font-size: 23px; scroll-margin-top: 100px; }
.article h4 { margin-top: 28px; font-size: 19px; color: var(--ink); }
.article p, .article li { font-size: 18px; line-height: 1.72; }
.article ul, .article ol { padding-left: 24px; }
.article li + li { margin-top: 6px; }
.article ol > li::marker { color: var(--coral); font-weight: 800; }
.article ul > li::marker { color: var(--lagoon); }
.article a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(0,124,137,.35); }
.article a:hover { text-decoration-color: var(--coral); }
.article strong { color: var(--ink); }
.article hr, .article .wp-block-separator { border: 0; border-top: 3px dotted var(--line); margin-block: 40px; }
.article blockquote, .article .wp-block-quote { margin: 28px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--coral); }
.article blockquote p { font-size: 20px; color: var(--ink); font-weight: 600; }
.article .wp-block-embed blockquote, .article blockquote.tiktok-embed, .article blockquote.instagram-media { border: 0; padding: 0; margin-inline: auto; }

/* images: rounded, like the mockup's photos */
.article .wp-block-image { margin: 28px 0 0; }
.article .wp-block-image img, .article > p img { border-radius: 34px 34px 34px 8px; height: auto; }
.article .wp-block-image figcaption, .article .wp-element-caption { font-size: 14.5px; color: var(--muted); margin-top: 8px; font-weight: 600; line-height: 1.5; text-align: left; }
.article .wp-block-image.aligncenter, .article .aligncenter { margin-inline: auto; text-align: center; }
.article .alignleft { float: left; margin: 6px 22px 12px 0; max-width: 50%; }
.article .alignright { float: right; margin: 6px 0 12px 22px; max-width: 50%; }
.article .wp-block-gallery { gap: 12px; }
.article .wp-block-gallery img { border-radius: 20px; }

/* coloured boxes (old theme groups keep their meaning, new colours via theme.json) */
.article .wp-block-group.has-background { border-radius: 30px 60px 30px 60px !important; padding: 24px 28px !important; }
.article .wp-block-group.has-background > * + * { margin-top: 12px; }
.article .wp-block-group p { font-size: 17px; }
.article .has-background:not(.wp-block-group):not(.wp-block-button__link) { border-radius: 14px; }

/* buttons */
.article .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.article .wp-block-button__link { display: inline-flex; align-items: center; font-weight: 800; font-size: 16px; text-decoration: none; border-radius: 999px; padding: 14px 24px; background: var(--teal); color: var(--white); }
.article .wp-block-button__link:hover { background: var(--rose); }
.article .is-style-outline .wp-block-button__link { background: var(--white); color: var(--teal); box-shadow: inset 0 0 0 2px var(--aqua); }

/* tables */
.article .wp-block-table { overflow-x: auto; margin-top: 24px; }
.article table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 2px var(--aqua) inset; }
.article th, .article td { overflow-wrap: normal; word-break: normal; hyphens: auto; padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article th, .article thead td { background: var(--aqua); color: var(--ink); font-weight: 800; }
.article tr:last-child td { border-bottom: 0; }
.article .is-style-stripes tbody tr:nth-child(odd) td { background: var(--soft); }
.article .wp-block-table figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* embeds (TikTok, Instagram, YouTube) */
.article .wp-block-embed { margin: 28px 0 0; }
.article .wp-block-embed__wrapper { display: flex; justify-content: center; }
.article .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe { border-radius: 24px; }
.article .wp-block-embed-youtube .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.article .wp-block-embed-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 24px; }
.article pre, .article .wp-block-preformatted { white-space: pre-wrap; background: var(--soft); border-radius: 16px; padding: 16px 18px; font-family: inherit; font-size: 16px; }

/* Rank Math FAQ block, styled as the mockup's FAQ */
.article .rank-math-block { margin-top: 18px; }
.article .rank-math-list-item { border-bottom: 2px dotted var(--line); padding-block: 14px; }
.article .rank-math-question { font-size: 19px !important; margin: 0 !important; display: flex; gap: 12px; align-items: flex-start; }
.article .rank-math-question::before { display: none; }
.article .rank-math-question::after { content: "?"; order: -1; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--aqua); color: var(--teal); display: grid; place-items: center; font-size: 17px; }
.article .rank-math-answer { margin-top: 8px; padding-left: 42px; }
.article .rank-math-answer p { font-size: 17px; }

/* the old table-of-contents plugin box: our own sidebar list replaces it */
.article .wpj-jtoc, .article #ez-toc-container { display: none !important; }

.jump { display: none; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.jump a { flex: none; text-decoration: none; background: var(--aqua); color: var(--teal); font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

.author { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; background: var(--soft); border-radius: 40px; padding: 22px; margin-top: 52px !important; }
.authpin { width: 84px; margin: 0 auto; }
.author p { font-size: 16px !important; }

/* sidebar */
.side { display: flex; flex-direction: column; gap: 22px; }
.side .stick { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: flex; flex-direction: column; gap: 22px; }
.toc { background: var(--white); border-radius: 30px; padding: 20px 22px; box-shadow: 0 0 0 2px var(--aqua) inset; max-height: calc(100vh - 140px); overflow: auto; }
.toc b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--teal); }
.side .sidecta { background: var(--coral); color: var(--white); border-radius: 30px; padding: 22px; }
.side .sidecta h3 { color: var(--white); }
.side .sidecta p { font-size: 15px; margin-top: 6px; }
.side .sidecta .btn { background: var(--white); color: var(--rose); margin-top: 12px; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rel { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.rel .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 34px 34px 34px 8px; }
.rel:nth-child(2) .ph { border-radius: 50% 50% 34px 34px / 40% 40% 34px 34px; }
.rel:nth-child(3) .ph { border-radius: 8px 34px 34px 34px; }
.rel img { width: 100%; height: 100%; object-fit: cover; }
.rel .meta { display: none; }

/* comments */
.comments { margin-top: 52px; }
.comments h2::before { display: none; }
.comments ol { list-style: none; padding: 0; }
.comment-body { background: var(--white); border-radius: 24px; padding: 16px 20px; box-shadow: 0 0 0 2px var(--aqua) inset; margin-top: 14px; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; font: inherit; border: 2px solid var(--aqua); border-radius: 16px; padding: 10px 14px; background: var(--white); }
.comment-form .submit { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 12px 22px; background: var(--teal); color: var(--white); cursor: pointer; }

/* Contact Form 7 */
.wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea, .wpcf7 select { width: 100%; font: inherit; border: 2px solid var(--aqua); border-radius: 16px; padding: 12px 16px; background: var(--white); color: var(--ink); }
.wpcf7 input[type=submit] { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 14px 24px; background: var(--coral); color: var(--white); cursor: pointer; }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { order: 2; }
  .side .stick { position: static; }
  .toc { display: none; }
  .jump { display: flex; }
  .phero .ph { aspect-ratio: 4 / 3; }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .article table { font-size: 14.5px; }
  .article th, .article td { padding: 10px 9px; }
  .article .alignleft, .article .alignright { float: none; margin: 18px auto 0; max-width: 100%; }
}
