/* Global Styles – mobile-first rewrite
   Based on original global.css, refactored so that:
   - Base styles target small screens first
   - Larger layouts are added via min-width media queries
*/

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root variables */
:root {
  --header-h: clamp(56px, 9vw, 120px);
  --header-offset: 80px;
  --arsenal: 'Arsenal SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Global html/body */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, 80px);
}

body {
  height: 100%;
  margin: 0;
  padding-top: 0;
  background-color: #dbd8ce;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #273f5b;
}

body.contact {
  background-color: #F2C078;
}

/* Page wrapper (content under fixed header) */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-top: var(--header-h); /* space for fixed header */
}

/* Generic section – base = mobile */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
  text-align: left;
  padding: 1.75rem 1.25rem 2.5rem;
}

/* Header "fake section" just uses default .section spacing */
.header {
  color: #fff;
}

/* Section-specific colors */
.section-one {
  font-family: var(--arsenal);
  background-color: #dbd8ce;
  color: #333;
  position: relative;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-inline: clamp(1.25rem, 2vw, 2rem);
  padding-bottom: clamp(1.25rem, 2vw, 2rem);
}

.section-two {
  font-family: var(--arsenal);
  background-color: #9EB5BE;
  color: #333;
  position: relative;
  padding: clamp(1.25rem, 2vw, 2rem);
}

.section-three {
  font-family: var(--arsenal);
  background-color: #465E69;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
  padding: 2.5rem 1.25rem 3rem;
  position: relative;
}

.section-four {
  font-family: var(--arsenal);
  background-color: #F2C078;
  color: #000;
}

/* Footer */
.footer {
  font-family: var(--arsenal);
  font-weight: 400;
  background-color: #F2C078;
  color: #000000;
  text-align: center;
  padding: 20px 0;
}

/* ─────────────────────────────
   Sticky Header (mobile-first)
   ───────────────────────────── */

.header-container {
  font-family: var(--arsenal);
  color: #fff;
  line-height: 1.6;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 0.75rem;
  background: #4d555b;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  gap: 0.75rem;
}

/* Logo / text / right column */
.logo {
  order: 0;
  flex: 0 0 auto;
}
.logo img {
  max-height: calc(var(--header-h) - 22px);
  width: auto;
  display: block;
}

.header-text {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  padding: 0 0.5rem;
}

.header-icon {
  order: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

/* Hero title */
.hero-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  gap: 0.25rem;
  margin: 0;
  white-space: normal;
  overflow: visible;
  text-wrap: balance;
  word-break: normal;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: heroIn 600ms ease-out 120ms forwards;
  will-change: transform, opacity;
}
.hero-main {
  font-weight: 400;
  font-size: clamp(0.7rem, 2.1vw, 1.8rem);
  letter-spacing: 0.1em;
}
.hero-sub {
  font-weight: 400;
  opacity: 0.9;
  font-size: clamp(0.55rem, 1.3vw, 1.6rem);
  letter-spacing: 0.1em;
}

/* Tighten tracking on tiny screens */
@media (max-width: 420px) {
  .hero-main { letter-spacing: 0.06em; }
  .hero-sub  { letter-spacing: 0.04em; }
}

/* Stagger lines */
.hero-title .hero-main,
.hero-title .hero-sub {
  opacity: 0;
  transform: translateY(10px);
  animation: lineIn 500ms ease-out 220ms forwards;
}
.hero-title .hero-main { animation-delay: 0.2s; }
.hero-title .hero-sub  { animation-delay: 0.6s; }

/* Keyframes */
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-title .hero-main,
  .hero-title .hero-sub {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Language pill */
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 4.2vw, 40px);
  height: clamp(28px, 4.2vw, 40px);
  border-radius: 50%;
  background-color: #2f3e4b;
  color: #ffffff;
  font-weight: 400;
  font-size: clamp(0.6rem, 1.2vw, 0.9rem);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.05em;
  font-style: normal;
}
.lang-btn:hover {
  background-color: #3e4f5c;
  transform: scale(1.05);
}

/* Optional secondary tagline under hero */
.profile-tagline {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  color: #4d555b;
}

/* ─────────────────────────────
   Burger navigation
   ───────────────────────────── */

#nav-placeholder {
  height: auto;
  margin: 0;
  padding: 0;
}

