.is-position-sticky, header {
  position: sticky;
  top: 0;
  z-index: 100;
}

header .custom-logo {
  max-height: 60px;
  width: auto;
}

.glassy {
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.57);
  /*border-radius: 16px;*/
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8.8px);
  -webkit-backdrop-filter: blur(8.8px);
  border: 1px solid rgba(255, 255, 255, 0.31);
}

/*============================
   NAVBAR
   =========================== */
.navbar {
  background: var(--wp--preset--color--base);  
  background-image: linear-gradient(to right,
    var(--wp--preset--color--accent-1),
    var(--wp--preset--color--accent-2)
    
  );
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: bottom;
}


[aria-current="page"] {
  font-weight: bold;
}

.hamburger {
  display: none;
}

@media screen and (max-width: 781px) {
  nav.desktop-navbar {
    display: none;
  }

  .hamburger {
    display: inline-grid;
  }
}

/* MOBILE MENU */
  .hamburger {
    place-items: center;
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--divider);
    background: #fff; color: inherit; cursor: pointer;
  }
  .hamburger:hover { 
    background: var(--wp--preset--color--accent-5);
  }
  .hamburger svg { display:block; }

  .content {
    padding: 1rem;
    max-width: 60ch;
  }

  /* ===============================
     MOBILE MENU OVERLAY + DRAWER
     =============================== */
  .mobile-menu {
    --divider: rgba(0,0,0,.08);
    --speed: .24s;
    --ease: cubic-bezier(.2,.6,.2,1);
    --left-padding: 1.6rem;
    position: fixed; inset: 0;
    display: grid; place-items: stretch;
    background: color-mix(in oklab, var(--wp--preset--color--accent-3) 80%, transparent);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--speed) ease;
    font-size: var(--wp--preset--font-size--large);
  }
  .mobile-menu[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu__dialog {
    margin-left: auto;
    height: 100%;
    width: min(92vw, 420px);
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--accent-1);
    box-shadow: 0 10px 30px rgba(12,10,16,.18);
    display: grid;
    grid-template-rows: auto 1fr;
    transform: translateX(12px);
    transition: transform var(--speed) var(--ease);
  }
  .mobile-menu[aria-hidden="false"] .mobile-menu__dialog {
    transform: translateX(0);
  }

  .mobile-menu__head {
    display: flex; align-items: center; justify-content: space-between;
    padding-left: var(--left-padding);
    padding-right: var(--wp--style--root--padding-right);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divider);
  }
  .mobile-menu__title { margin: 0; font-size: 1rem; letter-spacing: .2px; display:none; }
  .mobile-menu__close {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: #fff; cursor: pointer;
    border-color: transparent;
    color: var(--wp--preset--color--accent-1)
  }
  .mobile-menu__close:hover {
    background: var(--wp--preset--color--accent-5);
  }
  .mobile-menu__body {
    overflow: auto;
  }

  .current-menu-ancestor > a.wp-block-navigation-item__content {
    font-weight: bold;
  }

  .mobile-menu .current-menu-item .menu__link,
  .mobile-menu .current-menu-ancestor > .menu__row > .menu__link {
    font-weight: bold;
  }

  /* ===============================
     LIST + ACCORDION
     =============================== */
  .menu, .submenu {
    list-style: none; margin: 0; padding: 0;
  }
  .menu__item:not(:last-child) {
    border-bottom: 1px solid var(--divider);
  }

  .menu__row {
    display: flex; align-items: center; gap: .6rem; justify-content: space-between;
    padding: 0.9rem var(--wp--style--root--padding-right);
    padding-left: calc(var(--left-padding)/2);
  }

  .menu__link {
    flex: 1 1 auto;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    outline-offset: 2px;
    padding: 0.3rem 0.3rem 0.3rem calc(var(--left-padding)/2);
  }
  .menu__link:hover { background: rgba(0,0,0,.04); }

  .submenu-toggle {
    width: 40px; height: 40px;
    display: inline-grid; place-items: center;
    border-radius: 10px; border: 0; background: transparent;
    cursor: pointer;
    color: var(--color-fg);
  }
  .submenu-toggle:hover { background: rgba(0,0,0,.06); }
  .chev { transition: transform var(--speed) var(--ease); }
  .menu__item[aria-expanded="true"] .chev { transform: rotate(180deg); }

  /* Animated panel (we animate height via JS; CSS handles overflow + padding) */
  .menu__panel {
    overflow: hidden;
    /* closed state managed by [hidden] + inline height via JS */
    /*
    background: var(--wp--preset--color--accent-1);
    color: var(--wp--preset--color--base);
    */
  }
  .menu__panel[hidden] { display: block; height: 0; overflow: hidden; }
  .submenu .menu__link { padding-left: 1.25rem; }

  /* Accent divider on nested level for subtle hierarchy */
  .menu__panel .submenu {
    border-left: 2px solid color-mix(in oklab, var(--accent-1) 18%, transparent);
    margin-left: .25rem; padding-left: .5rem;
  }

  /* Focus states */
  .menu__link:focus-visible,
  .submenu-toggle:focus-visible,
  .mobile-menu__close:focus-visible {
    outline: 2px solid var(--accent-1);
    border-radius: 8px;
  }

  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .mobile-menu, .mobile-menu__dialog, .chev { transition: none !important; }
  }



