/* ==========================================================================
   Platform — shared styles, loaded on every page only while a Platform switch is on (Sayfa metinleri: Seddir
   Seçki, Tasarımcı Günlüğü, Renk Arşivi, Seddir Evlerde, Bu Ayın Tasarımcısı, E-posta bülteni), so the site
   stays exactly as it was while all are off (src/pages/platform/index.mjs → platformStyles).
     - the menu's Keşfet band (four to six bands)
     - /kesfet, the index of the modules that are on
     - the E-posta bülteni form on the home page
   Each module has its own stylesheet next to this one. Capitals come from the templates (upTr): never
   text-transform on a text that may hold the word Seddir (Turkish rules would write SEDDİR).
   ========================================================================== */

/* The palette's orange is 2 % see-through (tokens.css: #EF8900FA); a menu band and a fixed header bar must not let
   the page behind them show, so those two use the same orange made solid. */
:root { --k-orange: #EF8900; }

/* ---- Menu: the Keşfet band --------------------------------------------------
   Ana sayfa · Koleksiyon · (Tasarımcılar) · (Markalar) · Keşfet · Hakkımızda. Same bands, laid out as a column so
   the Keşfet band can be a little taller for the line of links under its name; the first band still runs up behind
   the header bar. --k4 … --k7: how many bands, for the size of the names. */
.site-menu__bands--k { display: flex; flex-direction: column; }
.site-menu__bands--k > .site-menu__band { flex: 1 1 0; min-height: 0; transition-delay: calc((6 - var(--i)) * 50ms); }
.site-menu__bands--k > .site-menu__band:first-child { flex-basis: var(--bar-h); }
.site-menu__bands--k > .site-menu__band--small { flex: .55 1 0; }
.site-menu__bands--k > .site-menu__band--kesfet { flex-grow: 1.5; flex-direction: column; justify-content: center; gap: clamp(6px, 1.1svh, 12px); }
.site-menu__band--kesfet > a { flex: none; }
.site-menu__bands--k5 .site-menu__label { font-size: min(var(--fs-menu), 11svh); }
.site-menu__bands--k6 .site-menu__label { font-size: min(var(--fs-menu), 9.4svh); }
.site-menu__sub { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 1.8vw, 28px); padding: 0 var(--menu-px); list-style: none; }
.site-menu__sub a {
  display: block; padding: 4px 0;
  font: 700 clamp(13px, .35vw + 11px, 16px)/1.25 var(--ff-display); font-stretch: 108%;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-fast);
}
.site-menu__sub a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
@media (max-width: 767.98px) {
  .site-menu__bands--k > .site-menu__band--small { flex: none; }
  .site-menu__bands--k > .site-menu__band--kesfet { flex-grow: 1.8; }       /* two lines of links on a narrow screen */
  .site-menu__bands--k .site-menu__label { font-size: min(var(--fs-menu), 10svh, 10vw); }
  .site-menu__bands--k6 .site-menu__label { font-size: min(var(--fs-menu), 7.4svh, 10vw); }
  .site-menu__sub { gap: 0 14px; }
}
/* Fitting every screen. Every band is sized the same way: its content (name, and links if it has them) plus an
   equal share of the free height, the content centred as one block, so a band is never shorter than its name and
   no band has an empty strip under its links. Wide screens (and a phone on its side) put the links on the name's
   line, so Ürünler and Keşfet are as tall as the others. When the bands cannot fit, the menu scrolls under a bar
   made solid in the first band's navy. The cushion swatch floats outside the flow. Seven bands: Koleksiyon +
   Ürünler + Tasarımcılar + Markalar + Keşfet. */