.header-nav {
  position: relative;
  z-index: 1200;
  font-family: var(--arsenal);
  font-size: clamp(12px, 0.8vw + 10px, 14px);
  color: #080808;
}

/* Burger button */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px;
  height: 32px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Screen reader text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dropdown panel – mobile base */
.nav-links {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  background: #4d555b;
  border-radius: 18px;
  padding: 0.3rem 0;
  min-width: 190px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Open state */
.header-nav.nav-open .nav-links {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Items & links */
.nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-links li:last-child {
  border-bottom: none;
}
.nav-links a {
  display: block;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
  color: #f8b05e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-links a:hover {
  color: #F2C078;
  background: rgba(0, 0, 0, 0.12);
}

/* Animate burger into “X” */
.header-nav.nav-open .nav-toggle-bar:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}
.header-nav.nav-open .nav-toggle-bar:nth-of-type(2) {
  opacity: 0;
}
.header-nav.nav-open .nav-toggle-bar:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Keep nav tucked in the header-icon column */
.header-icon #nav-placeholder {
  height: auto !important;
  margin: 0;
  padding: 0;
}
.header-icon .header-nav {
  position: relative;
  top: 0;
  right: 0;
  margin: 0;
}

/* Small nav tweaks */
@media (max-width: 480px) {
  .header-container { padding: 0 0.5rem; }
}

/* Desktop-style horizontal nav (enhancement) */
/* Shared hover colour for child spans */
.header-nav .nav-links a:hover,
.header-nav .nav-links a:hover span {
  color: #F2C078;
}

/* ─────────────────────────────
   Hero / header-showcase – mobile-first
   ───────────────────────────── */

/* Base: stacked layout for small screens */
.header-showcase {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  padding: 1.75rem 1.25rem 2.5rem;
  background: #dbd8ce;
}

/* Left column content (top on mobile) */
.profile-panel {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  align-items: start;
  text-align: center;
  margin-left: 0;
}

.profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  border: 0px solid rgba(255, 255, 255, 0.65);
  background: #fff;
}

/* Stats card */
.stats-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.88);
  color: #24323E;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

/* List layout */
.stats-list {
  list-style: none;
  margin: 0 0 1.2rem 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.stat-item {
  display: flex;
  flex-direction: column;      /* number on top, label under */
  align-items: flex-start;
}

/* Number: still the hero, but softer */
.stat-num {
  font-family: var(--arsenal);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  color: #d4a85e;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

/* Label: supporting, not shouting */
.stat-label {
  font-family: var(--arsenal);
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.78;
  line-height: 1.4;
}


/* CV button */
.cv-btn {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  background: #e6e6e6;
  color: #4d555b;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
              0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              background 0.2s ease;
  font-family: var(--arsenal);
}
.cv-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Right column – card grid; base = one column full-width */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.shot {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  background: #ddd;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease;
  cursor: pointer;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: opacity 0.25s ease;
}
.shot::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #facd89;
  color: #4d555b;
  font-family: var(--arsenal);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}
.shot:hover img { opacity: 0; }
.shot:hover::after { opacity: 1; }

/* Link wrapper */
.showcase-grid a.shot {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Touch devices: remove hover swap */
@media (hover: none) {
  .shot:hover img { opacity: 1; }
  .shot:hover::after { opacity: 0; }
}

/* Slight padding tightening for mid-sized phones */
@media (max-width: 560px) {
  .header-showcase {
    padding: 1.25rem 1rem 1.75rem;
  }
}

/* Tablet: slightly bigger padding */
@media (min-width: 560px) {
  .header-showcase {
    padding: 2rem 1.75rem 2.75rem;
  }
}

/* Desktop: switch to 2-column layout + wider grid */
@media (min-width: 980px) {
  .header-showcase {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.25rem);
    width: 100%;
    max-width: none; /* stretch across section width like original layout */
    padding: clamp(1.5rem, 3vw, 2rem) 3rem 2.5rem;
    margin: 0; /* align with left padding of section-one */
  }

  .profile-panel {
    justify-self: start;
    text-align: left;
  }

  .stats-card {
    max-width: none;
  }

  /* Sprint 6a: Right column shared width (orientation + 2×2 grid) */
  .header-showcase .iaci-orientation-v2{
    width: min(92vw, 840px);
    justify-self: center;
  }

  .header-showcase .showcase-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(92vw, 840px);
    justify-self: center;
    margin: 0;
  }

}


