/* ==========================================================================
   Fungi Crest — editor content (Gutenberg blocks) + Journal
   ========================================================================== */

/* Entry typography ---------------------------------------------------------- */
.fc-entry { font-size: 17px; line-height: 1.75; color: var(--fc-ink); }
.fc-entry > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.fc-entry > .alignwide, .fc-entry > .wp-block-columns, .fc-entry > .wp-block-group.is-style-fc-cards, .fc-entry > .wp-block-group.alignwide { max-width: 1120px; }
.fc-entry > .alignfull { max-width: none; }
.fc-entry--page > * { max-width: 820px; }
.fc-entry h2 { margin: 1.6em auto .5em; font-size: clamp(28px, 2.8vw, 38px); }
.fc-entry h3 { margin: 1.4em auto .4em; font-size: clamp(21px, 1.9vw, 25px); }
.fc-entry h4 { margin: 1.2em auto .3em; font-family: var(--fc-font-sans); font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fc-moss); }
.fc-entry p { margin-bottom: 1.1em; }
.fc-entry a { color: var(--fc-forest); text-decoration-color: var(--fc-gold); text-decoration-thickness: 1.5px; }
.fc-entry ul, .fc-entry ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.fc-entry li { margin-bottom: .45em; }
.fc-entry li::marker { color: var(--fc-gold-deep); }
.fc-entry blockquote, .fc-entry .wp-block-quote { margin: 1.8em auto; padding: 8px 0 8px 24px; border-left: 3px solid var(--fc-gold); font-family: var(--fc-font-display); font-size: 22px; line-height: 1.45; color: var(--fc-forest); }
.fc-entry blockquote cite { display: block; margin-top: 10px; font-family: var(--fc-font-sans); font-size: 14px; font-style: normal; color: var(--fc-muted); }
.fc-entry .wp-block-pullquote { padding: 32px; border: 0; border-block: 1px solid var(--fc-line-strong); text-align: center; }
.fc-entry img { border-radius: var(--fc-radius); }
.fc-entry figure { margin: 2em auto; }
.fc-entry figcaption, .fc-article__cover figcaption { margin-top: 8px; font-size: 13px; color: var(--fc-muted); text-align: center; }
.fc-entry hr, .fc-entry .wp-block-separator { margin: 2.5em auto; border: 0; border-top: 1px solid var(--fc-line-strong); max-width: 760px; }
.fc-entry table, .fc-entry .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--fc-paper); }
.fc-entry th, .fc-entry td { padding: 12px 14px; border-bottom: 1px solid var(--fc-line); text-align: left; }
.fc-entry thead th { background: var(--fc-cream); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fc-muted); }
.fc-entry .wp-block-table { overflow-x: auto; }
.fc-entry code { padding: 2px 6px; border-radius: 6px; background: var(--fc-parchment); font-size: .9em; }
.fc-entry .has-text-align-center { text-align: center; }

/* Buttons block */
.fc-entry .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em auto; }
.fc-entry .wp-block-button__link { display: inline-flex; align-items: center; min-height: 50px; padding: 13px 26px; border-radius: 999px; background: var(--fc-forest); color: var(--fc-cream); font: 600 15px/1.1 var(--fc-font-sans); text-decoration: none; transition: background .2s, transform .2s; }
.fc-entry .wp-block-button__link:hover { background: var(--fc-forest-deep); color: var(--fc-cream); transform: translateY(-1px); }
.fc-entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--fc-forest); box-shadow: inset 0 0 0 1px var(--fc-forest); }

