/* Flow Control theme — extra styles on top of theme.json */

body { -webkit-font-smoothing: antialiased; }

/* ---------- Header ---------- */
.fc-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .fc-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .fc-header-wrap { top: 0; position: relative; } }
/* No gap between header, content and footer (overrides the global block gap). */
.wp-site-blocks > * { margin-block: 0; }
/* Do not use backdrop-filter/transform here: they would trap the full-screen mobile menu inside the header. */
.fc-header .wp-block-site-logo img { height: auto; }
.fc-nav .wp-block-navigation-item__content { padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; color: var(--wp--preset--color--ink); }
.fc-nav .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--soft); color: var(--wp--preset--color--navy); }
.fc-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--pale-blue); }
.fc-nav .fc-nav-cta > .wp-block-navigation-item__content { background: var(--wp--preset--color--navy); color: #fff; margin-left: 6px; }
.fc-nav .fc-nav-cta > .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--navy-700); color: #fff; }
/* Mobile menu */
.fc-nav .wp-block-navigation__responsive-container-open,
.fc-nav .wp-block-navigation__responsive-container-close { padding: 8px; color: var(--wp--preset--color--navy); }
.fc-nav .wp-block-navigation__responsive-container-open svg,
.fc-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.fc-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 14px 20px 28px; background: #fff; overflow-y: auto; }
.fc-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; align-items: stretch !important; }
.fc-nav .is-menu-open .wp-block-navigation__container { width: 100%; gap: 4px !important; align-items: stretch !important; }
.fc-nav .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; }
.fc-nav .is-menu-open .wp-block-navigation-item__content { display: block; box-sizing: border-box; width: 100%; padding: 13px 16px !important; border-radius: 12px; font-size: 1.15rem; }
.fc-nav .is-menu-open .fc-nav-cta { margin-top: 12px; }
.fc-nav .is-menu-open .fc-nav-cta > .wp-block-navigation-item__content { margin-left: 0; text-align: center; }