/* ─────────────────────────────
   Section tabs (work exposure / prototypes / contact)
   ───────────────────────────── */

.section-tab {
  position: absolute;
  top: 0;
  left: 0;
  background: #facd89;
  color: #222;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  padding: clamp(0.35rem, 1.2vw, 0.6rem)
           clamp(0.6rem, 1.6vw, 1rem);
  font-family: var(--arsenal);
  font-weight: 400;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
}
.section-one .section-tab {
  background: #2f3e4b;
  color: #ffffff;
}
.section-two .section-tab {
  background: #facd89;
  color: #222;
}
.section-three .section-tab {
  background: #dbd8ce;
  color: #070707;
}

/* ─────────────────────────────
   Icons row + updated stamp
   ───────────────────────────── */

.icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  margin: 0 auto;
  padding-top: 0.5rem;
  width: fit-content;
  max-width: 160px;
}
.icon {
  width: 24px;
  height: 24px;
  object-fit: cover;
  display: block;
}
.icon-wrapper {
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-wrapper:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
@media (max-width: 600px) {
  .icon-wrapper {
    width: 40px;
    height: 40px;
  }
}

.updated-stamp {
  font-family: var(--arsenal);
  font-style: italic;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: #000000;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

@media (max-width: 640px) {
  .icons {
    justify-content: flex-start;
    gap: 20px;
  }
}

/* ─────────────────────────────
   Back to top button
   ───────────────────────────── */

.back-to-top {
  position: fixed;
  right: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  font: 600 13px/44px system-ui, sans-serif;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  z-index: 2147483647;
  pointer-events: auto;
  opacity: 1;
  transition: transform 0.25s, opacity 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: floatUp 2.2s ease-in-out infinite;
}
.back-to-top:hover {
  transform: scale(1.06);
}
.back-to-top.hidden {
  opacity: 0;
  transform: scale(0.85);
  visibility: hidden;
  pointer-events: none;
}

@keyframes floatUp {
  0% { transform: translateY(0); }
  50%{ transform: translateY(-3px); }
  100%{ transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    animation: none;
    transition: none;
  }
}

/* ─────────────────────────────
   Misc. single-use selectors
   ───────────────────────────── */

/* Disclaimer container */
/* Common disclaimer layout for EN + FR */
#disclaimer-container,
#disclaimer-container-fr {
  padding: 0 1rem;
  font-family: 'Roboto', sans-serif;
}

@media (min-width: 768px) {
  #disclaimer-container,
  #disclaimer-container-fr {
    padding: 0 1.5rem;
  }
}

/* Reset any inherited “shouty” styles */
#disclaimer-container .disclaimer-box,
#disclaimer-container-fr .disclaimer-box {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* Reset any inherited “shouty” styles */
#disclaimer-container .disclaimer-box,
#disclaimer-container-fr .disclaimer-box {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Small badge for Confluence link */
.nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #60A5FA;
  border-radius: 50%;
  margin-left: 6px;
}

/* Highlight for sections reached via anchors / smooth scroll */
.scroll-target-highlight {
  background-color: #dad8cf;  /* soft #F2C078 */
  outline: 1px solid #4d555b;   /* #20497f */
  outline-offset: 4px;
  transition: background-color 0.6s ease, outline-color 0.6s ease;
}

/* Fade-out animation */
@keyframes scrollHighlight {
  0% {
    background-color: #dad8cf;
    outline-color: #4d555b;
  }
  100% {
    background-color: transparent;
    outline-color: transparent;
  }
}

/* Static highlight for sections reached via anchors / smooth scroll */
.scroll-target-highlight {
  background-color: #dad8cf;  /* soft #F2C078 */
  outline: 1px solid #4d555b;   /* #20497f */
  outline-offset: 4px;
}

/* ===== Language selector inside burger menu ===== */

