/* The Thursday Times: the footer (inc/footer.php). The paper's last page, on its own black: the column rules of a
   broadsheet behind everything, the last story on the wire, the line set large, the index in each section's colour,
   and the wordmark signing off. Motion keeps the identity's rules: the colon stays put (it drops into place and
   blinks), straight lines only, a quick move and a long hold, one blink a second. */

.tt-foot {
  --ft-ease: var(--tt-ease, cubic-bezier(0.7, 0, 0.2, 1)); --ft-move: var(--tt-move, 600ms);
  --tt-bg: var(--tt-ink); --tt-text: var(--tt-paper); --tt-text-secondary: #a8a8a8; --tt-border: #333;
  position: relative; isolation: isolate; overflow: clip; margin-top: var(--tt-space-9);
  background: var(--tt-ink); color: var(--tt-paper); border-top: 6px solid var(--tt-orange);
}
.tt-foot * { box-sizing: border-box; }
.tt-foot h2 { margin: 0; }
.tt-foot ul { margin: 0; padding: 0; list-style: none; }

/* The broadsheet's twelve column rules, fading in from the top, and the orange coming up under the wordmark. */
.tt-foot::before, .tt-foot::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.tt-foot::before {
  inset: 0 max(var(--tt-margin-desktop), calc((100% - var(--tt-max-width)) / 2 + var(--tt-margin-desktop)));
  background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px calc(100% / 12));
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent);
}
.tt-foot::after { inset: auto 0 0; height: 70%; background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 66, 0, 0.2), transparent 70%); }

/* ------------------------------------------------------------------ the wire */
.tt-foot__wire { border-bottom: 1px solid var(--tt-border); background: rgba(0, 0, 0, 0.6); }
.tt-foot__wire-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--tt-space-3) var(--tt-space-6); min-height: 56px; padding-block: var(--tt-space-3); }
.tt-foot__filed { display: flex; align-items: center; gap: var(--tt-space-3); min-width: 0; flex: 1 1 420px; margin: 0; font-family: var(--font-ui); font-size: 13px; line-height: 18px; }
.tt-foot__pulse { flex: none; width: 9px; height: 9px; background: var(--tt-orange); animation: tt-foot-blink 1s steps(1, end) infinite; }
.tt-foot__filed-label { flex: none; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tt-orange); }
.tt-foot__ago { flex: none; color: var(--tt-text-secondary); font-variant-numeric: tabular-nums; }
.tt-foot__filed-link { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-text); font-size: 15px; font-weight: 600; text-decoration: none; padding-inline-start: var(--tt-space-3); border-inline-start: 1px solid var(--tt-border); }
.tt-foot__filed-link:hover { color: var(--tt-orange); }
.tt-foot__wire-end { display: flex; align-items: center; gap: var(--tt-space-5); font-family: var(--font-ui); font-size: 13px; color: var(--tt-text-secondary); }
.tt-foot .tt-switch__option { color: var(--tt-paper); }
.tt-foot .tt-switch__option.is-active { background: var(--tt-paper); color: var(--tt-ink); }

.tt-foot__wire .tt-switch { flex: none; width: auto; min-width: 0; height: auto; }
.tt-foot__wire .tt-switch__option { min-width: 0; min-height: 30px; height: 30px; padding: 0 12px; font-size: 13px; line-height: 30px; }

@keyframes tt-foot-blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------- line and get */
.tt-foot__body { padding-block: clamp(56px, 8vw, 112px) var(--tt-space-7); }
.tt-foot__lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }

.tt-foot__line { margin: 0; max-width: 11em; font-family: var(--font-deck); font-weight: 400; font-size: clamp(46px, 7vw, 108px); line-height: 0.94; letter-spacing: -0.015em; text-wrap: balance; }
.tt-foot__stop { display: inline-block; width: 0.16em; height: 0.16em; margin-inline-start: 0.06em; background: var(--tt-orange); vertical-align: baseline; }
[dir="rtl"] .tt-foot__line { font-family: var(--font-urdu); font-weight: 700; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.45; letter-spacing: 0; }

