/* Fitness Moves: the look shared by every page except the homepage (the homepage has its own file, homepage.css).
   Same palette, type and corners as the homepage:
   black #0A0A0A, iron #2B2D2F, signal red #DC0600, chalk #F2F2EE, steel #A3A6A9.
   Anton (uppercase, big things) and Barlow (words and small labels). Square corners, clipped-corner buttons.
   The header and footer block in the middle of this file is the same block that sits in homepage.css.
   If you change one, change the other. */

:root {
  --fm-black: #0a0a0a;
  --fm-iron: #2b2d2f;
  --fm-red: #dc0600;
  --fm-chalk: #f2f2ee;
  --fm-steel: #a3a6a9;
  --fm-muted: #55585b;
  --fm-rule: rgba(10, 10, 10, .28);
  --fm-tint: #e6e6e0;
  --fm-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --fm-body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fm-ease: cubic-bezier(.2, .8, .2, 1);
  --fm-gut: clamp(20px, 4vw, 56px);
  --fm-col: 780px;
  /* Older names, still used by the tools and resource pages. */
  --fm-ink: var(--fm-black);
  --fm-paper: var(--fm-chalk);
  --fm-white: var(--fm-chalk);
  --fm-accent: var(--fm-red);
  --fm-accent-hover: var(--fm-black);
  --fm-type: var(--fm-body);
  --fm-heading: var(--fm-display);
  --fm-gutter: var(--fm-gut);
}

/* The Kadence theme reads its colours, fonts and widths from these variables, so changing them here
   re-colours every Kadence block, button, link and card on the site in one go. */
