/* Shared footer: one layout and color treatment for every active page. */
body.page-index-yildiz > main:has(+ .footer-shell--editorial) {
  overflow: clip;
}

body .footer-shell.footer-shell--editorial {
  --footer-padding-top: 90px;
  --footer-padding-bottom: 30px;
  --fs-footer-link: 20px;
  --fw-footer-link: 500;
  --text-on-surface: var(--color-footer-text);
}

.footer-shell--editorial .site-footer {
  --legal-band-height: clamp(64px, 9svh, 88px);
  --footer-bottom-space: 32px;
  --main-height: calc(100% - var(--legal-band-height));
  height: auto;
  min-height: 100svh;
  padding: var(--footer-padding-top) var(--footer-gutter) var(--footer-padding-bottom);
  gap: 0;
}

.footer-shell--editorial .footer-top {
  display: grid;
  grid-template-columns: minmax(240px, .95fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(32px, 3.4vw, 64px);
  flex: none;
}

.footer-shell--editorial .brand {
  width: auto;
  min-width: 0;
  gap: 30px;
}

.footer-shell--editorial .brand-logo {
  width: clamp(112px, 9vw, 172px);
}

.footer-shell--editorial .brand-info__line { display: block; }

.footer-shell--editorial .brand-actions {
  flex-wrap: wrap;
  gap: 16px 24px;
}

/* body + double class keeps About's local presentation sizes off the footer. */
body .footer-shell.footer-shell--editorial .brand-actions .footer-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-footer-text);
  font-size: var(--fs-button);
  font-weight: 500;
  line-height: var(--lh-ui);
  letter-spacing: -.01em;
  white-space: nowrap;
  text-transform: none;
  opacity: 1;
  transition: color 200ms ease;
}

.footer-shell--editorial .footer-action__box {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--color-header-control-expanded);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: background-color 200ms ease;
}

.footer-shell--editorial .footer-action__icon {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--color-white);
  -webkit-mask: var(--footer-action-icon) center / contain no-repeat;
  mask: var(--footer-action-icon) center / contain no-repeat;
}

.footer-shell--editorial .footer-action__icon--portal {
  --footer-action-icon: var(--asset-icon-portal, url('../../../assets/media/web-portal.svg'));
}

.footer-shell--editorial .footer-action__icon--branches {
  --footer-action-icon: var(--asset-icon-branches, url('../../../assets/media/location-pin.svg'));
}

.footer-shell--editorial .brand-actions .footer-action:is(:hover, :focus-visible) {
  color: var(--color-accent);
  opacity: 1;
}

.footer-shell--editorial .footer-action:is(:hover, :focus-visible) .footer-action__box {
  background: var(--color-header-control-expanded-hover);
}

.footer-shell--editorial .footer-action:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 6px;
}

.footer-shell--editorial .footer-navigation {
  align-self: start;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

body .footer-shell--editorial .footer-navigation__label {
  --heading-on-surface: var(--color-footer-text);
  margin-block: 0 !important;
}

.footer-shell--editorial .footer-navigation__divider {
  height: 1px;
  margin-block: 20px;
  background: var(--color-footer-divider);
}

.footer-shell--editorial .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  width: 100%;
  min-width: 0;
}

/* Navigation shares the common letter wave, with its own editorial type scale. */
body .footer-shell .footer-link {
  font-weight: 500 !important;
}

body .footer-shell--editorial .footer-link {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
  text-align: left;
  white-space: nowrap;
  color: var(--color-white);
  line-height: 1.3 !important;
  letter-spacing: -.02em !important;
  border-radius: 0;
}

body .footer-shell--editorial .footer-link:is(:hover, :focus-visible) {
  color: var(--button-text-hover);
}

.footer-shell--editorial .footer-bottom {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  flex: 1 1 0;
  min-height: calc(288px + 32px + var(--footer-bottom-space));
  padding: 32px 0 var(--footer-bottom-space);
  /* Preserve room for the original expanding card stack. */
  container-type: size;
}

.footer-shell--editorial .footer-mission-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  min-width: 0;
}

body .footer-shell.footer-shell--editorial .footer-mission {
  --text-on-surface: var(--color-white);
  color: var(--color-white);
}

