/* FitLikeMummy Journal – additions on top of the main site stylesheet */

/* Feature post on the journal home */
.journal-feature .post-card--feature h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.journal-grid .post-card h3 { font-size: clamp(1.5rem, 2vw, 1.85rem); }

/* Chips on light backgrounds */
.chips--light .chip { border-color: var(--stone); color: var(--ink); }
.page-hero .chip { color: var(--white); }

/* Article */
.article-hero { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 5vw, 64px); text-align: center; }
.article-hero .container { max-width: 980px; }
.article-hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.article-hero .lead { margin-inline: auto; color: var(--muted); }
.article-hero .kicker a { text-decoration: none; }
.article-hero .kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.article-meta { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; text-align: left; font-size: .85rem; color: var(--muted); }
.article-meta img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.article-meta strong { display: block; color: var(--ink); font-weight: 500; }
.article-image { margin: 0 auto clamp(48px, 6vw, 88px); }
.article-image img { width: 100%; height: auto; max-height: 78vh; aspect-ratio: 16 / 9; object-fit: cover; }
.article-footer { margin-top: 56px; }
.author-box { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; margin-top: 40px; padding: 36px; background: var(--ivory); }
.author-box img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.author-box h3 { margin-bottom: 8px; }
.author-box p { font-size: 1rem; }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }

/* Gutenberg content inside articles */
.entry-content > * { margin-bottom: 1.35em; }
.entry-content .alignwide { margin-inline: calc(-1 * clamp(0px, 8vw, 140px)); }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.entry-content img { height: auto; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 10px; color: var(--muted); font-size: .85rem; text-align: center; }
.entry-content .wp-block-image { margin-block: 2.4em; }
.entry-content .wp-block-quote { margin: 2em 0; padding-left: 28px; border-left: 2px solid var(--gold); font-family: var(--display); font-size: 1.7rem; font-style: italic; line-height: 1.3; color: var(--ink); }
.entry-content .wp-block-quote p { margin: 0; }
.entry-content .wp-block-pullquote { margin: 2.4em 0; padding: 40px 0; border-block: 1px solid var(--stone); text-align: center; }
.entry-content .wp-block-pullquote p { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-style: italic; line-height: 1.2; color: var(--ink); }
.entry-content .wp-block-button__link { display: inline-flex; padding: 14px 28px; background: var(--ink); color: var(--white); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-radius: 0; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 28px; }
.entry-content .wp-block-column { flex: 1 1 240px; }
.entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.entry-content .wp-block-gallery figure { margin: 0; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--stone); margin: 3em auto; width: 120px; }
.entry-content .wp-block-embed iframe, .entry-content iframe { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--stone); text-align: left; }

/* Pagination */
.pagination { margin-top: clamp(48px, 6vw, 80px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; border: 1px solid var(--stone); color: var(--ink); text-decoration: none; transition: background .3s, color .3s; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Search */
.search-form { display: flex; gap: 10px; max-width: 560px; margin-top: 28px; }
.search-form input { flex: 1; min-height: 54px; padding: 12px 16px; border: 1px solid var(--stone); background: var(--white); font: inherit; }

/* Empty state */
.empty { max-width: 640px; }

/* Comments */
.comments h2 { font-size: 2rem; }
.comment-list { padding: 0; list-style: none; }
.comment-list li { padding: 24px 0; border-bottom: 1px solid var(--stone); }
.comment-list .avatar { float: left; margin-right: 14px; border-radius: 50%; }
.comment-meta { font-size: .85rem; color: var(--muted); }
.comment-form label { display: block; margin-bottom: 6px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--stone); background: var(--white); font: inherit; }
.comment-form .btn::after { content: none; }

/* WordPress admin bar sits above the sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Article layout: sticky contents + share on the left, story on the right */
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: clamp(32px, 6vw, 96px); }
.article-aside__inner { position: sticky; top: calc(var(--header-h) + 32px); }
.toc { margin: 0 0 32px; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--stone); }
.toc li:last-child { border-bottom: 1px solid var(--stone); }
.toc a { display: flex; gap: 12px; padding: 12px 0; font-size: .9rem; line-height: 1.35; text-decoration: none; color: var(--text); transition: color .3s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--display); font-style: italic; color: var(--gold-deep); }
.toc a:hover { color: var(--gold-deep); }
.share { display: flex; align-items: center; gap: 10px; }
.share span { margin-right: 4px; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.share a { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--stone); border-radius: 50%; color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.share a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.share svg { width: 16px; height: 16px; }
.article-content { margin: 0; }
.article-layout + .article-footer { max-width: 1036px; padding-left: calc(220px + clamp(32px, 6vw, 96px)); }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .article-aside { order: 2; }
  .article-aside__inner { position: static; }
  .article-layout + .article-footer { padding-left: 0; max-width: 720px; }
}

/* Story typography: lead paragraph, numbered headings, gold list markers */
.article-content.entry-content > p:first-of-type { font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.35; color: var(--ink); }
.article-content.entry-content > p:first-of-type::first-letter { float: left; margin: .06em .1em 0 0; font-size: 3.4em; line-height: .8; color: var(--gold-deep); }
.article-content { counter-reset: h2; }
.article-content h2 { counter-increment: h2; position: relative; margin-top: 2.2em; padding-top: 28px; border-top: 1px solid var(--stone); }
.article-content h2::before { content: counter(h2, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .22em; color: var(--gold-deep); }
.article-content ul { padding: 0; list-style: none; }
.article-content ul li { position: relative; padding: 14px 0 14px 32px; margin: 0; border-bottom: 1px solid var(--stone); }
.article-content ul li::before { content: "✦"; position: absolute; left: 4px; top: 15px; font-size: .75rem; color: var(--gold-deep); }
.article-content ul li strong { color: var(--ink); }
.article-content > p:last-of-type em:only-child { display: block; padding: 20px 24px; background: var(--ivory); font-size: .92rem; font-style: normal; color: var(--muted); }

/* Free resources */
.resource { color: var(--text); }
.resource .text-link { margin-top: 14px; align-self: flex-start; }
.resource:hover h3 { color: var(--olive); }
.resource__img img { transition: transform 1s var(--ease); }
.resource:hover .resource__img img { transform: scale(1.05); }
.soon--free { background: var(--gold) !important; }
.resource-get { position: sticky; top: calc(var(--header-h) + 32px); padding: clamp(28px, 4vw, 44px); background: var(--olive); color: rgba(255,255,255,.88); }
.resource-get h2 { color: var(--white); font-size: clamp(2rem, 3vw, 2.8rem); }
.resource-get h2 em { color: var(--gold); }
.resource-get .kicker { color: var(--gold); }
.resource-get .signup { margin-top: 24px; }
.resource-get strong { color: var(--white); }
.signup__error { margin: 0; padding: 10px 14px; background: rgba(255,255,255,.12); color: var(--white); font-size: .9rem; }
@media (max-width: 900px) { .resource-get { position: static; } }
