/* News-first layout; portfolio styles stay in style.css. */
.news-page .topbar{height:56px}
.news-page .topbar nav a[aria-current="page"]{color:var(--ink)}
.news-page .page{max-width:1320px;padding-bottom:30px}
.news-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0 14px}
.news-heading-title{display:flex;align-items:baseline;gap:16px}
.news-heading h1{font-size:25px;letter-spacing:-.7px;margin:0;line-height:1.2}
.news-heading time{font-size:12px;color:var(--muted)}
.news-updated{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}
.news-updated span+span{padding-left:12px;border-left:1px solid var(--line)}
.news-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid var(--line)}
.news-tabs{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.news-tabs button{display:flex;align-items:center;gap:6px;border:0;border-radius:7px;background:transparent;color:var(--muted);padding:9px 12px;font-size:12px;font-weight:650;min-height:38px}
.news-tabs button:hover{color:var(--blue);background:var(--wash)}
.news-tabs button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.tab-count{font-size:10px;font-weight:500;opacity:.8}
.news-selects{display:flex;gap:8px}
.news-selects select{max-width:180px;min-height:36px;border:1px solid var(--line);border-radius:7px;background:var(--white);color:var(--ink);font:inherit;font-size:11px;padding:7px 26px 7px 9px;cursor:pointer}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.news-info-row{display:flex;justify-content:space-between;align-items:start;gap:16px;margin:10px 0 12px}
.news-info-row>p{font-size:11px;color:var(--muted);margin:0}
.news-info-links{display:flex;gap:14px;flex-shrink:0}
.news-info{position:relative;font-size:11px;color:var(--muted)}
.news-info summary{cursor:pointer;white-space:nowrap}
.news-info-panel{position:absolute;inset-inline-end:0;top:24px;z-index:5;width:min(370px,calc(100vw - 32px));padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--muted);box-shadow:0 12px 35px rgb(0 0 0 / 15%);line-height:1.6}
.news-info-panel p{margin:0 0 12px}
.news-info-panel p:last-child{margin:0}
#source-list{list-style:none;margin:0;padding:0}
.source-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;border-top:1px solid var(--line);padding:10px 0}
.source-status a{font-weight:650;color:var(--ink)}
.source-status a:hover{color:var(--blue);text-decoration:underline}
.source-status span{font-size:10px}
.source-status small{width:100%;font-size:10px}
.warning{color:var(--red)}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.news-item{min-width:0}
.news-story{height:100%;display:flex;flex-direction:column;padding:15px 16px 12px;border:1px solid var(--line);border-radius:10px;background:var(--white);transition:border-color .15s}
.news-story:hover{border-color:var(--blue)}
.story-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px;margin-bottom:11px}
.story-source{display:flex;align-items:center;gap:7px;min-width:0;font-size:11px;font-weight:650}
.story-source .source-icon{width:23px;height:23px;flex-basis:23px;font-size:10px}
.story-source a{overflow-wrap:anywhere}
.story-badge{font-size:9px;white-space:nowrap;font-weight:650;border-radius:4px;padding:3px 6px;background:var(--wash);color:var(--blue)}
.story-badge.breaking{background:var(--red);color:white}
.story-badge.saved{background:var(--paper);color:var(--muted)}
.story-badge.live{color:var(--green)}
.story-title{font-size:16px;line-height:1.45;letter-spacing:-.15px;margin:0 0 12px;font-weight:650;overflow-wrap:anywhere}
.story-title a:hover{color:var(--blue)}
.story-content{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px}
.story-content .story-title{flex:1;min-width:0;margin:0}
.story-thumbnail{flex:none;width:80px;height:60px;object-fit:cover;border-radius:6px;background:var(--wash)}
.news-story[lang="ar"] .story-title{font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:17px;line-height:1.6;letter-spacing:0}
.story-meta{display:flex;align-items:center;gap:8px;margin-top:auto;font-size:10px;color:var(--muted)}
.story-region{color:var(--blue);font-weight:600}
.story-related{font-size:10px;color:var(--muted);padding-top:7px;margin-top:7px;border-top:1px solid var(--line)}
.story-related a{margin-inline-start:6px;text-decoration:underline;text-underline-offset:2px}
.news-more{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:20px}
#visible-count{color:var(--muted);font-size:11px}
.news-more button{padding:10px 22px}
.news-more button span{margin-inline-start:8px}
.news-empty{padding:30px 20px;text-align:center;color:var(--muted);font-size:13px;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.news-page .notice{margin-bottom:12px;font-size:11px}
.news-page footer{max-width:1320px}
@media(min-width:1450px){.news-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.news-updated{flex-direction:column;align-items:end;gap:2px}.news-updated span+span{border:0;padding:0}}
@media(max-width:700px){.news-controls{gap:10px}.news-tabs{gap:2px}.news-tabs button{padding:8px 9px;font-size:11px}.news-heading-title{display:block}.news-heading time{display:block;margin-top:3px;font-size:10px}.news-heading h1{font-size:22px}.news-updated{font-size:10px}.news-info-row{gap:8px}.news-info-row>p{max-width:60%;font-size:10px}.news-info-links{gap:8px}.news-info{font-size:10px}.story-title{font-size:15px}}
@media(max-width:480px){.news-page .topbar{gap:12px}.news-page .brand{font-size:13px}.news-page .page{padding:0 12px 25px}.news-heading{padding:13px 0 10px;gap:8px}.news-updated{max-width:50%;text-align:right}.news-selects{width:100%}.news-selects select{flex:1;max-width:none;min-width:0}.news-info-row{margin-block:9px}.news-info-row>p{font-size:9px}.news-grid{grid-template-columns:1fr;gap:8px}.news-story{padding:13px 14px 11px}.story-title{margin-bottom:10px}.story-header{margin-bottom:8px}.news-info-panel{position:fixed;top:185px;inset-inline:12px;width:auto;max-height:70vh;overflow:auto}}
@media(prefers-color-scheme:dark){.story-badge.breaking{color:#0d151b}.sana{background:#293d4c;color:#a3cde9}}
@media(prefers-reduced-motion:reduce){.news-story{transition:none}}

.story-brief{margin-top:10px}.brief-toggle{border:0;padding:4px 0;background:transparent;color:var(--blue);font:inherit;font-size:11px;font-weight:600;cursor:pointer}.brief-toggle:hover{text-decoration:underline;text-underline-offset:3px}.brief-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}.brief-toggle:disabled{opacity:.65;cursor:wait}.brief-text{margin:7px 0 0;padding:9px 11px;border-inline-start:2px solid var(--blue);background:var(--wash);border-radius:0 6px 6px 0;font-size:12px;line-height:1.55}.brief-text[dir="rtl"]{border-radius:6px 0 0 6px}
