@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

body.mip-wp {
  --rd-night: #111e2b;
  --rd-ink: #182734;
  --rd-gold: #d8b883;
  --rd-cream: #f4f0e7;
  --line: #d8d5cb;
  --serif: 'Playfair Display', Georgia, serif;
  background: var(--rd-cream);
  color: var(--rd-ink);
  font-family: 'DM Sans', Arial, sans-serif;
}
#mip-site { background: var(--rd-cream); }
#mip-site h1, #mip-site h2, #mip-site h3 { font-family: var(--serif); font-weight: 400; }
#mip-site h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.15; letter-spacing: -1.3px; }
#mip-site h3 { font-size: 25px; line-height: 1.3; }
#mip-site em { color: #997344; }
#mip-site .eyebrow { font-size: 10px; letter-spacing: 2px; }
#mip-site .button, #mip-site .channel {
  border-radius: 0;
  background: var(--rd-gold);
  color: var(--rd-ink);
  border: 1px solid #c1a16d;
  box-shadow: none;
}
#mip-site .button:hover { background: #e7cca3; color: var(--rd-ink); }
#mip-site .text-link { border-color: #9d865d; }
body.mip-wp #mip-site > header {
  top: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  border: 0;
  border-bottom: 1px solid #ffffff19;
  border-radius: 0;
  padding: 18px max(5%, calc((100% - 1240px) / 2));
  min-height: 86px;
  background: var(--rd-night);
  color: var(--rd-cream);
  box-shadow: none;
  backdrop-filter: none;
}
body.admin-bar #mip-site > header { top: 32px; }
#mip-site header .brand { color: var(--rd-cream); font-weight: 500; }
#mip-site header .brand { flex-shrink: 0; white-space: nowrap; }
@media(min-width:1001px) { #mip-site header nav { gap: 16px; } #mip-site header nav>a { white-space: nowrap; } }
#mip-site header .brand-logo { filter: none; mix-blend-mode: normal; background: transparent; }
#mip-site header .brand-logo img { content: url('logo-transparent.png'); mix-blend-mode: normal; }
#mip-site header nav a, #mip-site .menu { color: var(--rd-cream); }
#mip-site header .menu { -webkit-text-fill-color: currentColor; border: 1px solid #d8b88355; border-radius: 8px; }
#mip-site header .languages a[aria-current] { background: #ffffff14; border-color: #d8b88366; }
#mip-site .rd-hero {
  width: 100%;
  color: var(--rd-cream);
  background: linear-gradient(90deg,#0d1a29ed,#112132ba 40%,#101c2860 75%),linear-gradient(0deg,#101d2bf7,transparent 60%),url('prayer-gathering.webp') center 54% / cover;
}
#mip-site .rd-hero-inner { max-width: 1340px; margin: auto; padding: 40px 5% 20px; }
#mip-site .rd-hero .eyebrow { color: #ddd5c4; margin: 0 0 36px; font-size: 9px; }
#mip-site .rd-hero h1 { font-size: clamp(65px, 8vw, 110px); line-height: 1.03; letter-spacing: -3px; max-width: 900px; margin: 0 0 24px; }
#mip-site .rd-hero h1 a { color: inherit; text-decoration: none; }
#mip-site .rd-hero h1 em { color: var(--rd-gold); }
#mip-site .rd-hero .intro { color: #e0dfdc; font-size: 18px; margin-bottom: 26px; max-width: 620px; }
#mip-site .rd-hero .hero-date {
  display: block; width: fit-content; padding: 0; margin: 0 0 32px;
  background: none; border: 0; border-radius: 0; box-shadow: none; color: #e2d9c9;
}
#mip-site .rd-hero .hero-date-label { display: none; }
#mip-site .rd-hero .hero-date time { font-family: var(--serif); font-size: 32px; margin: 0; letter-spacing: 0; }
#mip-site .rd-hero .hero-date-advent { color: var(--rd-gold); font-size: 10px; letter-spacing: 1.5px; }
#mip-site .rd-quicklinks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: #142331e6; border: 1px solid #a9957644; }
#mip-site .rd-quick { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-right: 1px solid #a9957644; text-decoration: none; color: var(--rd-cream); min-width: 0; }
#mip-site .rd-quick:first-child { background: var(--rd-gold); color: var(--rd-ink); }
#mip-site .rd-quick:last-child { border-right: 0; }
#mip-site .rd-quick strong { display: block; font-size: 16px; font-weight: 500; }
#mip-site .rd-quick small { display: block; font-size: 11px; margin-top: 6px; opacity: .8; }
#mip-site .rd-quick:hover { background: #304354; color: #fff; }
#mip-site .rd-quick:first-child:hover { background: #e5cda5; color: var(--rd-ink); }
#mip-site .rd-art-note { font-size: 9px; text-align: right; color: #b8c1c5; margin: 10px 0 0; }
#mip-site .rd-nation { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 70px; padding-block: 80px; }
#mip-site .rd-nation > div:first-child { max-width: 410px; }
#mip-site .rd-nation p { margin-block: 25px; }
#mip-site .estonia-art svg { width: 100%; height: auto; overflow: visible; }
#mip-site .map-land { fill: #ddd8cb; stroke: #c5beaf; stroke-width: .8; fill-rule: evenodd; }
#mip-site .map-dot { fill: #a2793f; stroke: var(--rd-cream); stroke-width: 1.5; }
#mip-site .map-halo { fill: #bc955433; }
#mip-site .map-leader { stroke: #a28b65; stroke-width: .7; fill: none; }
#mip-site .estonia-art text { font: 12px 'DM Sans',Arial; fill: #36434a; }
#mip-site .estonia-art a:hover text { fill: #936422; }
#mip-site .cities-section, #mip-site .participate, #mip-site .watch-section,
#mip-site .partners-section { background: var(--rd-cream); }
#mip-site .section { padding-block: 75px; }
#mip-site .city-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
#mip-site .city-card { padding: 26px 24px; border-radius: 0; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; box-shadow: none; }
#mip-site .city-card h3 { font-size: 30px; }
#mip-site .city-card-top { flex-wrap: wrap; }
#mip-site .city-card-top p { font-size: 13px; }
#mip-site .city-date { border-radius: 0; background: transparent; font-size: 10px; border: 0; padding: 0; color: #796341; }
#mip-site .city-reading { font-size: 12px; margin-top: 24px; color: #39474e; }
#mip-site .city-reading strong { display: block; font: 38px/1.3 var(--serif); color: var(--rd-ink); margin-top: 5px; }
#mip-site .city-time { font: 20px/1.4 var(--serif); letter-spacing: 0; margin: 4px 0 0; }
#mip-site strong.city-time { font-size: 38px; }
#mip-site .city-start-label { margin-top: 16px; letter-spacing: 1px; font-size: 9px; color: #68716f; }
#mip-site [data-city="rapla"] .city-date { color: #a32523; border: 0; background: transparent; }
#mip-site .rd-city-toolbar { margin: 30px 0 20px; }
#mip-site .rd-city-toolbar label { display: block; font-size: 12px; margin-bottom: 8px; }
#mip-site #rd-city-search { width: min(100%,420px); padding: 13px 16px; border: 1px solid #bdb8ab; border-radius: 0; background: #fffcf5; color: var(--rd-ink); font: inherit; }
#mip-site .rd-city-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
#mip-site .rd-city-actions a, #mip-site .rd-city-actions button { font: 12px 'DM Sans',Arial; background: none; padding: 6px 0; color: var(--rd-ink); border: 0; border-bottom: 1px solid #afa18b; text-decoration: none; cursor: pointer; }
#mip-site .stream-notice { border-radius: 0; background: #eae5da; border-color: var(--line); }
#mip-site .prayer-section .prayer { background: #fffdf7; border: 1px solid #e5dfd1; border-radius: 0; box-shadow: 9px 12px 0 #e9e2d6; font-family: var(--serif); }
#mip-site .prayer-tools { background: #ebe5d9; border: 0; border-radius: 0; box-shadow: none; }
#mip-site .prayer-tools h3 { font-size: 24px; }
#mip-site .prayer { color: var(--rd-ink); }
#mip-site .broadcast-section { background: var(--rd-night); color: var(--rd-cream); }
#mip-site .broadcast-section h2, #mip-site .broadcast-section h3, #mip-site .broadcast-section p { color: inherit; }
#mip-site .broadcast-section .channel { background: var(--rd-cream); border: 1px solid #d8b88366; color: var(--rd-ink); }
#mip-site .broadcast-section .channel img { mix-blend-mode: normal; filter: none; opacity: 1; }
#mip-site .broadcast-section .channel:hover { background: #fff; color: var(--rd-ink); }
#mip-site .channel-wordmark { display: flex; align-items: center; justify-content: center; min-height: 86px; font: 600 22px/1.3 'DM Sans',Arial,sans-serif; letter-spacing: 1px; text-align: center; }
#mip-site #materjalid .archive-links { grid-template-columns: repeat(2,minmax(0,1fr)); margin-block: 28px; }
@media(max-width:600px) { #mip-site #materjalid .archive-links { grid-template-columns: 1fr; } }
#mip-site #otseulekanne { margin-bottom: 32px; border-radius: 18px; padding: 24px; background: #ffffff0d; border: 1px solid #d8b88366; }
@media(max-width:740px) { #mip-site .channel-wordmark { min-height: 60px; font-size: 15px; } }
#mip-site .video-card, #mip-site .archive-links > a, #mip-site .partner, #mip-site .bank { border-radius: 0; box-shadow: none; }
#mip-site .mip-native-video, #mip-site .et_pb_video_overlay { border-radius: 0 !important; }
#mip-site .video-card h3 { font-size: 24px; }
#mip-site .archive { background: #e9e3d7; }
#mip-site .archive-links > a { background: #f7f3eb; border: 1px solid #d1c7b7; }
#mip-site .support { background: #e5ddcc; }
#mip-site .bank { background: #f6f2e9; border-color: #d7ccba; }
#mip-site .participate { background: #e6e1d6; }
#mip-site .invitation-copy strong { color: var(--rd-ink); }
#mip-site .steps article { background: none; border-radius: 0; border: 0; border-top: 1px solid #bfb6a7; box-shadow: none; }
#mip-site .steps .num { color: #997344; }
#mip-site #contact-form { border-radius: 0; box-shadow: none; background: #faf7ef; border-color: #d8d0c2; }
#mip-site #contact-form input, #mip-site #contact-form textarea { border-radius: 0; border-color: #bdb5a6; }
#mip-site .mip-section.social-strip { border-radius: 0; border-color: #d3c7b4; background: #e8e1d5; }
#mip-site .social-strip a { border-radius: 0; border-color: #c9b99e; background: transparent; font-size: 14px; }
#mip-site .rd-share { width: min(1240px,88%); margin: 0 auto 22px; }
#mip-site .rd-share button { background: var(--rd-night); color: #f4f0e7; border: 0; padding: 14px 20px; font: inherit; cursor: pointer; }
#mip-site #rd-share-status { display: inline-block; margin: 12px; font-size: 13px; }
#mip-site footer { color: #c0c5c7; }
#mip-site footer::before { content: ''; position: absolute; z-index: -1; inset: 0 calc((100vw - 100%) / -2); background: var(--rd-night); }
#mip-site footer { position: relative; isolation: isolate; }
#mip-site footer .brand, #mip-site footer a { color: #f4f0e7; }
#mip-site footer .mip-site-credit img {
  content: url('nutitehnika-logo-hele.png');
  width: 107px;
  height: auto;
  background: transparent;
  padding: 0;
  filter: none;
  mix-blend-mode: normal;
}
#mip-site .rd-mobile-nav { display: none; }
#mip-site .rd-reader-close { background: #f4f0e7; color: #182734; border: 1px solid #c4bba9; padding: 12px 18px; font: inherit; cursor: pointer; }
body.rd-reading { overflow: hidden; }
#mip-site .rd-reader-active {
  position: fixed !important; inset: 0; z-index: 100000;
  width: 100%; max-width: none; height: 100dvh; overflow: auto;
  margin: 0; padding: 90px max(6%,calc((100% - 980px) / 2)) 60px !important;
  background: #f7f3ea;
}
#mip-site .rd-reader-active .rd-reader-close { display: block; position: sticky; top: 0; z-index: 2; margin: -65px 0 25px auto; }
#mip-site .rd-reader-active .prayer-heading h2 { font-size: 38px; }
#mip-site .rd-reader-active .prayer { box-shadow: none; border: 0; background: none; padding: 20px 0; font-size: var(--reading-size,28px); }
#mip-site .rd-reader-active .prayer-tools { position: static; }
body.rd-reading #mip-site > header, body.rd-reading .rd-mobile-nav { visibility: hidden; }