body.fm-site {
  --global-palette1: #dc0600;
  --global-palette2: #dc0600;
  --global-palette3: #0a0a0a;
  --global-palette4: #2b2d2f;
  --global-palette5: #3a3d40;
  --global-palette6: #55585b;
  --global-palette7: #e3e3dd;
  --global-palette8: #f2f2ee;
  --global-palette9: #f2f2ee;
  --global-palette-btn-bg: #dc0600;
  --global-palette-btn-bg-hover: #0a0a0a;
  --global-palette-btn: #f2f2ee;
  --global-palette-btn-hover: #f2f2ee;
  --global-body-font-family: var(--fm-body);
  --global-heading-font-family: var(--fm-display);
  --global-content-width: calc(1320px + 2 * var(--fm-gut));
  --global-content-edge-padding: var(--fm-gut);
  --global-calc-content-width: 1320px;
  --btn-bg: var(--fm-red);
  --btn-fg: var(--fm-chalk);
  --btn-fill: var(--fm-black);
  --btn-fill-fg: var(--fm-chalk);
  margin: 0;
  background: var(--fm-chalk);
  color: var(--fm-iron);
  font: 400 1.0625rem/1.65 var(--fm-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html:has(body.fm-site) { scroll-padding-top: 96px; }
body.fm-site ::selection { background: var(--fm-red); color: var(--fm-chalk); }
body.fm-site :focus-visible { outline: 3px solid var(--fm-black); outline-offset: 3px; }
body.fm-site img { max-width: 100%; height: auto; }

/* Faint film grain over everything, same as the homepage. */
body.fm-site::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---------- Header and footer (shared with the other pages) ---------- */
.fm-site-header, #colophon.fm-site-footer {
  --fm-site-ink: #0a0a0a;
  --fm-site-paper: #f2f2ee;
  --fm-site-muted: #a3a6a9;
  --fm-site-accent: #dc0600;
  --fm-site-rule: rgba(242, 242, 238, .22);
  color-scheme: dark;
  background: var(--fm-site-ink);
  color: var(--fm-site-paper);
  font: 400 1rem/1.55 "Barlow", system-ui, sans-serif;
}
.fm-site-inner { width: min(1320px, calc(100% - 2 * clamp(20px, 4vw, 56px))); margin-inline: auto; }
.fm-site-header { position: sticky; top: 0; z-index: 90; border-bottom: 1px solid var(--fm-site-rule); }
body.admin-bar .fm-site-header { top: 32px; }
.fm-header-inner { min-height: 70px; display: flex; align-items: center; gap: 24px; }
.fm-site-brand { display: inline-flex; align-items: center; flex-shrink: 0; color: inherit; }
.fm-site-brand img { display: block; width: 188px; height: auto; }
.fm-site-nav { margin-left: auto; }
.fm-site-header ul, .fm-site-footer ul { list-style: none; margin: 0; padding: 0; }
.fm-site-header li, .fm-site-footer li { margin: 0; padding: 0; }
.fm-site-nav ul { display: flex; gap: clamp(12px, 1.65vw, 26px); align-items: center; }
.fm-site-header .fm-site-nav a, .fm-site-header .fm-menu-toggle { font: 700 .95rem/1.25 "Barlow", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.fm-site-header .fm-site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fm-site-paper); text-decoration: none; transition: box-shadow .25s; }
.fm-site-header .fm-site-nav a:hover, .fm-site-header .fm-site-nav a.is-current { box-shadow: inset 0 -4px 0 var(--fm-site-accent); }
.fm-site-header .fm-menu-toggle { display: none; min-height: 44px; align-items: center; gap: 8px; padding: 9px 13px; border: 2px solid var(--fm-site-paper); border-radius: 0; background: transparent; color: var(--fm-site-paper); box-shadow: none; cursor: pointer; }
.fm-site-header .fm-menu-toggle:hover { background: var(--fm-site-paper); color: var(--fm-site-ink); }
:is(.fm-site-header, .fm-site-footer) :focus-visible { outline: 3px solid var(--fm-site-paper); outline-offset: 4px; }
.fm-site-footer { padding-block: 34px 26px; border-top: 1px solid var(--fm-site-rule); }
.fm-footer-main { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.fm-footer-main .fm-site-brand { display: none; }
.fm-footer-main ul { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.fm-site-footer .fm-footer-main li a { color: var(--fm-site-muted); font-size: .98rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fm-site-footer .fm-footer-main li a:hover { color: var(--fm-site-paper); }
.fm-site-footer .fm-copyright { margin: 22px 0 0; color: var(--fm-site-muted); font-size: .92rem; }

@media (max-width: 1060px) {
  .fm-header-inner { min-height: 63px; flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .fm-site-nav { width: 100%; margin: 0; }
  .fm-site-nav ul { flex-wrap: wrap; column-gap: 22px; row-gap: 0; }
  .fm-site-header.fm-menu-ready .fm-menu-toggle { display: inline-flex; }
  .fm-menu-ready .fm-site-nav { position: absolute; top: 100%; left: 0; max-height: calc(100svh - 64px); overflow-y: auto; background: var(--fm-site-ink); padding: 4px 20px 12px; border-bottom: 1px solid var(--fm-site-rule); }
  .fm-menu-ready .fm-site-nav ul { display: grid; }
  .fm-menu-ready .fm-site-nav li + li { border-top: 1px solid var(--fm-site-rule); }
  .fm-menu-ready .fm-site-nav a { display: flex; }
  .fm-menu-ready .fm-menu-toggle[aria-expanded="false"] + .fm-site-nav { display: none; }
}


body.fm-site .fm-footer-main .fm-site-brand { display: inline-flex; }
@media (max-width: 380px) {
  .fm-site-brand img { width: clamp(132px, 44vw, 188px); }
  .fm-site-header .fm-menu-toggle { padding: 9px 10px; letter-spacing: .08em; }
}
@media (max-width: 782px) { body.admin-bar .fm-site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .fm-site-header { top: 0; } }


/* ---------- Page frame ---------- */
body.fm-site #primary.content-area { margin: 0; padding: 0 0 clamp(64px, 9vw, 128px); background: transparent; }
body.fm-site #primary .content-container.site-container { max-width: var(--global-content-width); }
body.fm-site .content-wrap { margin: 0; }
body.fm-site :is(.content-bg, article.single-entry, article.loop-entry, .page-content.entry) { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
body.fm-site article.single-entry { margin: 0; padding: 0; }
body.fm-site article.single-entry > .entry-content-wrap { padding: 0; }
body.fm-site .entry-content-wrap:has(.fm-tool-head) > .entry-header { display: none; }

/* ---------- Title bands: a black strip under the header that holds the page title ---------- */
body.fm-site .entry-hero .entry-hero-container-inner { background: var(--fm-black) !important; background-image: none !important; min-height: 0 !important; }
body.fm-site .entry-hero .hero-section-overlay { display: none !important; }
body.fm-site .entry-hero .hero-container { min-height: 0 !important; padding-block: clamp(44px, 7vw, 104px) clamp(36px, 5vw, 72px) !important; }
body.fm-site .entry-hero .entry-header { min-height: 0 !important; margin: 0; text-align: left !important; align-items: flex-start !important; justify-content: flex-start !important; }
body.fm-site .entry-hero { color: var(--fm-chalk); }
body.fm-site .entry-hero :focus-visible { outline-color: var(--fm-chalk); }
body.fm-site .entry-hero .entry-header::before,
body.fm-site:not(.single-post) article.single-entry > .entry-content-wrap > .entry-header::before,
body.fm-site header.search-archive-title::before,
body.fm-site section.error header.page-header::before {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  background: var(--fm-red);
}
/* Posts, pages, search results and "page not found" carry their title inside the content, so the black strip
   is a backdrop as wide as the screen that sits behind the title (the ::after below). */
body.fm-site article.single-entry > .entry-content-wrap > .entry-header,
body.fm-site header.search-archive-title,
body.fm-site section.error header.page-header {
  position: relative;
  margin: 0 0 clamp(36px, 5vw, 72px);
  padding: clamp(44px, 7vw, 104px) 0 clamp(36px, 5vw, 72px);
  color: var(--fm-chalk);
  text-align: left;
  isolation: isolate;
}
body.fm-site article.single-entry > .entry-content-wrap > .entry-header::after,
body.fm-site header.search-archive-title::after,
body.fm-site section.error header.page-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--fm-black);
}
body.fm-site section.error { padding: 0; }
body.fm-site section.error .page-content, body.fm-site section.error .entry-content-wrap { padding: 0 !important; }
body.fm-site :is(.entry-hero, article.single-entry > .entry-content-wrap > .entry-header, header.search-archive-title, section.error header.page-header) :is(h1, .entry-title, .page-title) {
  margin: 0;
  color: var(--fm-chalk) !important;
  font: 400 clamp(2.6rem, 6.6vw, 6rem)/.98 var(--fm-display) !important;
  letter-spacing: .005em;
  text-align: left !important;
  text-transform: uppercase !important;
  text-wrap: balance;
}
body.fm-site.archive .entry-hero :is(h1, .page-title) { font-size: clamp(3.2rem, 10vw, 9rem) !important; line-height: .94 !important; }
body.fm-site :is(.entry-hero, header.search-archive-title) .search-title span { color: var(--fm-red); }
body.fm-site .entry-hero :is(.archive-description, .term-description) { max-width: 60ch; margin-top: 18px; color: var(--fm-steel); font-size: 1.1rem; }
body.fm-site .entry-taxonomies { margin: 0 0 14px; }
body.fm-site .entry-taxonomies .category-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 16px;
  color: inherit;
  font: 700 .85rem/1 var(--fm-body);
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}
body.fm-site .entry-taxonomies .category-links a::before { content: ""; width: 12px; height: 12px; background: var(--fm-red); }
body.fm-site :is(article.single-entry > .entry-content-wrap > .entry-header, .entry-hero) :is(.entry-meta, .entry-meta a) { color: var(--fm-steel); }
body.fm-site article.single-entry > .entry-content-wrap > .entry-header .entry-meta { margin-top: 20px; font: 600 .95rem/1.4 var(--fm-body); letter-spacing: .04em; }
body.fm-site article.single-entry > .entry-content-wrap > .entry-header .entry-meta a { text-decoration-color: var(--fm-steel); }

/* The picture that goes with an article sits above the strip, edge to edge. */
body.fm-site .post-thumbnail.article-post-thumbnail {
  position: relative;
  width: var(--global-vw, 100vw);
  max-width: none !important;
  height: auto !important;
  margin: 0 calc(50% - var(--global-vw, 100vw) / 2) !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--fm-iron);
}
body.fm-site .post-thumbnail.article-post-thumbnail .post-thumbnail-inner { position: static !important; height: auto; padding: 0 !important; }
body.fm-site .post-thumbnail.article-post-thumbnail img { position: static !important; display: block; width: 100%; height: clamp(240px, 38vw, 540px) !important; object-fit: cover; filter: grayscale(1) contrast(1.05); }
/* "Wide" blocks in the theme were sized for a narrow page. On this wider page they simply fill the content width. */
body.fm-site .content-container .alignwide { width: auto !important; max-width: none !important; margin-inline: 0 !important; }

/* ---------- Reading column and text ---------- */
body.fm-site .entry-content { color: var(--fm-iron); font-size: 1.125rem; line-height: 1.7; }
body.fm-site .entry-content > :not(.alignfull, .alignwide, .kb-row-layout-wrap, .fm-tools, .fm-resource, .wp-block-spacer, .elementor) {
  max-width: var(--fm-col);
  margin-inline: auto;
}
body.fm-site .entry-content > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, figure, table, pre, details, .wp-block-group, .wp-block-table, .wp-block-image):first-child { margin-top: clamp(40px, 6vw, 88px); }
body.fm-site .entry-content p { margin: 0 0 1.25em; }
body.fm-site .entry-content :is(h2, h3, h4, h5, h6) { margin: 2em 0 .55em; color: var(--fm-black); }
body.fm-site .entry-content :is(h1, h2, h3, .wp-block-heading) { text-wrap: balance; }
body.fm-site .entry-content :is(h2, h3) { font-family: var(--fm-display); font-weight: 400; letter-spacing: .005em; text-transform: uppercase; }
body.fm-site .entry-content :is(h1, h2, h3) :is(strong, b) { font-weight: 400; }
body.fm-site .entry-content h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.04; }
body.fm-site .entry-content h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
body.fm-site .entry-content > h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  margin-bottom: .42em;
  background: var(--fm-red);
}
body.fm-site .entry-content :is(h4, h5, h6) { font: 700 1.05rem/1.3 var(--fm-body); letter-spacing: .14em; text-transform: uppercase; }
body.fm-site .entry-content :is(ul, ol) { margin: 0 0 1.4em; padding-left: 1.4em; }
body.fm-site .entry-content ul { list-style: square; }
body.fm-site .entry-content ol { list-style: decimal; }
body.fm-site .entry-content li { margin: .35em 0; padding-left: .2em; }
body.fm-site .entry-content li::marker { color: var(--fm-red); }
body.fm-site .entry-content ol li::marker { font-weight: 700; }
body.fm-site .entry-content strong, body.fm-site .entry-content b { font-weight: 700; color: var(--fm-black); }
body.fm-site .entry-content a:not(:is(.button, .wp-block-button__link, .kb-button, .wp-element-button, .fm-tools-widget)) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--fm-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness .2s, text-decoration-color .2s;
}
body.fm-site .entry-content a:not(:is(.button, .wp-block-button__link, .kb-button, .wp-element-button, .fm-tools-widget)):hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 4px;
}
body.fm-site .entry-content blockquote {
  margin: 2em auto;
  padding: .2em 0 .2em 1.3em;
  border: 0;
  border-left: 6px solid var(--fm-red);
  color: var(--fm-black);
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1.45;
}
body.fm-site .entry-content blockquote p:last-child { margin-bottom: 0; }
body.fm-site .entry-content hr { height: 0; margin: 2.4em auto; border: 0; border-top: 4px solid var(--fm-black); opacity: 1; }
body.fm-site .entry-content :is(figure, .wp-block-image) { margin: 2em auto; }
body.fm-site .entry-content :is(figure, .wp-block-image) img { display: block; max-width: 100%; height: auto; }
body.fm-site .entry-content figcaption { margin-top: 10px; color: var(--fm-muted); font-size: .92rem; line-height: 1.4; }
body.fm-site .entry-content :is(pre, code, kbd) { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
body.fm-site .entry-content pre { overflow-x: auto; padding: 18px 20px; background: var(--fm-iron); color: var(--fm-chalk); }
body.fm-site .entry-content :not(pre) > code { padding: .1em .35em; background: var(--fm-tint); }
body.fm-site .entry-content .wp-block-table { overflow-x: auto; }
body.fm-site .entry-content table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.4; }
body.fm-site .entry-content :is(th, td) { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--fm-rule); text-align: left; vertical-align: top; }
body.fm-site .entry-content th { background: var(--fm-black); color: var(--fm-chalk); font: 700 .85rem/1.25 var(--fm-body); letter-spacing: .12em; text-transform: uppercase; }
body.fm-site .entry-content details { margin: 0 0 8px; border-bottom: 1px solid var(--fm-rule); }
body.fm-site .entry-content summary { box-sizing: border-box; min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; }
body.fm-site .entry-content .wp-block-spacer { max-height: 40px; }

