/* torque.news: pages area polish, loaded after custom.css */

/* Subscribe page: title-tabs logo sizing (ported from designs/assets/css/custom.css,
   missing from the theme's copy of custom.css). */
.title-card__logo {
	position: relative;
	z-index: 1;
	width: auto;
	max-width: 68%;
	object-fit: contain;
}
.title-card__logo--ht { height: 46px; }
.title-card__logo--os { height: 30px; }
.title-card__logo--bt { height: 18px; }

/* Subscribe page: print plan tiles (ported from designs/assets/css/custom.css).
   NOTE: the design's .plan-tile--wide uses a diagonal repeating-linear-gradient stripe.
   Dropped per brand rule: no chevron/diagonal stripe decoration. Plain coal background instead. */
.plan-tile {
	position: relative;
	display: block;
	border-radius: 4px;
	border: 1px solid #32363e;
	background: #16181d;
	padding: 16px 16px 15px;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.plan-tile:hover {
	border-color: var(--accent);
	background: #1a1d23;
	transform: translateY(-2px);
}
.plan-tile.is-pick {
	border-color: var(--accent);
}
.plan-tile__flag {
	position: absolute;
	top: -9px;
	left: 14px;
	font-family: Rajdhani, sans-serif;
	font-weight: 700;
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--accent);
	color: var(--accent-contrast);
	border-radius: 2px;
	padding: 3px 7px 2px;
}
.plan-tile--wide {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: #16181d;
}

/* Subscribe page: title-switcher scoping (assets/js/titletabs.js sets el.hidden
   on non-matching [data-t] blocks). Tailwind's own display utilities (block,
   flex, !flex, etc.) are author rules and beat the UA [hidden]{display:none}
   rule on specificity/origin, so a hidden block with e.g. class="flex" stays
   visible. Force it back off, scoped to data-t-scope wrappers only. */
[data-t-scope] [hidden] {
	display: none !important;
}

/* ---------- contact page ---------- */
.ct-hero { min-height: 72vh; display: flex; align-items: flex-end; }
.ct-hero > .relative { width: 100%; }
.ct-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* The heading and its shading cover the left of the header, so the photo
     is anchored right: the subject stays whole in the near-square laptop
     header and through the slow zoom, instead of losing its right edge. */
  background-position: 70% center;
  opacity: 0.7;
  transform: scale(1.08);
  animation: kbCard 30s ease-in-out infinite alternate;
}
/* Desk cards: the photo runs whole across the top of the card at its own 3:2
   shape and fades into the dark card under the copy, instead of filling the
   tall narrow card, losing both sides and hiding its subject behind the copy.
   The copy still sits at the foot, so the emails and links line up. */
.ct-desk { min-height: 300px; background: #16181d; justify-content: flex-start; }
.ct-desk .kb-card__bg {
  position: relative;
  inset: auto;
  flex: none;
  aspect-ratio: 3 / 2;
  margin-bottom: -2.5rem;
  animation: none;
  transform: none;
}
.ct-desk.kb-card:hover .kb-card__bg { transform: scale(1.04); }
.ct-desk .kb-card__bg + div { margin-top: auto; }
.ct-desk .kb-card__bg::after {
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.05) 0%, rgba(22, 24, 29, 0.12) 55%, rgba(22, 24, 29, 0.8) 85%, #16181d 100%);
}
.ct-office__list > div { display: flex; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ct-office__list dt { width: 6.5rem; flex-shrink: 0; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8a919c; padding-top: 0.2em; }
.ct-office__list dd { min-width: 0; overflow-wrap: anywhere; }
.ct-office__list a { color: #fff; }
.ct-office__list a:hover { color: var(--accent); }
@media (min-width: 768px) { .ct-desk { min-height: 420px; } }
@media (prefers-reduced-motion: reduce) { .ct-hero__bg { animation: none; } }

/* ---------- editor content (about, legacy pages, privacy/terms) ----------
   Tailwind's typography plugin isn't installed, so the `prose` class used on
   the_content() wrappers had no rules at all. This gives WYSIWYG editor
   output (headings, paragraphs, lists, links, tables, quotes) real styling
   without pulling in the plugin. */
.prose { color: rgb(var(--tx-copy)); font-size: 1.02rem; line-height: 1.68; max-width: 100%; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 1.15em 0; }
.prose h2 {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.55rem;
  line-height: 1.15;
  color: rgb(var(--tx-ink));
  margin: 2.1em 0 0.7em;
  padding-top: 0.9em;
  border-top: 1px solid rgb(var(--ln-ink) / 0.1);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.12rem;
  color: rgb(var(--tx-ink));
  margin: 1.7em 0 0.6em;
}
.prose ul, .prose ol { margin: 1.1em 0; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--accent-deep); }
.prose a { color: var(--accent-deep); text-decoration: underline; text-decoration-color: rgba(244, 151, 49, 0.4); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--accent-deep); }
.prose strong, .prose b { color: rgb(var(--tx-ink)); font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--accent);
  font-family: Lora, serif;
  font-style: italic;
  color: rgb(var(--tx-sdark));
}
.prose hr { border: 0; border-top: 1px solid rgb(var(--ln-ink) / 0.12); margin: 2.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 0.6em 0.9em; border: 1px solid rgb(var(--ln-ink) / 0.12); vertical-align: top; }
.prose th { font-family: Rajdhani, sans-serif; font-weight: 700; text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.08em; background: rgb(var(--sf-page)); }
.prose tr:nth-child(even) td { background: rgba(246, 244, 239, 0.5); }
.prose img { border-radius: 4px; margin: 1.4em 0; max-width: 100%; height: auto; }
.prose .dropcap::first-letter { float: left; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 3.4em; line-height: 0.78; padding: 0.05em 0.08em 0 0; color: var(--accent-deep); }