/* Columns / groups as designed blocks */
.fc-entry .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: 2.4em auto; }
.fc-entry .wp-block-column > :first-child { margin-top: 0; }
.fc-entry .wp-block-group.is-style-fc-card, .fc-entry .is-style-fc-card { height: 100%; padding: 28px; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); background: var(--fc-paper); }
.fc-entry .is-style-fc-card h3 { margin-top: 0; }
.fc-entry .is-style-fc-card p:last-child { margin-bottom: 0; }
.fc-entry .wp-block-group.is-style-fc-band, .fc-entry .is-style-fc-band { max-width: none; margin: 3em calc(50% - 50vw); padding: clamp(40px, 6vw, 72px) max(var(--fc-gutter), calc(50vw - 560px)); background: var(--fc-paper); border-block: 1px solid var(--fc-line); }
.fc-entry .is-style-fc-band > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.fc-entry .is-style-fc-forest { padding: clamp(28px, 4vw, 44px); border-radius: var(--fc-radius-lg); background: var(--fc-forest); color: var(--fc-cream); }
.fc-entry .is-style-fc-forest h2, .fc-entry .is-style-fc-forest h3 { color: var(--fc-cream); margin-top: 0; }
.fc-entry .is-style-fc-forest a { color: var(--fc-gold-soft); }
.fc-entry .is-style-fc-checks ul, .fc-entry ul.is-style-fc-checks { list-style: none; padding-left: 0; }
.fc-entry .is-style-fc-checks li, .fc-entry ul.is-style-fc-checks li { position: relative; padding-left: 34px; margin-bottom: 12px; font-weight: 600; }
.fc-entry .is-style-fc-checks li::before, .fc-entry ul.is-style-fc-checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fc-gold); color: var(--fc-forest-ink); font-size: 12px; font-weight: 800; }
.fc-entry .fc-eyebrow { max-width: 760px; }
.fc-entry .is-style-fc-steps { counter-reset: s; list-style: none; padding-left: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1120px; }
.fc-entry .is-style-fc-steps li { counter-increment: s; position: relative; padding: 26px 24px 22px; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); background: var(--fc-paper); }
.fc-entry .is-style-fc-steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--fc-font-display); font-size: 34px; line-height: 1; color: var(--fc-gold); }
.fc-entry .is-style-fc-steps li strong { display: block; font-family: var(--fc-font-display); font-size: 20px; font-weight: 500; color: var(--fc-forest); margin-bottom: 4px; }

.fc-pagebody + .fc-section { padding-top: 0; }
.fc-contact__intro, .fc-quotepage__intro { margin-bottom: 20px; }
.fc-contact__intro > *, .fc-quotepage__intro > * { max-width: none; }
.fc-table-filter { align-self: flex-end; margin-bottom: 28px; }
.fc-qlist__empty[hidden], .fc-qlist[hidden] { display: none; }

/* Journal ----------------------------------------------------------------- */
.fc-journal__nav { margin-bottom: 28px; }
.fc-journal__feature { margin-bottom: clamp(24px, 3vw, 40px); }
.fc-postcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); background: var(--fc-paper); transition: transform .45s var(--fc-ease), box-shadow .45s var(--fc-ease); }
.fc-postcard:hover { transform: translateY(-4px); box-shadow: var(--fc-shadow); }
.fc-postcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fc-parchment); }
.fc-postcard__media img, .fc-postcard__media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--fc-ease); }
.fc-postcard:hover .fc-postcard__media img { transform: scale(1.05); }
.fc-postcard__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px 22px 22px; }
.fc-postcard__meta { margin: 0; font-size: 12.5px; color: var(--fc-muted); }
.fc-postcard__meta a { position: relative; z-index: 2; color: var(--fc-moss); font-weight: 700; text-decoration: none; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }
.fc-postcard__title { margin: 0; font-size: 22px; line-height: 1.22; }
.fc-postcard__title a { color: var(--fc-forest); text-decoration: none; }
.fc-postcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fc-postcard__excerpt { margin: 0; font-size: 15px; color: var(--fc-muted); }
.fc-postcard .fc-link-arrow { margin-top: auto; padding-top: 6px; font-size: 14px; }
.fc-postcard--feature { display: grid; grid-template-columns: 1.2fr 1fr; }
.fc-postcard--feature .fc-postcard__media { aspect-ratio: auto; min-height: 380px; }
.fc-postcard--feature .fc-postcard__body { justify-content: center; padding: clamp(24px, 4vw, 48px); }
.fc-postcard--feature .fc-postcard__title { font-size: clamp(28px, 3vw, 40px); }
.fc-journal-band { background: var(--fc-paper); border-top: 1px solid var(--fc-line); }
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--fc-line-strong); background: var(--fc-paper); font-weight: 700; text-decoration: none; color: var(--fc-ink); }
.nav-links .page-numbers.current { background: var(--fc-forest); color: var(--fc-cream); border-color: var(--fc-forest); }
.fc-search-group { margin: 8px 0 18px; font-size: 26px; }
.fc-search-group:not(:first-child) { margin-top: 48px; }