/* Blocks made with the Kadence block editor: headings keep their size and alignment, the font and case follow the site. */
body.fm-site .entry-content :is(h1, h2, h3, h4).wp-block-kadence-advancedheading {
  font-family: var(--fm-display) !important;
  font-weight: 400 !important;
  letter-spacing: .005em;
  line-height: 1.04 !important;
  text-transform: uppercase !important;
}
body.fm-site .entry-content .kt-accordion-wrap .kt-blocks-accordion-header {
  padding: 18px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--fm-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fm-black) !important;
  font: 700 1.1rem/1.3 var(--fm-body) !important;
  letter-spacing: .02em;
}
body.fm-site .entry-content .kt-accordion-wrap .kt-accordion-panel-active > .kt-blocks-accordion-header { box-shadow: inset 4px 0 0 var(--fm-red); padding-left: 16px !important; }
body.fm-site .entry-content .kt-accordion-wrap .kt-accordion-panel-inner { padding: 4px 0 22px !important; border: 0 !important; background: transparent !important; }

/* Cards, icons and pictures made in the block editor: square corners and a heavy top rule instead of soft rounded boxes. */
body.fm-site .entry-content :is(.kt-blocks-info-box-link-wrap, .kt-inside-inner-col, .kt-blocks-info-box-media, .kt-info-box-media-container, .kb-img, .wp-block-kadence-image img, .wp-block-image img) { border-radius: 0 !important; }
body.fm-site .entry-content .kt-blocks-info-box-link-wrap { border: 0 !important; border-top: 4px solid var(--fm-black) !important; background: transparent !important; box-shadow: none !important; }