/*============================
   HERO SECTION
   =========================== */

.hero {
  min-height: 70vh; 
  padding-bottom: 1em;
  display: grid; 
  align-items: center;
  position: relative; isolation: isolate;
  overflow: clip;
}

.hero::before {
  /* Animated accent gradient wave */
  content: ""; position: absolute; inset: auto -10% auto -10%;
  height: 70vh;
  background: radial-gradient(1200px 600px at 20% 30%,
    rgba(90,48,163,0.85), transparent 60%)
    ,radial-gradient(800px 480px at 85% 60%,
    rgba(255,122,60,0.65), transparent 70%);
  filter: blur(40px);
  animation: float 4s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes float {
  from { transform: translateY(-80px) translateX(0); }
  to   { transform: translateY(80px) translateX(100px); }
}

@media only screen and (max-width: 781px) {
  .hero > .wp-block-columns > :nth-child(1) { order: 2; }
  .hero > .wp-block-columns > :nth-child(2) { order: 1; }
}

.cta-buttons {
  align-items: stretch;
}

.cta-button {  
  transition: 
      transform 0.25s ease-out;
}

.cta-button:hover {
  transform: translateY(-2px);
}


.logo-hero {
  display: block;
  animation: logofloat 4s ease-in-out infinite;
  padding-top: 1em;
  text-align: center;
}


@keyframes logofloat {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-6px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media only screen and (max-width: 781px) {
  .logo-hero img {
      max-height: 30vh;
  }
}

.text-highlight {
  background: linear-gradient(45deg, 
    color-mix(in oklab, var(--wp--preset--color--accent-2) 70%, white) 0%, 
    color-mix(in oklab, var(--wp--preset--color--accent-2) 90%, white) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
} 

footer .custom-logo {
  max-height: 150px;
  width: auto;
}

footer > div {
  background-image: url("/wp-content/themes/squids-lab/assets/images/logo-cute-half.svg");
  background-repeat: no-repeat;
  background-size: contain; 
  background-position: right center;
}

footer > div > * {
  position: relative;
  z-index: 2;
}

.wp-site-blocks footer {
  margin-top: 0;
}

/*force footer at bottom*/
div.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Post lists 
@media (max-width: 900px) {
    ul.wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}
*/

:root{
  --card-bg:#ffffff;
  --card-fg:#0b0b0f;
  --brand-purple:#3b1f6b;
  --brand-orange:#e4572e;
  --brand-purple-600:#2f1857;
  --brand-orange-600:#c9461f;
  --muted:#6b6f76;
  --line:#e8e9ec;
  --shadow:0 6px 20px rgba(12,10,16,.08), 0 2px 8px rgba(12,10,16,.06);
  --shadow-hover:0 10px 28px rgba(12,10,16,.12), 0 4px 14px rgba(12,10,16,.08);
  --radius:8px;
  --space-1:10px;
  --space-2:14px;
  --space-3:18px;
  --space-4:22px;
  --speed:.22s
}

li.wp-block-post {
  list-style:none;
  margin:0;
  position:relative
}


li.wp-block-post>.wp-block-group, .card{
  background:var(--wp--preset--color--base);
  transition:transform var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

li.wp-block-post>.wp-block-group figure img, .card figure img {
  border-top-left-radius:var(--radius);
  border-top-right-radius:var(--radius);
}

li.wp-block-post>.wp-block-group .wp-block-post-excerpt {
  flex: 1; /*push to bottom date*/
}

li.wp-block-post:hover>.wp-block-group, .card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-hover);
}

li.wp-block-post .wp-block-post-title a{
  text-decoration:none;
  outline:none;
  transition:color var(--speed) ease
}

li.wp-block-post:hover .wp-block-post-title a{
  color:var(--wp--preset--color--accent-1)
}

li.wp-block-post .wp-block-post-title a:focus-visible{
  outline:2px solid var(--brand-orange);
  outline-offset:3px;
  border-radius:4px
}

.wp-block-post-template>li.wp-block-post{
  margin:0
}

ul.wp-block-post-template li>div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post .wp-block-post-featured-image {
  max-height: 200px;
}

/* Tags within Posts */
.post .taxonomy-post_tag [rel="tag"] {
  pointer-events: none;
}


.post .taxonomy-post_tag [rel="tag"][href*="b-sc-course"] {
  background-color: var(--wp--preset--color--accent-1);
  border-color: transparent;
  color: var(--wp--preset--color--base);
} 

.post .taxonomy-post_tag [rel="tag"][href*="m-sc-course"] {
  background-color: var(--wp--preset--color--accent-6);
  border-color: transparent;
  color: var(--wp--preset--color--accent-3);
} 

.post .taxonomy-post_tag [rel="tag"][href*="ph-d-course"] {
  background-color: var(--wp--preset--color--accent-2);
  color: var(--wp--preset--color--base-100);
} 



/* Cards and card rows*/

.cards-row, .cards-row ul.wp-block-post-template {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: stretch;
}

.cards-row > .card, .cards-row ul.wp-block-post-template li.wp-block-post {
  flex: 1 1 clamp(18rem, 25%, 22rem);
  box-sizing: border-box;
}

.section-se .cards-row > .card,
#mobility-section .cards-row > .card,
#ai-section .cards-row > .card {
  flex: 1 1 clamp(12rem, 30%, 24rem);
}


.post .taxonomy-category, .post .wp-block-post-title, .post .wp-block-post-date {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}


/* ===========================
   Members page
   =========================== */
/* Bullet-proof square avatar */
  .member-pic{
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    /*
    background:
      linear-gradient(135deg, rgba(108, 33, 238, 0.18), transparent 70%),
      linear-gradient(315deg, rgba(212, 95, 6, 0.16), transparent 75%),
      #0b1020;
    */
    margin-bottom: .75rem;
  }
  .member-pic::before{
    content: "";
    display: block;
    padding-top: 100%;
  }
  .member-pic img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .member-card .wp-block-social-links {
    gap: .5rem;
  }

  :where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-orcid {
    background-color: #a6ce39;
    color: #ffffff;
  }

  :where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-webdocenti {
    background-color: #163145;
    color: #ffffff;
  }

  :where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-personalwebsite {
    background-color: #0a748a;
    color: #ffffff;
  }


/* ===========================
   SE SECTION
   =========================== */


.section-se {
  background-image: 
    repeating-linear-gradient(90deg, hsla(253,0%,96%,0.05) 0px, hsla(253,0%,96%,0.05) 1px,transparent 1px, transparent 104px),
    repeating-linear-gradient(0deg, hsla(253,0%,96%,0.05) 0px, hsla(253,0%,96%,0.05) 1px,transparent 1px, transparent 104px),
    repeating-linear-gradient(0deg, hsla(253,0%,96%,0.07) 0px, hsla(253,0%,96%,0.07) 1px,transparent 1px, transparent 26px),
    repeating-linear-gradient(90deg, hsla(253,0%,96%,0.07) 0px, hsla(253,0%,96%,0.07) 1px,transparent 1px, transparent 26px),
    linear-gradient(135deg, var(--wp--preset--color--accent-1),rgb(10, 65, 136));

  --bg: #0b1020;
  --panel: rgba(17, 24, 39, .75);
  --panel2: rgba(3, 7, 18, .65);
  --border: rgba(148, 163, 184, .25);
  --text: #e5e7eb;
  --muted: #94a3b8;

  --green: #22c55e;
  --cyan:  #22d3ee;
  --blue:  #60a5fa;
  --yellow:#fbbf24;
  --red:   #fb7185;
  --violet:#a78bfa;
  --ink:   #0ea5e9;
  --pink:  #f472b6;
}


.section-se .card {
  min-width: min(200px, 100%);
}

/* Container where your console will be created */
#squids-console{
  width: min(920px, 100%);
}

