/* ThinkRight Brief — shared editorial styling, scoped away from auth inputs. */
.news-carousel, .news-page, .news-admin {
  --news-ink: var(--text-primary, #14213d);
  --news-muted: var(--text-secondary, #64748b);
  --news-blue: var(--accent-primary, #1d4ed8);
  --news-line: var(--line-subtle, #dbe4f0);
  color: var(--news-ink);
  font-family: 'Manrope', sans-serif;
}
.news-carousel *, .news-page *, .news-admin * { box-sizing: border-box; }
.news-carousel[hidden], .news-carousel [hidden], .news-page [hidden], .news-admin [hidden], .auth-visual-card[hidden] { display: none !important; }
.news-carousel a, .news-page a { color: inherit; text-decoration: none; }
.news-carousel a:hover, .news-page a:hover { color: var(--news-blue); }
.news-carousel :is(a,button):focus-visible, .news-page :is(a,button):focus-visible, .news-admin :is(a,button,input,textarea,select):focus-visible { outline: 3px solid #729aff; outline-offset: 4px; }
.news-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--news-line);
  border-radius: 24px;
  background: linear-gradient(150deg, var(--surface-bg, #fff) 28%, var(--surface-subtle, #eff4ff));
  overflow: hidden;
}
.news-carousel::before { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid rgba(29,78,216,.1); border-radius: 50%; right: -90px; top: 70px; box-shadow: 0 0 0 30px rgba(29,78,216,.025), 0 0 0 60px rgba(29,78,216,.02); pointer-events: none; }
.news-carousel.is-empty::after { content: 'TR.'; position: absolute; right: -12px; bottom: 130px; color: var(--news-blue); opacity: .055; font: 700 clamp(96px, 14vw, 170px)/1 'Space Grotesk', sans-serif; letter-spacing: -.1em; pointer-events: none; }
.news-placeholder { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; min-width: 0; position: relative; z-index: 1; }
.news-placeholder .news-summary { max-width: 32ch; }
.news-carousel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; position: relative; }
.news-carousel-head > span { display: inline-flex; align-items: center; gap: 8px; color: var(--news-muted); font-size: 12px; font-weight: 600; }
.news-carousel-head > span i { font-size: 15px; }
.news-carousel-head > a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 12px; font-weight: 700; }
.news-carousel-head > a i { font-size: 10px; }
.news-carousel-intro { margin: 40px 0 34px; color: var(--news-muted); font: 500 clamp(22px, 2.7vw, 32px)/1.15 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.news-slides { display: grid; flex: 1; position: relative; touch-action: pan-y; }
.news-slide { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease, visibility .4s; }
.news-slide[aria-hidden='false'] { opacity: 1; visibility: visible; transform: translateY(0); }
.news-category { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 11px; font-weight: 600; color: var(--news-muted); background: var(--surface-subtle, #f1f5f9); border: 1px solid var(--news-line); border-radius: 99px; padding: 2px 9px; }
.news-headline { margin: 16px 0 14px; font: 600 clamp(25px, 2.6vw, 34px)/1.17 'Space Grotesk', sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.news-slide .news-headline, .news-admin-preview .news-headline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.news-slide .news-summary, .news-admin-preview .news-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.news-summary { margin: 0 0 20px; color: var(--news-muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.news-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; color: var(--news-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.news-meta > span:first-child { font-weight: 700; }
.news-read { display: inline-flex; align-items: center; align-self: flex-start; gap: 14px; min-height: 44px; font-size: 13px; font-weight: 700; margin-top: 22px; }
.news-read i { transition: transform .2s ease; }
.news-read:hover i { transform: translateX(4px); }
.news-carousel-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--news-line); padding-top: 14px; margin-top: 24px; }
.news-position { display: flex; align-items: center; gap: 10px; color: var(--news-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.news-current { color: var(--news-blue); font-weight: 700; }
.news-position-line { width: 32px; height: 1px; background: var(--news-line); }
.news-controls { display: flex; gap: 4px; }
.news-controls button { width: 44px; height: 44px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--news-ink); cursor: pointer; font-size: 13px; }
.news-controls button:hover { border-color: var(--news-line); background: var(--surface-bg, #fff); }
.news-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-login .auth-visual-panel { min-width: 0; }

/* The same story becomes a compact, readable strip above the form on phones. */
@media (max-width: 980px) {
  .page-login .auth-visual-panel.has-news { display: flex !important; }
  .news-carousel { padding: 14px 18px 6px; border-radius: 18px; }
  .news-carousel::before, .news-carousel-intro { display: none; }
  .news-carousel.is-empty::after { display: none; }
  .news-carousel .news-placeholder .news-summary { display: block; max-width: none; margin: 0 0 8px; font-size: 12px; line-height: 1.5; }
  .news-carousel-head { margin-bottom: 8px; }
  .news-carousel-head > span { font-size: 11px; }
  .news-carousel-head > a { font-size: 11px; min-height: 44px; }
  .news-carousel .news-category { font-size: 9px; }
  .news-carousel .news-headline { font-size: 19px; line-height: 1.3; margin: 7px 0 9px; letter-spacing: -.025em; }
  .news-carousel .news-summary { font-size: 12px; line-height: 1.5; margin: 0 0 9px; }
  .news-carousel .news-meta { font-size: 11px; }
  .news-carousel-footer { padding-top: 2px; margin-top: 10px; }
  .news-controls button { width: 44px; height: 44px; font-size: 11px; }
}
@media (max-width: 360px) { .news-carousel { padding-inline: 12px; } .news-carousel-head { gap: 3px; } }

/* Public archive: open typography, quiet dividers, no wall of cards. */
body.news-page { margin: 0; min-height: 100vh; background: var(--surface-bg, #fff); }
.news-site-header { max-width: 1100px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--news-line); }
.news-brand { font: 700 23px 'Space Grotesk', sans-serif; letter-spacing: -.06em; }
.news-brand span { color: var(--news-blue); }
.news-site-header > a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; gap: 10px; }
.news-main { max-width: 1000px; margin: 0 auto; padding: 64px 24px 100px; }
.news-page-heading h1 { font: 600 clamp(34px, 5vw, 56px)/1.08 'Space Grotesk', sans-serif; letter-spacing: -.05em; margin: 20px 0; }
.news-page-heading h1 span { color: var(--news-muted); }
.news-page-heading > p { font-size: 14px; color: var(--news-muted); line-height: 1.7; }
.news-filters { display: flex; gap: 8px; overflow-x: auto; padding: 5px 3px 14px; margin: 32px -3px 0; border-bottom: 1px solid var(--news-line); }
.news-filters button { white-space: nowrap; min-height: 44px; padding: 0 17px; border-radius: 999px; border: 1px solid var(--news-line); background: transparent; color: var(--news-muted); font: 600 12px 'Manrope', sans-serif; cursor: pointer; }
.news-filters button[aria-pressed='true'] { background: var(--news-blue); color: #fff; border-color: var(--news-blue); }
.news-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px; }
.news-list-item { padding: 32px 0; border-bottom: 1px solid var(--news-line); min-width: 0; }
.news-list-item .news-headline { font-size: 25px; }
.news-list-item .news-read { margin-top: 12px; }
.news-empty { padding: 40px 0; }
.news-empty h2 { font: 600 26px 'Space Grotesk', sans-serif; }
.news-empty p, #news-status { color: var(--news-muted); font-size: 14px; line-height: 1.6; }
.news-source { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; background: var(--news-blue); color: #fff !important; padding: 13px 20px; min-height: 46px; border: 0; border-radius: 12px; font: 600 13px 'Manrope', sans-serif; cursor: pointer; margin-top: 20px; overflow-wrap: anywhere; }
.news-source:disabled { opacity: .6; cursor: wait; }
.news-story { max-width: 720px; margin: 0 auto; }
.news-back { display: flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; margin: -20px 0 32px; font-size: 13px; }
.news-story h1 { font: 600 clamp(30px, 4.6vw, 48px)/1.15 'Space Grotesk', sans-serif; letter-spacing: -.04em; margin: 16px 0 20px; overflow-wrap: anywhere; }
.news-story-lead { font-size: 19px; line-height: 1.7; margin: 32px 0 24px; overflow-wrap: anywhere; }
.news-story-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.9; color: var(--news-muted); }
.news-site-footer { border-top: 1px solid var(--news-line); padding: 24px; text-align: center; font-size: 12px; color: var(--news-muted); }
@media (max-width: 600px) { .news-site-header { padding: 12px 20px; } .news-main { padding: 36px 20px 60px; } .news-list { grid-template-columns: 1fr; } .news-list-item { padding: 26px 0; } .news-list-item .news-headline { font-size: 23px; } .news-filters { margin-top: 24px; } .news-story-lead { font-size: 17px; } }

/* Admin publishing desk uses existing workspace tokens and controls. */
.news-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.news-admin-head h2 { margin: 0 0 8px; font: 600 26px 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.news-admin-head p { margin: 0; font-size: 13px; color: var(--news-muted); line-height: 1.6; }
.news-admin-list { border-top: 1px solid var(--news-line); }
.news-admin-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--news-line); }
.news-admin-row > div:first-child { min-width: 0; }
.news-admin-row h3 { margin: 8px 0; font-size: 16px; overflow-wrap: anywhere; }
.news-admin-row p { margin: 0; color: var(--news-muted); font-size: 12px; }
.news-admin-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: capitalize; color: var(--news-muted); }
.news-admin-status.published { color: #15803d; }
.news-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.news-admin-delete { color: #b91c1c; }
.news-admin-delete:hover { border-color: #fca5a5; background: #fff1f2; }
.news-admin-editor { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 40px; align-items: start; }
.news-admin-form { display: grid; gap: 18px; min-width: 0; }
.news-admin-form .tw-field { margin: 0; }
.news-admin-form :is(input,textarea,select) { width: 100%; min-width: 0; font-size: 16px; }
.news-admin-form textarea { resize: vertical; }
.news-admin-form small { color: var(--news-muted); font-size: 11px; line-height: 1.5; }
.news-admin-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-admin-check { display: flex; align-items: center; gap: 10px; font-size: 13px; min-height: 44px; }
.news-admin-check input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 auto; accent-color: var(--news-blue); }
.news-admin-preview { position: sticky; top: 100px; border-top: 2px solid var(--news-blue); padding-top: 16px; min-width: 0; }
.news-admin-preview > p { color: var(--news-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 28px; }
.news-admin-preview a { pointer-events: none; color: inherit; text-decoration: none; }
.news-admin-feedback { font-size: 13px; line-height: 1.6; margin: 16px 0; }
.news-admin-feedback[data-error='true'] { color: #b91c1c; }
.news-admin button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 760px) { .news-admin-head { align-items: flex-start; flex-direction: column; } .news-admin-editor { grid-template-columns: minmax(0,1fr); gap: 28px; } .news-admin-preview { position: static; } .news-admin-row { align-items: flex-start; flex-direction: column; gap: 12px; } .news-admin-pair { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .news-slide, .news-read i { transition: none; transform: none; } }
.news-page .news-main{max-width:1120px;padding-top:40px}.news-page-heading{border-bottom:3px solid var(--news-ink);padding-bottom:24px}.news-page-heading>.news-category{background:transparent;border:0;padding:0;color:var(--news-blue);letter-spacing:.12em;font-size:10px}.news-page-heading h1{font-size:clamp(40px,7vw,72px);margin:12px 0}.news-page-heading h1 .news-heading-dot{color:var(--news-blue)}.news-filters{margin-top:18px;padding-bottom:18px}.news-filters button{border-radius:6px}.news-list{gap:0 40px}.news-list-item:first-child{grid-column:1/-1;padding:36px;margin-top:24px;background:var(--surface-subtle,#f1f5f9);border-top:3px solid var(--news-blue);border-bottom:0}.news-list-item:first-child .news-headline{max-width:27ch;font-size:clamp(28px,4vw,44px)}.news-list-item:first-child .news-summary{max-width:70ch;font-size:16px}.news-list-item .news-category{border:0;padding:0;background:transparent;color:var(--news-blue);text-transform:uppercase;letter-spacing:.08em}.news-story{max-width:740px}.news-story h1{font-size:clamp(32px,5vw,54px)}.news-story .news-meta{border-bottom:1px solid var(--news-line);padding-bottom:24px;font-size:12px}.news-story-body{color:var(--news-ink);font-size:17px;line-height:1.9}.news-story-lead{border-left:3px solid var(--news-blue);padding-left:20px;color:var(--news-muted)}@media(max-width:600px){.news-page .news-main{padding-top:28px}.news-list-item:first-child{padding:24px 20px}.news-story-body{font-size:16px}}