.site-menu:has(.site-menu__bands--k) { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.menu-open .site-header__bar:has(~ .site-menu .site-menu__bands--k) { background-color: var(--c-navy); transition: background-color 0s .3s; }
.site-menu__bands--k { --band-py: clamp(6px, 1.1svh, 14px); height: auto; min-height: 100%; }
.site-menu__bands--k > .site-menu__band,
.site-menu__bands--k > .site-menu__band--kesfet { flex: 1 1 auto; min-height: auto; flex-direction: column; justify-content: center; gap: 0; padding-block: var(--band-py); }
.site-menu__bands--k > .site-menu__band:first-child { flex-basis: auto; padding-top: calc(var(--bar-h) + var(--band-py)); }
.site-menu__bands--k > .site-menu__band > a { flex: none; }
.site-menu__bands--k .site-menu__label { padding-block: .1em; }       /* room for the İ's dot, Ü's dots and Ş's tail */
.site-menu__bands--k .site-menu__sub { margin-top: clamp(0px, .4svh, 6px); }
.site-menu__bands--k .site-menu__sw { position: absolute; right: var(--menu-px); top: 50%; translate: 0 -50%; }
.site-menu__bands--k > .site-menu__band--small { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; padding-block: clamp(10px, 1.6svh, 18px) calc(clamp(10px, 1.6svh, 18px) + env(safe-area-inset-bottom, 0px)); }
.site-menu__bands--k7 .site-menu__label { font-size: min(var(--fs-menu), 7.4svh); }
@media (max-width: 767.98px) {
  .site-menu__bands--k7 .site-menu__label { font-size: min(var(--fs-menu), 6.2svh, 10vw); }
  .site-menu__bands--k > .site-menu__band--small { padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) and (max-height: 700px) and (orientation: landscape) {   /* a laptop: the browser's bars leave 550–700px */
  .site-menu__bands--k { --band-py: 8px; }
  .site-menu__bands--k7 .site-menu__label { font-size: min(var(--fs-menu), 6.1svh); }
}
@media (max-width: 767.98px) and (max-height: 660px) {           /* a small phone: tighter bands, so seven still fit */
  .site-menu__bands--k { --band-py: 4px; }
  .site-menu__bands--k > .site-menu__band--small { padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-height: 540px) and (orientation: landscape) {      /* a phone on its side: names by width, the menu scrolls */
  .site-menu__bands--k { --band-py: 10px; }
  .site-menu__bands--k .site-menu__label { font-size: min(var(--fs-menu), 5.6vw, 48px); }
  .site-menu__bands--k > .site-menu__band--small { padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1024px), (min-width: 560px) and (max-height: 540px) and (orientation: landscape) {
  .site-menu__bands--k > .site-menu__band--kesfet { flex-direction: row; flex-wrap: wrap; align-items: baseline; align-content: center; justify-content: flex-start; column-gap: clamp(18px, 2.2vw, 40px); }
  .site-menu__bands--k > .site-menu__band--kesfet > a { padding-right: 0; }
  .site-menu__bands--k > .site-menu__band--kesfet .site-menu__sub { margin-top: 0; padding-left: 0; }
}

/* ---- Footer: the Keşfet pages under the contact line ---- */
.site-footer__kesfet { line-height: 1.55; }

/* ---- Page colours: the Keşfet band's pair ---- */
[data-page="kesfet"] { --head-bg: var(--k-orange); --head-fg: var(--c-navy); --foot-bg: var(--c-navy); --foot-fg: var(--c-pink); }

/* ---- A module's list page: the trail above its title ---- */
.k-list .product__crumb { margin-bottom: 0; }

/* ---- /kesfet: one colour band per module ----------------------------------
   --k-bg / --k-fg: the band's pair (the logo sheet's pairs in order, so neighbours differ). The whole band opens the
   module (the name's link is stretched over it); the latest item is its own link above that. */
.kesfet { padding-inline: var(--inset); }
.kesfet__head { max-width: 1180px; margin: 0 auto; padding-top: 32px; }
.kesfet__title { font-size: clamp(44px, 11.5vw, 176px); line-height: .86; color: var(--c-navy); }
.kesfet__intro { max-width: 460px; margin-top: 18px; font-size: clamp(16px, .4vw + 13px, 19px); line-height: 1.5; color: var(--ink-soft); }
.kesfet__list { max-width: 1180px; margin: clamp(28px, 4vw, 56px) auto 0; padding: 0; list-style: none; }
.k-row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: clamp(72px, 10vw, 148px) minmax(0, 1fr) minmax(0, 340px); gap: 20px clamp(20px, 3vw, 44px); align-items: center;
  min-height: clamp(180px, 17vw, 236px); padding: clamp(28px, 3.4vw, 48px) clamp(20px, 3.4vw, 48px);
  background: var(--k-bg); color: var(--k-fg);
}
.k-row__no { align-self: start; font: 800 clamp(44px, 6.6vw, 104px)/.8 var(--ff-display); font-stretch: var(--wdth-wide); }
.k-row__main { display: grid; justify-items: start; align-content: center; gap: 14px; }
.k-row__main:last-child { grid-column: 2 / -1; }                 /* no latest item: the words take its place */
.k-row__label { font: 800 clamp(30px, 4.4vw, 68px)/.95 var(--ff-display); font-stretch: var(--wdth-wide); letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.k-row__label a { display: inline-block; transition: transform var(--dur) var(--ease-bounce); }
.k-row__label a::after { content: ''; position: absolute; inset: 0; }
.k-row__label a:is(:hover, :focus-visible) { transform: translateX(clamp(8px, 1.4vw, 22px)); }
.k-row__label a:focus-visible { outline: none; }
.k-row:has(.k-row__label a:focus-visible) { outline: 3px solid var(--c-black); outline-offset: -3px; }
.k-row__intro { max-width: 46ch; font-size: clamp(15px, .3vw + 13px, 18px); font-weight: 600; line-height: 1.45; }
.k-row__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font: 700 13px/1 var(--ff-body); letter-spacing: .08em; }
.k-row__go svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-bounce); }
.k-row:has(.k-row__label a:is(:hover, :focus-visible)) .k-row__go svg { transform: translateX(6px); }
.k-row__latest { position: relative; z-index: 1; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: end; }
.k-row__latest--text { grid-template-columns: 1fr; padding-left: 18px; border-left: 4px solid currentColor; }
.k-row__latest img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--c-paper); outline: 4px solid var(--k-fg); outline-offset: -4px; }
.k-row__about { display: grid; gap: 8px; padding-bottom: 4px; }
.k-row__about small { font: 700 11px/1 var(--ff-body); letter-spacing: .12em; }
.k-row__about b { font: 800 clamp(17px, .8vw + 10px, 22px)/1.15 var(--ff-display); text-wrap: balance; }
.k-row__about span { font-size: 14px; font-weight: 600; line-height: 1.35; }
.k-row__latest:is(:hover, :focus-visible) b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .k-row__label a, .k-row__go svg { transition: none; } }
@media (max-width: 1024.98px) {
  .k-row { grid-template-columns: clamp(56px, 10vw, 96px) minmax(0, 1fr); }
  .k-row__latest { grid-column: 2 / -1; grid-template-columns: 96px minmax(0, 1fr); max-width: 420px; }
  .k-row__latest--text { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .kesfet__head { padding-top: 16px; }
  .kesfet__list { margin-inline: calc(-1 * var(--inset)); }
  .k-row { grid-template-columns: 52px minmax(0, 1fr); gap: 18px 14px; min-height: 0; padding: 28px 20px 30px; }
  .k-row__no { font-size: 40px; padding-top: 2px; }
  .k-row__label { font-size: clamp(28px, 8.6vw, 40px); }
  .k-row__main { gap: 10px; }
  .k-row__latest { grid-column: 1 / -1; grid-template-columns: 84px minmax(0, 1fr); }
  .k-row__latest--text { grid-template-columns: 1fr; }
}

/* ---- Ana sayfa: E-posta bülteni --------------------------------------------
   A wide poster of the başvuru çağrısı family: flat navy and pink (a pair from the logo sheet), a piping cord
   across the top, the heading in capitals; the form on the right (under the heading on a phone). */
.bulten { padding: 0 var(--inset); }
.bulten__poster {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end;
  padding: clamp(112px, 10vw, 156px) clamp(28px, 4.5vw, 72px) clamp(40px, 5vw, 72px);
  background: var(--c-navy); color: var(--c-pink);
}
.bulten__title { font: 800 clamp(34px, 4.6vw, 76px)/.95 var(--ff-display); font-stretch: var(--wdth-wide); letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.bulten__cord { position: absolute; left: 0; right: 0; top: 0; z-index: -1; width: 100%; height: clamp(84px, 8vw, 120px); fill: none; stroke: var(--c-pink); stroke-linecap: round; }
.bulten__cord path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out-circ); }
.bulten__poster:hover .bulten__cord path { stroke-dashoffset: 2; }
.bulten__side { display: grid; gap: 20px; }
.bulten__text { max-width: 40ch; font-size: 17px; line-height: 1.5; color: var(--c-paper); }
.bulten__form { display: grid; gap: 14px; }
.bulten__form[hidden] { display: none; }
.bulten__row { display: flex; }
.bulten__field { flex: 1; min-width: 0; }
.bulten__field input {
  width: 100%; height: 100%; min-height: 54px; padding: 12px 16px; font: 500 16px/1.4 var(--ff-body);   /* 16px: no zoom on iPhone */
  background: var(--c-paper); color: var(--ink); border: 2px solid var(--c-paper); border-radius: 0; text-overflow: ellipsis;
}
.bulten__field input:focus-visible { outline: none; border-color: var(--c-yellow); }
.bulten__field input[aria-invalid="true"] { border-color: var(--c-red); }
.bulten .btn { text-transform: none; }                            /* the label is already in capitals (upTr) */
.bulten__btn { flex: none; background: var(--c-pink); color: var(--c-navy); }
.bulten__btn:hover { background: var(--c-yellow); }
.bulten__btn:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }
.bulten__btn.is-busy { opacity: .6; pointer-events: none; }
.bulten__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bulten__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--c-paper); }
.bulten__consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--c-pink); }
.bulten__notice { font-size: 13px; line-height: 1.45; color: rgb(245 248 245 / .8); }
.bulten__notice a { text-decoration: underline; text-underline-offset: 2px; }
.bulten__notice a:hover { color: var(--c-yellow); }
.bulten__msg { font-size: 14px; font-weight: 700; color: var(--c-yellow); }
.bulten__msg:empty { display: none; }
.bulten__done { font: 800 clamp(20px, 1.2vw + 12px, 28px)/1.2 var(--ff-display); color: var(--c-yellow); }
.bulten__done[hidden] { display: none; }
.bulten__done:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .bulten__cord path { transition: none; } }
@media (max-width: 767.98px) {
  .bulten__poster { grid-template-columns: 1fr; gap: 24px; padding: 100px 24px 36px; }
  .bulten__title { font-size: clamp(30px, 9.4vw, 44px); }
  .bulten__cord { height: 72px; }
  .bulten__text { font-size: 16px; }
  .bulten__row { flex-direction: column; gap: 10px; }
  .bulten__btn { width: 100%; }
}