@media(max-width:1000px) {
  #mip-site header nav { background: var(--rd-night); border-radius: 0; border-color: #d8b88355; }
}
@media(max-width:740px) {
  body.mip-wp { padding-bottom: 68px; }
  body.mip-wp #mip-site > header { min-height: 70px; padding: 12px 20px; }
  body.admin-bar #mip-site > header { top: 46px; }
  #mip-site .rd-hero-inner { padding: 22px 20px 16px; }
  #mip-site .rd-hero { background-position: center,center,64% 50%; }
  #mip-site .rd-hero .eyebrow { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 22px; }
  #mip-site .rd-hero h1 { font-size: clamp(42px,12vw,56px); letter-spacing: -1.8px; margin-bottom: 17px; }
  #mip-site .rd-hero .intro { font-size: 13px; line-height: 1.6; margin-bottom: 17px; }
  #mip-site .rd-hero .hero-date { margin-bottom: 22px; }
  #mip-site .rd-hero .hero-date time { font-size: 25px; }
  #mip-site .rd-hero .hero-date-advent { font-size: 8px; }
  #mip-site .rd-quicklinks { grid-template-columns: 1fr; }
  #mip-site .rd-quick { min-height: 61px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid #a9957644; }
  #mip-site .rd-quick:last-child { border-bottom: 0; }
  #mip-site .rd-quick strong { font-size: 15px; }
  #mip-site .rd-quick small { font-size: 10px; margin-top: 3px; }
  #mip-site .rd-art-note { font-size: 8px; }
  #mip-site .rd-nation { grid-template-columns: 1fr; gap: 30px; padding-block: 54px; }
  #mip-site .estonia-art text { font-size: 17px; }
  #mip-site .section { padding-block: 55px; }
  #mip-site .city-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #mip-site .city-card { padding: 20px 13px; }
  #mip-site .city-card h3 { font-size: 26px; }
  #mip-site .city-card-top p { font-size: 11px; }
  #mip-site .city-card-top { gap: 12px; flex-direction: column-reverse; }
  #mip-site .city-reading { font-size: 11px; margin-top: 18px; }
  #mip-site .city-reading strong, #mip-site strong.city-time { font-size: 30px; }
  #mip-site .city-time { font-size: 18px; }
  #mip-site .rd-city-actions { gap: 10px; }
  #mip-site .rd-city-actions a, #mip-site .rd-city-actions button { font-size: 11px; min-height: 40px; }
  #mip-site .rd-mobile-nav {
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: #111e2bf7; border-top: 1px solid #d8b88344; padding-bottom: env(safe-area-inset-bottom);
  }
  #mip-site .rd-mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; padding: 6px 2px; color: #e8e4db; font-size: 23px; text-decoration: none; }
  #mip-site .rd-mobile-nav a span { font: 10px 'DM Sans',Arial; }
  #mip-site .rd-mobile-nav a[href="#palve"] { color: var(--rd-gold); }
  #mip-site .rd-reader-active { padding-inline: 24px !important; }
  #mip-site .rd-reader-active .prayer-heading h2 { font-size: 31px; }
  #mip-site .rd-reader-active .prayer { font-size: var(--reading-size,26px); }
  #mip-site .rd-reader-active .prayer-layout { grid-template-columns: 1fr; }
}
@media(max-width:360px) {
  #mip-site .city-grid { grid-template-columns: 1fr; }
}
@media print {
  #mip-site .rd-nation, #mip-site .rd-hero, #mip-site .rd-mobile-nav, #mip-site .rd-reader-close, #mip-site .rd-share { display: none !important; }
  #mip-site .rd-reader-active { position: static !important; height: auto; overflow: visible; padding: 0 !important; }
  body.rd-reading { overflow: visible; }
}