/* legacy [info_list] items (Submit a story, older feature posts) */
.legacy-info-list { list-style: none; padding: 0; margin: 1.2em 0; display: flex; flex-direction: column; gap: 0.6em; }
.legacy-info-list__item {
  background: rgb(var(--sf-page));
  border: 1px solid rgb(var(--ln-ink) / 0.08);
  border-radius: 4px;
  padding: 0.85em 1.1em;
  font-size: 0.95rem;
  line-height: 1.55;
}
.legacy-info-list__item b { display: block; font-family: Rajdhani, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: rgb(var(--tx-ink)); margin-bottom: 0.2em; }

/* the old page builder's headings, name labels, photo bands and videos in older features */
.legacy-heading { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.15; letter-spacing: 0.01em; text-transform: uppercase; color: rgb(var(--tx-ink)); margin: 0.4em 0 0.5em; }
.art-body .legacy-heading__sub { font-weight: 700; color: rgb(var(--tx-ink)); margin-bottom: 0.6em; }
.art-body .legacy-label { text-align: center; margin: 1.6em 0 0.8em; }
.legacy-label span { display: inline-block; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; background: rgb(var(--tx-ink)); color: rgb(var(--sf-page)); border-radius: 3px; padding: 0.35em 0.95em; }
.legacy-band, .legacy-video { margin: 1.8em 0; }
.legacy-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

/* ---------- legal / long-form reading pages (privacy, terms) ---------- */
.legal-toc { max-height: calc(100vh - 7rem); overflow-y: auto; }
.legal-toc a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgb(var(--tx-sdark));
  padding: 0.4em 0 0.4em 0.8em;
  border-left: 2px solid rgb(var(--ln-ink) / 0.1);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.legal-toc a:hover { color: rgb(var(--tx-ink)); border-color: var(--accent); }
.legal-toc a.is-active { color: rgb(var(--tx-ink)); font-weight: 600; border-color: var(--accent); }
.prose h2[id] { scroll-margin-top: 5.5rem; }
.legal-toc { max-height: calc(100vh - 3rem); }
/* The policy fills the container beside the sticky contents list; slightly
   larger type keeps the longer line comfortable to read. */
.legal-body { font-size: 1.08rem; line-height: 1.75; }
.legal-body h2 { font-size: 1.7rem; }
.legal-body table { width: 100%; }

/* ---------- custom file picker (submit a story) ---------- */
.file-picker { border: 2px dashed rgb(var(--ln-ink) / 0.22); border-radius: 6px; background: rgb(var(--sf-panel)); min-height: 96px; display: flex; flex-direction: column; justify-content: center; transition: border-color 0.15s ease, background 0.15s ease; }
.file-picker.is-dragover { border-color: var(--accent); background: rgba(244, 151, 49, 0.06); }
.file-picker__input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-picker__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1em; padding: 1.4em 1.3em; }
.file-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  background: #16181d;
  color: #fff;
  border-radius: 4px;
  padding: 0.85em 1.4em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.file-picker__btn:hover { background: var(--accent-deep); }