.footer-shell--editorial .footer-mission__button {
  --button-filled-background: var(--color-footer-card);
  --button-filled-hover-background: var(--color-dark-panel);
}

/* Page-specific presentation styles must not retint the shared footer copy. */
body .footer-shell.footer-shell--editorial :is(.brand-info, .brand-info p, .legal-copy, .legal-links) {
  color: var(--color-footer-text);
}

.footer-shell--editorial .video-stack {
  --footer-card-height: clamp(88px, calc((100cqh - 24px) / 3), 104px);
  width: clamp(296px, 29vw, 440px);
  height: var(--footer-card-height);
  bottom: 0;
}

.footer-shell--editorial .video-stack:hover { height: auto; }

.footer-shell--editorial .video-layer {
  width: 100%;
  padding: 4px 0 4px 6px;
}

.footer-shell--editorial .video-card {
  width: 100%;
  height: var(--footer-card-height);
  padding: 6px;
}

.footer-shell--editorial .legal-strip {
  position: relative;
  inset: auto;
  flex: none;
  align-items: center;
  margin-top: auto;
  min-height: 0;
  height: auto;
  padding-top: 32px;
  color: var(--color-footer-text);
}

/* ---------------------------------------------------------------------------
   Responsive footer. Desktop (1241px+) keeps the layout above unchanged.
   Below it the footer follows the header breakpoints: natural height, two
   columns on tablets, one on phones, and the service cards as a native rail
   (or a static row of three on wide touch tablets).
   --------------------------------------------------------------------------- */
@media (max-width: 1079px) {
  body .footer-shell.footer-shell--editorial {
    --footer-padding-top: 72px;
    --footer-padding-bottom: max(28px, env(safe-area-inset-bottom));
    --fs-footer-mission: 30px;
  }
  .footer-shell--editorial .site-footer { min-height: 0; gap: 0; }
  .footer-shell--editorial .particle-stage { opacity: .22; }
  .footer-shell--editorial .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
  .footer-shell--editorial .brand { max-width: 420px; gap: 28px; }
  .footer-shell--editorial .brand-logo { width: 148px; }
  .footer-shell--editorial .footer-navigation { justify-self: stretch; width: 100%; }
  .footer-shell--editorial .footer-navigation__divider { margin-block: 16px 8px; }
  .footer-shell--editorial .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    justify-content: start;
    align-items: start;
  }
  body .footer-shell--editorial .footer-link {
    margin-right: 0;
    padding-block: 12px;
    font-size: 18px !important;
  }
  .footer-shell--editorial .footer-mission-group { gap: 28px; }
  .footer-shell--editorial .footer-bottom { gap: 32px; padding-top: 56px; }
}

/* Small laptop windows with a mouse keep the desktop hover stack. */
@media (min-width: 1080px) and (max-width: 1079px) and (hover: hover) {
  .footer-shell--editorial .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-shell--editorial .footer-bottom { min-height: calc(288px + 56px + var(--footer-bottom-space)); }
}

