/* Live to a Hundred site: motion, hover states and the few layout switches that
   inline styles can't express. Colours, type and spacing stay inline in the
   artboards. Every animation sits behind prefers-reduced-motion: without motion the
   pages are complete and still. */

/* header: the extra links hide on phones */
@media (max-width: 760px) { .lp-hide-sm { display: none !important; } }

/* subpage menu: the current page is underlined in sari */
.lp-nav a { transition: box-shadow .25s ease; }
.lp-nav a:hover, .lp-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #285fa3; }

/* text links on dark grounds turn sari on hover */
.lp-dark a:not(.lp-btn):hover { color: #fec940 !important; }

/* headline lines: each line masks its own rise */
.lp-line { display: block; overflow: hidden; position: relative; padding: .2em 0; margin: -.2em 0; }
.lp-line > span { display: inline-block; }
/* each line paints over the one below it, so a descender (the ç's cedilla) is never
   covered by the next line's mask or highlight; the same fix the live site carries */
.lp-line:nth-child(1) { z-index: 3; }
.lp-line:nth-child(2) { z-index: 2; }
.lp-line:nth-child(3) { z-index: 1; }
.lp-line:has(.lp-mark) > span { line-height: 1.16; }

/* the sari highlight on the hero's last line (the HABER cover's device) */
.lp-mark {
  color: #15171e;
  padding: 0 .12em;
  background-image: linear-gradient(#fec940, #fec940);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 50%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* buttons */
.lp-btn { transition: background-color .25s ease, color .25s ease; }
.lp-btn__arrow { display: inline-block; transition: transform .25s ease; }
.lp-btn:hover .lp-btn__arrow { transform: translateX(6px); }
.lp-btn--sari:hover { background-color: #ffffff !important; }
.lp-btn--ghost:hover { background-color: #15171e !important; border-color: #15171e !important; color: #f4ecdf !important; }
.lp-btn--navy:hover { background-color: #1f4c85 !important; }

/* marquee: two identical halves, so -50% loops seamlessly */
.lp-marquee__track { display: flex; width: max-content; }

/* pillar band: split-flap letters (an old departures board, without the board).
   Six words share one spot; each shows for 0.9 s of a 5.4 s cycle, and as it comes in
   every letter rolls through three passing letters before landing, left to right.
   Without motion the first word simply stands. */
.lp-flap { position: relative; }
.lp-flap__cell { clip-path: inset(0 -0.6em); }
/* each passing letter keeps to its own line box, so a cedilla (Ç, Ş) never pokes into the cell below */
.lp-flap__roll > span { height: 1.2em; line-height: 1.2em; overflow: hidden; }
.lp-flap__word:not(:first-child) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .lp-flap__word { animation: lp-flap-show 5.4s steps(1, end) infinite both; }
  .lp-flap__roll { animation: lp-flap-roll 5.4s steps(1, end) infinite both; }
}
@keyframes lp-flap-show {
  0% { opacity: 1; }
  16.66% { opacity: 1; }
  16.67% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes lp-flap-roll {
  0% { transform: translateY(3.6em); }
  0.6% { transform: translateY(2.4em); }
  1.2% { transform: translateY(1.2em); }
  1.8% { transform: none; }
  94% { transform: translateY(3.6em); }
  100% { transform: translateY(3.6em); }
}

/* pillar accordion: six spines, one open; hovering opens another */
.lp-acc { display: flex; height: 540px; }
.lp-acc > li { flex: 1 1 0; min-width: 0; transition: flex-grow .6s cubic-bezier(.2,.7,.2,1); }
.lp-acc > li.is-open, .lp-acc:hover > li:hover { flex-grow: 3.6; }
.lp-acc:hover > li.is-open:not(:hover) { flex-grow: 1; }
.lp-acc__spine { position: absolute; left: 20px; bottom: 24px; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; transition: opacity .3s ease; }
.lp-acc__body { position: absolute; left: 24px; right: 24px; bottom: 24px; opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.lp-acc > li.is-open .lp-acc__spine, .lp-acc:hover > li:hover .lp-acc__spine { opacity: 0; }
.lp-acc > li.is-open .lp-acc__body, .lp-acc:hover > li:hover .lp-acc__body { opacity: 1; transform: none; transition-delay: .15s; }
.lp-acc:hover > li.is-open:not(:hover) .lp-acc__spine { opacity: 1; }
.lp-acc:hover > li.is-open:not(:hover) .lp-acc__body { opacity: 0; transform: translateY(16px); transition-delay: 0s; }
.lp-acc__mark { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.lp-acc > li:hover .lp-acc__mark { transform: rotate(-14deg) scale(1.08); }
@media (max-width: 760px) {
  .lp-acc { flex-direction: column; height: auto; }
  .lp-acc > li, .lp-acc > li.is-open, .lp-acc:hover > li:hover, .lp-acc:hover > li.is-open:not(:hover) { flex: none; }
  .lp-acc__spine { display: none; }
  .lp-acc__head { flex-direction: row !important; align-items: center !important; }
  .lp-acc__body,
  .lp-acc > li .lp-acc__body,
  .lp-acc:hover > li .lp-acc__body,
  .lp-acc:hover > li.is-open:not(:hover) .lp-acc__body { position: relative; left: auto; right: auto; bottom: auto; margin-top: 18px; opacity: 1; transform: none; }
}

/* latest-issue cards: the card lifts onto a navy shadow on hover */
.lp-card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s cubic-bezier(.2,.7,.2,1); }
.lp-card:hover { transform: translateY(-4px); }
.lp-card:hover .lp-btn__arrow { transform: translateX(6px); }

/* rules: the title steps forward on hover */
.lp-rule__title { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.lp-rule:hover .lp-rule__title { transform: translateX(10px); }

/* subpages: the big sari dot behind the title, smaller on phones; the title keeps clear of it */
.lp-sun { position: absolute; right: -140px; top: -210px; width: 440px; height: 440px; border-radius: 50%; background: #fec940; }
.lp-title { max-width: calc(100% - 300px); }
.lp-title--wide { max-width: calc(100% - 480px); }
@media (max-width: 760px) {
  .lp-sun { right: -70px; top: -110px; width: 190px; height: 190px; }
  .lp-title, .lp-title--wide { max-width: none; }
}

/* subpage text: links inside the article */
.lp-doc a { color: #285fa3; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp-doc a:hover { color: #1f4c85; background: #fec940; }

/* hero picture: a cream-framed print on a sari offset shadow; it lifts off the page
   when it arrives and again on hover. The painting drifts from around the sun. */
.hx-img { transform-origin: 50% 40%; }
.hx-in { aspect-ratio: 16 / 10; }
@media (max-width: 760px) { .hx-in { aspect-ratio: 1200 / 1104; } }

/* the welcome band on "Takip ettiklerim": the waving woman stands the full height of the
   band on the right, the greeting and the next-registration card sit over it */
.pn-hello { position: absolute; top: 0; right: max(0px, calc((100% - 1240px) / 2)); display: block; height: 100%; width: auto; aspect-ratio: 1 / 1; object-fit: cover; pointer-events: none; }
@media (max-width: 760px) {
  .pn-hello { top: 4px; right: -96px; height: 340px; }
  .pn-band { min-height: 344px; }
  .pn-band > div { padding-top: 40px !important; padding-bottom: 24px !important; }
  .pn-band .lp-title { max-width: 62% !important; }
  /* the welcome band: the greeting is centred beside the waving woman, who stands as tall as
     the greeting block, so nothing is left empty whether or not the yellow card follows */
  .pn-band--tall { min-height: 0; }
  .pn-band--tall > div { padding-top: 0 !important; gap: 0 !important; }
  .pn-band--tall .pn-hello { top: 8px; right: -62px; height: 224px; }
  .pn-band--tall .lp-title { min-height: 236px; justify-content: center; }
  .pn-band--tall .lp-title h1 { margin-bottom: 0 !important; }
  .pn-band + .lp-doc { padding-top: 16px !important; }
}

/* home: on phones the hero drawing sits under the band, after the three links */
.hx-art-m { display: none; }
@media (max-width: 760px) {
  .hx-art-d { display: none !important; }
  .hx-art-m { display: block; }
}

/* home: the three things the site does, inside the hero so phones see them first */
.hx-feats { margin: 0; padding: 0; list-style: none; border-top: 2px solid #12263f; }
.hx-feat { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 4px 12px 0; border-bottom: 1px solid #dcd7c6; color: #15171e; text-decoration: none; transition: background-color .2s ease; }
.hx-feat:hover { background: #ebdfca; }
.hx-feat img { display: block; width: 76px; height: 76px; object-fit: cover; background: #f4ecdf; }
.hx-feat__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hx-feat__text b { font-family: var(--font-display, 'Oswald', sans-serif); font-size: 22px; line-height: 1.15; font-weight: 700; text-transform: uppercase; }
.hx-feat__text span { font-size: 16px; line-height: 1.5; color: #333c45; }
.hx-feat__arrow { font-size: 20px; font-weight: 800; color: #285fa3; transition: transform .25s ease; }
.hx-feat:hover .hx-feat__arrow { transform: translateX(6px); }
@media (max-width: 760px) {
  .hx-feat { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
  .hx-feat img { width: 64px; height: 64px; }
  .hx-feat__text b { font-size: 20px; }
  .hx-feat__text span { font-size: 14px; }
}

/* a drawing that sits on a title band: beside the title on desktop, under it on phones */
.lp-sticker { position: absolute; right: max(20px, calc((100% - 1240px) / 2 + 20px)); bottom: 0; display: block; width: 300px; height: auto; }
.lp-sticker--wide { width: 440px; }
@media (max-width: 760px) {
  .lp-sticker, .lp-sticker--wide { position: relative; right: auto; width: min(220px, 60%) !important; margin: -32px 20px 0 auto; }
  .lp-sticker--wide { width: calc(100% - 40px) !important; margin: -24px 20px 0; }
}


/* header sign-in: an outlined button that fills sari */
.lp-nav a.lp-btn--ghost, .lp-nav a.lp-btn--ghost[aria-current="page"] { box-shadow: none; }
.lp-btn--ghost:hover, .lp-btn--ghost[aria-current="page"] { background-color: #15171e !important; border-color: #15171e !important; color: #f4ecdf !important; }

/* race calendar: sport chips, rows and filters */
.tk-chip { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.tk-chip:hover { border-color: #15171e !important; }
.tk-chip[aria-pressed="false"] .tk-chip__dot { opacity: .35; }
.tk-row { transition: background-color .25s ease; }
.tk-row:hover { background-color: #efe5d3; }
.tk-row:hover .tk-row__title { box-shadow: inset 0 -0.45em 0 #fec940; }
.tk-row__title { transition: box-shadow .3s ease; }
.tk-field:focus-visible, .tk-chip:focus-visible { outline: 3px solid #fec940; outline-offset: 2px; }
.tk-reglink:hover .lp-btn__arrow { transform: translateX(6px); }
/* follow: outlined until followed, then navy; hover previews the other state */
.tk-follow { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.tk-follow[aria-pressed="false"]:hover { background-color: #fec940 !important; }
.tk-follow[aria-pressed="true"]:hover, .tk-row > .tk-follow:hover { background-color: #15171e !important; }
.tk-follow:focus-visible, .tk-mob__toggle:focus-visible { outline: 3px solid #fec940; outline-offset: 2px; }
/* race calendar on phones: a compact card (date, distances, follow on the left;
   name, place and registration on the right) that opens for the notes and links */
.tk-mob__chev { transition: transform .25s ease; }
/* follow bell: outline = not followed, filled sari on navy = followed, notifications on */
.tk-bell { transition: background-color .2s ease, color .2s ease; }
.tk-bell[aria-pressed="false"]:hover { background-color: #fec940 !important; }
.tk-bell[aria-pressed="true"]:not(.is-ringing):hover { background-color: #15171e !important; }
.tk-bell:focus-visible { outline: 3px solid #fec940; outline-offset: 2px; }
/* following: the label steps aside, the bell grows to fill its box, rings, settles,
   and only then the box turns navy, the bell sari and "Takipte" appears */
.tk-bell, .tk-follow { position: relative; overflow: visible; }
.tk-bell svg, .tk-follow svg { transform-origin: 50% 18%; }
@media (prefers-reduced-motion: no-preference) {
  .tk-bell.is-ringing, .tk-follow.is-ringing { animation: tk-bell-turn 1.15s ease both; }
  .tk-bell.is-ringing svg, .tk-follow.is-ringing svg { animation: tk-bell-ring 1.15s cubic-bezier(.3,.7,.3,1) both; }
  .tk-bell.is-ringing .tk-bell__label { animation: tk-bell-label 1.15s ease both; }
  .tk-bell.is-ringing .tk-bell__waves, .tk-follow.is-ringing .tk-bell__waves { animation: tk-bell-waves 1.15s ease both; }
}
@keyframes tk-bell-turn {
  0%, 72% { background-color: #ffffff; color: #15171e; }
  100% { background-color: #285fa3; color: #fec940; }
}
@keyframes tk-bell-ring {
  0% { transform: none; }
  22% { transform: translateY(8px) scale(1.65); }
  32% { transform: translateY(8px) scale(1.65) rotate(-16deg); }
  42% { transform: translateY(8px) scale(1.65) rotate(13deg); }
  52% { transform: translateY(8px) scale(1.65) rotate(-9deg); }
  60% { transform: translateY(8px) scale(1.65) rotate(5deg); }
  68% { transform: translateY(8px) scale(1.65) rotate(0); }
  86% { transform: scale(.94); }
  100% { transform: none; }
}
@keyframes tk-bell-label { 0% { opacity: 1; } 10%, 80% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tk-bell-waves { 0%, 76% { opacity: 0; } 100% { opacity: 1; } }
@media (max-width: 760px) {
  .tk-row--cal { display: block !important; padding: 16px 12px 16px 16px !important; }
  .tk-row--cal > .tk-desk { display: none !important; }
  .tk-row--cal > .tk-mob { display: grid !important; }
  .tk-row--cal:hover { background-color: transparent; }
}
@media (max-width: 760px) {
  .tk-row > .tk-follow { grid-column: 2; justify-self: start !important; }
  .tk-row { padding: 20px 12px 20px 16px !important; gap: 14px 16px !important; }
  .tk-row__reg { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 10px 14px !important; }
  .tk-row__reg .tk-follow { min-width: 0 !important; }
  .tk-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 14px !important; }
  .tk-row { grid-template-columns: 64px minmax(0, 1fr) !important; }
  .tk-row__reg { grid-column: 2; align-items: flex-start !important; text-align: left !important; }
  .tk-day { width: 64px !important; height: 64px !important; }
  .tk-day b { font-size: 30px !important; }
}

/* sign-in: the two-panel card stacks on phones */
.gr-panel__art { min-height: 560px; }
/* the welcome GIF: a cream band across the top of the form card, bleeding to its edges */
.gr-hello { margin: -44px -48px 0; }
.gr-tab { box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .25s ease; }
.gr-tab:hover, .gr-tab[aria-current="page"] { box-shadow: inset 0 -3px 0 #285fa3; }
@media (max-width: 760px) {
  .gr-main { padding: 28px 16px 64px !important; }
  .gr-main > div { box-shadow: none !important; }
  .gr-panel__art { display: none !important; }
  .gr-panel__art .lp-sun { right: -90px !important; bottom: -120px !important; width: 220px !important; height: 220px !important; }
  .gr-intro { font-size: 16px !important; }
  .gr-caption { display: none; }
  .gr-form { padding: 28px 20px 26px !important; gap: 20px !important; }
  .gr-hello { margin: -28px -20px 0; }
}

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .lp-line > span { animation: lp-up 1s cubic-bezier(.2,.75,.2,1) both; }
  .lp-mark { animation: lp-wipe .75s .9s cubic-bezier(.75,0,.2,1) both; }
  .lp-fade { animation: lp-fade .9s cubic-bezier(.2,.75,.2,1) both; }
  .lp-marquee__track { animation: lp-marquee 40s linear infinite; }
  .lp-marquee:hover .lp-marquee__track { animation-play-state: paused; }
  .lp-pulse .l2a-wordmark__dot, .lp-blink { animation: lp-pulse 2.4s ease-in-out infinite; }
  .lp-sun { animation: lp-sun-in 1.2s cubic-bezier(.2,.75,.2,1) both, hx-breathe 7s 1.2s ease-in-out infinite alternate; }
  @supports (animation-timeline: view()) {
    .lp-reveal { animation: lp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }

  /* hero picture: the painting wipes up inside its frame, the print lifts off the
     page, then the painting breathes slowly */
  .hx-in { animation: hx-wipe 1.2s .25s cubic-bezier(.65,0,.25,1) both; }
  .hx-frame { animation: hx-lift .8s 1.25s cubic-bezier(.2,.75,.2,1) backwards; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1); }
  .hx-img { animation: hx-drift 14s 1.45s ease-in-out infinite alternate; }
}
@keyframes lp-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes lp-wipe { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes lp-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lp-pulse { 0%, 64%, 100% { transform: scale(1); } 74% { transform: scale(1.5); } 84% { transform: scale(.88); } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes lp-sun-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes hx-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hx-lift { from { transform: translateY(16px); } to { transform: none; } }
@keyframes hx-drift { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes hx-breathe { from { transform: scale(1); } to { transform: scale(1.04); } }

/* ---- audit pass (2026-11-14) ---- */
/* home header on phones: the page links drop to a second row, as on the subpages, and the bar stops being sticky */
@media (max-width: 760px) {
  .hx-header { position: static !important; }
  .hx-nav { order: 3; flex-basis: 100%; margin-left: 0 !important; }
}
/* subpage title bands: less air above the title on phones */
@media (max-width: 760px) { .lp-hero-in { padding-top: 48px !important; padding-bottom: 40px !important; } }

/* race calendar on phones: one row of sport chips that scrolls sideways, the other filters behind
   "Filtrele", the first month straight after, then the "30 gün içinde açılıyor" box */
.tk-filterbar { display: none; }
@media (max-width: 760px) {
  .tk-hero { padding: 20px 20px 24px !important; }
  .tk-form { padding: 18px 20px 20px !important; gap: 16px !important; }
  .tk-chips { flex-wrap: nowrap !important; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .tk-chips::-webkit-scrollbar { display: none; }
  .tk-filterbar { display: flex !important; }
  .tk-filters { display: none !important; }
  .tk-filters.is-open { display: flex !important; }
  .tk-count-d { display: none; }
  .tk-soon-img { display: none !important; }
  .tk-doc { padding-top: 28px !important; gap: 48px !important; }
  .tk-doc > .tk-first { order: -1; }
}

/* "Takip ettiklerim" on phones: unread changes come before the list */
@media (max-width: 760px) { .pn-changes.is-unread { order: -1; } }

/* footer on phones: tighter, the page links in two columns */
@media (max-width: 760px) {
  .ft-in { padding: 44px 20px 28px !important; gap: 28px !important; }
  .ft-cols { gap: 20px 24px !important; }
  .ft-pages { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* latest-issue cards on phones: one column, the drawing on the left */
@media (max-width: 760px) {
  .li-grid { grid-template-columns: 1fr !important; }
  .li-card { display: grid !important; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 16px !important; padding: 0 16px 0 0 !important; align-content: center; }
  .li-card > img { grid-row: 1 / span 3; width: 112px !important; height: 100% !important; min-height: 112px; margin: 0 !important; aspect-ratio: auto !important; }
  .li-card > span { grid-column: 2; }
  .li-card > span:nth-of-type(1) { padding-top: 12px; }
  .li-card > span:last-child { margin-top: 0 !important; padding-bottom: 12px; }
}

/* site header: logo left, the account box pinned to the right edge (it grows leftwards with a
   long name and never moves), the page links between them; on phones the links take the second row */
@media (max-width: 760px) {
  .sh-nav { order: 3; flex-basis: 100%; }
  .sh-acct { max-width: calc(100% - 224px); }
}