/* LANGUAGE GROUP WRAPPER */
.nav-language-group { 
  /* remove side padding so hover bg can reach the rounded edges */
  padding: 0;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* "LANGUAGE" TITLE */
.nav-language-title {
  display: block;
  padding: 0.45rem 1.2rem 0.25rem;   /* align with nav item padding */
  font-weight: 500;
  font-size: 0.85rem;
  color: #dbd8ce;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-language-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* give same separators as the other items */
.nav-links .nav-language-group .nav-language-options li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* LANGUAGE BUTTONS – mimic .nav-links a */
.nav-language-options .nav-lang-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.65rem 1.2rem;           /* same as .nav-links a */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  cursor: pointer;
  color: #f8b05e;
}

/* Hover / focus – same as .nav-links a:hover */
.nav-language-options .nav-lang-btn:hover,
.nav-language-options .nav-lang-btn:focus-visible {
  outline: none;
  color: #F2C078;
  background: rgba(0, 0, 0, 0.12);   /* full-width dark strip */
}
/* Subtle gradient separator above LANGUAGE section */
.nav-language-group::before {
  content: "";
  display: block;
  height: 1px;
  margin: 6px 1.2rem 10px; /* align with menu padding */
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  opacity: 0.9;
}

/* Make sure footer can be a positioning context */
.footer {
  position: relative;
}

/* Release Notes link in top-left corner of the footer */
.footer-release-link {
  position: absolute;
  left: 16px;      /* adjust horizontally if needed */
  top: 16px;       /* adjust vertically to align nicely with the title */
  font-size: 0.85rem;   /* you can tweak */
  text-decoration: none;
  color: #000000;  
  opacity: 0.85;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.footer-release-link:hover {
  opacity: 1;
}

.footer-release-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.25s ease;
}

.footer-release-link:hover {
  opacity: 1;
}

.footer-release-link:hover::after {
  width: 100%;
}

/* Optional: on very small screens, center it above the footer content */
@media (max-width: 600px) {
  .footer-release-link {
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
  }
}

/* What's New / Quoi de neuf banner */
.whats-new-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;

  padding: 0.6rem 1.2rem;
  background: #fff3d9; /* soft, light strip on top of your page */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);

  font-size: 0.9rem;
}

/* Small pill saying "New" / "Nouveau" */
.whats-new-label {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f2c078;  /* your gold accent */
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Main text */
.whats-new-text {
  opacity: 0.9;
}

/* Link to release notes */
.whats-new-link {
  font-weight: 500;
  text-decoration: none;
  color: #000;
  position: relative;
}

.whats-new-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.2s ease;
}

.whats-new-link:hover::after {
  width: 100%;
}

/* Mobile: stack nicely */
@media (max-width: 600px) {
  .whats-new-banner {
    align-items: flex-start;
    text-align: left;
    padding: 0.7rem 1rem;
  }
}

/* Ensure header-showcase can position the helper */
.header-showcase {
  position: relative;
}

/* Smart helper card */
.smart-helper {
  position: absolute;
  top: 1.2rem;
  right: 3rem;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  max-width: 260px;
  z-index: 20;
}

.smart-helper-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.smart-helper-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4d555b;
}

/* Link with the same underline-on-hover effect you liked */
.smart-helper-link {
  display: inline-block;
  font-size: 0.85rem;
  margin-top: 0.15rem;
  color: #465e69;              /* your deep blue-grey */
  text-decoration: none;
  position: relative;
}

.smart-helper-link::after {
  content: "";
  position: absolute;
  left: 0rem;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.2s ease;
}

.smart-helper-link:hover::after {
  width: 100%;
}

/* Mobile: let it flow with the content instead of overlapping */
@media (max-width: 700px) {
  .smart-helper {
    position: static;
    margin: 1rem auto 0.75rem;
  }
}
/* 20-12-2025: This is for What's New link. On creation it has only Release Notes */

.nav-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: #FFFFFF;
  color: #2b2b2b;
  vertical-align: middle;
}
.header-nav .nav-links a:hover .nav-badge {
  color: #2b2b2b !important;
}


/* ─────────────────────────────
   Sprint 6a: Homepage onboarding layer
   ───────────────────────────── */
.iaci-orientation-v2{
  width: 100%;
  max-width: 100%;
  margin: 0 0 1rem 0;
  padding: 0;
}

.iaci-orientation-card{
  display:grid;
  grid-template-columns: 260px 1fr;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(6px);
  overflow:hidden;
}

.iaci-orientation-title{
  padding: 1.1rem 1.1rem;
  background: rgba(158,181,190,0.25); /* your palette tint */
  border-right: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.iaci-orientation-title::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background: rgba(242,192,120,0.95); /* accent */
}

