/* Tawafuq public reading experience */
:root{--tn55-brand:#102744;--tn55-accent:#b81f36;--tn55-line:#c8d4e2}
.tn55-skip{position:fixed;inset-block-start:8px;inset-inline-start:8px;z-index:100000;transform:translateY(-150%);padding:10px 16px;background:#fff;color:var(--tn55-brand);border:2px solid var(--tn55-brand);border-radius:8px;font-weight:700}
.tn55-skip:focus{transform:none}
body :where(a,button,summary,input,select):focus-visible{outline:3px solid #b76500;outline-offset:3px}
#main .lead-grid[hidden]{display:none!important}
#main :where(.hero h1,.tn-master-copy h1,.article-content h1){font-size:clamp(1.55rem,3.15vw,2.8rem);line-height:1.42;text-wrap:balance;overflow-wrap:anywhere}
#main .tn-master-copy h1{margin:0 0 .28em;color:inherit}
#main :where(.tn-master-copy p,.hero p){line-height:1.75}
#main :where(.side article,.story,.live-grid article){min-inline-size:0}
#main .tn-master-frame>img{aspect-ratio:16/9;object-fit:contain}
.tn55-reader-menu{position:relative;min-inline-size:0}
.tn55-reader-menu>summary{display:flex;align-items:center;justify-content:center;min-height:44px;cursor:pointer;border-radius:7px;background:#fff;color:var(--tn55-brand);padding:5px 10px;font-weight:700;white-space:nowrap;list-style:none}
.tn55-reader-menu>summary::after{content:"⌄";margin-inline-start:.45em}
.tn55-reader-actions{position:absolute;inset-block-start:calc(100% + 6px);inset-inline-end:0;z-index:35;background:var(--tn55-brand);border:1px solid var(--tn55-line);border-radius:9px;display:grid;gap:6px;padding:7px;min-inline-size:148px;box-shadow:0 6px 20px #10274433}
.paper-toolbar .tn55-reader-actions>*{min-block-size:44px;margin:0;width:100%;justify-content:center;text-align:center;white-space:nowrap}
.paper-reader .tn55-jump{display:inline-flex;align-items:center;gap:4px}
#paper-jump{min-block-size:44px}
.tn-paper-pagination button:disabled{opacity:.65}
@media(max-width:760px){
  header .mast .wrap{min-height:0;padding-block:5px}
  header .mast .logo img{max-width:175px!important}
  #main .tn-master-copy{padding:12px}
  #main .tn-master-copy h1{font-size:clamp(1.35rem,5.4vw,1.9rem)}
  .paper-reader .paper-toolbar{display:flex;justify-content:center;gap:5px;padding:5px;align-items:center}
  .paper-reader .paper-toolbar strong{font-size:12px;white-space:nowrap}
  .paper-reader .paper-toolbar a,.paper-reader .paper-toolbar button,.tn55-reader-menu>summary{font-size:12px;padding-inline:6px}
  .paper-reader #paper-jump{width:3.25em;text-align:center}
}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}}

/* Consistent editorial previews; detail and newspaper retain their own ratios. */
#main .story .thumb,
#main .side .thumb,
#main #live-news .tn-photo-frame,
main .grid .tn-photo-frame,
main .tn-slider .tn-photo-frame {
  width:100%; max-width:none; height:auto; min-height:0;
  aspect-ratio:16/9; overflow:hidden; background:#e4ebf3;
}
#main .story .thumb>img,
#main .side .thumb>img,
#main #live-news .tn-photo-frame>img,
main .grid .tn-photo-frame>img,
main .tn-slider .tn-photo-frame>img {
  display:block; width:100%; height:100%; min-height:0; max-height:none;
  aspect-ratio:auto; object-fit:cover; object-position:var(--tn-pos,center);
}
#main .side .thumb{width:min(34%,120px);flex:0 0 auto}
#main .tn-master-frame>img {
  display:block; align-self:center; width:100%; height:auto;
  min-height:0; max-height:none; aspect-ratio:16/10;
  object-fit:contain; background:#eef2f6;
}
#main .tn-master-copy h1{font-size:clamp(1.35rem,2.5vw,2.2rem)}
#main .edition-grid article>a:first-child{display:block;aspect-ratio:595/842;overflow:hidden;background:#e4ebf3;border-radius:5px}
#main .edition-grid article>a:first-child>img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:760px){#main .tn-master-frame>img{aspect-ratio:16/9} #main .tn-master-copy h1{font-size:clamp(1.3rem,5.3vw,1.85rem)}}

.tn59-first{display:block;padding:0}
#main .tn59-first[hidden],#main .tn-ticker-toggle[hidden]{display:none!important}
#main .tn-ticker-track:has(.tn-ticker-group:only-child){animation:none}
#main .tn59-loading .tn-master-copy i,#main .tn59-loading .tn-master-aside i{display:block;min-height:18px;border-radius:6px;margin:14px 0;background:#c1cfdf;opacity:.55}
#main .tn59-loading .tn-master-copy i:first-child{width:100%;height:32px}
#main .tn59-loading .tn-master-copy i:last-child{width:55%}
#main .tn59-loading .tn-master-aside{display:block;padding:16px}
#main .tn59-loading .tn59-image{width:100%;aspect-ratio:16/10;background:#e4ebf3}
#main .tn59-loading .tn-master-frame{min-height:0}
#main .tn59-unavailable{padding:1rem;border:1px solid #c8d4e2;border-radius:8px;margin-block:12px}
#main .tn59-unavailable a,#main .tn59-unavailable button{min-height:44px;display:inline-flex;align-items:center;margin-inline-end:12px}
@media(max-width:760px){
 #main .tn59-loading .tn59-image{aspect-ratio:16/9}
 #main .tn59-loading .tn-master-copy{min-height:160px}
 #main .tn59-loading .tn-master-aside{display:none}
}

/* Hero: matched media slot for loading and live slides. */
#main .tn-master-hero{box-shadow:0 6px 18px #10274420}
#main .tn-master-frame{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;padding:clamp(14px,2vw,26px);gap:clamp(12px,2vw,26px);min-height:0}
#main .tn-master-frame.tn-no-photo{grid-template-columns:1fr}
#main .tn-master-frame .tn60-media{grid-column:2;grid-row:1;display:grid;place-items:center;width:100%;min-width:0;min-height:0;aspect-ratio:4/3;margin:0;overflow:hidden;border-radius:12px;background:#102956;box-shadow:0 4px 14px #0004}
#main .tn60-media>img{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 3px 6px #040d2240)}
#main .tn-master-frame .tn-master-copy{grid-column:1;grid-row:1;min-width:0;padding:0;gap:10px}
#main .tn-master-frame .tn-master-copy h1{font-size:clamp(1.4rem,2.4vw,2.2rem);line-height:1.38;margin:0}
#main .tn-master-frame .tn-master-copy p{line-height:1.7;margin:0}
#main .tn-master-frame .tn-master-copy p[hidden]{display:none}
#main .tn-master-bar{padding:0 clamp(14px,2vw,26px) 14px;justify-content:flex-start}
#main .tn59-loading .tn60-media{background:#26416a}
@media(max-width:760px){
 #main .tn-master-frame{display:grid;grid-template-columns:minmax(0,1fr);padding:12px;gap:13px}
 #main .tn-master-frame .tn60-media{grid-column:1;grid-row:1;aspect-ratio:16/10}
 #main .tn-master-frame .tn-master-copy{grid-row:2}
 #main .tn-master-frame.tn-no-photo .tn-master-copy{grid-row:1}
 #main .tn-master-frame .tn-master-copy h1{font-size:clamp(1.3rem,5.25vw,1.85rem)}
 #main .tn-master-bar{padding:0 12px 12px}
}

/* Tawafuq newsroom: compact side headlines and editorial sections. */
#main #live-news .tn61-desk{margin-block:30px 16px}
#main #live-news .tn61-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:2px solid #c31b36;margin-block-end:14px}
#main #live-news .tn61-section-head h2{margin:0;padding-block:5px;font:800 clamp(1.25rem,2.1vw,1.65rem)/1.6 Cairo,Tajawal,Arial,sans-serif}
#main #live-news .tn61-section-head>a{display:inline-flex;align-items:center;min-height:44px;color:#a9233c;font-weight:700;text-underline-offset:4px;white-space:nowrap}
#main #live-news .tn61-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
#main #live-news .tn61-card{width:auto;min-width:0;margin:0;padding:0;background:#fff;border:1px solid #dce4ee;border-radius:11px;overflow:hidden;color:#102744}
#main #live-news .tn61-card>a{display:block;color:inherit;text-decoration:none}
#main #live-news .tn61-card a:focus-visible{outline-offset:-3px}
#main #live-news .tn61-card a:hover h3{text-decoration:underline;text-underline-offset:3px}
#main #live-news .tn61-card .tn-photo-frame{border-radius:0}
#main #live-news .tn61-card-copy{padding:10px 12px 13px}
#main #live-news .tn61-card h3{margin:6px 0 0;font:750 1rem/1.65 Cairo,Tajawal,Arial,sans-serif;overflow-wrap:anywhere}
#main .tn61-meta{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;font:600 .75rem/1.55 Tajawal,Arial,sans-serif;color:#526581}
#main .tn61-meta>span{color:#a9233c;font-weight:800}
#main #live-news .tn61-card .tn-byline{padding:0 12px 12px}
#main .tn-master-aside .tn61-side-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;text-align:start}
#main .tn-master-aside .tn61-side-thumb{grid-column:2;grid-row:1;width:66px;height:56px;object-fit:contain;background:#edf2f8;border-radius:7px}
#main .tn-master-aside .tn61-side-copy{grid-column:1;grid-row:1;min-width:0;text-align:start}
#main .tn-master-aside .tn61-side-copy>strong{display:block;margin-top:3px;font-size:.91rem;line-height:1.65}
@media(max-width:950px){#main #live-news .tn61-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){
 #main #live-news .tn61-grid{grid-template-columns:minmax(0,1fr);gap:8px}
 #main #live-news .tn61-card>a{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px;padding:9px}
 #main #live-news .tn61-card-copy{grid-column:2;padding:0}
 #main #live-news .tn61-card>a:not(:has(.tn-photo-frame)) .tn61-card-copy{grid-column:1/-1}
 #main #live-news .tn61-card .tn-photo-frame{width:92px;aspect-ratio:4/3;border-radius:6px}
 #main #live-news .tn61-card h3{margin:3px 0 0}
}

/* Home footer: editorial navigation and contact. */
footer:has(>.tn68-footer){margin:0;padding:0;border:0;background:#fff;color:#102744}
.tn68-footer{margin-top:24px;border-top:3px solid #b51f35;background:#fff;color:#102744;text-align:start}
.tn68-footer :where(a,button):focus-visible{outline:3px solid #a95300;outline-offset:2px}
.tn68-footer-inner,.tn68-footer-bottom{width:min(1240px,100% - 36px);margin-inline:auto}
.tn68-footer-inner{display:grid;grid-template-columns:minmax(220px,1.65fr) repeat(3,minmax(130px,1fr));gap:clamp(14px,3vw,40px);padding-block:32px 24px}
.tn68-footer .tn68-brand-mark{display:inline-flex;align-items:center;background:#fff;border-radius:8px;padding:5px 0}
.tn68-brand-mark img{display:block;width:126px;height:auto;max-width:100%}
.tn68-footer .tn68-brand p{margin:10px 0;color:#435a75;line-height:1.75;max-width:30ch}
.tn68-footer .tn68-contact{display:flex;flex-wrap:wrap;gap:7px}
.tn68-footer .tn68-contact a{border:1px solid #adbed2;border-radius:7px;padding:5px 9px}
.tn68-footer nav{display:block;padding:0;margin:0;background:none;border:0;min-width:0}
.tn68-footer nav h2{font:800 1rem/1.55 Cairo,Tajawal,Arial,sans-serif;color:#102744;margin:0 0 7px;border:0}
.tn68-footer nav ul{list-style:none;margin:0;padding:0;display:grid;gap:0}
.tn68-footer a,.tn68-footer .tn49-settings{display:inline-flex;align-items:center;min-height:44px;color:#15365c;text-decoration:none;font:700 .96rem/1.45 Tajawal,Tahoma,Arial,sans-serif;overflow-wrap:anywhere}
.tn68-footer a:hover,.tn68-footer .tn49-settings:hover{#a82138;text-decoration:underline;text-underline-offset:4px}
.tn68-footer-bottom{border-top:1px solid #d8e2ee;display:flex;align-items:center;justify-content:space-between;gap:6px 18px;flex-wrap:wrap;padding-block:8px 10px;font-size:.83rem;color:#435a75}
.tn68-footer .tn68-legal{display:flex;flex-wrap:wrap;gap:0 14px;align-items:center}
.tn68-footer .tn68-legal a,.tn68-footer .tn49-settings{font-size:.86rem}
.tn68-footer .tn49-settings{background:none;border:0;margin:0;padding:0;cursor:pointer}
@media(max-width:700px){
 .tn68-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding-block:20px 14px}
 .tn68-footer .tn68-brand{grid-column:1/-1}
 .tn68-footer-bottom{align-items:flex-start}
}

.tn71-zoom{display:inline-flex;align-items:center;direction:ltr;gap:3px;flex:0 0 auto}
.paper-reader .paper-toolbar .tn71-zoom>button{width:44px;min-width:44px;margin:0;padding:0;font-size:21px}
.tn71-zoom>button:disabled{opacity:.66;cursor:default}
.tn71-zoom output{min-width:1.5em;text-align:center;font:700 15px/1.3 Cairo,Tahoma,Arial,sans-serif;color:inherit}
#main .paper-stage .paper-spread.single.paper-zoom img{width:var(--tn71-width,100%);max-width:none;height:auto;max-height:none}