#mip-site .rd-hero h1 em { display: block; }
#mip-site .rd-prayer-intro { max-width: 720px; margin: 20px 0 30px; }
#mip-site .rd-broadcast-intro { margin-bottom: 35px; }
#mip-site .rd-broadcast-intro h2 { max-width: 720px; margin-bottom: 24px; }
@media(max-width:740px) {
  #mip-site nav.rd-mobile-nav {
    inset: auto 0 0;
    width: 100%;
    max-height: none;
    height: auto;
    margin: 0;
    border-radius: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    overflow: visible;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
    gap: 0;
  }
  #mip-site .rd-hero h1 { font-size: 50px; }
  #mip-site .rd-hero .hero-date time { font-size: 25px; }
  #mip-site .rd-reader-active .rd-prayer-intro { display: none; }
  #mip-site .rd-reader-active .prayer-heading h2 { margin-top: 12px; }
}
html:has(body.mip-wp) { overflow-x: clip; }
#mip-site .rd-native-map { padding: 0; }
#mip-site .rd-native-hero { padding: 0; }
#mip-site .rd-original-tagline { font-family: var(--serif); font-size: 24px; }
#mip-site .rd-reader-active .prayer-heading h2 { margin-bottom: 22px; }
#mip-site .rd-reader-active .prayer-layout { margin-top: 0; }
#mip-site .rd-reader-active .prayer { margin-top: 0; }
#mip-site .rd-reader-active .prayer p:first-child { margin-top: 0; }
@media(max-width:740px) {
  #mip-site .rd-reader-active { padding-top: 80px !important; }
  #mip-site .rd-reader-active .rd-reader-close { margin-top: -60px; padding: 10px 12px; font-size: 12px; }
  #mip-site .rd-reader-active .prayer-heading h2 { margin-bottom: 12px; }
  #mip-site .rd-reader-active .prayer { padding-top: 6px; }
}
#mip-site .rd-native-teaser { padding: 0; }
#mip-site .rd-prayer-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: center;
  padding-block: 85px;
}
#mip-site .rd-prayer-teaser p { margin-block: 24px; }
#mip-site .rd-prayer-teaser blockquote {
  margin: 0;
  padding: 45px 26px;
  border: 1px solid #e5dfd1;
  background: #fffdf7;
  box-shadow: 10px 13px 0 #e9e2d6;
  font: 30px/1.5 var(--serif);
  text-align: center;
}
@media screen {
  body.rd-enhanced #mip-site #palve:not(.rd-reader-active) { display: none; }
  body.et-fb #mip-site #palve { display: block; }
}
@media(max-width:740px) {
  #mip-site .rd-prayer-teaser { grid-template-columns: 1fr; gap: 36px; padding-block: 55px; }
  #mip-site .rd-prayer-teaser blockquote { font-size: 26px; padding: 32px 20px; }
}
@media print {
  #mip-site .rd-native-teaser { display: none !important; }
}
#mip-site .menu { background: transparent; box-shadow: none; }
#mip-site header .menu:hover, #mip-site header .menu[aria-expanded=true] { color: var(--rd-cream); background: #ffffff14; }
#mip-site .rd-reader-size { display: none; }
#mip-site .rd-reader-active .prayer-heading { position: relative; }
#mip-site .rd-reader-active .rd-reader-size { display: flex; gap: 5px; margin: 14px 0 20px; }
#mip-site .rd-reader-size button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #c4bba9;
  background: transparent;
  color: #182734;
  cursor: pointer;
  font: 15px 'DM Sans',Arial;
}