.file-picker__hint { font-size: 0.85rem; color: #8a919c; }
.file-picker__list { list-style: none; margin: 0; padding: 0 1.1em 1em; display: flex; flex-wrap: wrap; gap: 0.5em; }
.file-picker__list:empty { display: none; }
.file-picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgb(var(--sf-page));
  border: 1px solid rgb(var(--ln-ink) / 0.1);
  border-radius: 3px;
  padding: 0.35em 0.5em 0.35em 0.7em;
  font-size: 0.8rem;
  color: rgb(var(--tx-copy));
}
.file-picker__chip button { color: #8a919c; line-height: 1; font-size: 1rem; }
.file-picker__chip button:hover { color: #e03131; }

/* ---------- submit a story: the three "out now" covers in the sidebar, sharing its width ---------- */
.st-slider { display: flex; gap: 0.9rem; }
.st-slider__item { flex: 1 1 0; min-width: 0; max-width: 118px; }
.st-slider__item img { display: block; width: 100%; height: auto; border-radius: 3px; }

/* ---------- about: editorial intro ---------- */
.about-kicker {
  display: flex; align-items: center; gap: 0.8em;
  font-family: Rajdhani, sans-serif; font-weight: 600; font-size: 0.76rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: rgb(var(--tx-ink));
}
.about-kicker::before { content: ""; width: 2.4rem; height: 3px; background: var(--accent); }
.about-lead {
  font-family: Rajdhani, sans-serif; font-weight: 600; color: rgb(var(--tx-ink));
  font-size: clamp(1.55rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.14;
  margin: 1.1rem 0 2.2rem;
}
.about-body { color: rgb(var(--tx-copy2)); font-size: 1.04rem; line-height: 1.75; }
.about-body p { margin: 0 0 1.1em; }
.about-body a { color: rgb(var(--tx-ink)); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.about-body__head {
  font-family: Rajdhani, sans-serif; font-weight: 700; text-transform: uppercase; color: rgb(var(--tx-ink));
  font-size: clamp(1.35rem, 1rem + 0.9vw, 1.75rem); line-height: 1.05;
  margin: 2.6rem 0 1.1rem; padding-top: 1.6rem; border-top: 1px solid rgb(var(--ln-ink) / 0.12);
}
.about-body__sub {
  display: flex; align-items: center; gap: 0.7em; margin: 1.9rem 0 0.55rem;
  font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.2;
  letter-spacing: 0.04em; text-transform: uppercase; color: rgb(var(--tx-ink));
}
.about-body__sub::before { content: ""; width: 1.6rem; height: 3px; background: var(--accent); flex: none; }
.about-body__head + .about-body__sub { margin-top: 0.4rem; }
.about-body > .about-body__head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- about: the team on a dark panel down the right of the page ---------- */
/* From 1100px the opening copy, the publications band and the closing copy sit in the left
   column and the team panel in the right one. The panel scrolls with the page until its foot is
   in view, then stays there to the end of the closing copy (sticky to the bottom, pushed up from
   the foot of its column), so the team runs the length of the page however long either side is. */
.about-layout__side { padding: 0 1.25rem 4rem; }
@media (min-width: 640px) { .about-layout__side { padding: 0 2.25rem 6rem; } }
@media (min-width: 1100px) {
  .about-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem;
    padding: 0 max(2.25rem, calc((100% - 1344px) / 2 + 2.25rem));
  }
  .about-layout__main { min-width: 0; container-type: inline-size; }
  .about-layout__main > section > div { max-width: none; padding-left: 0; padding-right: 0; }
  .about-layout__main > .about-pubs { border-radius: 0.375rem; }
  .about-layout__main > .about-pubs > div { padding-left: 2.25rem; padding-right: 2.25rem; }
  .about-layout__side { display: flex; flex-direction: column; justify-content: flex-end; padding: 6rem 0; }
  .about-layout__side .about-team { position: sticky; bottom: 1.5rem; }
}
@container (max-width: 700px) { .about-layout__main .about-pub__more { grid-template-columns: minmax(0, 1fr); } }
.about-team { margin-top: 3rem; }
.about-layout__side .about-team { margin-top: 0; }
@media (min-width: 1100px) {
  .about-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
  .about-team { margin-top: 0; }
}
:root[data-theme="dark"] .about-team { outline: 1px solid rgba(255,255,255,0.1); outline-offset: -1px; }
.about-team .badge-head__all { color: var(--accent); }
.about-team__group { margin: 1.75rem 0 1rem; }
.about-team__list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) and (max-width: 1099px) { .about-team__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; } }
.about-team__person { display: flex; align-items: center; gap: 1rem; }
.about-team__photo { position: relative; flex: none; display: grid; place-items: center; width: 68px; height: 68px; border: 3px solid #fff; border-radius: 50%; overflow: hidden; }
.about-team__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-team__initials { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }
.about-team__name { display: block; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.15; letter-spacing: 0.025em; text-transform: uppercase; color: #fff; }
.about-team__role { display: block; margin-top: 0.2rem; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.about-team__bio { margin: 0.35rem 0 0; font-size: 0.8rem; line-height: 1.5; color: #c6cad1; }
.about-team__links { display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem; margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--accent); }
.about-team__links a { color: var(--accent); transition: color 0.15s ease; }
.about-team__links a:hover { color: #fff; }

/* ---------- about: the three publications on their dark band ---------- */
.about-pubs__head {
  font-family: Rajdhani, sans-serif; font-weight: 700; text-transform: uppercase; color: #fff;
  font-size: clamp(1.5rem, 1.05rem + 1.1vw, 2.1rem); line-height: 1.05; margin: 0 0 1.6rem;
}
.about-body--dark { color: #d5d8dd; }
.about-body--dark a, .about-body--dark .about-body__head, .about-body--dark .about-body__sub { color: #fff; }
.about-pub + .about-pub { margin-top: 2.6rem; padding-top: 2.6rem; border-top: 1px solid rgba(255,255,255,0.12); }
.about-pub__title { margin: 0 0 1.1rem; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: #fff; }
.about-pub__logo { display: block; height: 44px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.about-pub .about-body p:last-child { margin-bottom: 0; }
.about-pub__more { display: grid; gap: 1.75rem 2.5rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .about-pub__more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-pub__col { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.14); }
.about-pub__label {
  margin: 0 0 1rem; font-family: Rajdhani, sans-serif; font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.about-pub__areas { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.about-pub__areas .i43-perk { font-size: 0.92rem; color: #fff; }
.about-pub__issue { display: flex; align-items: flex-start; gap: 1.25rem; }
.about-pub__cover { flex: none; width: 56%; max-width: 240px; transition: transform 0.3s ease; }
.about-pub__cover:hover { transform: translateY(-4px); }
.about-pub__cover img { display: block; width: 100%; height: auto; border-radius: 2px; outline: 1px solid rgba(255,255,255,0.14); }
.about-pub__issue-name { display: block; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.15; text-transform: uppercase; color: #fff; transition: color 0.2s ease; }
.about-pub__issue-name:hover { color: var(--accent); }

.about-sector { position: relative; display: flex; flex-direction: column; padding-top: 0.9rem; border-top: 1px solid rgb(var(--ln-ink) / 0.14); }
.about-sector::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.about-sector:hover::before { transform: scaleX(1); }
.about-sector__name { display: block; margin-top: 0.375rem; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.02rem; line-height: 1.12; text-transform: uppercase; color: rgb(var(--tx-ink)); }
.about-sector__logo { display: block; align-self: flex-start; margin-top: auto; padding-top: 0.9rem; height: calc(24px + 0.9rem); width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; filter: brightness(0); opacity: 0; transition: opacity 0.25s ease; }
.about-sector:hover .about-sector__logo { opacity: 0.85; }
:root[data-theme="dark"] .about-sector__logo { filter: none; }
@media (min-width: 1100px) and (max-width: 1279px) { .about-sector__name { font-size: 0.88rem; } }

/* ---------- about: the three title cards ---------- */
.about-title__media { position: relative; height: 290px; overflow: hidden; }
.about-title__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: transform 0.6s ease, opacity 0.3s ease; }
.about-title__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,24,29,0.55) 0%, rgba(22,24,29,0.05) 45%, rgba(22,24,29,0.9) 100%); }
.about-title:hover .about-title__photo { transform: scale(1.04); opacity: 0.6; }
.about-title__logo { position: absolute; z-index: 2; top: 1.5rem; left: 1.5rem; height: 34px; width: auto; max-width: 62%; object-fit: contain; object-position: left center; }
.about-title__cover { position: absolute; z-index: 2; right: 1.5rem; bottom: 1.25rem; width: 36%; max-width: 150px; transition: transform 0.3s ease; }
.about-title__cover img { display: block; width: 100%; height: auto; border-radius: 2px; outline: 1px solid rgba(255,255,255,0.14); }
.about-title:hover .about-title__cover { transform: translateY(-4px); }