/* Article ------------------------------------------------------------------ */
.fc-article__head { padding: clamp(32px, 5vw, 64px) 0 0; background: linear-gradient(180deg, var(--fc-paper), var(--fc-cream)); }
.fc-article__title { margin: 0 0 14px; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; }
.fc-article__dek { margin: 0 0 20px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--fc-muted); }
.fc-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 32px; font-size: 14px; color: var(--fc-muted); }
.fc-article__avatar { border-radius: 50%; }
.fc-article__cover { margin: 0 auto; }
.fc-article__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--fc-radius-lg); }
.fc-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px); align-items: start; }
.fc-article__body > * { margin-left: 0; }
.fc-article__aside { position: sticky; top: calc(var(--fc-header-h) + 24px); display: grid; gap: 18px; }
.fc-toc ol { margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--fc-line-strong); list-style: none; }
.fc-toc a { display: block; padding: 6px 0; font-size: 14px; color: var(--fc-muted); text-decoration: none; line-height: 1.4; }
.fc-toc a.is-active, .fc-toc a:hover { color: var(--fc-forest); font-weight: 700; }
.fc-aside-products { padding: 18px; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); background: var(--fc-paper); }
.fc-aside-product { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--fc-ink); }
.fc-aside-product + .fc-aside-product { border-top: 1px solid var(--fc-line); }
.fc-aside-product__media { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--fc-parchment); }
.fc-aside-product__media img, .fc-aside-product__media svg { width: 100%; height: 100%; object-fit: cover; }
.fc-aside-product strong { display: block; font-family: var(--fc-font-display); font-weight: 500; color: var(--fc-forest); }
.fc-aside-product small { font-size: 13px; }
.fc-aside-quote__title { margin: 0 0 16px; font-family: var(--fc-font-display); font-size: 21px; line-height: 1.25; color: var(--fc-cream); }
.fc-article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0 !important; padding: 0 !important; list-style: none; }
.fc-article__tags a { padding: 6px 12px; border-radius: 99px; background: var(--fc-paper); border: 1px solid var(--fc-line); font-size: 13px; font-weight: 600; text-decoration: none; }
.fc-article__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px !important; padding-top: 20px; border-top: 1px solid var(--fc-line); font-size: 14px; font-weight: 700; }
.fc-article__share a, .fc-article__share button { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--fc-line-strong); border-radius: 99px; background: var(--fc-paper); color: var(--fc-forest); font: 600 13px var(--fc-font-sans); cursor: pointer; }

/* Comments */
.fc-comments__title { font-size: 28px; }
.fc-comments__list { margin: 0 0 40px; padding: 0; list-style: none; }
.fc-comments__list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--fc-line); }
.fc-comments__list .children { list-style: none; padding-left: 28px; }
.fc-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.fc-comments .comment-author img { border-radius: 50%; }
.fc-comments .comment-metadata { font-size: 13px; }
.fc-comments .comment-metadata a { color: var(--fc-muted); text-decoration: none; }
.fc-comments .reply a { font-size: 13px; font-weight: 700; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--fc-line-strong); border-radius: 12px; background: #fff; font: 16px var(--fc-font-sans); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* Hero / grid variants driven by content counts */
.fc-hero__grid--solo { grid-template-columns: 1fr; max-width: 920px; }
.fc-trust__list { grid-template-columns: repeat(var(--n, 5), 1fr); }
.fc-doors__grid { grid-template-columns: repeat(var(--n, 3), 1fr); }
.fc-story--solo { grid-template-columns: 1fr; }

@media (max-width: 1024px) {
	.fc-article__layout { grid-template-columns: 1fr; }
	.fc-article__aside { position: static; }
	.fc-toc { display: none; }
	.fc-postcard--feature { grid-template-columns: 1fr; }
	.fc-postcard--feature .fc-postcard__media { min-height: 0; aspect-ratio: 16 / 9; }
	.fc-doors__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
	.fc-trust__list { grid-template-columns: repeat(min(var(--n, 5), 3), 1fr); }
}
@media (max-width: 768px) {
	.fc-trust__list { grid-template-columns: 1fr 1fr; }
	.fc-doors__grid { grid-template-columns: 1fr; }
	.fc-entry { font-size: 16.5px; }
	.fc-entry .is-style-fc-band { padding-inline: var(--fc-gutter); }
	.fc-table-filter { align-self: stretch; margin-bottom: 16px; }
}

/* Article column: content aligns to the column edge, no centred measure. */
.fc-entry.fc-article__body > *,
.fc-entry.fc-article__body h2,
.fc-entry.fc-article__body h3,
.fc-entry.fc-article__body .wp-block-buttons { max-width: 100%; margin-left: 0; margin-right: 0; }

/* Buttons on the forest panel use the gold accent. */
.fc-entry .is-style-fc-forest .wp-block-button__link { background: var(--fc-gold); color: var(--fc-forest-ink); }
.fc-entry .is-style-fc-forest .wp-block-button__link:hover { background: #d2ab55; color: var(--fc-forest-ink); }
@media (min-width: 1025px) { .fc-entry .is-style-fc-steps { grid-template-columns: repeat(3, 1fr); } }
