/* News briefing: restrained colour, readable cards, visible source context. */
.briefing-page { background:var(--surface); }
.briefing-bar { display:flex; align-items:center; gap:40px; padding:18px 36px 16px; background:var(--background); }
.briefing-brand { display:flex; align-items:baseline; gap:9px; color:var(--text); white-space:nowrap; }
.briefing-brand:hover { text-decoration:none; }
.briefing-brand .wordmark { font-size:25px; }
.briefing-brand>span:last-child { font-size:24px; color:var(--muted); font-weight:400; letter-spacing:-.8px; }
.briefing-search { width:min(650px,60vw); margin:auto; }
.briefing-search .search-box { background:var(--surface); border-color:transparent; height:48px; padding:0 12px 0 16px; gap:10px; box-shadow:none; }
.briefing-search .search-box:focus-within { background:var(--background); border-color:var(--line); box-shadow:0 2px 8px var(--shadow); }
.briefing-header-links { display:flex; align-items:center; gap:20px; }
.briefing-header-links>a { color:var(--secondary); font-size:13px; }
.briefing-tabs { display:flex; gap:28px; justify-content:center; align-items:center; padding:0 24px; border-bottom:1px solid var(--line); background:var(--background); white-space:nowrap; overflow-x:auto; scrollbar-width:thin; }
.briefing-tabs>a { display:block; padding:16px 0 14px; color:var(--secondary); font-size:14px; border-bottom:3px solid transparent; }
.briefing-tabs>a[aria-current] { color:var(--action); border-color:var(--action); font-weight:600; }
.briefing-tabs>a:hover { text-decoration:none; color:var(--action); }
.briefing-tabs>span { height:20px; border-right:1px solid var(--line); }
.briefing-page main { margin:0 auto; width:calc(100% - 64px); max-width:1160px; padding:32px 0 48px; }
.briefing-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:18px; }
.briefing-heading h1 { font-size:30px; letter-spacing:-.7px; line-height:1.25; margin:4px 0 7px; }
.briefing-heading p { margin:0; color:var(--muted); font-size:13px; }
.briefing-heading .briefing-date { font-size:12px; }
.briefing-heading .outlined-button { background:var(--background); }
.briefing-status { font-size:13px; color:var(--secondary); min-height:20px; margin:0 0 12px; }
.briefing-status:empty { min-height:0; margin:0; }
.briefing-status button { padding:0 8px; color:var(--action); text-decoration:underline; }
.briefing-layout { display:grid; grid-template-columns:minmax(0, 1fr) 296px; gap:24px; align-items:start; }
.briefing-sections,.briefing-aside { min-width:0; }
.briefing-section { padding:0 24px; background:var(--background); border:1px solid var(--soft-line); border-radius:16px; margin-bottom:24px; }
.section-heading { display:flex; gap:12px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding:20px 0 17px; }
.section-heading h2 { font-size:20px; color:var(--blue-text); margin:0; display:flex; align-items:center; gap:10px; }
.section-heading>span { color:var(--muted); font-size:11px; text-align:right; }
.section-local .section-heading h2 { color:var(--teal); }
.section-topics .section-heading h2 { color:var(--purple); }
.briefing-story { padding:20px 0 16px; border-bottom:1px solid var(--soft-line); min-width:0; }
.briefing-story:last-child { border-bottom:0; }
.story-topline { display:flex; gap:10px; align-items:center; margin-bottom:10px; min-width:0; }
.story-source { display:flex; align-items:center; gap:7px; font-size:12px; font-weight:600; min-width:0; overflow-wrap:anywhere; }
.source-letter { width:23px; height:23px; display:grid; place-items:center; flex-shrink:0; border-radius:6px; background:var(--blue-bg); color:var(--blue-text); font-size:11px; }
.story-time { color:var(--muted); font-size:11px; font-weight:400; flex-shrink:0; }
.story-topline>.story-time { margin-left:auto; }
.story-main { display:flex; gap:20px; align-items:flex-start; }
.story-copy { flex:1; min-width:0; }
.briefing-story h3 { font-size:19px; line-height:1.4; letter-spacing:-.2px; margin:0; }
.briefing-story h3 a { color:var(--text); }
.lead-story h3 { font-size:25px; line-height:1.35; letter-spacing:-.5px; }
.story-snippet { color:var(--secondary); font-size:13px; line-height:1.6; margin:10px 0 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lead-story .story-snippet { -webkit-line-clamp:3; }
.story-image { display:block; width:112px; height:86px; flex-shrink:0; overflow:hidden; border-radius:9px; }
.story-image img { width:100%; height:100%; object-fit:cover; }
.story-image.failed { display:none; }
.lead-story .story-image { width:190px; height:142px; }
.story-signals { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:12px; font-size:10px; }
.story-signals .rating-pill { font-size:10px; padding:2px 7px; }
.signal-local { background:var(--teal-bg); color:var(--teal); border-radius:4px; padding:2px 7px; }
.signal-unrated { color:var(--muted); }
.signal-paywall { color:var(--warn); font-size:10px; }
.story-actions { display:flex; flex-wrap:wrap; gap:20px; margin:13px 0 9px; font-size:12px; }
.story-actions>a:first-child { font-weight:600; }
.story-explanation { color:var(--muted); font-size:11px; }
.story-explanation summary { cursor:pointer; width:fit-content; }
.story-explanation>div { margin-top:12px; padding:14px; border-radius:8px; background:var(--surface); font-size:12px; color:var(--secondary); }
.story-explanation p { margin:0 0 9px; }
.story-explanation p:last-child { margin-bottom:0; }
.story-explanation ul { padding-left:18px; }
.story-explanation .publisher-rating { margin:12px 0 0; }
.story-menu { position:relative; flex-shrink:0; }
.story-menu>summary { cursor:pointer; display:flex; padding:5px; color:var(--muted); border-radius:50%; }
.story-menu>summary::-webkit-details-marker { display:none; }
.story-menu[open]>summary,.story-menu>summary:hover { background:var(--surface); color:var(--text); }
.story-menu-content { position:absolute; top:32px; right:0; width:240px; padding:10px; border:1px solid var(--line); border-radius:10px; box-shadow:0 5px 20px var(--shadow); background:var(--background); z-index:3; }
.story-menu-content>strong { display:block; padding:8px; font-size:12px; overflow-wrap:anywhere; }
.story-menu-content>button { width:100%; text-align:left; background:transparent; font-size:13px; }
.story-menu-content>button:hover { background:var(--surface); }
.related-stories { border-radius:8px; background:var(--blue-bg); color:var(--blue-text); padding:10px 12px; margin:10px 0 12px; font-size:12px; }
.related-stories summary { cursor:pointer; font-weight:600; }
.related-stories article { padding:12px 0; border-top:1px solid var(--line); }
.related-stories article:first-child { margin-top:12px; }
.related-stories h4 { font-size:14px; font-weight:400; margin:6px 0; line-height:1.5; }
.related-stories h4 a { color:var(--text); }
.more-stories>summary { padding:17px 0; color:var(--action); font-size:13px; cursor:pointer; }
.briefing-aside-card { background:var(--background); border:1px solid var(--soft-line); border-radius:16px; padding:22px; margin-bottom:18px; }
.briefing-aside-card h2 { font-size:19px; line-height:1.35; margin:5px 0 12px; }
.briefing-aside-card p { font-size:13px; line-height:1.6; color:var(--secondary); margin-bottom:12px; }
.briefing-aside-card .eyebrow,.eyebrow { font-size:10px; text-transform:uppercase; letter-spacing:1.3px; color:var(--muted); margin:0 0 8px; }
.edition-card { background:var(--teal-bg); border-color:transparent; }
.edition-card h2,.edition-card .eyebrow { color:var(--teal); }
.briefing-counts { display:flex; justify-content:space-between; gap:8px; border-top:1px solid var(--line); padding-top:14px; margin:16px 0; }
.briefing-counts strong { display:block; font-size:22px; font-weight:400; }
.briefing-counts span { font-size:10px; color:var(--muted); }
.briefing-aside-card p.small { font-size:11px; }
.text-button { border:0; padding:5px 0; color:var(--action); background:transparent; font-size:12px; }
.text-button:hover { text-decoration:underline; }
.interest-links { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.interest-links>a { border:1px solid var(--line); padding:5px 11px; border-radius:20px; font-size:12px; color:var(--text); }
.interest-links>a:hover { background:var(--purple-bg); color:var(--purple); text-decoration:none; }
.briefing-health { padding:0 14px; font-size:11px; color:var(--muted); }
.coverage-notice { color:var(--warn); background:var(--warn-bg); border-radius:8px; padding:12px; }
.briefing-privacy { font-size:11px; text-align:center; color:var(--muted); margin:30px 0 0; }
.briefing-empty { border:1px solid var(--soft-line); border-radius:16px; padding:50px 36px; background:var(--background); }
.briefing-empty p { max-width:480px; color:var(--secondary); }
.empty-symbol { color:var(--teal); display:block; margin-bottom:24px; }
.section-empty { padding:24px 0; color:var(--secondary); font-size:13px; }
.section-empty h3 { font-size:17px; }
.briefing-skeleton { display:grid; grid-template-columns:2.6fr 1fr; gap:24px; }
.briefing-skeleton>div { border:1px solid var(--soft-line); border-radius:16px; background:var(--background); height:280px; }
#news-feed[aria-busy="true"] { opacity:.5; transition:opacity .2s; }
/* Native dialog supplies focus trapping, Escape and background inertness. */
#news-preferences { padding:0; border:1px solid var(--line); border-radius:18px; background:var(--background); color:var(--text); width:min(660px,calc(100vw - 32px)); max-height:90dvh; box-shadow:0 16px 80px #0004; }
#news-preferences::backdrop { background:#10182766; backdrop-filter:blur(3px); }
#news-preferences-form { display:flex; flex-direction:column; max-height:90dvh; }
.preferences-heading { display:flex; gap:20px; align-items:center; justify-content:space-between; padding:24px 28px 20px; border-bottom:1px solid var(--line); }
.preferences-heading h2 { font-size:24px; margin:0; letter-spacing:-.5px; }
.preferences-content { padding:24px 28px 0; overflow-y:auto; overscroll-behavior:contain; }
.preferences-content fieldset { margin:0 0 25px; border:0; padding:0 0 22px; border-bottom:1px solid var(--line); min-width:0; }
.preferences-content legend { font-size:16px; font-weight:600; margin-bottom:12px; padding:0; }
.preferences-content p { font-size:12px; color:var(--secondary); line-height:1.6; margin:0 0 12px; }
.preferences-content label { display:block; font-size:12px; font-weight:600; margin-bottom:12px; }
.preferences-content input:not([type="checkbox"]),.preferences-content select,.preferences-content textarea { width:100%; min-width:0; padding:11px; border:1px solid var(--line); border-radius:7px; background:var(--background); color:var(--text); margin-top:6px; font:14px/1.4 Arial,Helvetica,sans-serif; }
.preferences-content textarea { resize:vertical; }
.preferences-content textarea:focus-visible { outline:2px solid var(--action); outline-offset:2px; }
.preferences-grid { display:grid; grid-template-columns:1fr 1fr; gap:4px 16px; }
.place-input { display:flex; gap:8px; align-items:center; margin-top:-6px; }
.place-input input { margin-top:0!important; }
.place-input button { padding:10px 16px; border-color:var(--line); }
.location-buttons { display:flex; justify-content:space-between; align-items:center; margin:8px 0; }
.preferences-content p.preference-help { font-size:11px; color:var(--muted); }
.preferences-content p.preference-credit { font-size:10px; margin:12px 0 0; }
.preferences-content #place-status,.preferences-content #preferences-status { color:var(--blue-text); }
.place-results { display:flex; flex-direction:column; gap:5px; }
.place-results button { padding:10px 12px; text-align:left; color:var(--action); font-size:12px; border:1px solid var(--line); border-radius:7px; }
.topic-choices { display:flex; flex-wrap:wrap; gap:8px; }
.topic-choices>label { display:flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid var(--line); border-radius:20px; margin:0; font-weight:400; cursor:pointer; }
.topic-choices>label:has(:checked) { color:var(--purple); background:var(--purple-bg); border-color:var(--purple); }
.topic-choices input { accent-color:var(--purple); margin:0; }
.muted-groups { display:flex; flex-wrap:wrap; gap:7px; }
.muted-groups button { border:1px solid var(--line); padding:6px 10px; border-radius:16px; font-size:11px; }
.news-method { font-size:12px; margin-bottom:20px; }
.news-method summary { cursor:pointer; color:var(--action); margin-bottom:12px; }
.preferences-footer { display:flex; gap:20px; justify-content:space-between; padding:18px 28px; border-top:1px solid var(--line); background:var(--background); }
.preferences-footer .primary-button { border-radius:20px; padding:10px 20px; }
.briefing-fallback { display:flex; flex-wrap:wrap; gap:14px; margin:20px 0; padding:20px; background:var(--background); border-radius:12px; }
.briefing-fallback label { display:flex; flex-direction:column; gap:5px; }
.briefing-fallback p { font-size:12px; color:var(--muted); }
@media(max-width:1100px) {
  .briefing-tabs { justify-content:flex-start; gap:24px; }
  .briefing-bar { padding:16px 24px; gap:24px; }
  .briefing-layout { grid-template-columns:minmax(0,1fr) 270px; gap:18px; }
  .lead-story .story-image { width:140px; height:110px; }
  .briefing-section { padding:0 20px; }
}
@media(max-width:800px) {
  .briefing-layout { display:flex; flex-direction:column; }
  .briefing-sections { width:100%; }
  .briefing-aside { display:grid; grid-template-columns:1fr 1fr; gap:16px; width:100%; }
  .briefing-aside-card { margin:0; }
  .briefing-health { padding:8px 0; }
  .briefing-page main { width:calc(100% - 36px); padding-top:24px; }
  .briefing-bar { flex-wrap:wrap; gap:12px; padding:16px 20px; }
  .briefing-search { order:3; width:100%; }
  .briefing-header-links { margin-left:auto; }
  .briefing-tabs { padding:0 20px; }
  .briefing-tabs>a { font-size:13px; padding:13px 0 11px; }
}
@media(max-width:480px) {
  .briefing-page main { width:100%; padding:22px 0 32px; }
  .briefing-heading,.briefing-status,.briefing-privacy { margin-left:18px; margin-right:18px; }
  .briefing-heading h1 { font-size:26px; }
  .briefing-heading .outlined-button { padding:8px 12px; font-size:12px; gap:5px; }
  .briefing-heading [data-edition] { max-width:240px; font-size:11px; }
  .briefing-section { border-radius:12px; padding:0 18px; margin-bottom:16px; border-left:0; border-right:0; }
  .section-heading { padding:18px 0 14px; gap:8px; }
  .section-heading h2 { font-size:18px; }
  .section-heading>span { max-width:140px; font-size:10px; }
  .briefing-story h3 { font-size:17px; }
  .lead-story h3 { font-size:21px; }
  .story-main { gap:12px; }
  .story-image,.lead-story .story-image { width:88px; height:78px; }
  .story-snippet { font-size:12px; }
  .story-source { font-size:11px; }
  .story-topline { gap:6px; }
  .source-letter { width:20px; height:20px; }
  .story-time { font-size:10px; }
  .briefing-aside { grid-template-columns:1fr; gap:12px; padding:0 18px; }
  .briefing-counts { justify-content:flex-start; gap:38px; }
  .briefing-aside-card { padding:20px; }
  .briefing-empty { padding:32px 20px; }
  .briefing-skeleton { grid-template-columns:1fr; padding:0 18px; }
  #news-preferences { width:calc(100vw - 16px); max-height:94dvh; border-radius:14px; }
  #news-preferences-form { max-height:94dvh; }
  .preferences-heading { padding:20px; }
  .preferences-heading h2 { font-size:21px; }
  .preferences-content { padding:20px 20px 0; }
  .preferences-grid { grid-template-columns:1fr; gap:0; }
  .preferences-footer { padding:15px 20px; }
  .preferences-content input:not([type="checkbox"]),.preferences-content select,.preferences-content textarea { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { #news-feed[aria-busy="true"] { transition:none; } }

/* Lead photographs have room to tell the story; compact cards stay scannable. */
.story-image { width:136px; height:102px; background:var(--surface); }
.lead-story .story-main { display:flex; flex-direction:column-reverse; gap:16px; }
.lead-story .story-image { width:100%; height:auto; aspect-ratio:16/9; max-height:340px; }
@media(max-width:480px) {
  .story-image { width:96px; height:84px; }
  .lead-story .story-image { width:100%; height:auto; max-height:none; }
}
.related-photo { display:block; float:right; width:96px; height:72px; margin:0 0 8px 14px; border-radius:7px; overflow:hidden; }
.related-photo img { width:100%; height:100%; object-fit:cover; }
.related-stories article { display:flow-root; }
.related-photo.failed { display:none; }