/* A restrained glass layer, preserving the navy, gold and cream palette. */
@media screen {
  body.mip-wp #mip-site > header {
    background: #111e2bf0;
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    box-shadow: 0 1px 0 #ffffff14, 0 8px 30px #07111c12;
  }
  #mip-site .rd-quicklinks {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg,#ffffff10,#142331c9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: #eee2c94d;
    box-shadow: inset 0 1px 0 #ffffff24, 0 14px 36px #05101d26;
  }
  #mip-site .rd-quick:first-child,
  #mip-site .button {
    background: linear-gradient(135deg,#ead4af,#d8b883 70%);
    box-shadow: inset 0 1px 0 #fff9, 0 5px 16px #151e2910;
  }
  #mip-site .button { border-radius: 13px; }
  #mip-site .rd-share button {
    border-radius: 14px;
    border: 1px solid #ffffff40;
    background: linear-gradient(135deg,#293d4c,#111e2b);
    box-shadow: inset 0 1px 0 #ffffff24, 0 5px 16px #151e2914;
  }
  #mip-site .rd-share button:hover { background: linear-gradient(135deg,#354e60,#1c3040); }
  #mip-site .broadcast-section .channel {
    border-radius: 18px;
    background: linear-gradient(135deg,#fffdf7,#eee8dc);
    border-color: #fff9;
    box-shadow: inset 0 1px 0 #fff, 0 8px 24px #050f1c1a;
  }
  #mip-site .partner, #mip-site .bank,
  #mip-site #contact-form, #mip-site .archive-links > a {
    border-radius: 18px;
    background: linear-gradient(135deg,#ffffffcf,#faf6edb8);
    border: 1px solid #fff9;
    box-shadow: inset 0 1px 0 #fff, 0 8px 28px #18273408;
  }
  #mip-site .rd-prayer-teaser blockquote {
    border-radius: 22px;
    background: linear-gradient(135deg,#fffefa,#f8f2e6);
    box-shadow: inset 0 1px 0 #fff, 0 12px 35px #1827340b;
  }
  #mip-site .social-strip a, #mip-site #rd-city-search,
  #mip-site #contact-form input, #mip-site #contact-form textarea { border-radius: 12px; }
  #mip-site .mip-section.social-strip { border-radius: 20px; }
  @media(max-width:740px) {
    #mip-site nav.rd-mobile-nav {
      background: #111e2bed;
      backdrop-filter: blur(18px) saturate(115%);
      -webkit-backdrop-filter: blur(18px) saturate(115%);
      border-top: 1px solid #ffffff29;
      box-shadow: 0 -8px 28px #07111c12;
    }
  }
}