.terminal{
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 18px 60px rgba(0,0,0,.50),
    0 0 0 1px rgba(255,255,255,.03) inset;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%),
              var(--panel);
  backdrop-filter: blur(10px);
}

.terminal__topbar{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.dots{ display:flex; gap:8px; margin-right:8px; }
.dot{
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
}
.dot.red{ background:#ff5f56; }
.dot.yellow{ background:#ffbd2e; }
.dot.green{ background:#27c93f; }

.terminal__title{
  color: rgba(226,232,240,.9);
  font-size: 13px;
  letter-spacing: .2px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.terminal__badge{
  font-size: 12px;
  color: rgba(226,232,240,.85);
  background: rgba(2, 6, 23, .55);
  border: 1px solid rgba(148, 163, 184, .18);
  padding: 4px 8px;
  border-radius: 999px;
}

.terminal__body{
  background: linear-gradient(180deg, rgba(2,6,23,.55), rgba(2,6,23,.30)),
              var(--panel2);
  padding: 14px 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13.8px;
  line-height: 1.55;
  position: relative;
  max-height: 600px;
  overflow: auto;
  cursor: text;
}

/* Subtle scanline */
.terminal__body::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.018),
      rgba(255,255,255,.018) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity:.35;
  pointer-events:none;
  mix-blend-mode: overlay;
}

.line{ white-space: pre-wrap; word-break: break-word; }
.prompt{ color: var(--green); }
.user{ color: var(--cyan); }
.host{ color: var(--violet); }
.path{ color: var(--blue); }
.sym{ color: rgba(226,232,240,.85); }

.cmd{ color: rgba(226,232,240,.96); }
.ok{ color: var(--green); }
.warn{ color: var(--yellow); }
.err{ color: var(--red); }
.dim{ color: var(--muted); }
.ink{ color: var(--ink); }
.hl{ color: var(--pink); }

.cursor{
  display: inline-block;
  width: 8px;
  height: 1.15em;
  background: rgba(226,232,240,.85);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Interactive input line */
.inputWrap{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: calc(100% - 2px);
}
.termInput{
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: rgba(226,232,240,.96);
  font: inherit;
  padding: 0;
  margin: 0;
  caret-color: rgba(226,232,240,.95);
}
.termInput::placeholder{ color: rgba(148,163,184,.45); }


.termInput {
  background: transparent;
  border: 0;
  outline: none;
  color: rgba(226, 232, 240, 0.95);
  font: inherit;
  caret-color: transparent;
}

.termInput:focus {
  caret-color: rgba(226, 232, 240, 0.95);
}

.fake-cursor {
  width: 8px;
  height: 1.2em;
  background: rgba(226, 232, 240, 0.85);
  display: inline-block;
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

.termInput:focus + .fake-cursor {
  display: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

.inputContainer {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-direction: row-reverse;
}

.inputContainer input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}


/* ===========================
   MOBILITY SECTION
   =========================== */

#mobility-section .card {
  background-color: var(--wp--preset--color--accent-1) !important;
  color: var(--wp--preset--color--base)
}

#mobility-section {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1670' height='1391.7' viewBox='0 0 1080 900'%3E%3Cg fill-opacity='0.05'%3E%3Cpolygon fill='%23444' points='90 150 0 300 180 300'/%3E%3Cpolygon points='90 150 180 0 0 0'/%3E%3Cpolygon fill='%23AAA' points='270 150 360 0 180 0'/%3E%3Cpolygon fill='%23DDD' points='450 150 360 300 540 300'/%3E%3Cpolygon fill='%23999' points='450 150 540 0 360 0'/%3E%3Cpolygon points='630 150 540 300 720 300'/%3E%3Cpolygon fill='%23DDD' points='630 150 720 0 540 0'/%3E%3Cpolygon fill='%23444' points='810 150 720 300 900 300'/%3E%3Cpolygon fill='%23FFF' points='810 150 900 0 720 0'/%3E%3Cpolygon fill='%23DDD' points='990 150 900 300 1080 300'/%3E%3Cpolygon fill='%23444' points='990 150 1080 0 900 0'/%3E%3Cpolygon fill='%23DDD' points='90 450 0 600 180 600'/%3E%3Cpolygon points='90 450 180 300 0 300'/%3E%3Cpolygon fill='%23666' points='270 450 180 600 360 600'/%3E%3Cpolygon fill='%23AAA' points='270 450 360 300 180 300'/%3E%3Cpolygon fill='%23DDD' points='450 450 360 600 540 600'/%3E%3Cpolygon fill='%23999' points='450 450 540 300 360 300'/%3E%3Cpolygon fill='%23999' points='630 450 540 600 720 600'/%3E%3Cpolygon fill='%23FFF' points='630 450 720 300 540 300'/%3E%3Cpolygon points='810 450 720 600 900 600'/%3E%3Cpolygon fill='%23DDD' points='810 450 900 300 720 300'/%3E%3Cpolygon fill='%23AAA' points='990 450 900 600 1080 600'/%3E%3Cpolygon fill='%23444' points='990 450 1080 300 900 300'/%3E%3Cpolygon fill='%23222' points='90 750 0 900 180 900'/%3E%3Cpolygon points='270 750 180 900 360 900'/%3E%3Cpolygon fill='%23DDD' points='270 750 360 600 180 600'/%3E%3Cpolygon points='450 750 540 600 360 600'/%3E%3Cpolygon points='630 750 540 900 720 900'/%3E%3Cpolygon fill='%23444' points='630 750 720 600 540 600'/%3E%3Cpolygon fill='%23AAA' points='810 750 720 900 900 900'/%3E%3Cpolygon fill='%23666' points='810 750 900 600 720 600'/%3E%3Cpolygon fill='%23999' points='990 750 900 900 1080 900'/%3E%3Cpolygon fill='%23999' points='180 0 90 150 270 150'/%3E%3Cpolygon fill='%23444' points='360 0 270 150 450 150'/%3E%3Cpolygon fill='%23FFF' points='540 0 450 150 630 150'/%3E%3Cpolygon points='900 0 810 150 990 150'/%3E%3Cpolygon fill='%23222' points='0 300 -90 450 90 450'/%3E%3Cpolygon fill='%23FFF' points='0 300 90 150 -90 150'/%3E%3Cpolygon fill='%23FFF' points='180 300 90 450 270 450'/%3E%3Cpolygon fill='%23666' points='180 300 270 150 90 150'/%3E%3Cpolygon fill='%23222' points='360 300 270 450 450 450'/%3E%3Cpolygon fill='%23FFF' points='360 300 450 150 270 150'/%3E%3Cpolygon fill='%23444' points='540 300 450 450 630 450'/%3E%3Cpolygon fill='%23222' points='540 300 630 150 450 150'/%3E%3Cpolygon fill='%23AAA' points='720 300 630 450 810 450'/%3E%3Cpolygon fill='%23666' points='720 300 810 150 630 150'/%3E%3Cpolygon fill='%23FFF' points='900 300 810 450 990 450'/%3E%3Cpolygon fill='%23999' points='900 300 990 150 810 150'/%3E%3Cpolygon points='0 600 -90 750 90 750'/%3E%3Cpolygon fill='%23666' points='0 600 90 450 -90 450'/%3E%3Cpolygon fill='%23AAA' points='180 600 90 750 270 750'/%3E%3Cpolygon fill='%23444' points='180 600 270 450 90 450'/%3E%3Cpolygon fill='%23444' points='360 600 270 750 450 750'/%3E%3Cpolygon fill='%23999' points='360 600 450 450 270 450'/%3E%3Cpolygon fill='%23666' points='540 600 630 450 450 450'/%3E%3Cpolygon fill='%23222' points='720 600 630 750 810 750'/%3E%3Cpolygon fill='%23FFF' points='900 600 810 750 990 750'/%3E%3Cpolygon fill='%23222' points='900 600 990 450 810 450'/%3E%3Cpolygon fill='%23DDD' points='0 900 90 750 -90 750'/%3E%3Cpolygon fill='%23444' points='180 900 270 750 90 750'/%3E%3Cpolygon fill='%23FFF' points='360 900 450 750 270 750'/%3E%3Cpolygon fill='%23AAA' points='540 900 630 750 450 750'/%3E%3Cpolygon fill='%23FFF' points='720 900 810 750 630 750'/%3E%3Cpolygon fill='%23222' points='900 900 990 750 810 750'/%3E%3Cpolygon fill='%23222' points='1080 300 990 450 1170 450'/%3E%3Cpolygon fill='%23FFF' points='1080 300 1170 150 990 150'/%3E%3Cpolygon points='1080 600 990 750 1170 750'/%3E%3Cpolygon fill='%23666' points='1080 600 1170 450 990 450'/%3E%3Cpolygon fill='%23DDD' points='1080 900 1170 750 990 750'/%3E%3C/g%3E%3C/svg%3E");
}

#mobility-section img {
  transition: transform 0.3s ease-in-out;
}
#mobility-section img:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-in-out;
}


/* ===========================
   AI SECTION
   =========================== */


#ai-section {
background-color: #ffffff;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Crect stroke='%23ffffff' stroke-width='0.5' width='1' height='1' id='s'/%3E%3Cpattern id='a' width='3' height='3' patternUnits='userSpaceOnUse' patternTransform='scale(10.05) translate(-900.5 -675.37)'%3E%3Cuse fill='%23fcfcfc' href='%23s' y='2'/%3E%3Cuse fill='%23fcfcfc' href='%23s' x='1' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s' x='2' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='2'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='1' y='1'/%3E%3C/pattern%3E%3Cpattern id='b' width='7' height='11' patternUnits='userSpaceOnUse' patternTransform='scale(10.05) translate(-900.5 -675.37)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' y='5' /%3E%3Cuse href='%23s' x='1' y='10'/%3E%3Cuse href='%23s' x='2' y='1'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='8'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='5' y='2'/%3E%3Cuse href='%23s' x='5' y='6'/%3E%3Cuse href='%23s' x='6' y='9'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='h' width='5' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(10.05) translate(-900.5 -675.37)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s' y='5'/%3E%3Cuse href='%23s' y='8'/%3E%3Cuse href='%23s' x='1' y='1'/%3E%3Cuse href='%23s' x='1' y='9'/%3E%3Cuse href='%23s' x='1' y='12'/%3E%3Cuse href='%23s' x='2'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='2'/%3E%3Cuse href='%23s' x='3' y='6'/%3E%3Cuse href='%23s' x='3' y='11'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='4' y='10'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='c' width='17' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(10.05) translate(-900.5 -675.37)'%3E%3Cg fill='%23f2f2f2'%3E%3Cuse href='%23s' y='11'/%3E%3Cuse href='%23s' x='2' y='9'/%3E%3Cuse href='%23s' x='5' y='12'/%3E%3Cuse href='%23s' x='9' y='4'/%3E%3Cuse href='%23s' x='12' y='1'/%3E%3Cuse href='%23s' x='16' y='6'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='d' width='19' height='17' patternUnits='userSpaceOnUse' patternTransform='scale(10.05) translate(-900.5 -675.37)'%3E%3Cg fill='%23ffffff'%3E%3Cuse href='%23s' y='9'/%3E%3Cuse href='%23s' x='16' y='5'/%3E%3Cuse href='%23s' x='14' y='2'/%3E%3Cuse href='%23s' x='11' y='11'/%3E%3Cuse href='%23s' x='6' y='14'/%3E%3C/g%3E%3Cg fill='%23efefef'%3E%3Cuse href='%23s' x='3' y='13'/%3E%3Cuse href='%23s' x='9' y='7'/%3E%3Cuse href='%23s' x='13' y='10'/%3E%3Cuse href='%23s' x='15' y='4'/%3E%3Cuse href='%23s' x='18' y='1'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='e' width='47' height='53' patternUnits='userSpaceOnUse' patternTransform='scale(10.05) translate(-900.5 -675.37)'%3E%3Cg fill='%23D2D2D2'%3E%3Cuse href='%23s' x='2' y='5'/%3E%3Cuse href='%23s' x='16' y='38'/%3E%3Cuse href='%23s' x='46' y='42'/%3E%3Cuse href='%23s' x='29' y='20'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='f' width='59' height='71' patternUnits='userSpaceOnUse' patternTransform='scale(10.05) translate(-900.5 -675.37)'%3E%3Cg fill='%23D2D2D2'%3E%3Cuse href='%23s' x='33' y='13'/%3E%3Cuse href='%23s' x='27' y='54'/%3E%3Cuse href='%23s' x='55' y='55'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='g' width='139' height='97' patternUnits='userSpaceOnUse' patternTransform='scale(10.05) translate(-900.5 -675.37)'%3E%3Cg fill='%23D2D2D2'%3E%3Cuse href='%23s' x='11' y='8'/%3E%3Cuse href='%23s' x='51' y='13'/%3E%3Cuse href='%23s' x='17' y='73'/%3E%3Cuse href='%23s' x='99' y='57'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23b)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23h)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23c)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23d)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23e)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23f)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23g)' width='100%25' height='100%25'/%3E%3C/svg%3E");
background-size: cover;
}