/* ---------- Article lists (category pages, search results, "keep reading") ---------- */
body.fm-site #archive-container { margin-top: clamp(36px, 5vw, 72px); gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 44px); }
body.fm-site .loop-entry {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0 0;
  border-top: 4px solid var(--fm-black);
  color: inherit;
  transition: transform .3s var(--fm-ease);
}
body.fm-site .loop-entry:hover { transform: translateY(-2px); }
body.fm-site .loop-entry .post-thumbnail { display: block; margin: 0; overflow: hidden; background: var(--fm-iron); }
body.fm-site .loop-entry .post-thumbnail img { filter: grayscale(1) contrast(1.05); transition: transform .6s var(--fm-ease), filter .4s; }
body.fm-site .loop-entry:hover .post-thumbnail img, body.fm-site .loop-entry:focus-within .post-thumbnail img { transform: scale(1.03); filter: none; }
body.fm-site .loop-entry > .entry-content-wrap { padding: 0 !important; }
body.fm-site .loop-entry .entry-header { margin: 0; }
body.fm-site .loop-entry .entry-taxonomies { margin: 0 0 10px; color: var(--fm-black); }
body.fm-site .entry-taxonomies .category-links { font-size: 0; }
body.fm-site .loop-entry .entry-title { margin: 0 0 10px; font: 400 clamp(1.7rem, 2.6vw, 2.5rem)/1.05 var(--fm-display); letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
body.fm-site .loop-entry .entry-title a {
  color: var(--fm-black);
  text-decoration: none;
  background: linear-gradient(var(--fm-red), var(--fm-red)) 0 100% / 0 4px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .35s var(--fm-ease);
}
body.fm-site .loop-entry:hover .entry-title a, body.fm-site .loop-entry .entry-title a:focus-visible { background-size: 100% 4px; }
body.fm-site .loop-entry .entry-meta { color: var(--fm-muted); font: 600 .9rem/1.4 var(--fm-body); letter-spacing: .04em; }
body.fm-site .loop-entry .entry-summary { margin-top: 12px; }
body.fm-site .loop-entry .entry-summary p { margin: 0; color: var(--fm-iron); font-size: 1.05rem; line-height: 1.45; }
body.fm-site .loop-entry .entry-footer { margin-top: 14px; }
body.fm-site .loop-entry .post-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  color: var(--fm-black);
  font: 700 1rem/1 var(--fm-body);
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 -3px 0 var(--fm-red);
}
body.fm-site .loop-entry .post-more-link:hover { box-shadow: inset 0 -6px 0 var(--fm-red); }
body.fm-site .navigation.pagination { margin-top: clamp(36px, 5vw, 64px); }
body.fm-site .navigation.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid var(--fm-black);
  color: var(--fm-black);
  font: 700 1.05rem/1 var(--fm-body);
  text-decoration: none;
  transition: background .25s, color .25s;
}
body.fm-site .navigation.pagination .page-numbers.current, body.fm-site .navigation.pagination a.page-numbers:hover { background: var(--fm-black); color: var(--fm-chalk); }

