/* Midnight Gold 3.8 – header/hero repair. Loaded last to neutralise legacy rules.
   Keeps prayer data, city picker, admin controls and WordPress hooks unchanged. */
:root{--ivg-v38-space:clamp(12px,2.2vw,32px)}
html{max-width:100%;overflow-x:clip}
body.iv-site,body.iv-site #icerik{max-width:100%;min-width:0;overflow-x:clip}
body.iv-site *,body.iv-site *::before,body.iv-site *::after{box-sizing:border-box}
body.iv-site :is(.ivv-wrap,.iv-container,.ivv-hero-inner,.ivv-intro,.ivv-hero-board,.ivv-times-area,.ivv-prayers-grid,.ivv-next-area,.ivv-top-cards,.ivv-month-card,.ivv-post,.ivv-post-body){min-width:0;max-width:100%}
body.iv-site .ivv-hero-inner{width:min(calc(100% - 40px),1200px)!important}
body.iv-site .ivv-intro{flex:0 1 auto;max-width:min(100%,640px)!important}
body.iv-site .ivv-intro h1{max-width:100%!important;width:100%;overflow-wrap:anywhere!important;word-break:normal!important;hyphens:manual;white-space:normal!important;text-wrap:balance}
body.iv-site .ivv-intro h1 em{white-space:normal!important;overflow-wrap:anywhere!important}
body.iv-site .ivv-intro p{overflow-wrap:break-word;max-width:min(100%,560px)!important}
body.iv-site :is(.ivv-header-inner,.ivv-nav-actions,.ivv-hero-board,.ivv-top-cards,.ivv-post-grid,.ivv-footer-grid){min-width:0}
body.iv-site .ivv-brand{max-width:100%;min-width:0}
body.iv-site .ivv-brand-words{min-width:0}
body.iv-site .ivv-brand-words strong{white-space:nowrap;line-height:1.14!important}
body.iv-site :is(.ivv-table-clip,.iv-table-scroll,.iv-rm-table-wrap){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.iv-site .ivv-month-card{height:auto!important;min-height:0!important;align-self:start!important}
body.iv-site .ivv-post{height:auto!important;min-height:0!important;overflow:hidden}
body.iv-site .ivv-post h3{white-space:normal!important;max-height:none!important;overflow-wrap:anywhere!important;overflow:visible!important}
/* The old page used a 900px breakpoint while the header no longer fitted at 901–1239px.
   Start mobile navigation BEFORE it breaks or overlaps the logo. */
@media(max-width:1239px){
 body.iv-site .ivv-header{position:relative;z-index:200!important}
 body.iv-site .ivv-header-inner{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;max-width:100%!important}
 body.iv-site #ivv-nav{display:none!important;position:absolute!important;inset:auto 0 auto 0!important;top:100%!important;width:100%!important;max-width:100vw!important;height:auto!important;max-height:calc(100dvh - 66px)!important;overflow-y:auto!important;margin:0!important;background:#10243b!important;border:1px solid rgba(255,215,133,.22)!important;border-radius:0 0 15px 15px!important;box-shadow:0 20px 40px #0715286b!important;padding:12px max(16px,calc((100% - 1050px)/2)) 20px!important;z-index:400!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;white-space:normal!important}
 body.iv-site #ivv-nav.is-open{display:flex!important}
 body.iv-site #ivv-nav>a,body.iv-site #ivv-nav .ivv-tools-menu summary{display:flex!important;justify-content:flex-start!important;min-height:46px!important;height:auto!important;padding:11px 12px!important;font-size:14px!important;border-bottom:1px solid #47596b!important;white-space:normal!important}
 body.iv-site #ivv-nav .ivv-tools-menu{display:block!important;height:auto!important}
 body.iv-site #ivv-nav .ivv-tools-drop{position:static!important;width:100%!important;max-height:none!important;box-shadow:none!important;margin-top:3px!important}
 body.iv-site #iv-menu-button{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;border-radius:10px!important;color:#fff!important;background:rgba(255,255,255,.075)!important;border:1px solid rgba(250,224,185,.25)!important}
 body.iv-site .ivv-brand{flex:0 1 auto!important;max-width:55vw!important}
 body.iv-site .ivv-nav-actions{flex:0 0 auto!important;margin-left:auto!important}
}
/* At tablet widths don't leave countdown floating over hero copy.
   Let the timetable participate in document flow and remove fixed 415/460px heights. */
@media(max-width:1120px){
 body.iv-site .ivv-hero{height:auto!important;min-height:0!important;padding:0 0 20px!important;background-position:60% center!important}
 body.iv-site .ivv-hero-inner{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;padding:26px 0 0!important;gap:0!important}
 body.iv-site .ivv-intro{width:100%!important;margin:0!important;max-width:min(100%,650px)!important}
 body.iv-site .ivv-intro h1{font-size:clamp(31px,4.4vw,49px)!important;line-height:1.11!important;letter-spacing:-.048em!important;margin:15px 0 14px!important}
 body.iv-site .ivv-hero-board{position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;width:100%!important;margin:24px 0 0!important;display:flex!important;flex-direction:column!important;gap:12px!important;min-height:0!important}
 body.iv-site .ivv-times-area{height:auto!important;min-height:0!important;overflow:hidden!important}
 body.iv-site .ivv-next-area{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;width:100%!important;max-width:100%!important;min-height:90px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:15px!important}
 body.iv-site .ivv-next-timer{margin:0!important;font-size:clamp(21px,3vw,29px)!important;white-space:nowrap!important}
 body.iv-site .ivv-next-units{display:none!important}
 body.iv-site .ivv-quicklinks{margin-top:18px!important}
 body.iv-site .ivv-top-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
 body.iv-site .ivv-header,body.iv-site .ivv-header-inner{height:66px!important;min-height:66px!important}
 body.iv-site .ivv-header-inner{width:calc(100% - 26px)!important;padding:0!important;margin-inline:auto!important}
 body.iv-site .ivv-brand{max-width:calc(100% - 105px)!important;gap:5px!important;overflow:hidden!important}
 body.iv-site .ivv-brand-words strong{font-size:clamp(17px,5.2vw,21px)!important;text-overflow:ellipsis;overflow:hidden!important;white-space:nowrap!important}
 body.iv-site .ivv-brand-words small{display:none!important}
 body.iv-site .ivv-mosque{width:33px!important;flex:0 0 33px!important}
 body.iv-site .ivv-mosque svg{width:33px!important;height:33px!important}
 body.iv-site .ivv-nav-actions{gap:5px!important}
 body.iv-site .ivv-nav-actions .ivg-header-location,body.iv-site .ivv-nav-actions .ivv-moon-toggle{display:none!important}
 body.iv-site .ivv-search-btn{width:37px!important;height:42px!important;display:grid!important}
 body.iv-site #iv-menu-button{width:41px!important;flex-basis:41px!important}
 body.iv-site .ivv-hero{height:auto!important;min-height:0!important;padding-bottom:16px!important;background-position:63% center!important}
 body.iv-site .ivv-hero:before{background:linear-gradient(90deg,rgba(10,27,47,.97),rgba(12,29,49,.82) 78%),linear-gradient(0deg,#0d2039,transparent)!important}
 body.iv-site .ivv-hero-inner{width:calc(100% - 28px)!important;padding-top:24px!important}
 body.iv-site .ivv-hero-tag{max-width:100%!important;white-space:normal!important;line-height:1.35!important;padding:6px 10px!important;font-size:10px!important}
 body.iv-site .ivv-intro h1{font-size:clamp(25px,7.5vw,36px)!important;letter-spacing:-.048em!important;line-height:1.13!important;max-width:100%!important;margin:14px 0!important}
 body.iv-site .ivv-intro h1 em{display:inline!important}
 body.iv-site .ivv-intro p{font-size:13px!important;line-height:1.55!important;margin:0!important}
 body.iv-site .ivg-hero-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;width:100%!important;max-width:none!important;margin-top:18px!important}
 body.iv-site .ivg-hero-actions>*{min-width:0!important;width:100%!important;min-height:46px!important;flex:none!important}
 body.iv-site .ivg-hero-dateline{font-size:11px!important;line-height:1.4!important;flex-wrap:wrap!important;margin-top:11px!important}
 body.iv-site .ivv-hero-board{margin-top:19px!important;gap:11px!important}
 body.iv-site .ivv-times-area{padding:12px 9px!important;border-radius:15px!important}
 body.iv-site .ivv-prayers-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 body.iv-site .ivv-prayer{min-width:0!important;min-height:88px!important;padding:8px 2px!important;border:1px solid #eee7da!important}
 body.iv-site .ivv-prayer strong{font-size:clamp(17px,5vw,21px)!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}
 body.iv-site .ivv-prayer-name{font-size:11px!important}
 body.iv-site .ivv-next-area{min-height:84px!important;padding:12px!important;gap:8px!important}
 body.iv-site .ivv-next-title{gap:7px!important;min-width:0!important}
 body.iv-site .ivv-next-title strong{font-size:15px!important}
 body.iv-site .ivv-next-timer{font-size:clamp(18px,5.4vw,24px)!important;letter-spacing:0!important}
 body.iv-site .ivv-quicklinks{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-top:15px!important}
 body.iv-site .ivv-top-cards{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body.iv-site .ivv-month-card{grid-column:1!important;grid-row:auto!important;padding:14px!important}
 body.iv-site .ivv-section-head{flex-wrap:wrap!important;gap:8px!important}
 body.iv-site .ivv-month-card .ivv-mini-action{margin-left:auto!important}
 body.iv-site .ivv-post-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body.iv-site .ivv-post-body{padding:14px 15px!important}
 body.iv-site .ivv-post h3{font-size:16px!important;line-height:1.35!important}
 body.iv-site .ivv-hero-inner .ivv-next-area{flex-wrap:wrap!important}
}
@media(max-width:355px){
 body.iv-site .ivv-intro h1{font-size:clamp(24px,7.2vw,28px)!important}
 body.iv-site .ivv-next-mosque{display:none!important}
 body.iv-site .ivv-next-timer{font-size:18px!important}
 body.iv-site .ivv-shortcut{font-size:9.5px!important}
}
@media(prefers-reduced-motion:reduce){body.iv-site *,body.iv-site *::before,body.iv-site *::after{scroll-behavior:auto!important}}
/* Phone timetable color/duplication repair. The selected city is already visible above. */
@media(max-width:760px){
 body.iv-site .ivv-hero-board .ivv-times-top{display:none!important}
 body.iv-site .ivv-times-area{background:#fffdf8!important;color:#17263a!important;padding:11px!important;border:1px solid rgba(215,188,142,.45)!important}
 body.iv-site .ivv-prayer{background:#fffaf1!important;opacity:1!important;border:1px solid #eadfce!important;box-shadow:none!important;color:#1a2839!important}
 body.iv-site .ivv-prayer>span:first-child{color:#a57125!important}
 body.iv-site .ivv-prayer .ivv-prayer-name{color:#475366!important}
 body.iv-site .ivv-prayer strong{color:#152438!important}
 body.iv-site .ivv-prayer.is-next{background:linear-gradient(135deg,#fff0c9,#f1ce88)!important;border-color:#dbaa4d!important}
 body.iv-site .ivv-prayer.is-next :is(strong,.ivv-prayer-name,svg){color:#17263a!important}
}

/* v3.8.2: İmsakiye sıralaması — sadece il/ilçe sayfaları. */
.iv-rm-city-summary-only{padding-bottom:0!important}
.iv-rm-city-summary-only .iv-rm-summary{margin-bottom:0}
.iv-rm-city-summary-only+.iv-city-calendar{padding-top:35px}
.iv-rm-city-calendar-only{padding-top:24px!important}
@media(max-width:660px){.iv-rm-city-summary-only+.iv-city-calendar{padding-top:24px}}