.tt-foot__get { position: relative; padding: var(--tt-space-5) var(--tt-space-5) var(--tt-space-3); background: var(--tt-orange); color: var(--tt-paper); }
.tt-foot__get::before, .tt-foot__get::after { content: ""; position: absolute; inset-inline-start: calc(-1 * var(--tt-space-3)); width: 6px; height: 6px; background: var(--tt-orange); }
.tt-foot__get::before { top: 28px; }
.tt-foot__get::after { top: 44px; }
.tt-foot__get-head { margin-bottom: var(--tt-space-3) !important; font-family: var(--font-ui); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tt-foot__get li + li { border-top: 1px solid rgba(255, 255, 255, 0.4); }
.tt-foot .tt-foot__get-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--tt-space-4); min-height: 54px; padding: var(--tt-space-2) 0; color: var(--tt-paper); text-decoration: none; font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; text-align: start; background: linear-gradient(var(--tt-ink), var(--tt-ink)) no-repeat left center / 0% 100%; transition: background-size 420ms var(--ft-ease), padding 420ms var(--ft-ease); }
[dir="rtl"] .tt-foot .tt-foot__get-row { background-position: right center; font-family: var(--font-urdu); font-weight: 700; }
.tt-foot .tt-foot__get-row:hover, .tt-foot .tt-foot__get-row:focus-visible { background-size: 100% 100%; padding-inline: var(--tt-space-3); text-decoration: none; }
.tt-foot__get-row i { position: relative; flex: none; width: 22px; height: 2px; background: currentColor; transition: width 420ms var(--ft-ease); }
.tt-foot__get-row i::after { content: ""; position: absolute; inset-inline-end: 0; top: -4px; width: 10px; height: 10px; border-top: 2px solid; border-inline-end: 2px solid; transform: rotate(45deg); }
[dir="rtl"] .tt-foot__get-row i::after { transform: rotate(-45deg); }
.tt-foot__get-row:hover i { width: 32px; }
.tt-foot .tt-foot__get-row[hidden], .tt-foot__get li:has(> [hidden]) { display: none; }

/* ------------------------------------------------------------------ the index */
.tt-foot__index { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--tt-space-7) clamp(32px, 5vw, 80px); margin-top: clamp(56px, 8vw, 104px); padding-top: var(--tt-space-5); border-top: var(--tt-rule-section-width, 3px) solid var(--tt-paper); }

/* Every heading carries the colon. */
.tt-foot__head, .tt-foot .tt-footer__col h2 { display: flex; align-items: center; gap: 10px; margin-bottom: var(--tt-space-4); font-family: var(--font-ui); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tt-text-secondary); }
.tt-foot__head::before, .tt-foot .tt-footer__col h2::before { content: ""; flex: none; width: 4px; height: 14px; background: linear-gradient(var(--tt-orange) 0 4px, transparent 4px 10px, var(--tt-orange) 10px); }
[dir="rtl"] .tt-foot__head, [dir="rtl"] .tt-foot .tt-footer__col h2 { font-family: var(--font-urdu); font-size: 14px; letter-spacing: 0; }

.tt-foot__sections { grid-row: span 2; }
.tt-foot__sections li { border-bottom: 1px solid var(--tt-border); }
.tt-foot__sections li:first-child { border-top: 1px solid var(--tt-border); }
.tt-foot__sections a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding-inline: 2px; color: var(--tt-paper); text-decoration: none; font-family: var(--font-display); font-size: clamp(26px, 2.5vw, 34px); line-height: 1; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; background: linear-gradient(var(--ft-c), var(--ft-c)) no-repeat left center / 0% 100%; transition: background-size 420ms var(--ft-ease), color 160ms ease-out, padding 420ms var(--ft-ease); }
[dir="rtl"] .tt-foot__sections a { font-family: var(--font-urdu); font-weight: 700; font-size: clamp(22px, 2vw, 28px); background-position: right center; }
.tt-foot__sections a::before { content: ""; flex: none; width: 0.36em; height: 0.36em; background: var(--ft-c); transition: background-color 160ms ease-out; }
.tt-foot__sections a::after { content: ""; margin-inline-start: auto; width: 14px; height: 14px; border-top: 2px solid; border-inline-end: 2px solid; transform: rotate(45deg); opacity: 0; translate: -8px 0; transition: opacity 200ms ease-out, translate 420ms var(--ft-ease); }
[dir="rtl"] .tt-foot__sections a::after { transform: rotate(-45deg); translate: 8px 0; }
.tt-foot__sections a:hover, .tt-foot__sections a:focus-visible { background-size: 100% 100%; color: var(--ft-on); padding-inline: var(--tt-space-3); }
.tt-foot__sections a:hover::before, .tt-foot__sections a:focus-visible::before { background: var(--ft-on); }
.tt-foot__sections a:hover::after, .tt-foot__sections a:focus-visible::after { opacity: 1; translate: 0 0; }
.tt-foot__sections a[aria-current] span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.14em; }
.tt-foot__sections .tt-wl-tail { width: 30px; height: 11px; color: #7f6cff; }
.tt-foot__sections a:hover .tt-wl-tail { color: var(--ft-on); }

.tt-foot__sections a span { white-space: nowrap; }
.tt-foot__sections .tt-ai-mark { flex: none; width: auto; height: 0.62em; }
.tt-foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--tt-space-6) var(--tt-space-5); align-content: start; }
.tt-foot .tt-footer__col a, .tt-foot .tt-footer__col .tt-footer__linkbutton { display: inline-flex; align-items: center; min-height: 34px; color: var(--tt-paper); font-family: var(--font-ui); font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0; text-decoration: none; }
.tt-foot .tt-footer__col a:lang(ur), [dir="rtl"] .tt-foot .tt-footer__col a, [dir="rtl"] .tt-foot .tt-footer__col .tt-footer__linkbutton { font-family: var(--font-urdu); }
.tt-foot .tt-footer__col a:hover, .tt-foot .tt-footer__col .tt-footer__linkbutton:hover { text-decoration: none; }

