/* ==========================================================================
   FlooMake — Long-form content (pages, articles, legal, sitemap)
   Loaded only on singular content and blog views.
   ========================================================================== */

.fm-prose { font-size: var(--fm-fs-base); line-height: 1.75; color: var(--fm-fg); max-width: 72ch; }
.fm-prose--wide { max-width: none; }
.fm-prose > * { margin-top: 0; margin-bottom: 0; }
.fm-prose > * + * { margin-top: 1.25em; }
.fm-prose h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem); margin: 2.25em 0 0.6em; letter-spacing: -0.03em; scroll-margin-top: calc(var(--fm-header-h) + 1.5rem); }
.fm-prose h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); margin: 1.8em 0 0.5em; scroll-margin-top: calc(var(--fm-header-h) + 1.5rem); }
.fm-prose h4 { margin: 1.5em 0 0.4em; }
.fm-prose > h2 + *, .fm-prose > h3 + * { margin-top: 0; }
.fm-prose > :first-child { margin-top: 0; }
.fm-prose a { color: var(--fm-fg); font-weight: 500; text-decoration: underline; text-decoration-color: var(--fm-orange); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.fm-prose a:hover { background: var(--fm-orange-tint); }
.fm-prose ul, .fm-prose ol { padding-left: 1.4em; }
.fm-prose li + li { margin-top: 0.5em; }
.fm-prose ul li::marker { color: var(--fm-orange); }
.fm-prose ol li::marker { font-weight: 600; }
.fm-prose strong { font-weight: 600; }
.fm-prose blockquote { margin: 2em 0; padding: 0.25em 0 0.25em 1.5em; border-left: 3px solid var(--fm-orange); font-size: var(--fm-fs-md); }
.fm-prose blockquote p { margin: 0; }
.fm-prose img, .fm-prose figure { border-radius: var(--fm-radius); }
.fm-prose figure { margin: 2em 0; }
.fm-prose figcaption { font-size: var(--fm-fs-xs); color: var(--fm-fg-muted); margin-top: 0.6em; }
.fm-prose code { font-size: 0.9em; background: var(--fm-paper); padding: 0.1em 0.35em; border-radius: var(--fm-radius-sm); }
.fm-prose pre { background: var(--fm-black); color: var(--fm-white); padding: 1.25rem; border-radius: var(--fm-radius); overflow-x: auto; }
.fm-prose pre code { background: none; padding: 0; }
.fm-prose hr { margin: 3em 0; }
.fm-prose table { width: 100%; border-collapse: collapse; font-size: var(--fm-fs-sm); display: block; overflow-x: auto; }
.fm-prose th, .fm-prose td { padding: 0.75rem 1rem; border: 1px solid var(--fm-border); text-align: left; vertical-align: top; }
.fm-prose thead th { background: var(--fm-black); color: var(--fm-white); }
.fm-prose tbody tr:nth-child(even) { background: var(--fm-paper); }
.fm-prose .fm-callout { padding: 1.25rem 1.5rem; border: 1px solid var(--fm-black); border-left: 4px solid var(--fm-orange); background: var(--fm-orange-tint); border-radius: var(--fm-radius-sm); }
.fm-prose .fm-callout p + p { margin-top: 0.75em; }
.fm-prose .alignwide { max-width: none; }
.fm-prose .wp-block-image { margin-block: 2em; }

/* Article layout */
.fm-article-head { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--fm-line); }
.fm-article-head h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); max-width: 22ch; margin: 1rem 0 1.25rem; }
.fm-article-head .fm-breadcrumbs { margin-bottom: 1.5rem; }
.fm-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: var(--fm-fs-sm); color: var(--fm-fg-muted); }
.fm-article-meta span, .fm-article-meta a { display: inline-flex; align-items: center; gap: 0.35rem; }
.fm-article-meta svg { color: var(--fm-black); opacity: 0.6; }
.fm-article-meta a { color: var(--fm-fg); text-decoration: none; font-weight: 600; }
.fm-article-cat { display: inline-block; background: var(--fm-orange); color: var(--fm-black); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: var(--fm-radius-sm); }
.fm-article-cat:hover { background: var(--fm-black); color: var(--fm-white); }
.fm-article-media { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.fm-article-media img { width: 100%; border-radius: var(--fm-radius-lg); aspect-ratio: 16 / 9; object-fit: cover; }

.fm-article-layout { display: grid; gap: 3rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 1100px) {
	.fm-article-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; }
	.fm-article-layout--no-toc { grid-template-columns: minmax(0, 1fr); max-width: 780px; margin-inline: auto; }
	.fm-article-aside { position: sticky; top: calc(var(--fm-header-h) + 2rem); align-self: start; max-height: calc(100vh - var(--fm-header-h) - 4rem); overflow-y: auto; }
}

