/* The Raisina Post — Daily Live calendar and Bulletin-inspired subject decks. */
.threads-page{max-width:1160px;padding-top:clamp(34px,4vw,52px)}
.threads-page *{box-sizing:border-box}
.threads-intro{max-width:780px;padding-bottom:22px}
.threads-intro h1{font-weight:500;letter-spacing:-.065em}
.threads-intro p{max-width:680px;margin-top:15px;font:400 15px/1.65 Inter,Arial,sans-serif;color:#606060}
.threads-toolbar{border:0;padding:5px 0;color:#858585;font-size:11px}
.threads-explorer{display:block;margin-top:29px}
.threads-explorer #threads-root{width:100%;min-width:0}
.threads-daily-browser{display:grid;gap:0;font-family:Inter,Arial,sans-serif;color:#1d1d1d}
.threads-browse-date{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:0 0 28px}
.threads-browse-date>div>span{display:block;font:500 11px/1.45 Inter,Arial,sans-serif;color:#898989}
.threads-browse-date h2{margin:7px 0 0!important;font:500 clamp(22px,2.8vw,30px)/1.18 Inter,Arial,sans-serif;
  letter-spacing:-.048em;color:#1e1e1e}
.threads-browse-date>p{margin:0 0 4px!important;font:400 11px/1.5 Inter,Arial,sans-serif;color:#898989;text-align:right}
.threads-browse-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.threads-subject-stack{position:relative;min-width:0}
.threads-stack-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 13px}
.threads-stack-heading h3{margin:0!important;font:500 16px/1.4 Inter,Arial,sans-serif;letter-spacing:-.025em}
.threads-stack-heading>span{color:#969696;font:400 11px/1.4 Inter,Arial,sans-serif}
.threads-stack-stage{position:relative;height:390px;touch-action:pan-y;outline-offset:4px}
.threads-stack-stage::before,.threads-stack-stage::after{content:"";position:absolute;pointer-events:none;
  border:0;border-radius:8px}
.threads-stack-stage::before{z-index:0;inset:11px 9px 0;background:#ededec}
.threads-stack-stage::after{z-index:0;inset:5px 5px 6px;background:#f3f3f2}
.threads-subject-card,.threads-stack-empty{position:absolute;inset:0 0 11px;z-index:1;
  display:flex;flex-direction:column;min-width:0;background:#f9f9f9;
  border-radius:8px;padding:27px 27px 23px;overflow:hidden}
.threads-subject-card{opacity:0;visibility:hidden;pointer-events:none;transform:translateX(9px);
  transition:opacity .17s ease,transform .17s ease,visibility 0s linear .17s}
.threads-subject-card.is-active{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0);
  transition:opacity .17s ease,transform .17s ease}
.threads-subject-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:8px;color:#888;font:500 10px/1.45 Inter,Arial,sans-serif}
.threads-subject-meta>span{color:#575757}
.threads-subject-card h4{margin:22px 0 12px!important;max-width:38ch;color:#202020;
  font:500 clamp(20px,2vw,26px)/1.27 Inter,Arial,sans-serif;letter-spacing:-.04em;text-wrap:pretty}
.threads-subject-card>p{margin:0!important;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  color:#555;font:400 13px/1.68 Inter,Arial,sans-serif;scrollbar-width:thin}
.threads-subject-actions{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;
  gap:11px;margin-top:18px;padding-top:9px;border:0}
.threads-subject-sources{display:flex;flex-direction:column;gap:4px;max-width:55%;min-width:0}
.threads-subject-sources a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#666;font:400 10px/1.45 Inter,Arial,sans-serif;text-decoration:underline;text-decoration-color:#c7c7c7;
  text-underline-offset:3px}
.threads-subject-open{color:#242424!important;white-space:nowrap;text-decoration:none!important;
  font:500 11px/1.5 Inter,Arial,sans-serif}
.threads-subject-open:hover,.threads-subject-sources a:hover{color:#a52434!important}
.threads-subject-open span{margin-left:3px;color:#888}
.threads-stack-empty{justify-content:center;gap:9px}
.threads-stack-empty[hidden]{display:none!important}
.threads-stack-empty strong{font:500 18px/1.35 Inter,Arial,sans-serif}
.threads-stack-empty p{margin:0;color:#777;font:400 12px/1.6 Inter,Arial,sans-serif}
.threads-stack-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 2px 0}
.threads-stack-controls button{display:grid;place-items:center;width:36px;height:36px;
  background:#f7f7f7;border:0;border-radius:8px;cursor:pointer;color:#444;
  font:400 22px/1 Inter,Arial,sans-serif}
.threads-stack-controls button:hover:not(:disabled){background:#f6f6f6}
.threads-stack-controls button:disabled{color:#ccc;cursor:default}
.threads-stack-controls [data-stack-position]{font:500 11px/1.4 Inter,Arial,sans-serif;color:#999;
  font-variant-numeric:tabular-nums}
.threads-date-calendar{margin-top:65px;padding-top:0}
.threads-calendar-topline{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}
.threads-calendar-topline h3{margin:0!important;font:500 14px/1.5 Inter,Arial,sans-serif;letter-spacing:-.03em}
.threads-calendar-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.threads-calendar-actions select{background:transparent;border:0;max-width:170px;color:#666;
  padding:5px 1px;font:500 11px/1.5 Inter,Arial,sans-serif;cursor:pointer}
.threads-calendar-nav{font:500 11px/1.4 Inter,Arial,sans-serif;color:#666;text-decoration:none}
.threads-calendar-nav:hover{text-decoration:underline;text-underline-offset:3px}
.threads-calendar-nav--disabled{color:#b4b4b4}
.threads-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.threads-calendar-day{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;
  min-width:0;min-height:83px;background:#f9f9f9;color:#282828;border-radius:8px;text-decoration:none;
  transition:background .15s ease}
a.threads-calendar-day:hover{background:#eeeeee}
.threads-calendar-day.selected{background:#202020;color:#fff}
a.threads-calendar-day.selected:hover{background:#303030}
.threads-calendar-day.unavailable{opacity:.4}
.threads-day-name{font:500 10px/1.35 Inter,Arial,sans-serif;color:#8d8d8d}
.threads-calendar-day.selected .threads-day-name{color:#c6c6c6}
.threads-day-number{font:500 19px/1.1 Inter,Arial,sans-serif;letter-spacing:-.04em}
.threads-day-dot{width:4px;height:4px;background:transparent;border-radius:50%}
.threads-calendar-day.has-subjects .threads-day-dot{background:#b42332}
.threads-calendar-day.selected .threads-day-dot{background:#fff}
.threads-calendar-note{margin:12px 0 0!important;color:#929292;font:400 11px/1.55 Inter,Arial,sans-serif}
.threads-legacy{margin-top:46px;padding-top:0;border:0}
.threads-legacy>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;
  cursor:pointer;list-style:none;color:#555;font:500 12px/1.5 Inter,Arial,sans-serif}
.threads-legacy>summary::-webkit-details-marker{display:none}
.threads-legacy>summary span{color:#aaa}
.threads-legacy ul{list-style:none;margin:13px 0 0;padding:0}
.threads-legacy li{display:flex;align-items:baseline;justify-content:space-between;gap:15px;
  padding:10px 0;border:0}
.threads-legacy a{color:#333;text-decoration:none;font:500 12px/1.5 Inter,Arial,sans-serif}
.threads-legacy a:hover{text-decoration:underline;text-underline-offset:3px}
.threads-legacy li span{color:#999;font:400 10px/1.4 Inter,Arial,sans-serif}
.threads-page .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.threads-daily-browser a:focus-visible,.threads-daily-browser button:focus-visible,
.threads-daily-browser select:focus-visible,.threads-daily-browser .threads-stack-stage:focus-visible,
.threads-daily-browser summary:focus-visible{outline:2px solid #b42332;outline-offset:3px}
@media(max-width:780px){
  .threads-browse-grid{grid-template-columns:minmax(0,1fr);gap:25px}
  .threads-stack-stage{height:365px}
  .threads-date-calendar{margin-top:46px}
}
@media(max-width:560px){
  .threads-page{padding-top:32px}
  .threads-intro p{margin-top:11px}
  .threads-browse-date{flex-direction:column;align-items:start;gap:5px}
  .threads-browse-date>p{text-align:left}
  .threads-subject-card,.threads-stack-empty{padding:22px 21px 20px}
  .threads-subject-card h4{margin-top:17px!important;font-size:22px}
  .threads-calendar-topline{flex-wrap:wrap}
  .threads-calendar-actions{width:100%;gap:10px;justify-content:space-between}
  .threads-calendar-actions select{max-width:140px}
  .threads-week-grid{gap:4px}
  .threads-calendar-day{min-height:68px;gap:6px}
  .threads-day-name{font-size:9px}
  .threads-day-number{font-size:17px}
  .threads-legacy li{flex-direction:column;gap:4px}
}
@media(prefers-reduced-motion:reduce){
  .threads-subject-card,.threads-calendar-day{transition:none!important}
}