.tt-foot__follow { align-self: end; }
.tt-foot__follow ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-foot__follow a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--tt-border); color: var(--tt-paper); transition: background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out, translate 420ms var(--ft-ease); }
.tt-foot__follow svg { width: 20px; height: 20px; fill: currentColor; }
.tt-foot__follow a:hover, .tt-foot__follow a:focus-visible { background: var(--tt-orange); border-color: var(--tt-orange); translate: 0 -4px; }

/* ------------------------------------------------------------------ the sign-off */
.tt-foot__sign { padding-bottom: var(--tt-space-6); }
.tt-foot__mark { display: block; line-height: 0; }
.tt-foot__mark > svg { display: block; width: 100%; height: auto; overflow: visible; }
.tt-foot__mark rect { transform-box: fill-box; }
.tt-foot__mark:hover rect { animation: tt-foot-blink 1s steps(1, end) infinite; }

.tt-foot__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--tt-space-3) var(--tt-space-5); margin-top: var(--tt-space-5); padding-top: var(--tt-space-4); border-top: 1px solid var(--tt-border); font-family: var(--font-ui); font-size: 13px; line-height: 18px; color: var(--tt-text-secondary); }
.tt-foot__top { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--tt-paper); font: inherit; font-weight: 600; cursor: pointer; }
.tt-foot__top i { position: relative; width: 2px; height: 14px; background: currentColor; transition: translate 420ms var(--ft-ease); }
.tt-foot__top i::after { content: ""; position: absolute; left: -4px; top: 0; width: 8px; height: 8px; border-top: 2px solid; border-left: 2px solid; transform: rotate(45deg); }
.tt-foot__top:hover { color: var(--tt-orange); }
.tt-foot__top:hover i { translate: 0 -4px; }

/* -------------------------------------------------------------------- motion */
/* Up into place as it comes into view, the section names one after another; the wordmark wipes up from its
   baseline and the colon drops into place, blinks three times and holds. */
.ft-ready [data-ft-reveal] { transition: opacity var(--ft-move) var(--ft-ease), translate var(--ft-move) var(--ft-ease); }
.ft-ready [data-ft-reveal]:not(.is-in) { opacity: 0; translate: 0 32px; }
.ft-ready .tt-foot__sections li { transition: opacity var(--ft-move) var(--ft-ease), translate var(--ft-move) var(--ft-ease); transition-delay: calc(var(--ft-i, 0) * 60ms); }
.ft-ready .tt-foot__sections:not(.is-in) li { opacity: 0; translate: 0 18px; }
.ft-ready .tt-foot__mark > svg { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ft-ease); }
.ft-ready .tt-foot__mark:not(.is-in) > svg { clip-path: inset(100% 0 0 0); }
.ft-ready .tt-foot__mark rect { transition: translate 700ms var(--ft-ease) 700ms, opacity 1ms linear 700ms; }
.ft-ready .tt-foot__mark:not(.is-in) rect { translate: 0 -260%; opacity: 0; }
.ft-ready .tt-foot__mark.is-in rect { animation: tt-foot-blink 1s steps(1, end) 1.5s 3; }

@media (prefers-reduced-motion: reduce) {
  .tt-foot__pulse, .tt-foot__mark:hover rect { animation: none; }
  .tt-foot *, .tt-foot *::before, .tt-foot *::after { transition: none !important; }
}

