/* Responsive presentation layer for the migrated YEARIN app.
   Mobile retains its reading-first flow; larger screens get their own composition. */
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body, #root { max-width: 100%; }
body { overflow-x: hidden; }
._greetingBlock_4gy5w_6 h1 { overflow-wrap: anywhere; }
._greetingHeart_4gy5w_6 { white-space: nowrap; }
._overlay_1x77i_1, ._overlay_u8hq2_1 { overflow-y: auto; }
._backdrop_1eksx_1 { z-index: 1100; }

@media (max-width: 520px) {
  /* iOS zooms the entire viewport when a focused field renders below 16px. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  textarea,
  select { font-size: 16px !important; }
  button, a, summary { touch-action: manipulation; }
  ._homePage_4gy5w_6 ._progressGrid_4gy5w_5 > div,
  ._homePage_4gy5w_6 ._progressGrid_4gy5w_5 > button { padding: .85rem .75rem; gap: .55rem; }
  ._homePage_4gy5w_6 ._progressGrid_4gy5w_5 strong { font-size: 1.08rem; }
  ._homePage_4gy5w_6 ._progressGrid_4gy5w_5 small { font-size: .68rem; line-height: 1.4; }
  ._progressRing_4gy5w_6 { flex-basis: 2.7rem !important; width: 2.7rem; height: 2.7rem; }
}

@media (min-width: 760px) and (max-width: 1023px) {
  ._homePage_4gy5w_6 ._hero_4gy5w_4 { width: min(100%, 46rem); padding: 2rem 2.5rem 3rem; }
  ._homePage_4gy5w_6 { background-image: linear-gradient(rgba(45,33,24,.35),rgba(45,33,24,.35)),url('/assets/yearin-marble.jpeg'); background-size: cover; background-repeat: no-repeat; background-color: #382719; }
  ._greetingBlock_4gy5w_6 p { font-size: .8rem; }
}

@media (min-width: 1024px) {
  /* Preserve the portrait artwork's detail instead of covering a landscape screen. */
  ._homePage_4gy5w_6 {
    background-color: #2d2118;
    background-image: linear-gradient(90deg, #2d2118 0%, #2d2118 calc(100% - max(55.34dvh, 26.56rem)), rgba(45,33,24,.18) 100%), url('/assets/yearin-marble.jpeg');
    background-size: 100% 100%, auto max(100dvh, 48rem);
    background-position: center, right top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-bottom: 7.5rem;
  }
  ._homePage_4gy5w_6 ._hero_4gy5w_4 {
    width: min(100%, 82rem);
    min-height: calc(100dvh - 7.5rem);
    padding: 2rem clamp(2.5rem, 5vw, 5rem) 2.5rem;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-rows: auto min-content min-content min-content min-content 1fr;
    column-gap: clamp(2.5rem, 5vw, 5.5rem);
    background: transparent;
  }
  ._homeTopbar_4gy5w_6 { margin-bottom: clamp(2.5rem, 5vh, 4rem); }
  ._homeBrand_4gy5w_6 { font-size: .9rem; letter-spacing: .23em; }
  ._homePage_4gy5w_6 ._greetingBlock_4gy5w_6 h1 {
    font-size: clamp(3rem, 4.5vw, 4.4rem);
    line-height: 1.02;
    text-wrap: pretty;
  }
  ._greetingBlock_4gy5w_6 { padding: 0; }
  ._greetingBlock_4gy5w_6 p { max-width: 25rem; margin-top: 1.5rem; font-size: .72rem; line-height: 1.9; letter-spacing: .16em; }
  ._homePage_4gy5w_6 ._progressGrid_4gy5w_5 { grid-template-columns: 1fr; margin: 2rem 0 1.1rem; gap: .75rem; }
  ._homePage_4gy5w_6 ._progressGrid_4gy5w_5 > div,
  ._homePage_4gy5w_6 ._progressGrid_4gy5w_5 > button { min-height: 5rem; padding: 1rem 1.25rem; border-radius: 1rem; box-shadow: none; }
  ._homePage_4gy5w_6 ._streakCard_4gy5w_6 { background: rgba(119,64,38,.55) !important; }
  ._homePage_4gy5w_6 ._progressCard_4gy5w_6,
  ._prayerBanner_4gy5w_6 { background: #314329 !important; }
  ._homePage_4gy5w_6 ._progressGrid_4gy5w_5 small { font-size: .85rem; line-height: 1.4; }
  ._prayerBanner_4gy5w_6 { min-height: 5.2rem; margin: .3rem 0 0; border-radius: 1rem; }
  ._homePage_4gy5w_6 ._openingPrayer_4gy5w_5 { margin-top: 1rem; }
  ._openingPrayer_4gy5w_5 p, ._graceMessage_4gy5w_3 p { font-size: 1rem; line-height: 1.65; }
  ._homePage_4gy5w_6 ._todayCard_4gy5w_5 {
    padding: clamp(1.5rem, 2.4vw, 2.4rem);
    border-radius: 1.6rem;
    background: linear-gradient(145deg, rgba(93,48,28,.98), rgba(64,32,21,.98));
    border-color: rgba(231,195,137,.4);
    box-shadow: 0 24px 65px rgba(16,10,5,.25);
  }
  ._studyEyebrow_4gy5w_6 { padding-bottom: 1.4rem; }
  ._studyTitleRow_4gy5w_6 { flex-wrap: wrap; padding-bottom: 1.6rem; }
  ._studyTitleRow_4gy5w_6 > div { flex: 1 1 16rem; }
  ._studyTitleRow_4gy5w_6 h2 { font-size: clamp(2.25rem, 3.2vw, 3.25rem); line-height: 1.06; }
  ._studyTitleRow_4gy5w_6 p { margin-top: .7rem; font-size: 1.05rem; line-height: 1.55; }
  ._homePage_4gy5w_6 ._todayReadings_4gy5w_5 { gap: .75rem; }
  ._homePage_4gy5w_6 ._todayReadings_4gy5w_5 > div { min-height: 5rem; grid-template-columns: 3.75rem 1fr; background: rgba(255,248,235,.045); }
  ._homePage_4gy5w_6 ._readingOpen_4gy5w_5 strong { font-size: 1.2rem; }
  ._homePage_4gy5w_6 ._readingOpen_4gy5w_5 small { margin-top: .3rem; font-size: .85rem; }
  ._homePage_4gy5w_6 ._completeButton_4gy5w_5 { min-height: 3.6rem; margin-top: 1.4rem !important; }
  ._checkAllHint_4gy5w_6 { font-size: .75rem !important; margin-top: .8rem !important; }

  /* A desktop navigation bar, with labels beside the icons. */
  ._bottomNav_4gy5w_6 {
    width: min(calc(100% - 5rem), 68rem);
    bottom: 1.25rem;
    padding: .75rem 1.2rem;
    border: 1px solid rgba(238,205,155,.28);
    border-radius: 1.2rem;
    background: rgba(54,30,20,.96);
    box-shadow: 0 12px 40px rgba(14,9,4,.3);
  }
  ._bottomNav_4gy5w_6 button, ._bottomNav_4gy5w_6 .yearin-he-spoke-nav { display: flex; justify-content: center; align-items: center; gap: .65rem; min-height: 2.5rem; padding: .4rem .3rem; border-radius: .6rem; }
  ._bottomNav_4gy5w_6 span, ._bottomNav_4gy5w_6 .yearin-he-spoke-nav span { font-size: .85rem; }
  ._bottomNav_4gy5w_6 button:hover { background: rgba(255,248,235,.07); }
  ._bottomActive_4gy5w_6 { background: rgba(255,248,235,.09) !important; }
  ._bottomActive_4gy5w_6:after { bottom: -.25rem; }

  /* Journey: a broad overview with readable day cards. */
  ._page_4gy5w_4:not(._homePage_4gy5w_6) > ._hero_4gy5w_4 { padding: 3rem max(3rem, calc((100vw - 72rem)/2)); background-image: linear-gradient(90deg,#30281ef0,#30281ebf),url('/assets/yearin-marble.jpeg'); background-size: 100% 100%,auto 44rem; background-position: center,right center; background-repeat:no-repeat; }
  ._plan_4gy5w_4 { width: min(100%, 74rem); padding: 2.5rem 2rem 8rem; }
  ._planHeading_4gy5w_4 h2 { font-size: 2.6rem; }
  ._weekTrigger_4gy5w_4 { padding: 1.25rem !important; }
  ._weekCopy_4gy5w_4 strong { font-size: 1.3rem; }
  ._weekCopy_4gy5w_4 em { font-size: .95rem; }
  ._dayCard_4gy5w_4 { padding: 1.3rem; }
  ._dayTop_4gy5w_4 strong { font-size: 1.35rem; }
  ._listOpen_4gy5w_4 { min-height: 2.75rem; }
  ._listOpen_4gy5w_4 b { font-size: .9rem; }

  /* Scripture stays within a comfortable line length inside its wider window. */
  ._backdrop_zoymc_1 { align-items: center; padding: 2rem; }
  ._reader_zoymc_1 { width: min(94vw, 72rem); height: min(90dvh, 62rem); border-radius: 1.5rem; }
  ._text_zoymc_1 { padding: 2.5rem max(2rem, calc((100% - 42rem)/2)) 3rem; }
  ._verse_zoymc_1 { font-size: 1.25rem; line-height: 1.85; }
  ._introCard_ivnyw_1 { width: min(100%, 40rem); padding: 2.5rem 3rem; }
  ._introCard_ivnyw_1 h2 { max-width: 30rem; font-size: 2.4rem; }
  ._introCard_ivnyw_1 > p, ._authority_ivnyw_1 p { font-size: 1rem; line-height: 1.7; }
  ._welcome_ivnyw_1, ._message_ivnyw_1 { max-width: 44rem; }
  ._welcome_ivnyw_1 h3 { font-size: 2rem; }
  ._welcome_ivnyw_1 > p, ._message_ivnyw_1 > div, ._prompts_ivnyw_1 button { font-size: .95rem; }

  /* Prayer Room and Rhema use the canvas without stretching individual entries. */
  ._room_1x77i_1, ._vault_u8hq2_1 { background-size: auto; }
  ._hero_1x77i_1, ._hero_u8hq2_1 { width: min(100%, 72rem); padding: 2rem 2.5rem 2.5rem; }
  ._hero_1x77i_1 h1, ._hero_u8hq2_1 h1 { font-size: 2.8rem; }
  ._hero_1x77i_1 p, ._hero_u8hq2_1 p { font-size: 1rem; }
  ._room_1x77i_1 { background: linear-gradient(180deg,#263d2b 0 17rem,#f6efe3 17rem); }
  ._vault_u8hq2_1 { background: linear-gradient(180deg,#6b351f 0 17rem,#f5eee2 17rem); }
  ._tabs_1x77i_1, ._content_1x77i_1, ._body_u8hq2_1 { width: min(calc(100% - 5rem), 67rem); }
  ._list_1x77i_1, ._list_u8hq2_1 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
  ._prayerCard_1x77i_1 { padding: 1.4rem; }
  ._prayerCard_1x77i_1 strong { font-size: 1.3rem; }
  ._prayerCard_1x77i_1 p { font-size: .95rem; }
  ._tabs_1x77i_1 button { font-size: .85rem; }
  ._empty_1x77i_1, ._empty_u8hq2_1 { padding: 5rem 2rem; }
  ._empty_1x77i_1 strong, ._empty_u8hq2_1 strong { font-size: 1.6rem; }
  ._empty_1x77i_1 p, ._empty_u8hq2_1 p { font-size: 1rem; max-width: 30rem; }
  ._form_1x77i_1, ._detail_1x77i_1 { width: min(calc(100% - 5rem), 48rem); }
  ._card_u8hq2_1 blockquote { font-size: 1.3rem; }
  ._info_u8hq2_1 p { font-size: .9rem; }

  /* Welcome and onboarding get a desktop introduction, with room for the art. */
  ._content_ran2c_86 { width: min(100%, 72rem); gap: clamp(4rem, 8vw, 8rem); padding: 4rem 2rem; }
  ._artFrame_ran2c_96 { width: clamp(20rem, 30vw, 28rem); }
  ._copy_ran2c_114 h1 { font-size: clamp(3.5rem,5vw,5rem); max-width: 34rem; }
  ._invitation_ran2c_173 { max-width: 30rem; font-size: 1.05rem; line-height: 1.8; }
  ._topline_e0wju_2 { width: min(100%,72rem); }
  ._card_e0wju_3 {
    width: min(calc(100% - 4rem), 68rem);
    margin-top: clamp(2rem,8vh,6rem);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    column-gap: clamp(3rem,6vw,6rem);
    align-content: center;
    text-align: left;
  }
  ._card_e0wju_3 > * { grid-column: 2; min-width: 0; }
  ._card_e0wju_3 ._iconWrap_e0wju_3, ._card_e0wju_3 ._symbol_e0wju_3 { grid-column: 1; grid-row: 1 / span 10; align-self: center; justify-self: center; margin: 0; }
  ._card_e0wju_3 ._iconWrap_e0wju_3 { width: min(100%,22rem); height: auto; aspect-ratio: 1; border-radius: 2.5rem; }
  ._card_e0wju_3 ._iconWrap_e0wju_3 img { border-radius: 2.2rem; }
  ._card_e0wju_3 ._symbol_e0wju_3 { width: 14rem; height: 14rem; background: radial-gradient(circle,#c7a16320,#c7a16308); border-color: #c7a16340; }
  ._symbol_e0wju_3 svg { width: 4rem; height: 4rem; stroke-width: 1; }
  ._card_e0wju_3 h1 { font-size: clamp(2.8rem,4vw,4rem); line-height:1.08; }
  ._lead_e0wju_3 { max-width: 32rem; margin: 1.4rem 0 1.8rem; font-size: 1.05rem; line-height:1.8; }
  ._card_e0wju_3 ._primary_e0wju_3 { margin-top: 1.5rem; min-height: 3.5rem; }

  ._sheet_1legd_1 { width: min(94vw,68rem); height: min(90dvh,60rem); }
  ._body_1legd_1 { padding: 1.8rem 2.5rem 2.5rem; }
  ._hero_1legd_1 { padding: 2.5rem; }
  ._hero_1legd_1 h2 { max-width: 36rem; font-size: 2.8rem; }
  ._hero_1legd_1 p { max-width: 40rem; font-size: 1rem; }
  ._topics_1legd_1 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
  ._topics_1legd_1 button { padding: 1.3rem; }
  ._topics_1legd_1 strong { font-size: 1.3rem; }
  ._topics_1legd_1 em { font-size: .9rem; }
  ._lesson_1legd_1 { max-width: 45rem; margin: auto; padding: 2rem; }
  ._lesson_1legd_1 > p { font-size: 1.15rem; }
  ._sheet_47jqp_1 { width: min(90vw,48rem); }
}

@media (prefers-reduced-motion: reduce) {
  ._bottomNav_4gy5w_6 button { transition: none; }
}

@media (min-width: 60rem) {
  /* Journal becomes a writing desk, with paired reflection prompts. */
  ._backdrop_1eksx_1 { align-items: stretch; padding: 0; }
  ._sheet_1eksx_1 { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  ._body_1eksx_1 { min-height: 0; overscroll-behavior: contain; padding: 1.5rem clamp(1.5rem, 3vw, 4rem) 2rem; }
  ._intro_1eksx_1 h2 { font-size: 2.2rem; }
  ._intro_1eksx_1 p { font-size: .95rem; }
  ._fields_1eksx_1 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
  ._fields_1eksx_1 label { padding: 1.2rem; }
  ._fields_1eksx_1 label > span { font-size: 1.1rem; }
  ._fields_1eksx_1 textarea { min-height: 9rem; font-size: 1rem !important; }
  ._header_1eksx_1, ._footer_1eksx_1 { flex-shrink: 0; }
}