.iaci-orientation-title .kicker{
  font-family: var(--arsenal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color:#4D555B;
}

.iaci-orientation-title .subtitle{
  margin-top: 0.35rem;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 0.88rem;
  opacity: 0.85;
}

.iaci-orientation-body{
  padding: 1.1rem 1.2rem;
}

.iaci-orientation-body .lead{
  margin:0 0 0.65rem 0;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 0.98rem;
  line-height:1.55;
  color:#24323E;
}

.chev-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:0.35rem;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 0.93rem;
  color:#24323E;
}

.chev-list li{
  position:relative;
  padding-left: 1.15rem;
  opacity: 0.92;
}

.chev-list li::before{
  content:"›";
  position:absolute;
  left:0;
  top:0;
  opacity:0.85;
  font-size: 1.05rem;
  transform: translateY(-0.02rem);
}



/* When orientation sits inside the right column, it must not be page-centered */
.header-showcase .iaci-orientation-v2{
  max-width: none;
  margin: 0;
  padding: 0; /* align with the grid edges */
}


@media (max-width: 820px){
  .iaci-orientation-card{ grid-template-columns: 1fr; }
  .iaci-orientation-title{ border-right:none; border-bottom:1px solid rgba(0,0,0,0.06); }
}


/* ─────────────────────────────
   Sprint 6a override: lock right-col width + 2×2 grid on desktop
   (placed at end to override earlier rules)
   ───────────────────────────── */
/* Sprint 6a tweak: align chevrons with text (baseline alignment) */
.chev-list li{
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-left: 0;
}
.chev-list li::before{
  position: static;
  transform: none;
  line-height: 1;
}


/* Sprint 6a tweak: when orientation is inside header-showcase, inherit column width */
.header-showcase .iaci-orientation-v2{
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-self: center;
}


/* ─────────────────────────────
   FIX: Desktop layout + Mobile order (orientation → profile → tiles)
   Ensures orientation spans exactly the 2-tile width and stays in right column.
   Also fixes chevron/text baseline alignment.
   ───────────────────────────── */

.chev-list li{
  display:flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-left: 0; /* override older padding-based marker layout */
}
.chev-list li::before{
  position: static;
  transform: none;
  flex: 0 0 auto;
  line-height: 1;
}

/* Desktop (keep profile left; orientation + tiles right) */
@media (min-width: 980px){
  .header-showcase{
    display: grid;
    grid-template-columns: 420px 1fr;
    grid-template-areas:
      "profile orientation"
      "profile tiles";
    align-items: start;
    column-gap: 3.5rem;
    row-gap: 1.05rem;
  }

  .profile-panel{ grid-area: profile; }
  .iaci-orientation-v2{ grid-area: orientation; width: min(92vw, 840px); margin: 0; padding: 0; justify-self: start; }
  .showcase-grid{ grid-area: tiles; width: min(92vw, 840px); margin: 0; justify-self: start; }

  .showcase-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile/tablet: stack in requested order */
@media (max-width: 979px){
  .header-showcase{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "orientation"
      "profile"
      "tiles";
    row-gap: 1rem;
  }

  .iaci-orientation-v2{ grid-area: orientation; width: 100%; }
  .profile-panel{ grid-area: profile; }
  .showcase-grid{ grid-area: tiles; width: 100%; }
}



/* --- Patch: force orientation width to match 2-column grid exactly (desktop) --- */
@media (min-width: 980px) {
  /* Explicit areas prevent accidental reflow in some browsers when DOM order changes */
  .header-showcase{
    grid-template-areas:
      "profile orientation"
      "profile tiles";
  }

  .header-showcase .profile-panel{ grid-area: profile; }

  .header-showcase .iaci-orientation-v2{
    grid-area: orientation;
    width: min(92vw, 840px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-self: center !important;
  }

  .header-showcase .showcase-grid{
    grid-area: tiles;
    width: min(92vw, 840px) !important;
    max-width: none !important;
    margin: 0 !important;
    justify-self: center !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.orientation-more{
  margin-top: 0.6rem;
  font-family: 'Roboto', system-ui, sans-serif; /* <-- key change */
  font-size: 0.85rem;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0.02em;
}


.orientation-more a{
  font-weight: 500;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Inline hover underline — reused from footer pattern */
.inline-underline-link {
  position: relative;
  text-decoration: none;
  color: inherit;
}

.inline-underline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.inline-underline-link:hover::after {
  width: 100%;
}