/* ---------------------------------------------------------------- the screens */
@media (max-width: 1023px) {
  .tt-foot__lead, .tt-foot__index { grid-template-columns: minmax(0, 1fr); }
  .tt-foot__sections { grid-row: auto; }
  .tt-foot__get::before, .tt-foot__get::after { display: none; }
}
@media (max-width: 767px) {
  .tt-foot__wire-in { flex-direction: column; align-items: stretch; }
  .tt-foot__filed { flex-wrap: wrap; flex-basis: auto; row-gap: 6px; }
  .tt-foot__filed-link { flex-basis: 100%; padding-inline-start: 0; border-inline-start: 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tt-foot__wire-end { justify-content: space-between; }
  .tt-foot__line { font-size: clamp(42px, 12vw, 56px); }
  .tt-foot__get { margin-inline: calc(-1 * var(--tt-margin-desktop)); padding-inline: var(--tt-margin-desktop); }
  .tt-foot__sections a { min-height: 54px; font-size: 26px; }
  .tt-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-foot__cols .tt-footer__col:last-child { grid-column: 1 / -1; }
  .tt-foot .tt-footer__col a { overflow-wrap: anywhere; }
  .tt-foot__follow a { width: 44px; height: 44px; }
}

/* ---------------------------------------------------------------- the imprint */
/* The paper's last line, back on the paper's own ground under the black. The whole strip is the link to the
   publisher; under the pointer the orange runs across it from the start and the words go white. */
.tt-imprint { --ft-ease: var(--tt-ease, cubic-bezier(0.7, 0, 0.2, 1)); position: relative; isolation: isolate; overflow: clip; background: var(--tt-bg); color: var(--tt-text); }
.tt-imprint::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tt-orange); transform: scaleX(0); transform-origin: left center; transition: transform 520ms var(--ft-ease); }
[dir="rtl"] .tt-imprint::before { transform-origin: right center; }
.tt-imprint:has(.tt-imprint__link:hover, .tt-imprint__link:focus-visible)::before { transform: scaleX(1); }
.tt-imprint__link { display: flex; align-items: center; gap: var(--tt-space-4) var(--tt-space-5); min-height: 92px; padding-block: var(--tt-space-4); color: inherit; text-decoration: none; transition: color 160ms ease-out 120ms; }
.tt-imprint__link:hover, .tt-imprint__link:focus-visible { color: var(--tt-paper); }
.tt-imprint__link:focus-visible { outline: none; }

.tt-imprint__mark { flex: none; width: 40px; height: 40px; background: currentColor; -webkit-mask: var(--tt-imprint-mark) center / contain no-repeat; mask: var(--tt-imprint-mark) center / contain no-repeat; }
.tt-imprint__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-inline-start: var(--tt-space-5); border-inline-start: 1px solid currentColor; }
.tt-imprint__label { font-family: var(--font-ui); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
[dir="rtl"] .tt-imprint__label { font-family: var(--font-urdu); font-size: 13px; letter-spacing: 0; }
.tt-imprint__name { font-family: var(--font-display); font-size: clamp(19px, 2.1vw, 27px); line-height: 1.05; font-weight: 900; letter-spacing: -0.015em; text-transform: uppercase; }
[dir="rtl"] .tt-imprint__name { text-align: right; }

.tt-imprint__site { display: inline-flex; align-items: center; gap: var(--tt-space-3); margin-inline-start: auto; font-family: var(--font-ui); font-size: 14px; line-height: 20px; font-weight: 600; }
.tt-imprint__site i { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid currentColor; transition: background-color 200ms ease-out, border-color 200ms ease-out; }
.tt-imprint__site i::before { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; translate: 1px -1px; transition: translate 420ms var(--ft-ease); }
.tt-imprint__site i::after { content: ""; position: absolute; width: 14px; height: 2px; background: currentColor; rotate: -45deg; transition: translate 420ms var(--ft-ease); }
.tt-imprint__link:hover .tt-imprint__site i { background: var(--tt-ink); border-color: var(--tt-ink); }
.tt-imprint__link:hover .tt-imprint__site i::before { translate: 4px -4px; }
.tt-imprint__link:hover .tt-imprint__site i::after { translate: 3px -3px; }

@media (max-width: 767px) {
  .tt-imprint__link { gap: var(--tt-space-3); min-height: 80px; }
  .tt-imprint__mark { width: 30px; height: 30px; }
  .tt-imprint__who { padding-inline-start: var(--tt-space-3); }
  .tt-imprint__name { font-size: 17px; }
  .tt-imprint__url { display: none; }
  .tt-imprint__site i { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .tt-imprint::before, .tt-imprint *, .tt-imprint *::before, .tt-imprint *::after { transition: none !important; } }

@media print { .tt-foot, .tt-imprint { display: none !important; } }