/* Next and previous article, and the list of related articles under a post. */
body.fm-site .post-navigation { max-width: var(--fm-col); margin: clamp(40px, 6vw, 80px) auto 0; padding: 0; border-top: 4px solid var(--fm-black); }
body.fm-site .post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 20px; }
body.fm-site .post-navigation :is(.nav-previous, .nav-next) { padding: 0; border: 0 !important; }
body.fm-site .post-navigation .nav-previous::after { display: none; }
body.fm-site .post-navigation a { display: block; color: var(--fm-black); font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.1 var(--fm-display); text-decoration: none; text-transform: uppercase; }
body.fm-site .post-navigation .nav-next { grid-column: 2; text-align: right; }
body.fm-site .post-navigation .post-navigation-sub { margin-bottom: 10px; color: var(--fm-muted); font: 700 .85rem/1 var(--fm-body); letter-spacing: .16em; text-transform: uppercase; }
body.fm-site .post-navigation .post-navigation-sub small { font: inherit; }
body.fm-site .post-navigation a:hover { text-decoration: underline; text-decoration-color: var(--fm-red); text-decoration-thickness: 3px; text-underline-offset: 4px; }
body.fm-site .entry-related { margin-top: clamp(48px, 7vw, 96px); padding: 0; background: transparent !important; }
body.fm-site .entry-related :is(.entry-related-title, h2) { margin: 0 0 clamp(20px, 3vw, 36px); color: var(--fm-black); font: 400 clamp(2rem, 4vw, 3.4rem)/1 var(--fm-display); text-transform: uppercase; }
body.fm-site .entry-related .entry-related-inner-content { padding-inline: 0 !important; }

