/* News feed. Shares its colors and type with the Coming Soon list (upcoming.css). */
.ts-nf, .ts-nf * { box-sizing: border-box; }
.ts-nf {
	--n-ink: var(--wp--preset--color--ink, #0E1A2B);
	--n-line: var(--wp--preset--color--line, #E4E4DE);
	--n-soft: var(--wp--preset--color--soft, #EEEEEA);
	--n-muted: var(--wp--preset--color--muted, #5F6672);
	--n-cobalt: var(--wp--preset--color--cobalt, #2446E0);
	--n-surface: var(--wp--preset--color--surface, #FFFFFF);
	--n-mono: var(--wp--preset--font-family--mono, ui-monospace, monospace);
}
.ts-nf [hidden] { display: none !important; }

.ts-nf__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0 0 24px; }
.ts-nf__updated { margin: 0; font-size: 0.9375rem; color: var(--n-muted); }
.ts-nf__more a, .ts-nf__sources a, .ts-nf__foot a { color: var(--n-cobalt); text-decoration: underline; text-underline-offset: 2px; }

/* Category filter (shown by news-feed.js) */
.ts-nf__tools:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 32px; }
.ts-nf__tools-label { font-size: 14px; font-weight: 600; margin-right: 4px; }
.ts-nf__chip { min-height: 44px; padding: 0 16px; border: 1px solid #D4D4D8; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #18181B; cursor: pointer; }
.ts-nf__chip span { font-weight: 400; color: #52525B; }
.ts-nf__chip:hover { border-color: #A1A1AA; }
.ts-nf__chip[aria-pressed="true"] { background: #0F0F0F; border-color: #0F0F0F; color: #fff; }
.ts-nf__chip[aria-pressed="true"] span { color: #D4D4D8; }
.ts-nf__chip:focus-visible { outline: 3px solid #D7261E; outline-offset: 2px; }
.ts-nf__shown { margin: -20px 0 32px; font-size: 14px; color: #52525B; }
.ts-nf__shown:empty { display: none; }

/* One section per day */
.ts-nf__day { margin: 0 0 40px; }
.ts-nf__day-title { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid currentColor; font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
.ts-nf__list { display: grid; gap: 16px; }

.ts-nf__item { padding: 20px; border: 1px solid var(--n-line); border-radius: 18px; background: var(--n-surface); min-width: 0; scroll-margin-top: 96px; }
.ts-nf__item:target { border-color: var(--n-cobalt); box-shadow: 0 0 0 2px var(--n-cobalt); }
.ts-nf__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ts-nf__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--n-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--n-muted); }
.ts-nf__brand { color: var(--n-ink); font-weight: 600; }
.ts-nf__title { margin: 8px 0 0; font-size: 1.25rem; line-height: 1.3; }
.ts-nf__title a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ts-nf__title a:hover { color: var(--n-cobalt); }
.ts-nf__item[data-cat="stories"] { border-color: var(--n-ink); border-width: 2px; }
.ts-nf__signup { margin: 0 0 40px; }
.ts-nf__summary { margin: 10px 0 0; }
.ts-nf__more { margin: 10px 0 0; font-size: 0.9375rem; font-weight: 600; }

.ts-nf__sources { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--n-line); display: grid; gap: 6px; font-size: 0.9375rem; }
.ts-nf__sources li { line-height: 1.5; }
.ts-nf__sources a { overflow-wrap: anywhere; }
.ts-nf__type { display: inline-block; margin-right: 8px; vertical-align: 1px; font-family: var(--n-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 6px; background: var(--n-soft); color: var(--n-ink); white-space: nowrap; }
.ts-nf__date { margin-left: 8px; color: var(--n-muted); font-size: 0.8125rem; white-space: nowrap; }

.ts-nf__badge { flex-shrink: 0; display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.ts-nf__badge--launch       { background: #DCFAE6; color: #05603A; }
.ts-nf__badge--preorder     { background: #DCE3FF; color: #1A33A8; }
.ts-nf__badge--announced    { background: #E0F2FE; color: #075985; }
.ts-nf__badge--teased       { background: #F4EBFF; color: #5B2C9B; }
.ts-nf__badge--crowdfunding { background: #FFEAD5; color: #8A2C0D; }
.ts-nf__badge--filing       { background: #FEF0C7; color: #7A3E00; }
.ts-nf__badge--leak         { background: #FFE4E8; color: #A11043; }
.ts-nf__badge--software     { background: #E6F4F1; color: #0B5D50; }
.ts-nf__badge--price        { background: #FFF6CC; color: #6B4E00; }
.ts-nf__badge--company      { background: #EEEEEA; color: #3F4652; }
.ts-nf__badge--store        { background: #DCFAE6; color: #05603A; border-color: #A6E9C1; border-style: dashed; }
.ts-nf__badge--post         { background: #E0F2FE; color: #075985; border-color: #A9D8F5; border-style: dashed; }
.ts-nf__badge--press        { background: #EEEEEA; color: #3F4652; border-color: #C8CCD2; border-style: dashed; }
.ts-nf__badge--story        { background: #D7261E; color: #FFFFFF; }
.ts-nf__auto { margin: 6px 0 0; font-size: 0.8125rem; color: var(--n-muted); }

.ts-nf__foot { margin: 8px 0 0; color: var(--n-muted); font-size: 0.9375rem; }

@media (max-width: 600px) {
	/* Phones: one row of category chips that scrolls sideways, instead of a tall stack. */
	.ts-nf__tools:not([hidden]) { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.ts-nf__tools::-webkit-scrollbar { display: none; }
	.ts-nf__chip, .ts-nf__tools-label { flex: none; white-space: nowrap; }
	.ts-nf__shown { margin-top: -24px; }
}
@media (max-width: 520px) {
	.ts-nf__item { padding: 16px; }
	.ts-nf__head { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
}

/* Dark mode: see the "Dark mode" section at the end of the theme's site.css. */
:where(:root[data-theme="dark"]) .ts-nf { --n-cobalt: var(--ts-cobalt, #FF6A60); }
:where(:root[data-theme="dark"]) .ts-nf__badge--launch       { background: #0F2A1C; color: #74DFA2; }
:where(:root[data-theme="dark"]) .ts-nf__badge--preorder     { background: #1C2550; color: #B4C1FF; }
:where(:root[data-theme="dark"]) .ts-nf__badge--announced    { background: #0C2A3D; color: #8CD3FB; }
:where(:root[data-theme="dark"]) .ts-nf__badge--teased       { background: #2A1C45; color: #D2B8FF; }
:where(:root[data-theme="dark"]) .ts-nf__badge--crowdfunding { background: #3A1E0C; color: #FFB98A; }
:where(:root[data-theme="dark"]) .ts-nf__badge--filing       { background: #33270A; color: #F7CF6B; }
:where(:root[data-theme="dark"]) .ts-nf__badge--leak         { background: #3A1222; color: #FF9DB5; }
:where(:root[data-theme="dark"]) .ts-nf__badge--software     { background: #0D2A25; color: #7FDCC9; }
:where(:root[data-theme="dark"]) .ts-nf__badge--price        { background: #302708; color: #F2D56B; }
:where(:root[data-theme="dark"]) .ts-nf__badge--company      { background: #26262A; color: #C8C8CD; }
:where(:root[data-theme="dark"]) .ts-nf__badge--store        { background: #0F2A1C; color: #74DFA2; border-color: #2E6B4A; }
:where(:root[data-theme="dark"]) .ts-nf__badge--post         { background: #0C2A3D; color: #8CD3FB; border-color: #2B5A78; }
:where(:root[data-theme="dark"]) .ts-nf__badge--press        { background: #26262A; color: #C8C8CD; border-color: #55555C; }
:where(:root[data-theme="dark"]) .ts-nf__badge--story        { background: #D7261E; color: #FFFFFF; }
:where(:root[data-theme="dark"]) .ts-nf__chip { border-color: #4A4A52; background: var(--n-surface); color: var(--n-ink); }
:where(:root[data-theme="dark"]) .ts-nf__chip span,
:where(:root[data-theme="dark"]) .ts-nf__shown { color: var(--n-muted); }
:where(:root[data-theme="dark"]) .ts-nf__chip:hover { border-color: #5C5C66; }
:where(:root[data-theme="dark"]) .ts-nf__chip[aria-pressed="true"] { background: #EDEDEF; border-color: #EDEDEF; color: #111113; }
:where(:root[data-theme="dark"]) .ts-nf__chip[aria-pressed="true"] span { color: #55555C; }
:where(:root[data-theme="dark"]) .ts-nf__chip:focus-visible { outline-color: var(--ts-cobalt, #FF6A60); }

/* Homepage "Just released" strip ([ts_home_releases]). Card look matches the homepage Coming Soon cards. */
.ts-hrel { margin-inline: auto; width: 100%; max-width: var(--wp--style--global--wide-size, 1200px); }
.ts-hrel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ts-hrel__title { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.ts-hrel__note { margin: 10px 0 16px; font-size: 14px; color: var(--ts-muted, #5E5E5E); }
.ts-hrel__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ts-hrel__card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-sizing: border-box; padding: 16px; border: 1px solid var(--ts-line, #E5E5E5); border-radius: var(--ts-radius-md, 16px); background: var(--ts-surface, #fff); transition: border-color .2s ease, box-shadow .2s ease; }
.ts-hrel__card:hover { border-color: var(--ts-cobalt, #D7261E); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.ts-hrel__card:has(a:focus-visible) { outline: 3px solid var(--ts-cobalt, #D7261E); outline-offset: 2px; }
.ts-hrel__top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ts-hrel__brand { font-family: var(--ts-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ts-ink, #0F0F0F); font-weight: 600; }
.ts-hrel__top .ts-nf__badge { font-size: 12px; padding: 2px 9px; }
.ts-hrel__card h3.ts-hrel__name { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ts-hrel__name a { color: var(--ts-ink, #0F0F0F) !important; text-decoration: none !important; outline: none; }
.ts-hrel__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ts-hrel__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: auto 0 0 !important; font-size: 13px; color: var(--ts-muted, #5E5E5E); }

/* Narrower screens: one row that scrolls sideways. */
@media (max-width: 1100px) {
	.ts-hrel__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 31%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 8px; margin: -4px -4px 0; scrollbar-width: thin; }
	.ts-hrel__card { scroll-snap-align: start; }
}
@media (max-width: 600px) {
	.ts-hrel__list { grid-auto-columns: 72%; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* Our own stories stand out in the feed (Oct 21 2026). */
.ts-nf .ts-nf__item.ts-nf__item--story { border-left: 5px solid #D7261E; }