#ai-section figure img {
  filter: brightness(0);
  transform: scale(1);
  transition: filter 1.2s ease, transform 1.2s ease;
  transform-origin: center;
  will-change: filter, transform;

}

#ai-section .card {
  background-color: var(--wp--preset--color--accent-2) !important;
  color: var(--wp--preset--color--base);
}

#squid-clustering-container:hover img{
  filter: brightness(1);
  transform: scale(1.00);
}

#ai-legend {
  position: absolute;
  right: -0px;
  top: -0px;
  background-color: var(--wp--preset--color--base);
  z-index: 1;
  padding: 0.4em;
  opacity: 0;
  border: 1px solid var(--wp--preset--color--accent-1);
  transition: opacity 1s ease-out;
}

#squid-clustering-container:hover #ai-legend {
  opacity: 1;
  transition: opacity 1s ease-in;
}

/**===========================
   POSTS SECTION
   =========================== */

/* The nav is already a flex container from WP; ensure wrapping */
[aria-label="Post navigation"] {
  display: flex;                 /* WP already sets this */
  flex-wrap: wrap;               /* allow wrapping */
  align-items: stretch;
  gap: var(--wp--preset--spacing--30, 12px);
  /* Avoid space-between with wrapping (see notes below) */
  justify-content: space-between;
}

/* Each side: prev/next */
.post-navigation-link-previous,
.post-navigation-link-next {
  /* Let the item grow/shrink; base size is responsive */
  flex: 1 1 clamp(200px, 50%, 300px);
  /* Optional styling to look like buttons/cards */
  display: flex;
  align-items: center;
  display: inline !important;
}

/* Make the link inside fill the box and lay out content nicely */
.wp-block-post-navigation-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
  flex: 1 1 auto;
}

/* Alignment polish: previous aligned left, next aligned right */
.post-navigation-link-previous { text-align: left; }
.post-navigation-link-next     { text-align: right; justify-content: flex-end; }

