/* Feedough pages built from core blocks. Every class is set in the block's "Additional CSS class" field. */
.fd-band, .fd-foot {
  --night: #13110f; --cream: #f4f2ef; --ink: #111; --red: #e63946; --red-deep: #c81e2e; --grey: #686868; --mist: #b3ada6;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2.5rem);
  --fd-font: Inter, system-ui, sans-serif;
  font-family: var(--fd-font);
  padding-inline: var(--gutter);
  box-sizing: border-box;
}
.wp-site-blocks:has(.fd-band) > * { margin-block: 0; }
.wp-site-blocks:has(.fd-band) > header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.entry-content:has(.fd-band) > * + *, .fd-band + .fd-band { margin-block-start: 0; }
.fd-band a { text-decoration: none; color: inherit; }
.fd-band .wp-block-columns { margin-block: 0; gap: clamp(1.5rem, 4vw, 4rem); }
.fd-band ul { list-style: none; padding: 0; margin: 0; }
.fd-band p { margin-block: 0; }

/* Hero */
.fd-hero { background: var(--night); color: #fff; padding-block: clamp(2rem, 1.2rem + 2.4vw, 3.5rem) clamp(2.5rem, 4vw, 4rem); }
.fd-hero > .wp-block-columns > .wp-block-column { display: grid; gap: 1.5rem; align-content: start; }
.fd-crumbs { font-size: 0.8125rem; font-weight: 500; color: var(--mist); }
.fd-crumbs a { color: #fff; }
.fd-title.wp-block-heading { margin: 0; color: #fff; font-family: var(--fd-font); font-weight: 600; font-size: clamp(2.4rem, 0.9rem + 4.6vw, 5.25rem); line-height: 0.95; letter-spacing: -0.055em; margin-left: -0.05em; }
.fd-lead { font-size: clamp(1.15rem, 1.04rem + 0.45vw, 1.45rem); line-height: 1.4; letter-spacing: -0.012em; color: #e7e2dc; max-width: 44ch; }
.fd-label { font-size: 0.8125rem; font-weight: 500; color: var(--mist); }

/* Search block */
.fd-search { font-family: var(--fd-font); }
.fd-search__label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.6rem; color: #fff; }
.fd-search__box { display: flex; align-items: center; gap: 0.75rem; min-height: 4rem; padding: 0 1.1rem; background: var(--cream, #f4f2ef); color: #111; border-radius: 6px; transition: box-shadow 0.3s; }
.fd-search__box:focus-within { box-shadow: 0 0 0 3px var(--red, #e63946); }
.fd-search__box svg { flex: none; width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fd-search__box input { flex: 1; min-width: 0; min-height: 3.8rem; border: 0; background: transparent; color: #111; font: inherit; font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.5rem); }
.fd-search__box input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--red, #e63946); }
.fd-search__box input::placeholder, .fd-search__fake { color: #77716b; opacity: 1; font-size: 1.2rem; }
.fd-search__hint { margin-top: 0.55rem !important; font-size: 0.8125rem; color: var(--mist, #b3ada6); }
.fd-results { margin-top: 1.25rem; }
.fd-results[hidden], .fd-results__empty[hidden], .fd-start[hidden], .fd-tools li[hidden] { display: none; }
.fd-results__head { font-size: 0.8125rem; font-weight: 500; color: var(--mist); margin-bottom: 0.4rem !important; }
.fd-results__list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.fd-results__list li { border-top: 1px solid rgb(255 255 255 / 0.12); }
.fd-result { display: grid; gap: 0.15rem; padding-block: 0.7rem; }
.fd-result__name { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.fd-result__desc { font-size: 0.875rem; line-height: 1.4; color: var(--mist); }
.fd-result__desc:empty { display: none; }
.fd-result.is-top .fd-result__name { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.fd-results__empty { display: grid; gap: 0.4rem; padding-block: 1rem; border-top: 1px solid rgb(255 255 255 / 0.12); color: #e7e2dc; }
.fd-results__empty a { text-decoration: underline; color: #fff; }
mark.fd-hit { background: linear-gradient(var(--red) 0 0) no-repeat 0 92% / 100% 0.3em; color: inherit; }

/* Small link lists in the hero */
.fd-start ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; margin-top: 0.4rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.fd-start li { border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.fd-start a { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em; }
.fd-start a::after { content: '→'; color: var(--red); transition: translate 0.4s; }
.fd-start a:hover::after, .fd-start a:focus-visible::after { translate: 6px 0; }
.fd-jobs { border-top: 1px solid rgb(255 255 255 / 0.2); margin-top: 0.4rem !important; }
.fd-jobs li { display: flex; align-items: baseline; gap: 0.5rem; padding-block: 0.3rem; line-height: 1.3; margin: 0; font-size: 0.95rem; font-weight: 500; }
.fd-jobs li::before { content: ''; order: 1; flex: 1; min-width: 1rem; border-bottom: 1px dotted rgb(255 255 255 / 0.3); translate: 0 -0.25em; }
.fd-jobs a { order: 0; white-space: nowrap; }
.fd-jobs a:hover, .fd-jobs a:focus-visible { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.25em; }
.fd-jobs strong { order: 2; font-weight: 600; color: var(--red); }
.fd-jobs .is-current a { color: var(--red); }
.fd-jobs .is-current strong { color: #fff; background: var(--red-deep); padding-inline: 0.35em; border-radius: 3px; }

/* Tool index */
.fd-index, .fd-about, .fd-pager { background: var(--cream); color: var(--ink); }
.fd-index { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.fd-index h2, .fd-about h2 { margin: 0; color: var(--ink); font-family: var(--fd-font); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.fd-index h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }
.fd-index-side { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 5.5rem); align-self: flex-start; display: grid; gap: 0.6rem; }
.fd-count { font-size: 0.875rem; font-weight: 600; color: var(--red-deep); }
.fd-note { color: var(--grey); line-height: 1.5; }
.fd-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.fd-tools li { position: relative; padding: 0.95rem 1.8rem 1rem 0; border-bottom: 1px solid rgb(17 17 17 / 0.12); font-size: 0.95rem; line-height: 1.45; color: var(--grey); transition: background-color 0.3s; }
.fd-tools li::after { content: '→'; position: absolute; top: 0.95rem; right: 0.6rem; color: var(--red-deep); transition: translate 0.4s; }
.fd-tools li:hover { background: rgb(17 17 17 / 0.035); }
.fd-tools li:hover::after, .fd-tools li:focus-within::after { translate: 6px 0; }
.fd-tools a { display: block; color: var(--ink); font-weight: 600; font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 0.25rem; }
.fd-tools a::before { content: ''; position: absolute; inset: 0; }
.fd-tools li:hover a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }

/* About and pager */
.fd-about { padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid rgb(17 17 17 / 0.12); }
.fd-about h2 { font-size: clamp(1.15rem, 1.04rem + 0.45vw, 1.45rem); }
.fd-about p { color: var(--grey); line-height: 1.6; max-width: 66ch; }
.fd-pager { border-top: 2px solid var(--ink); padding-block: 1.75rem 2.25rem; }
.fd-pager .fd-label { color: var(--grey); }
.fd-pager-name { font-weight: 600; font-size: clamp(1.25rem, 1rem + 1.2vw, 2.2rem); line-height: 1.05; letter-spacing: -0.035em; }
.fd-pager-name a:hover, .fd-pager-name a:focus-visible { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.fd-pager .wp-block-column:nth-child(2) { text-align: center; }
.fd-pager .wp-block-column:nth-child(3) { text-align: right; }

/* Newsletter */
.fd-news { background: var(--night); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.fd-news h2 { margin: 0 0 0.75rem; color: #fff; font-family: var(--fd-font); font-weight: 600; font-size: clamp(2rem, 1.3rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.045em; }
.fd-news p { max-width: 46ch; color: #e7e2dc; line-height: 1.45; margin-bottom: 1.25rem; }

/* Footer template part */
.fd-foot { background: var(--night); color: #fff; padding-block: 3rem var(--gutter); border-top: 1px solid rgb(255 255 255 / 0.12); }
.fd-foot a { color: #e7e2dc; text-decoration: none; }
.fd-foot-logo { margin: 0; width: 100%; max-width: none; }
.fd-foot-logo a { display: block; }
.fd-foot-logo img { width: 100%; height: auto; display: block; }
.fd-foot .wp-block-columns { margin-block: 2rem 0; gap: 1.5rem 3rem; }
.fd-foot p { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--mist); }
.fd-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; font-size: 0.875rem; }
.fd-legal a { display: inline-block; padding-block: 0.3rem; }
.fd-legal a:hover, .fd-legal a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.fd-copy { margin-top: 1.5rem !important; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 0.12); }

/* Sections on the long pages */
.fd-section-title.wp-block-heading { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 5.25rem); line-height: 1; letter-spacing: -0.045em; }
.fd-index > .wp-block-columns { align-items: flex-end; margin-bottom: 2.5rem; }
.fd-job { border-top: 2px solid var(--ink); padding-block: 2rem 2.5rem; scroll-margin-top: calc(var(--fd-rail-h, 4rem) + 5rem); }
.fd-job[hidden] { display: none; }
.fd-job h3 { margin: 0; color: var(--ink); font-family: var(--fd-font); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -0.04em; }
.fd-hub { font-size: 0.875rem; font-weight: 500; }
.fd-hub a:hover, .fd-hub a:focus-visible { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.25em; }
.fd-tools--plain li { padding-block: 0.8rem 0.85rem; }
.fd-tools--plain a { margin-bottom: 0; }
.fd-more { margin-top: 0.6rem; min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--red-deep); text-decoration: underline; }
.fd-more { display: none; }
.fd-start ul.fd-tries { display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; margin-top: 0.3rem; border-top: 0; }
.fd-start .fd-tries li { border-bottom: 0; }
.fd-start .fd-tries a { display: inline-block; padding-block: 0.4rem; font-weight: 500; font-size: 0.95rem; }
.fd-start .fd-tries a::before { content: '“'; color: var(--mist); }
.fd-start .fd-tries a::after { content: '”'; color: var(--mist); translate: none; }
.fd-tries a:hover, .fd-tries a:focus-visible { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.25em; }
.fd-jobs li.is-zero { opacity: 0.32; }
.fd-jobs li.is-hit strong { color: #fff; background: var(--red-deep); padding-inline: 0.35em; border-radius: 3px; }
.fd-results__head { display: flex; justify-content: space-between; gap: 1rem; }
.fd-results__head a { color: #fff; text-decoration: underline; }
.fd-result { grid-template-columns: minmax(0, 1fr) auto; }
.fd-result__desc { grid-column: 1 / -1; }
.fd-result__job { font-size: 0.8125rem; color: var(--mist); white-space: nowrap; }
.fd-faq { background: var(--cream); color: var(--ink); padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid rgb(17 17 17 / 0.12); }
.fd-faq h2 { margin: 0 0 2rem; color: var(--ink); font-family: var(--fd-font); font-weight: 600; }
.fd-faq h3 { margin: 1.75rem 0 0.5rem; color: var(--ink); font-family: var(--fd-font); font-weight: 600; font-size: clamp(1.15rem, 1.04rem + 0.45vw, 1.45rem); letter-spacing: -0.02em; }
.fd-faq p { color: var(--grey); line-height: 1.55; max-width: 62ch; }

/* Sticky search bar (made by the Search block on long pages) */
.fd-rail {
  --cream: #f4f2ef; --ink: #111; --red: #e63946; --red-deep: #c81e2e;
  position: fixed; left: 0; right: 0; top: var(--fd-top, 0px); z-index: 49;
  display: grid; grid-template-columns: minmax(10rem, 18rem) minmax(0, 1fr); align-items: center; column-gap: 1.5rem;
  padding: 0.6rem clamp(1rem, 0.6rem + 1.6vw, 2.5rem); box-sizing: border-box;
  background: var(--cream); color: var(--ink); font-family: Inter, system-ui, sans-serif;
  border-bottom: 1px solid rgb(17 17 17 / 0.14); box-shadow: 0 8px 24px -12px rgb(17 17 17 / 0.25);
  translate: 0 -110%; visibility: hidden; transition: translate 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.5s;
}
.fd-rail.is-on { translate: 0 0; visibility: visible; transition: translate 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s; }
.fd-rail__find input { width: 100%; min-height: 2.75rem; padding: 0 0.75rem; box-sizing: border-box; font: inherit; color: var(--ink); background: #fff; border: 1px solid rgb(17 17 17 / 0.18); border-radius: 6px; }
.fd-rail__find input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(230 57 70 / 0.18); }
.fd-rail__jobs { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.fd-chip { flex: none; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.8rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(17 17 17 / 0.16); color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.fd-chip:hover, .fd-chip:focus-visible { box-shadow: inset 0 0 0 1px var(--ink); }
.fd-chip.is-current { background: var(--ink); color: #fff; box-shadow: none; }

@media (max-width: 781px) {
  /* Phones: the job list becomes a swipeable row, and long jobs show five tools until opened. */
  .fd-jobs { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; border-top: 0; margin-inline: calc(var(--gutter) * -1) !important; padding-inline: var(--gutter) !important; }
  .fd-jobs li { flex: none; padding: 0.45rem 0.8rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
  .fd-jobs li::before { display: none; }
  .fd-jobs .is-current { background: var(--red-deep); }
  .fd-jobs .is-current a { color: #fff; }
  .fd-jobs .is-current strong { background: none; padding: 0; }
  .fd-job.is-clipped .fd-tools li:nth-child(n + 6) { display: none; }
  .fd-job.is-clipped .fd-more, .fd-job .fd-more { display: inline-block; }
  html.fd-searching .fd-more { display: none; }
  html.fd-searching .fd-job.is-clipped .fd-tools li:nth-child(n + 6):not([hidden]) { display: block; }
  .fd-rail { grid-template-columns: 1fr; row-gap: 0.5rem; }
}
@media (max-width: 781px) {
  .fd-tools, .fd-start ul { grid-template-columns: 1fr; }
  .fd-hero .fd-side { order: 2; }
  .fd-index-side { position: static; }
  .fd-pager .wp-block-column:nth-child(n) { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .fd-band *, .fd-band *::after { transition: none !important; } }

/* Generator pages: hero, tool band, article text and related tools */
.fd-gen-hero { padding-block: clamp(1rem, 2.5vh, 1.75rem) clamp(1.5rem, 4vh, 2.5rem); }
.fd-gen-hero > * { max-width: 46rem; margin-inline: auto; text-align: center; }
.fd-gen-hero .fd-crumbs { display: none; }
.fd-gen-hero .fd-title.wp-block-heading { width: 100%; max-width: 46rem; margin-inline: auto !important; text-align: center; font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.75rem); line-height: 1.1; }
.fd-gen-hero .fd-lead { margin-block: 0.5rem 1.25rem; font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem); }
.fd-gen-hero > .ai-x-generator-container, .fd-gen-hero > .fd-visual { text-align: left; }
.fd-gen-hero > .fd-visual { max-width: none; }
.fd-gen-hero a { text-decoration: underline; }
.fd-article { background: #fff; color: var(--ink); padding-block: clamp(2.5rem, 5vw, 4.5rem); font-size: 1.0625rem; line-height: 1.65; }
.fd-article > * { max-width: 44rem; margin-inline: auto; }
.fd-article p { margin-block: 0 1.1em; }
.fd-article a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 0.15em; }
.fd-article h2.wp-block-heading { margin: 2.2em auto 0.6em; color: var(--ink); font-family: var(--fd-font); font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.fd-article h3.wp-block-heading { margin: 1.7em auto 0.4em; color: var(--ink); font-family: var(--fd-font); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.fd-article ul { margin-block: 0 1.2em; padding-left: 1.2rem; list-style: disc; }
.fd-article li { margin-bottom: 0.45em; }
.fd-article li::marker { color: var(--red); }
.fd-article .wp-block-table { margin-block: 1.5em; overflow-x: auto; font-size: 0.9375rem; }
.fd-article table { width: 100%; border-collapse: collapse; }
.fd-article td { padding: 0.7rem 0.75rem; border: 0; border-bottom: 1px solid #dedad4; vertical-align: top; }
.fd-article tr:first-child td { border-bottom: 1px solid var(--ink); }
.fd-gen-more { background: var(--cream); color: var(--ink); padding-block: clamp(2.5rem, 5vw, 4rem); }
.fd-gen-more > * { max-width: 62rem; margin-inline: auto; }
.fd-gen-more h2.wp-block-heading { margin-block: 0 1rem; color: var(--ink); font-family: var(--fd-font); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 600px) { .fd-gen-more .fd-tools { grid-template-columns: minmax(0, 1fr); } }

/* Generator pages: sidebar beside the article */
.fd-gen-body.wp-block-columns { gap: 0; margin-block: 0; align-items: stretch; }
.fd-gen-side { padding-top: clamp(1rem, 2vw, 1.75rem); background: #2f2f2f; }
.fd-gen-body .fd-article { min-width: 0; padding-inline: clamp(1rem, 0.6rem + 1.6vw, 2.5rem); font-family: Inter, system-ui, sans-serif; --ink: #111; --red: #e63946; --red-deep: #c81e2e; }

/* Prompt tools with their own interface sit on a white card in the hero */
.fd-gen-hero > .fd-gen-card { max-width: 74rem; padding: clamp(0.75rem, 2vw, 1.5rem); background: #fff; border-radius: 12px; color: var(--ink); text-align: left; box-sizing: border-box; }
.fd-gen-hero > .fd-gen-card a { color: inherit; }
.fd-gen-hero ~ hr#adsep, .fd-gen-hero ~ hr#aftad { height: 0; margin: 0 !important; border: 0; background: none; }

/* Tools with a side panel: three equal parts, the main column takes two */
@media (min-width: 901px) {
  .fd-gen-card .apg-generator-layout { display: grid !important; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .fd-gen-card .apg-generator-main-col, .fd-gen-card .apg-generator-sidebar { width: auto !important; min-width: 0 !important; max-width: none !important; flex: none !important; }
  .fd-gen-card .ipc-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important; }
}
.fd-gen-card .image-prompt-container { max-width: none; }
.fd-gen-card .fqg { margin-inline: auto; }

/* Generator pages: the submenu stays fixed while the main menu scrolls away */
.wp-site-blocks:has(.fd-gen-hero) > header { position: relative; }
.wp-site-blocks:has(.fd-gen-hero) > #psb-submenu-bar { top: var(--wp-admin--admin-bar--height, 0px); z-index: 49; }