/* Table of contents */
.fm-toc { border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 1.25rem; font-size: var(--fm-fs-sm); }
.fm-toc__title { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin: 0 0 0.75rem; }
.fm-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.fm-toc a { display: block; padding: 0.35rem 0 0.35rem 0.75rem; border-left: 2px solid var(--fm-line); text-decoration: none; color: var(--fm-muted); line-height: 1.4; transition: color var(--fm-t), border-color var(--fm-t); }
.fm-toc a:hover { color: var(--fm-black); }
.fm-toc a.is-active { color: var(--fm-black); border-left-color: var(--fm-orange); font-weight: 600; }
.fm-toc .fm-toc__l3 a { padding-left: 1.5rem; font-size: 0.875rem; }
@media (max-width: 1099px) {
	.fm-toc { padding: 0; }
	.fm-toc details { padding: 1rem 1.25rem; }
	.fm-toc summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
	.fm-toc summary::-webkit-details-marker { display: none; }
	.fm-toc details ol { margin-top: 0.75rem; }
}
@media (min-width: 1100px) {
	.fm-toc summary { pointer-events: none; list-style: none; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.75rem; }
	.fm-toc summary::-webkit-details-marker { display: none; }
	.fm-toc summary svg { display: none; }
}

/* Share & author */
.fm-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--fm-line); }
.fm-share__label { font-size: var(--fm-fs-sm); font-weight: 600; margin-right: 0.5rem; }
.fm-share a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--fm-line); border-radius: 50%; color: var(--fm-black); transition: background-color var(--fm-t), border-color var(--fm-t); }
.fm-share a:hover { background: var(--fm-orange); border-color: var(--fm-orange); }

.fm-author { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; margin-top: 2rem; padding: 1.5rem; background: var(--fm-paper); border-radius: var(--fm-radius); }
.fm-author img { width: 64px; height: 64px; border-radius: 50%; }
.fm-author__label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fm-muted); margin: 0; }
.fm-author__name { font-size: var(--fm-fs-md); font-weight: 600; margin: 0.15rem 0 0.4rem; }
.fm-author__name a { text-decoration: none; }
.fm-author p { margin: 0; font-size: var(--fm-fs-sm); color: var(--fm-muted); }

.fm-related-services { margin-top: 2.5rem; }
.fm-related-services h2 { font-size: var(--fm-fs-lg); margin-bottom: 1rem; }

/* HTML sitemap */
.fm-sitemap { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 768px) { .fm-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fm-sitemap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fm-sitemap__group h2 { font-size: var(--fm-fs-md); padding-bottom: 0.75rem; border-bottom: 2px solid var(--fm-black); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.fm-sitemap__group h2::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--fm-orange); }
.fm-sitemap ul { list-style: none; margin: 0; padding: 0; }
.fm-sitemap li a { display: block; padding: 0.35rem 0; text-decoration: none; font-size: var(--fm-fs-sm); }
.fm-sitemap li a:hover { text-decoration: underline; text-decoration-color: var(--fm-orange); text-decoration-thickness: 2px; }
.fm-sitemap ul ul { padding-left: 1rem; border-left: 1px solid var(--fm-line); margin: 0.15rem 0 0.4rem 0.25rem; }
.fm-sitemap ul ul a { color: var(--fm-muted); }

/* Legal pages */
.fm-legal-updated { font-size: var(--fm-fs-sm); color: var(--fm-muted); }

/* Gallery */
.fm-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.fm-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--fm-radius); border: 1px solid var(--fm-line); }

/* Comments */
.fm-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--fm-line); }
.fm-comments ol { list-style: none; padding: 0; }
.fm-comments .comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--fm-line); }
.fm-comments textarea, .fm-comments input[type="text"], .fm-comments input[type="email"], .fm-comments input[type="url"] { width: 100%; padding: 0.75rem; border: 1.5px solid var(--fm-line-strong); border-radius: var(--fm-radius-sm); }
.fm-comments .submit { background: var(--fm-orange); border: 0; padding: 0.9rem 1.4rem; font-weight: 600; border-radius: var(--fm-radius-sm); cursor: pointer; }

/* Widgets */
.fm-widget { margin-bottom: 2rem; }
.fm-widget__title { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.fm-widget ul { list-style: none; padding: 0; margin: 0; }
.fm-widget li a { display: block; padding: 0.3rem 0; text-decoration: none; }

/* Core block alignment helpers */
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0.25em 1.5em 1em 0; }
.alignright { float: right; margin: 0.25em 0 1em 1.5em; }
.wp-caption-text { font-size: var(--fm-fs-xs); color: var(--fm-muted); }
.sticky .fm-post-card__title::before { content: "★ "; color: var(--fm-orange); }
.bypostauthor { display: block; }
.gallery-caption { font-size: var(--fm-fs-xs); }
.fm-article-layout > * { min-width: 0; }