/* ---------- Page title band ---------- */
.fc-page-hero { position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--wp--preset--color--navy-950), var(--wp--preset--color--navy-700)) !important; }
.fc-page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(100deg, transparent 0 38px, rgba(255,255,255,.035) 38px 39px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.fc-page-hero > * { position: relative; z-index: 1; }
.fc-page-hero .wp-block-post-excerpt { margin-top: .6rem; }
.fc-page-hero .wp-block-post-excerpt__excerpt, .fc-lead { font-size: 1.2rem; color: #c3d3e6; }
.fc-lead { max-width: 62ch; }
.fc-page-hero .wp-block-post-excerpt__excerpt { max-width: 62ch; margin: 0; }
.fc-hero .fc-lead { max-width: 62ch !important; }

.fc-page-hero .wp-block-post-excerpt__more-text { display: none; }

/* ---------- Home hero (cover block with class fc-hero) ---------- */
.fc-hero { position: relative; overflow: hidden; }
.fc-hero canvas.fc-flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.fc-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
.fc-hero h1 mark { background: none; color: var(--wp--preset--color--accent); }
.fc-eyebrow { font-size: .78rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-dark); margin-bottom: .2rem !important; }
.fc-hero .fc-eyebrow { color: var(--wp--preset--color--accent); }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-accent .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--navy-950); }
.wp-block-button.is-style-accent .wp-block-button__link:hover { background: #ffa04a; color: var(--wp--preset--color--navy-950); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--navy); background: #fff; }
.wp-block-button__link { transition: transform .15s, background .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* ---------- Stats ---------- */
.fc-stats { margin-top: -56px !important; position: relative; z-index: 3; }
.fc-stats > .wp-block-columns { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(11,31,51,.06), 0 8px 24px rgba(11,31,51,.08); gap: 0 !important; overflow: hidden; }
.fc-stats .wp-block-column { padding: 26px 28px; border-right: 1px solid var(--wp--preset--color--line); }
.fc-stats .wp-block-column:last-child { border-right: 0; }
.fc-stats .fc-stat-num { font-size: 2.3rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--wp--preset--color--navy); margin: 0; }
.fc-stats .fc-stat-label { color: var(--wp--preset--color--ink-soft); font-size: .92rem; margin: .4rem 0 0; }
@media (max-width: 781px) {
  .fc-stats > .wp-block-columns { flex-wrap: wrap !important; }
  .fc-stats .wp-block-column { flex-basis: 50% !important; border-bottom: 1px solid var(--wp--preset--color--line); }
}

/* ---------- Cards ---------- */
.fc-card, .wp-block-group.is-style-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; overflow: hidden; height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.fc-card:hover, .wp-block-group.is-style-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(11,31,51,.08); border-color: #cfd9e5; }
.wp-block-group.is-style-card { padding: 26px; }
.fc-card > .wp-block-image, .fc-card > figure { margin: 0 !important; }
.fc-card > .wp-block-image img, .fc-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; border-radius: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.fc-card-body { padding: 20px 22px 24px; }
.fc-card-body > * + * { margin-top: .5rem; }
.fc-card h3 { font-size: 1.15rem; margin: 0; }
.fc-card h3 a { text-decoration: none; color: inherit; }
.fc-card p { color: var(--wp--preset--color--ink-soft); font-size: .96rem; margin: 0; }
.fc-card .fc-more a { font-weight: 600; font-size: .92rem; text-decoration: none; }
.fc-tag { display: inline-block; font-size: .72rem !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(242,140,40,.14); color: var(--wp--preset--color--accent-dark) !important; }

/* Research area box on the home page */
.fc-area .fc-area-list { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.fc-area .fc-area-list li { border-bottom: 1px dashed var(--wp--preset--color--line); }
.fc-area .fc-area-list li:last-child { border-bottom: 0; }
.fc-area .fc-area-list a { display: block; padding: 7px 0; text-decoration: none; color: var(--wp--preset--color--ink); }
.fc-area .fc-area-list a::after { content: " →"; color: var(--wp--preset--color--accent-dark); }
.fc-area .fc-area-list a:hover { color: var(--wp--preset--color--accent-dark); }

/* Photo mosaic */
.fc-mosaic { display: grid !important; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; gap: 14px !important; }
.fc-mosaic > figure { margin: 0 !important; height: 100%; }
.fc-mosaic > figure:first-child { grid-row: span 2; }
.fc-mosaic img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 14px; }
@media (max-width: 700px) { .fc-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .fc-mosaic > figure:first-child { grid-column: span 2; grid-row: auto; } }

/* ---------- Team ---------- */

.fc-person { text-align: left; }
.fc-person .wp-block-image { margin: 0 0 12px !important; }
.fc-person .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: linear-gradient(160deg, #e7eef6, #cddbea); filter: grayscale(.12); transition: filter .3s; }
.fc-person:hover .wp-block-image img { filter: none; }
.fc-person h3 { font-size: 1.05rem; margin: 0; }
.fc-person .fc-role { color: var(--wp--preset--color--ink-soft); font-size: .9rem; margin: 2px 0 0; }
.fc-person .fc-contact { font-size: .85rem; margin: 6px 0 0; }
.fc-person .fc-contact a { text-decoration: none; }
.fc-people-compact .fc-person { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
.fc-people-compact .fc-person .wp-block-image { margin: 0 !important; flex: none; }
.fc-people-compact .fc-person .wp-block-image img { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 50%; }
.fc-people-compact .fc-person > div > * { margin: 0; }

/* Contacts box on research pages */
.fc-aside { position: sticky; top: 110px; }
.fc-aside .fc-aside-title { font-size: .78rem !important; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--ink-soft); font-weight: 600; }
.fc-aside ul { list-style: none; padding: 0; margin: 0; }
.fc-aside li { padding: 7px 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: .95rem; }
.fc-aside li:last-child { border-bottom: 0; }
.fc-aside li a { text-decoration: none; }

/* Facilities */
.fc-facility { padding: 36px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.fc-facility:last-child { border-bottom: 0; }
.fc-facility .wp-block-media-text__media img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; }
.fc-specs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.fc-specs li { font-size: .84rem; padding: 5px 12px; border-radius: 999px; background: var(--wp--preset--color--soft); border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--navy-700); font-weight: 500; }

/* Methods */
.fc-num { font-weight: 700; color: var(--wp--preset--color--accent-dark); font-size: .9rem !important; letter-spacing: .1em; margin: 0 !important; }

/* CTA band */
.fc-cta { border-radius: 20px; background: linear-gradient(120deg, var(--wp--preset--color--navy), var(--wp--preset--color--navy-700)) !important; }

/* Figures inside text pages */
.entry-content .wp-block-image img, .wp-block-post-content .wp-block-image img { border: 1px solid var(--wp--preset--color--line); background: #fff; }
.wp-block-post-content .wp-block-image figcaption { text-align: center; }

/* ---------- Footer ---------- */
.fc-footer a { color: #c3d3e6; text-decoration: none; }
.fc-footer a:hover { color: #fff; }
.fc-footer p { color: #9fb4cc; }
.fc-footer .fc-footer-title { color: #fff !important; font-size: .8rem !important; text-transform: uppercase; letter-spacing: .12em; }
.fc-plain-list { list-style: none; padding: 0; margin: 0; }
.fc-plain-list li { margin: 0 0 8px; }
.fc-logo-pill { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 12px; }
.fc-footer-sep { border-color: rgba(255,255,255,.1) !important; opacity: 1; margin-top: 40px !important; }

/* ---------- teachPress publications ---------- */
.teachpress_pub_list, #tppublistform { font-size: 1rem; }
.tp_pub_list h3, .teachpress_pub_list h3, h3.tp_h3 { font-size: 1.6rem; color: var(--wp--preset--color--navy-700); margin: 2.2rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--wp--preset--color--line); }
.tp_publication { padding: 14px 0; border-bottom: 1px dashed var(--wp--preset--color--line); }
.tp_publication:last-child { border-bottom: 0; }
.tp_pub_title { font-weight: 600; color: var(--wp--preset--color--navy); font-size: 1.02rem; margin: 0 0 4px !important; }
.tp_pub_title a { color: inherit; text-decoration: none; }
.tp_pub_author, .tp_pub_additional { color: var(--wp--preset--color--ink-soft); font-size: .9rem; margin: 0 !important; }
.tp_pub_type { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--wp--preset--color--pale-blue); color: var(--wp--preset--color--navy-700); margin-left: 6px; vertical-align: middle; }
.tp_pub_type.article { background: rgba(242,140,40,.14); color: var(--wp--preset--color--accent-dark); }
.tp_pub_menu { font-size: .84rem; margin: 6px 0 0 !important; }
.tp_bibtex_entry pre, .tp_abstract_entry { font-size: .85rem; background: var(--wp--preset--color--soft); padding: 12px; border-radius: 10px; overflow-x: auto; }
#tppublistform select, #tppublistform input[type=text], #tppublistform input[type=search] { font: inherit; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--wp--preset--color--line); }

/* Reveal on scroll */
.fc-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.fc-reveal.fc-in { opacity: 1; transform: none; }
.editor-styles-wrapper .fc-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fc-reveal { opacity: 1; transform: none; transition: none; } }

/* Home: show only the 5 latest publications, no pager */
.fc-latest-pubs .tablenav { display: none; }
.tablenav-pages { margin: 18px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.tablenav-pages .page-numbers { padding: 6px 12px; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; text-decoration: none; }
.tablenav-pages .page-numbers.disabled { opacity: .4; pointer-events: none; }

/* Space between page sections that start with an eyebrow label */
.wp-block-post-content > .fc-eyebrow:not(:first-child),
.wp-block-post-content > .wp-block-separator + .fc-eyebrow { margin-top: 4.5rem !important; }
.wp-block-post-content > .wp-block-separator { margin: 4rem 0 0 !important; }
.wp-block-post-content > .fc-mosaic, .wp-block-post-content > .wp-block-columns { margin-top: 2rem; }

/* ---------- Home hero: photo slideshow ---------- */
.fc-hero .fc-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fc-hero .fc-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 7s ease-out; }
.fc-hero .fc-slide.is-active { opacity: 1; transform: scale(1); }
.fc-hero .wp-block-cover__background { z-index: 1 !important; background: linear-gradient(90deg, rgba(7,21,38,.92) 0%, rgba(7,21,38,.72) 45%, rgba(7,21,38,.25) 100%) !important; opacity: 1 !important; }
.fc-hero .wp-block-cover__inner-container { z-index: 2; }
.fc-hero .fc-dots { position: absolute; z-index: 3; right: max(20px, calc((100% - 1180px) / 2)); bottom: 84px; display: flex; gap: 8px; }
.fc-hero .fc-dots button { width: 34px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: background .3s; }
.fc-hero .fc-dots button.is-active { background: var(--wp--preset--color--accent); }
.fc-hero .fc-hero-slides { display: none; }
.editor-styles-wrapper .fc-hero .fc-hero-slides { display: flex; opacity: .85; }
.fc-hero .fc-lead { color: #dbe6f2 !important; }
@media (prefers-reduced-motion: reduce) { .fc-hero .fc-slide { transition: none; transform: none; } }

/* ---------- Research theme cards ---------- */

.fc-theme { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .25s, box-shadow .25s; }
.fc-theme:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(11,31,51,.12); }
.fc-theme > .wp-block-cover { min-height: 230px !important; padding: 22px 24px !important; margin: 0 !important; align-items: flex-end !important; }
.fc-theme > .wp-block-cover .wp-block-cover__background { background: linear-gradient(180deg, rgba(7,21,38,.05) 0%, rgba(7,21,38,.85) 100%) !important; opacity: 1 !important; }
.fc-theme > .wp-block-cover img.wp-block-cover__image-background { transition: transform .6s ease; }
.fc-theme:hover > .wp-block-cover img.wp-block-cover__image-background { transform: scale(1.05); }
.fc-theme h3 { color: #fff !important; font-size: 1.35rem !important; margin: 6px 0 0 !important; }
.fc-theme h3 a { color: inherit !important; text-decoration: none; }
.fc-theme .fc-count { display: inline-block; font-size: .74rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--navy-950) !important; background: var(--wp--preset--color--accent); padding: 4px 10px; border-radius: 999px; margin: 0 !important; }
.fc-theme-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.fc-theme-body > * { margin: 0 !important; }
.fc-theme-body .fc-hook { color: var(--wp--preset--color--ink); font-size: 1rem; }
.fc-chiplist { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; }
.fc-chiplist li { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--wp--preset--color--pale-blue); color: var(--wp--preset--color--navy-700); }
.fc-featured { font-size: .86rem; color: var(--wp--preset--color--ink-soft); border-left: 3px solid var(--wp--preset--color--accent); padding-left: 12px !important; }
.fc-featured a { color: var(--wp--preset--color--navy); font-weight: 600; text-decoration: none; }
.fc-featured a:hover { color: var(--wp--preset--color--accent-dark); }
.fc-people-line { font-size: .84rem; color: var(--wp--preset--color--ink-soft); }
.fc-theme-links { margin-top: auto !important; font-size: .9rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fc-theme-links a { text-decoration: none; }

/* Compact theme tiles on the home page */

.fc-tile { border-radius: 16px !important; overflow: hidden; min-height: 190px !important; padding: 18px !important; align-items: flex-end !important; transition: transform .25s, box-shadow .25s; }
.fc-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,31,51,.15); }
.fc-tile .wp-block-cover__background { background: linear-gradient(180deg, rgba(7,21,38,.1), rgba(7,21,38,.88)) !important; opacity: 1 !important; }
.fc-tile h3 { color: #fff !important; font-size: 1.05rem !important; margin: 0 !important; }
.fc-tile h3 a { color: inherit !important; text-decoration: none; }
.fc-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 5; }
.fc-tile .fc-count { font-size: .7rem !important; }

/* ---------- Publications: keyword filter + year accordion ---------- */
.fc-filter { position: sticky; top: 76px; z-index: 5; background: #fff; padding: 14px 0 10px; margin-bottom: 18px; border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .fc-filter { top: 108px; }
.fc-filter-search { width: 100%; font: inherit; font-size: .98rem; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--wp--preset--color--line); background: #fff; }
.fc-filter-search:focus { outline: 2px solid #2f7fd1; outline-offset: 1px; border-color: transparent; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fc-chip { font: inherit; font-size: .86rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); background: #fff; color: var(--wp--preset--color--navy-700); cursor: pointer; transition: all .15s; }
.fc-chip:hover { border-color: var(--wp--preset--color--navy-700); }
.fc-chip.is-active { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: #fff; }
.fc-filter-count { font-size: .86rem; color: var(--wp--preset--color--ink-soft); margin: 10px 0 0; }
.fcg-pubs-year { border-bottom: 1px solid var(--wp--preset--color--line) !important; }
.fcg-pubs-year > summary { font-size: 1.5rem !important; line-height: 1.2 !important; padding: 18px 4px !important; color: var(--wp--preset--color--navy) !important; border-bottom: 0 !important; letter-spacing: -0.02em; display: flex; align-items: center; }
.fcg-pubs-year > summary::after { content: attr(data-count) " publications"; margin-left: auto; font-size: .82rem; font-weight: 500; color: var(--wp--preset--color--ink-soft); letter-spacing: 0; }
.fcg-pubs-year > summary[data-count="1"]::after { content: "1 publication"; }
.fcg-pubs-year > summary:not([data-count])::after { content: ""; }
.fcg-pubs-year > summary::before { border-color: transparent transparent transparent var(--wp--preset--color--accent) !important; }
.fcg-pubs-body { padding: 0 4px 18px !important; }
.fcg-pubs .tp_h3 { display: none; }

@media (max-width: 781px) {
  .fc-filter { position: static; }
  .fc-hero .fc-dots { bottom: 24px; }
}
