/* İmsak Vakti Midnight Gold v3.7: responsive, readable, editable homepage. */
:root{color-scheme:light;--ivg-navy:#10243b;--ivg-gold:#e9b65d;--ivg-gold2:#ffd785;--ivg-cream:#faf7f1;--ivg-ink:#17263a}
body.iv-site{background:var(--ivg-cream)!important;color:var(--ivg-ink)!important;overflow-x:clip;font-family:Geist,"Geist Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
body.iv-site :is(h1,h2,h3,p,a,button,summary){overflow-wrap:break-word;word-break:normal}
body.iv-site :is(button,a,input,select,textarea){font-family:Geist,"Geist Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
body.iv-site :is(.ivv-wrap,.iv-container){max-width:1200px;min-width:0}
body.iv-site .ivv-header{background:var(--ivg-navy)!important}
body.iv-site .ivv-hero{background-image:var(--ivg-hero-image)!important;background-size:cover!important}
body.iv-site .ivv-intro h1 em{color:var(--ivg-gold2)!important}
body.iv-site .ivg-hero-submit,body.iv-site .ivv-banner-cta{background:var(--ivg-gold)!important;color:var(--ivg-navy)!important}
body.iv-site .ivv-hero-tag,body.iv-site .ivv-app-kicker{color:var(--ivg-gold2)!important}
body.iv-site .ivv-next-timer{color:var(--ivg-gold2)!important}
body.iv-site .ivv-prayer.is-next{background:var(--ivg-gold2)!important;border-color:var(--ivg-gold)!important}
body.iv-site .ivv-prayer.is-next :is(strong,.ivv-prayer-name,svg){color:var(--ivg-navy)!important}
body.iv-site .ivv-shortcut:hover,body.iv-site .ivv-popcities a.is-current{background:#fff0d1!important;color:#6d4a18!important}
/* The real monthly data table has natural height; no blank 590px panel. */
body.iv-site .ivv-top-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:18px!important;margin-top:23px!important}
body.iv-site .ivv-month-card{grid-column:1/-1!important;grid-row:auto!important;min-height:0!important;height:auto!important;align-self:start!important;padding:21px 22px 16px!important}
body.iv-site .ivv-top-cards .ivv-box:not(.ivv-month-card){height:auto!important;min-height:0!important;grid-row:auto!important;align-self:stretch!important}
body.iv-site .ivv-table-clip{margin-top:16px!important;overflow-x:auto!important;overflow-y:visible!important;max-height:none!important;scrollbar-width:thin;scrollbar-color:var(--ivg-gold) transparent}
body.iv-site .ivv-mini-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-size:12px!important;line-height:1.35!important;color:var(--ivg-ink)!important}
body.iv-site .ivv-mini-table th,body.iv-site .ivv-mini-table td{padding:9px 12px!important;white-space:nowrap!important;text-align:center!important;border-bottom:1px solid #eee9e1!important;color:inherit!important}
body.iv-site .ivv-mini-table th:first-child{text-align:left!important}
body.iv-site .ivv-mini-table tbody tr.ivv-row-today{background:#ffebbe!important;color:#422f17!important}
body.iv-site .ivv-mini-table tbody tr:last-child :is(th,td){border-bottom:0!important}
body.iv-site .ivv-empty-table{height:auto!important;padding:18px!important;color:#566274!important}
body.iv-site .ivv-month-card .ivv-section-head{display:flex;min-width:0;align-items:center;gap:12px;flex-wrap:wrap}
body.iv-site .ivv-month-card .ivv-mini-action{margin-left:auto;flex:none}
/* Responsive article cards: never overlap photos or hide long Turkish titles. */
body.iv-site .ivv-post-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important}
body.iv-site .ivv-post{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:17px!important;background:#fff!important;border:1px solid var(--ivg-border,#e8e1d8)!important}
body.iv-site .ivv-post img{width:100%!important;height:auto!important;aspect-ratio:16/9!important;object-fit:cover!important;display:block!important;flex:none!important}
body.iv-site .ivv-post-body{position:static!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:9px!important;flex:1!important;min-width:0!important;padding:15px 16px 17px!important}
body.iv-site .ivv-post-tag{position:static!important;top:auto!important;left:auto!important;display:inline-flex!important;align-self:flex-start!important;font-size:11px!important;line-height:1.2!important;white-space:normal!important;border-radius:999px!important;margin:0!important;padding:6px 11px!important;max-width:100%!important}
body.iv-site .ivv-post h3{display:block!important;width:100%!important;margin:0!important;max-width:none!important;max-height:none!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;line-height:1.35!important;font-size:clamp(15px,1.15vw,18px)!important;font-weight:790!important;letter-spacing:-.025em!important;color:var(--ivg-ink)!important;overflow-wrap:anywhere!important}
body.iv-site .ivv-post-meta{display:flex!important;align-items:center!important;white-space:normal!important;gap:6px!important;font-size:11px!important;margin-top:auto!important;padding-top:6px!important;color:#657186!important}
body.iv-site .ivv-bar-title{align-items:center;flex-wrap:wrap;gap:12px!important}
body.iv-site .ivv-bar-title h2{font-size:clamp(19px,2vw,25px)!important}
/* Banner backgrounds are configurable without modifying templates. */
body.iv-site .ivv-banner-calendar{background-image:var(--ivg-calendar-image),linear-gradient(110deg,#0c2539,#274050)!important;background-size:cover!important;background-position:center!important}
body.iv-site .ivv-banner-qibla{background-image:var(--ivg-qibla-image),linear-gradient(110deg,#fffaf1,#e9e4d9)!important;background-size:cover!important;background-position:center!important}
body.iv-site .ivv-app-banner{background-image:linear-gradient(110deg,rgba(10,28,48,.94),rgba(16,39,57,.82)),var(--ivg-app-image)!important;background-size:cover!important;background-position:center!important}
body.iv-site .ivv-footer{background:var(--ivg-navy)!important}
/* FAQ contains religious-practice questions only, presented as a normal reader-facing section. */
body.iv-site .ivg-faq-home{margin-top:35px!important}
body.iv-site .ivg-prayer-faq{background:#fff;border:1px solid var(--ivg-border,#e8e1d8);border-radius:19px;box-shadow:var(--ivg-shadow);padding:27px 28px}
body.iv-site .ivg-prayer-faq h2{font-size:clamp(22px,2.2vw,30px)!important;color:var(--ivg-ink)!important;margin:0 0 6px}
body.iv-site .ivg-faq-intro{color:#637084;margin:0 0 19px;font-size:14px}
body.iv-site .ivg-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;align-items:start}
body.iv-site .ivg-prayer-faq details{background:#fffcf7;border:1px solid #ece3d7;border-radius:12px;margin:0!important;padding:16px 17px!important;min-width:0}
body.iv-site .ivg-prayer-faq summary{list-style:none;display:flex;align-items:center;gap:10px;color:var(--ivg-ink)!important;font-size:14px!important;font-weight:700!important;line-height:1.45!important;cursor:pointer}
body.iv-site .ivg-prayer-faq summary::after{content:'+';font-size:21px;color:#9e702f;margin-left:auto;flex:none}
body.iv-site .ivg-prayer-faq details[open] summary::after{content:'−'}
body.iv-site .ivg-prayer-faq details p{color:#526173!important;font-size:13px!important;line-height:1.75!important;margin:12px 0 0!important}
body.iv-site .iv-entry-content .ivg-prayer-faq{box-shadow:none;padding:4px;border:0}
/* Night mode contrast including custom palette. */
body.iv-site.ivv-night{background:#101b2b!important;color:#f0f5fd!important}
body.iv-site.ivv-night .ivv-top-cards .ivv-box,body.iv-site.ivv-night .ivv-post,body.iv-site.ivv-night .ivg-prayer-faq{background:#1d2e44!important;color:#f1f5fc!important;border-color:#344a5e!important}
body.iv-site.ivv-night :is(.ivv-post h3,.ivg-prayer-faq h2,.ivv-section-head h2){color:#f8faff!important}
body.iv-site.ivv-night .ivg-prayer-faq details{background:#243b50!important;border-color:#455972!important}
body.iv-site.ivv-night .ivg-prayer-faq summary,body.iv-site.ivv-night .ivg-prayer-faq details p{color:#f1f4f8!important}
body.iv-site.ivv-night .ivv-mini-table tbody tr.ivv-row-today{background:#88642f!important;color:#fff!important}
body.iv-site.ivv-night .ivv-mini-table :is(th,td){border-color:#42566b!important}
/* Tablet layout. All controls have usable touch targets. */
@media(max-width:1050px){
  body.iv-site .ivv-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.iv-site .ivv-top-cards{gap:13px!important}
  body.iv-site .ivv-month-card{padding:18px!important}
  body.iv-site .ivv-hero-inner{width:calc(100% - 34px)!important}
}
@media(max-width:760px){
  html,body.iv-site{max-width:100%;overflow-x:clip!important}
  body.iv-site{font-size:14px!important;line-height:1.56!important}
  body.iv-site .ivv-wrap,body.iv-site .iv-container{width:calc(100% - 28px)!important;padding-left:0!important;padding-right:0!important}
  body.iv-site .ivv-header,body.iv-site .ivv-header-inner{height:64px!important;min-height:64px!important}
  body.iv-site .ivv-header-inner{gap:8px!important}
  body.iv-site .ivv-brand{min-width:0!important;flex:1 1 auto!important;overflow:hidden}
  body.iv-site .ivv-brand-words strong{font-size:21px!important;letter-spacing:-.045em!important;white-space:nowrap}
  body.iv-site .ivv-brand-words small{font-size:7px!important;letter-spacing:.02em!important;white-space:nowrap}
  body.iv-site .ivv-nav-actions{flex:none!important;gap:5px!important}
  body.iv-site .ivv-nav{top:64px!important;left:0!important;right:0!important;padding:12px 14px 18px!important;z-index:300!important;max-height:calc(100dvh - 64px)!important;overflow-y:auto!important}
  body.iv-site .ivv-nav>a,body.iv-site .ivv-tools-menu summary{min-height:48px!important;padding:11px 15px!important;font-size:14px!important;color:#faf7f0!important}
  body.iv-site .ivv-tools-drop a{min-height:43px!important;font-size:13px!important}
  body.iv-site :is(button,[role="button"],input,select){touch-action:manipulation}
  body.iv-site .ivv-hero{height:auto!important;min-height:unset!important;padding:0 0 20px!important;background-position:center center!important}
  body.iv-site .ivv-hero-inner{min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;padding-top:31px!important;padding-bottom:0!important}
  body.iv-site .ivv-intro{margin:0!important;max-width:100%!important;min-width:0!important}
  body.iv-site .ivv-intro h1{font-size:clamp(31px,9vw,43px)!important;line-height:1.11!important;margin:14px 0!important;max-width:100%!important}
  body.iv-site .ivv-intro p{font-size:13.5px!important;line-height:1.65!important;max-width:100%!important}
  body.iv-site .ivg-hero-actions{display:flex!important;flex-wrap:wrap!important;gap:9px!important;margin-top:18px!important}
  body.iv-site .ivg-hero-actions>*{flex:1 1 155px;min-width:0!important;min-height:46px!important;justify-content:center!important}
  body.iv-site .ivv-hero-board{position:static!important;display:flex!important;flex-direction:column!important;margin-top:25px!important;gap:11px!important;min-height:unset!important;width:100%!important}
  body.iv-site .ivv-times-area{min-height:0!important;padding:13px 9px!important;border-radius:15px!important;overflow:hidden!important}
  body.iv-site .ivv-times-top{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-height:0!important}
  body.iv-site .ivv-location{width:auto!important;max-width:100%!important;min-width:135px!important;flex:1 1 160px!important;min-height:40px!important}
  body.iv-site .ivv-today{width:auto!important;min-width:150px!important;flex:1 1 150px!important;padding-left:9px!important}
  body.iv-site .ivv-today strong{font-size:11px!important;white-space:normal!important}
  body.iv-site .ivv-prayers-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-top:11px!important}
  body.iv-site .ivv-prayer{min-height:86px!important;padding:8px 4px!important;border:1px solid #ffffff36!important;border-radius:10px!important}
  body.iv-site .ivv-prayer-name{font-size:11px!important;white-space:nowrap!important}
  body.iv-site .ivv-prayer strong{font-size:clamp(16px,4.9vw,20px)!important;white-space:nowrap!important}
  body.iv-site .ivv-next-area{position:static!important;display:flex!important;gap:12px!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-height:92px!important;padding:14px!important;margin:0!important}
  body.iv-site .ivv-next-title{padding:0!important;border:0!important;min-width:0}
  body.iv-site .ivv-next-title strong{font-size:16px!important}
  body.iv-site .ivv-next-timer{font-size:clamp(20px,6.5vw,28px)!important;white-space:nowrap!important;flex:none!important;letter-spacing:.015em!important}
  body.iv-site .ivv-next-units{display:none!important}
  body.iv-site .ivv-quicklinks{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:18px!important;padding:0!important}
  body.iv-site .ivv-shortcut{height:auto!important;min-height:84px!important;padding:10px 5px!important;font-size:11px!important}
  body.iv-site .ivv-top-cards{grid-template-columns:minmax(0,1fr)!important;align-items:start!important;gap:12px!important;margin-top:16px!important}
  body.iv-site .ivv-top-cards .ivv-box{grid-column:1!important;grid-row:auto!important;min-height:0!important;height:auto!important;padding:15px!important}
  body.iv-site .ivv-month-card .ivv-section-head{gap:8px!important;flex-wrap:wrap!important}
  body.iv-site .ivv-month-card .ivv-section-head h2{font-size:18px!important}
  body.iv-site .ivv-mini-action{min-height:38px!important;display:inline-flex!important;align-items:center!important;padding:8px 11px!important}
  body.iv-site .ivv-table-clip{margin-top:12px!important;max-width:100%!important;-webkit-overflow-scrolling:touch!important}
  body.iv-site .ivv-mini-table{min-width:660px!important;font-size:11px!important}
  body.iv-site .ivv-mini-table th,body.iv-site .ivv-mini-table td{padding:11px 9px!important}
  body.iv-site .ivv-feature-banners{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  body.iv-site .ivv-banner{height:auto!important;min-height:175px!important;display:flex!important;align-items:center!important;border-radius:14px!important}
  body.iv-site .ivv-banner-content{max-width:82%!important;min-width:0!important}
  body.iv-site .ivv-banner-content strong{font-size:clamp(21px,5.8vw,27px)!important}
  body.iv-site .ivv-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.iv-site .ivv-tool{height:auto!important;min-height:103px!important;padding:12px 8px!important}
  body.iv-site .ivv-post-grid{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
  body.iv-site .ivv-post{height:auto!important;min-height:0!important}
  body.iv-site .ivv-post img{height:auto!important;aspect-ratio:16/9!important}
  body.iv-site .ivv-post-body{padding:16px!important}
  body.iv-site .ivv-post h3{font-size:17px!important;line-height:1.36!important}
  body.iv-site .ivg-prayer-faq{padding:18px 15px!important;border-radius:16px!important}
  body.iv-site .ivg-faq-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  body.iv-site .ivg-prayer-faq details{padding:13px 14px!important}
  body.iv-site .ivv-app-banner{padding:0!important;height:auto!important;min-height:0!important}
  body.iv-site .ivv-footer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 13px!important}
  body.iv-site .ivv-footer-grid>div:first-child{grid-column:1/-1!important}
  body.iv-site .ivv-footer-bottom{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:9px!important}
  body.iv-site .iv-page-hero h1{font-size:clamp(30px,7vw,42px)!important;overflow-wrap:anywhere}
  body.iv-site .iv-entry-content{padding:17px!important;line-height:1.75!important}
  body.iv-site .iv-entry-content img{height:auto!important;max-width:100%!important}
  body.iv-site :is(.iv-calendar-card,.iv-table-scroll,.iv-rm-table-wrap){max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  body.iv-site .iv-calendar{min-width:650px!important}
}
@media(max-width:390px){
  body.iv-site .ivv-wrap{width:calc(100% - 22px)!important}
  body.iv-site .ivv-brand-words small{display:none!important}
  body.iv-site .ivv-hero-tag{font-size:9px!important;letter-spacing:.02em!important}
  body.iv-site .ivv-intro h1{font-size:30px!important}
  body.iv-site .ivv-nav-actions{gap:0!important}
  body.iv-site .ivv-next-mosque{display:none!important}
  body.iv-site .ivv-next-timer{font-size:21px!important}
  body.iv-site .ivv-shortcut{font-size:10px!important}
  body.iv-site .ivv-month-card .ivv-section-head .ivv-mini-action{margin-left:0!important}
}
@media(prefers-reduced-motion:reduce){body.iv-site *,body.iv-site *::before,body.iv-site *::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

body.iv-site .ivg-brand-image{display:block!important;width:42px!important;height:42px!important;object-fit:contain!important;flex:none!important;border-radius:8px!important}
@media(max-width:760px){body.iv-site .ivg-brand-image{width:34px!important;height:34px!important}}