/* ---------- Buttons: clipped corners, the fill rises from the bottom on hover ---------- */
body.fm-site :is(.button, .wp-block-button__link, .wp-element-button, input[type="submit"], .kb-forms-submit, .kb-adv-form-submit-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 26px;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: var(--btn-bg);
  background-image: linear-gradient(var(--btn-fill), var(--btn-fill));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0;
  color: var(--btn-fg);
  font: 700 1.1rem/1.1 var(--fm-body);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: none;
  cursor: pointer;
  transition: background-size .38s var(--fm-ease), color .25s;
}
body.fm-site :is(.button, .wp-block-button__link, .wp-element-button, input[type="submit"], .kb-forms-submit, .kb-adv-form-submit-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit):is(:hover, :focus-visible) {
  background-color: var(--btn-bg);
  background-size: 100% 100%;
  color: var(--btn-fill-fg);
}
body.fm-site :is(.button, .wp-block-button__link, .wp-element-button, input[type="submit"], .kb-forms-submit):focus-visible { outline: 0; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- Forms ---------- */
body.fm-site :is(input:not([type="submit"], [type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="image"]), textarea, select) {
  border: 2px solid var(--fm-black);
  border-radius: 0;
  background-color: var(--fm-chalk);
  color: var(--fm-black);
  font-family: var(--fm-body);
  box-shadow: none;
}
body.fm-site :is(input, textarea, select)::placeholder { color: var(--fm-muted); opacity: 1; }
body.fm-site :is(input, textarea, select):focus { outline: 3px solid var(--fm-red); outline-offset: 2px; border-color: var(--fm-black); box-shadow: none; }
/* Forms made with the theme's form block (Contact page): boxed fields instead of a thin line under the text. */
body.fm-site :is(.kb-form, .kb-adv-form-field) :is(input, textarea, select).kb-field {
  min-height: 52px;
  padding: 12px 14px !important;
  border: 2px solid var(--fm-black) !important;
  border-radius: 0 !important;
  background: var(--fm-chalk) !important;
  color: var(--fm-black) !important;
  font-family: var(--fm-body) !important;
  font-size: 1.05rem !important;
}
body.fm-site :is(.kb-form, .kb-adv-form-field) :is(input, textarea, select).kb-field:focus { outline: 3px solid var(--fm-red); outline-offset: 2px; }
body.fm-site :is(.kb-form, .kb-adv-form-field) label { color: var(--fm-black); font: 700 .85rem/1.2 var(--fm-body); letter-spacing: .12em; text-transform: uppercase; }
body.fm-site .kb-adv-form-field .kb-adv-form-required, body.fm-site .kb-form .required { color: var(--fm-red); }
body.fm-site .wpcf7 input:not([type="submit"], [type="checkbox"], [type="radio"]), body.fm-site .wpcf7 textarea { width: 100%; padding: 12px 14px; }
body.fm-site .search-form .search-field { min-height: 52px; padding: 10px 14px; }
body.fm-site .search-form .search-submit { min-height: 52px; }

/* ---------- Shop, cart and account (WooCommerce) ---------- */
body.fm-site :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, .woocommerce-no-products-found > .woocommerce-info) {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 0;
  border-top: 4px solid var(--fm-black);
  border-radius: 0;
  background: var(--fm-tint);
  color: var(--fm-black);
}
body.fm-site .woocommerce-error { border-top-color: var(--fm-red); }
body.fm-site .woocommerce-message::before, body.fm-site .woocommerce-info::before, body.fm-site .woocommerce-error::before { color: var(--fm-red); }
body.fm-site .woocommerce table.shop_table { border: 0; border-collapse: collapse; border-radius: 0; }
body.fm-site .woocommerce table.shop_table :is(th, td) { padding: 12px; border: 0; border-bottom: 1px solid var(--fm-rule); }
body.fm-site .woocommerce table.shop_table th { font: 700 .85rem/1.2 var(--fm-body); letter-spacing: .12em; text-transform: uppercase; }
body.fm-site .woocommerce ul.products li.product .woocommerce-loop-product__title { font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.1 var(--fm-display); text-transform: uppercase; }
body.fm-site .woocommerce :is(.price, .amount) { color: var(--fm-black); font-weight: 700; }
body.fm-site .woocommerce ul.products li.product a img { margin: 0 0 14px; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
body.fm-site .woocommerce ul.products li.product a:hover img { filter: none; }
body.fm-site .woocommerce-products-header { margin: 0 0 24px; }
body.fm-site .woocommerce-ordering select { min-height: 46px; padding: 0 12px; }

/* ---------- Search box, 404, sidebars, comments ---------- */
body.fm-site section.error .page-header { margin-bottom: clamp(28px, 4vw, 48px); }
body.fm-site section.error .entry-content-wrap > p { max-width: 46ch; font-size: 1.2rem; }
body.fm-site .widget-area .widget-title, body.fm-site #comments .comments-title, body.fm-site #respond .comment-reply-title { font: 400 1.9rem/1.1 var(--fm-display); text-transform: uppercase; color: var(--fm-black); }
body.fm-site .comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--fm-rule); }
body.fm-site .comment-metadata, body.fm-site .comment-meta { color: var(--fm-muted); font-size: .92rem; }
body.fm-site .kt-loader-ellips div, body.fm-site .kt-loader-ellips span { background: var(--fm-red) !important; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1060px) {
  body.fm-site .entry-content > :not(.alignfull, .alignwide, .kb-row-layout-wrap, .fm-tools, .fm-resource, .wp-block-spacer, .elementor) { max-width: 100%; }
}
@media (max-width: 700px) {
  body.fm-site .entry-content { font-size: 1.0625rem; }
  body.fm-site .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
  body.fm-site .post-navigation .nav-next { grid-column: 1; text-align: left; }
  body.fm-site .entry-content blockquote { font-size: 1.15em; }
}

/* ---------- Print: plain black on white, no header, no grain ---------- */
@media print {
  body.fm-site::after, .fm-site-header, #colophon.fm-site-footer { display: none !important; }
  body.fm-site { background: #fff; color: #000; }
  body.fm-site :is(.entry-hero, article.single-entry > .entry-content-wrap > .entry-header, header.search-archive-title) { background: none !important; box-shadow: none; clip-path: none; color: #000; }
  body.fm-site :is(.entry-hero, article.single-entry > .entry-content-wrap > .entry-header) :is(h1, .entry-title, .page-title) { color: #000 !important; }
}

/* ---------- People who turn animation off ---------- */
@media (prefers-reduced-motion: reduce) {
  body.fm-site *, body.fm-site *::before, body.fm-site *::after { animation: none !important; transition: none !important; }
}