/* Touch tablets and every screen below 1024px: service cards as a rail. */
@media (max-width: 1079px), (max-width: 1079px) and (hover: none) {
  .footer-shell--editorial .footer-bottom {
    display: block;
    flex: none;
    min-height: 0;
    height: auto;
    padding: 56px 0 32px;
    container-type: normal;
  }
  .footer-shell--editorial .video-stack { display: none; }
  .footer-shell--editorial .mobile-sliders {
    position: relative;
    z-index: 3;
    display: block;
    width: auto;
    min-width: 0;
    /* Bleed to the right edge so the next card reads as scrollable, not cut. */
    margin: 0 calc(-1 * var(--footer-gutter)) 48px 0;
  }
  .footer-shell--editorial .mobile-track {
    display: flex;
    width: 100%;
    gap: 12px;
    padding: 0 var(--footer-gutter) 0 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0 var(--footer-gutter);
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .footer-shell--editorial .mobile-track::-webkit-scrollbar { display: none; }
  .footer-shell--editorial .mobile-video {
    flex: 0 0 min(360px, 44%);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  .footer-shell--editorial .mobile-video .video-card {
    width: 100%;
    height: 104px;
    min-height: 0;
    padding: 6px;
  }
  .footer-shell--editorial .mobile-video .video-image { width: 92px; flex: 0 0 92px; height: 100%; }
  .footer-shell--editorial .mobile-video .video-copy {
    width: auto;
    min-width: 0;
    padding: 6px 8px 4px 14px;
  }
  body .footer-shell--editorial .mobile-video .video-title { font-size: 16px !important; line-height: 1.2; }
  body .footer-shell--editorial .mobile-video .duration { font-size: 9px !important; line-height: 1.3; }
}

/* Tablet legal row: links first, then copyright and credit. */
@media (min-width: 768px) and (max-width: 1079px) {
  .footer-shell--editorial .legal-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding-top: 24px;
  }
  .footer-shell--editorial .legal-links {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: flex-start;
    justify-self: start;
    flex-wrap: wrap;
  }
  .footer-shell--editorial .legal-copy { white-space: normal; }
}

/* Phones: one column, three-line mission kept at a size that fits. */
@media (max-width: 767px) {
  body .footer-shell.footer-shell--editorial {
    --footer-padding-top: 64px;
    --footer-padding-bottom: max(24px, env(safe-area-inset-bottom));
    --fs-footer-mission: clamp(21px, 6.3vw, 28px);
    --fs-footer-legal: 12px;
  }
  .footer-shell--editorial .site-footer { gap: 0; padding-top: var(--footer-padding-top); }
  .footer-shell--editorial .footer-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer-shell--editorial .brand { max-width: none; gap: 24px; }
  .footer-shell--editorial .brand-logo { width: 140px; }
  .footer-shell--editorial .brand-info { max-width: 420px; }
  .footer-shell--editorial .brand-info__line { display: inline; }
  .footer-shell--editorial .brand-actions { gap: 12px 24px; }
  .footer-shell--editorial .footer-nav { gap: 0 16px; }
  body .footer-shell--editorial .footer-link { font-size: 17px !important; }
  .footer-shell--editorial .footer-mission-group { gap: 24px; }
  .footer-shell--editorial .footer-bottom { padding: 48px 0 32px; }
  .footer-shell--editorial .mobile-sliders { margin-bottom: 40px; }
  .footer-shell--editorial .mobile-video { flex-basis: min(340px, 84%); }
  .footer-shell--editorial .legal-strip {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 12px 16px;
    min-height: 0;
    padding-top: 16px;
  }
  .footer-shell--editorial .legal-links {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0 16px;
  }
  .footer-shell--editorial .legal-links a {
    display: inline-flex;
    align-items: center;
    padding-block: 10px;
    font-size: 12px;
    line-height: 1.4;
  }
  .footer-shell--editorial .legal-copy { font-size: 12px; line-height: 1.5; }
  .footer-shell--editorial .kuarktek-credit { width: 102px; }
}

@media (max-width: 479px) {
  .footer-shell--editorial .brand-info { --fs-body: 14px; }
}

/* Phones (14 Oct 2026): the particle star sits higher, behind the airy menu
   block, and the footer gets more breathing room. Service cards stack like
   the tablet column instead of a sideways rail. */
@media (max-width: 767px) {
  body .footer-shell.footer-shell--editorial { --footer-padding-top: 80px; }
  /* (15 Ekim 2026, user) The particle star gets its own band between the
     menu and the mission line: the stage joins the column flow there. */
  .footer-shell--editorial .footer-top { order: 1; }
  .footer-shell--editorial .particle-stage {
    position: relative;
    inset: auto;
    order: 2;
    flex: none;
    /* The star fills about two thirds of a landscape canvas's height, so the
       canvas is 1.35 × the band high and at least as wide, centred on the band
       with negative margins (the footer clips the empty sides): the star nearly
       fills the band without reaching the menu or the mission line. */
    --footer-star-band: min(84vw, 340px);
    --footer-star-canvas: calc(var(--footer-star-band) * 1.35);
    width: max(calc(100% + 2 * var(--footer-gutter)), var(--footer-star-canvas));
    height: var(--footer-star-canvas);
    margin-block: calc(var(--footer-star-band) * -.175);
    margin-inline: calc(-1 * var(--footer-gutter));
    align-self: center;
  }
  .footer-shell--editorial .footer-bottom { order: 3; }
  .footer-shell--editorial .mobile-sliders { order: 4; }
  .footer-shell--editorial .legal-strip { order: 5; }
  .footer-shell--editorial .footer-top { gap: 64px; }
  .footer-shell--editorial .brand { gap: 28px; }
  .footer-shell--editorial .footer-navigation__divider { margin-block: 16px 12px; }
  .footer-shell--editorial .footer-bottom { padding: 0 0 40px; }
  .footer-shell--editorial .footer-mission-group { gap: 32px; }
  .footer-shell--editorial .mobile-sliders { margin: 24px 0 56px; }
  .footer-shell--editorial .mobile-track {
    flex-direction: column;
    gap: 12px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .footer-shell--editorial .mobile-video { flex: none; width: 100%; }
  .footer-shell--editorial .legal-strip { padding-top: 24px; }
  .footer-shell--editorial .legal-strip { container-type: inline-size; }
}
/* Legal links and the rights notice stay on one line while they fit; they
   stack only when the row gets too narrow (links ≈ 323px, copy column ≈ 351px). */
@media (max-width: 767px) {
  @container (max-width: 324px) {
    .footer-shell--editorial .legal-links { flex-direction: column; align-items: flex-start; gap: 0; }
    .footer-shell--editorial .legal-links a { padding-block: 8px; }
  }
  @container (max-width: 350px) {
    .footer-shell--editorial .legal-copy__rights { display: block; }
  }
}

/* Tablets: mirror the desktop bottom row. Mission and CTA on the left; the
   three service cards in one tidy column on the right, fully visible. */
@media (min-width: 768px) and (max-width: 1079px), (min-width: 768px) and (max-width: 1079px) and (hover: none) {
  .footer-shell--editorial .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "top top" "mission cards" "legal legal";
    align-items: end;
    column-gap: 40px;
  }
  body .footer-shell.footer-shell--editorial { --fs-footer-mission: clamp(26px, 3.4vw, 32px); }
  .footer-shell--editorial .footer-top { grid-area: top; }
  .footer-shell--editorial .footer-bottom { display: contents; }
  .footer-shell--editorial .footer-mission-group { grid-area: mission; padding-block: 56px 40px; }
  .footer-shell--editorial .mobile-sliders { grid-area: cards; justify-self: end; width: 100%; max-width: 400px; margin: 0; padding-block: 56px 40px; }
  .footer-shell--editorial .mobile-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .footer-shell--editorial .mobile-video { flex: none; width: 100%; }
  .footer-shell--editorial .legal-strip { grid-area: legal; }
}
@media (min-width: 1080px) and (max-width: 1079px) and (hover: none) {
  .footer-shell--editorial .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Service cards: the same hover details as the homepage hero news stack
   (assets/css/hero-news-stack.css): brand star at the top right that turns
   accent and makes a half turn, image growing inside its box, bright green title. */
.footer-shell--editorial .video-card { position: relative; }
.footer-shell--editorial .video-copy { padding-right: 28px; }
.footer-shell--editorial .video-card__star {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  -webkit-mask: url('../../../assets/brand/logos/yildiz-01-transparent.svg') center / contain no-repeat;
  mask: url('../../../assets/brand/logos/yildiz-01-transparent.svg') center / contain no-repeat;
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1), background-color 250ms ease;
}
.footer-shell--editorial .video-card:is(:hover, :focus-visible) .video-card__star {
  background: var(--color-accent);
  transform: rotate(180deg);
}
.footer-shell--editorial .video-image img { transition: transform 700ms cubic-bezier(.22, 1, .36, 1); }
.footer-shell--editorial .video-card:is(:hover, :focus-visible) .video-image img { transform: scale(1.04); }
.footer-shell.footer-shell--editorial .video-card:is(:hover, :focus-visible) .video-title { color: var(--color-heading-reveal-on-dark); }
@media (prefers-reduced-motion: reduce) {
  .footer-shell--editorial :is(.video-card__star, .video-image img) { transition: none; }
  .footer-shell--editorial .video-card:is(:hover, :focus-visible) :is(.video-card__star, .video-image img) { transform: none; }
}

/* Footer news cards (18 Ekim 2026, user): the title keeps its size but uses at most
   70% of the text column; a longer title ends in “…” after two lines. */
.footer-shell .video-title {
  display: -webkit-box;
  max-width: 70%;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
