.web-root #web-nav,
.web-root #web-reader-back,
.web-root .web-theme-back,
.web-root #web-today-practices-title {
  display: none;
}

.web-root :is(#web-about, #web-download) {
  min-height: 44px;
  padding-inline: .35rem;
  color: var(--gold);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.web-root :is(#web-about, #web-download):hover {
  text-decoration: underline;
}

.web-root .wordmark .web-brand-name {
  color: inherit;
}

.web-root.practice-contemplation .wordmark {
  display: flex;
  align-items: center;
  min-width: 0;
}

.web-root .web-contemplation-tagline {
  font: 700 clamp(.9rem, 2.6vw, 1.1rem)/1.3 system-ui, sans-serif;
  letter-spacing: 0;
  text-wrap: balance;
}

.web-root.web-contemplation-selection mingrize-portraits {
  --portrait-height: clamp(21rem, 54svh, 30rem);
}

.web-root.web-contemplation-selection .contemplation-flow > .contemplation-button.primary {
  margin-block-start: 0;
}

.web-root.practice-contemplation .contemplation-heading {
  justify-content: flex-start;
}

.web-root.practice-contemplation .contemplation-heading button {
  flex: 0 0 44px;
}

.web-root.practice-contemplation .contemplation-heading h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.web-root .contemplation-flow:has(> .contemplation-guide-duration) {
  row-gap: clamp(8px, 1.5svh, 12px);
}

.web-root .contemplation-guide-duration {
  margin-block-start: 0;
}

.web-root .contemplation-guide-duration .contemplation-duration-entry {
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 70px;
  gap: .35rem 1rem;
  padding: .625rem 16px;
  font-size: 1em;
  font-weight: 650;
  text-align: start;
}

.web-root .contemplation-duration-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.web-root .contemplation-duration-value strong {
  margin-inline-start: 0;
  font-size: 1.5em;
  line-height: 1.15;
}

@media (max-width: 47.99rem) {
  .web-root.practice-contemplation #shell > header {
    flex-wrap: wrap;
  }

  .web-root.practice-contemplation #shell > header .wordmark {
    flex: 1 1 8rem;
  }

  .web-root.practice-contemplation .wordmark img {
    width: 32px;
    height: 32px;
  }

  .web-root.practice-contemplation #shell > header > .header-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
    margin-inline-start: auto;
  }
}

@media (min-width: 48rem) {
  .web-root.web-contemplation-selection #view {
    width: min(100%, 40rem);
    padding-block: 1rem 1.5rem;
  }

  .web-root.web-contemplation-selection mingrize-portraits {
    --portrait-height: clamp(21rem, min(58svh, 100svh - 25rem), 38rem);
  }
}

.web-root .daily-quote-controls {
  gap: .28rem;
}

.web-root .daily-quote-controls button[hidden] {
  display: none;
}

.web-root .web-daily-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 24rem) {
  .web-root .daily-quote-controls {
    margin-inline-start: auto;
  }
}

@media (max-width: 35rem) {
  .web-root .daily-quote-source .practice-today-source {
    flex: 0 0 100%;
    order: -1;
  }
}

@media (max-width: 30rem) {
  .web-root #shell > header .wordmark {
    flex: 0 0 auto;
  }

  .web-root #shell > header > .header-tools {
    gap: .1rem;
  }

  .web-root #shell > header :is(#web-about, #web-download) {
    padding-inline: .2rem;
    font-size: .8rem;
  }

  .web-root #shell > header .header-tools #language {
    padding-inline: .37rem;
  }
}

@media (max-width: 23rem) {
  .web-root .wordmark .web-brand-name {
    display: none;
  }
}

@media (max-width: 25.5rem) {
  .web-root:lang(en) .wordmark .web-brand-name {
    display: none;
  }
}

@media (max-width: 21rem) {
  .web-root #shell > header .wordmark img {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.web-root .web-existing-account {
  padding-inline: .75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--gold);
  font-weight: 650;
  text-decoration: none;
}

.web-root .web-language {
  position: relative;
}

.web-root .header-tools #language {
  white-space: nowrap;
}

.web-root #web-settings-language {
  width: 100%;
}

.web-root .web-language-options {
  position: absolute;
  z-index: 4;
  inset: calc(100% + .35rem) 0 auto auto;
  min-width: 10rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf1;
  color: #193a2c;
  box-shadow: 0 .35rem 1.1rem #29382c24;
}

.web-root .web-language-options[hidden] {
  display: none;
}

.web-root .web-language-options.web-language-up {
  inset-block: auto calc(100% + .35rem);
}

.web-root .web-language-options button[data-web-locale] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .4rem .55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: start;
  white-space: nowrap;
}

.web-root .web-language-options button:hover,
.web-root .web-language-options button[aria-current="true"] {
  background: #eaf0e3;
}

.web-root .web-language-options [aria-current="true"] {
  font-weight: 700;
}

.web-root .web-language-options .practice-icon {
  width: 16px;
  height: 16px;
}

.web-root #shell > header:has(#web-header-languages:not([hidden])) {
  z-index: 6;
  isolation: isolate;
}

@media (max-width: 47.99rem) {
  .web-root #shell > header:has(#web-header-languages:not([hidden])) {
    position: relative;
  }

  .web-root #web-settings-languages {
    inset-inline-end: .4rem;
  }
}

.web-root #web-classics-search {
  display: block;
}

@media (min-width: 760px) and (max-width: 767px) {
  .web-root #theme-page-header :is(nav,a) { display: none; }
  .web-root.practice-theme-directory #tabs:not([hidden]) { display: grid; }
}

@media (min-width: 48rem) {
  body.web-root {
    --web-ink: #193a2c;
    --web-paper: #faf7ef;
    --web-line: #e5dece;
    --web-gutter: clamp(1.5rem, 4vw, 3rem);
    --web-header-height: 7rem;
    --web-serif: "Mingrize Rare Han", "Songti SC", "Songti TC", Georgia, serif;
  }

  .web-root:lang(zh-TW) {
    --web-serif: "Mingrize Rare Han", "Songti TC", "Songti SC", Georgia, serif;
  }

  .web-root.practice-theme #shell {
    width: 100%;
    border: 0;
  }

  .web-root #shell > header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
    gap: .15rem .75rem;
    min-height: var(--web-header-height);
    padding: .45rem max(var(--web-gutter), calc((100% - 74rem) / 2));
    border-bottom: 1px solid var(--web-line);
    background: var(--web-paper);
    color: var(--web-ink);
  }

  .web-root.immersive-reader #shell > header {
    position: fixed;
    inset-inline: 0;
    background: var(--page);
    color: var(--page-ink);
    border-bottom-color: var(--page-line);
  }

  .web-root #shell > header .wordmark {
    display: flex;
    order: 0;
    align-items: center;
    gap: .36rem;
    min-width: 0;
    margin-inline-end: auto;
    font: 700 1.5rem/1.2 Georgia, serif;
    letter-spacing: -.035em;
    color: inherit;
  }

  .web-root .wordmark img {
    width: 30px;
    height: 30px;
  }

  .web-root #shell > header > .header-tools {
    display: flex;
    flex: 0 0 auto;
    gap: .35rem;
    color: inherit;
  }

  .web-root .header-tools #language {
    border-radius: 8px;
    padding-inline: .6rem;
    background: transparent;
    white-space: nowrap;
  }

  .web-root :is(#web-about, #web-download) {
    padding-inline: .55rem;
    white-space: nowrap;
  }

  .web-root :is(#web-about, #web-download, .header-tools #language, #classic-search-entry):hover {
    background: color-mix(in srgb, currentColor 7%, transparent);
    border-radius: 8px;
  }

  .web-root #web-nav:not([hidden]) {
    position: static;
    order: 1;
    display: flex;
    flex: 1 1 100%;
    align-self: stretch;
    justify-content: center;
    gap: clamp(.4rem, 2.8vw, 2rem);
    padding: 0;
    border: 0;
    background: transparent;
  }

  .web-root #web-nav button {
    position: relative;
    border: 0;
    border-radius: 0;
    min-width: 4.1rem;
    padding: .65rem .7rem;
    color: inherit;
    font-size: .95rem;
    font-weight: 550;
    white-space: nowrap;
  }

  .web-root #web-nav button:hover,
  .web-root #web-nav button[aria-current="page"] {
    color: inherit;
    background: color-mix(in srgb, currentColor 6%, transparent);
  }

  .web-root #web-nav button[aria-current="page"] {
    font-weight: 750;
  }

  .web-root #web-nav button[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset: auto .65rem 0;
    border-bottom: 3px solid currentColor;
  }

  .web-root #tabs,
  .web-root #theme-page-header,
  .web-root #practice-guide-header span {
    display: none;
  }

  .web-root #practice-guide-header:not([hidden]) {
    flex: 0 0 44px;
    display: block;
    width: 44px;
  }

  .web-root #practice-guide-header button {
    width: 44px;
  }

  .web-root.immersive-reader #web-reader-back {
    display: grid;
    place-items: center;
    width: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .web-root.immersive-reader #web-reader-back svg {
    width: 20px;
    height: 20px;
  }

  .web-root.immersive-reader .web-reader-buttons [data-action="back"] {
    display: none;
  }

  .web-root #view {
    width: min(100%, 52rem);
    margin-inline: auto;
    padding: 1.75rem var(--web-gutter) 3rem;
  }

  .web-root:is(.practice-main-tab,.practice-classic-detail,.practice-theme-directory) #view {
    width: min(100%, 80rem);
  }

  .web-root :is(.web-theme-back, .child-back) {
    margin-bottom: .8rem;
  }

  .web-root .web-theme-back {
    display: block;
  }

  .web-root .child-back button {
    border-color: var(--web-line);
    background: transparent;
  }

  .web-root.practice-main-tab #view > h1 {
    font: 700 clamp(2.15rem, 4vw, 3.25rem)/1.14 var(--web-serif);
    letter-spacing: -.035em;
    margin: 0 0 1.2rem;
  }

  .web-root.practice-today #view {
    padding-top: 1.25rem;
  }

  .web-root.practice-today .practice-today-hero {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: clamp(10.75rem, 15vw, 13rem);
    margin-inline: 0;
    padding: clamp(1.1rem, 2.4vw, 2.25rem);
    border: 1px solid var(--web-line);
    border-radius: 18px;
    background: linear-gradient(90deg, #f7efe3 14%, #f7efe3 36%, #f7efe300 70%) left center / cover no-repeat,
      url("./today-hero-lotus-sunrise.jpg") right 65% / auto 151% no-repeat, #f7efe3;
  }

  .web-root.practice-today .practice-today-copy {
    max-width: 54%;
  }

  .web-root.practice-today .practice-today-copy h1 {
    font: 700 clamp(2.2rem, 3.8vw, 3.4rem)/1.08 var(--web-serif);
    letter-spacing: -.035em;
    margin: 0 0 .65rem;
  }

  .web-root.practice-today .practice-today-copy p {
    font-size: 1rem;
    text-wrap: pretty;
  }

  .web-root.reading-large.practice-today .practice-today-copy p {
    font-size: 1.18rem;
  }

  .web-root.practice-today .practice-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(.85rem, 2.2vw, 1.5rem);
    align-content: start;
  }

  .web-root.practice-today :is(.practice-today-hero,.practice-home:not(:has(.daily-quote-card)) .web-today-practices) {
    grid-column: 1 / -1;
  }

  .web-root .web-today-practices {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: .65rem;
    padding: 1.15rem;
    border: 1px solid var(--web-line);
    border-radius: 16px;
    background: #f8f2e6;
  }

  .web-root #web-today-practices-title,
  .web-root .daily-quote-header h2 {
    display: block;
    margin: 0;
    font: 700 1.22rem/1.25 var(--web-serif);
  }

  .web-root .practice-today-scripture {
    justify-content: flex-start;
    padding: 1.15rem;
    background: #fbf7ed;
  }

  .web-root .practice-today-quote {
    margin: .6rem 0 1rem;
    font-size: clamp(1.22rem, 2.25vw, 1.72rem);
    line-height: 1.5;
  }

  .web-root .daily-quote-source {
    margin-top: auto;
  }

  .web-root .practice-today-grid {
    gap: .5rem;
  }

  .web-root .practice-today-tile {
    min-height: 76px;
    border-color: #e7dece;
    border-radius: 10px;
    background: #fffaf1;
  }

  .web-root .practice-today-tile[data-action="passage-open"],
  .web-root .passage-flow[data-passage-stage="entry"] [data-action="passage-random"] {
    color: #fffaf1;
    border-color: #254d3b;
    background: #254d3b;
  }

  .web-root .practice-today-tile[data-action="passage-open"]:hover,
  .web-root .passage-flow[data-passage-stage="entry"] [data-action="passage-random"]:hover {
    background: #193b2c;
  }

  .web-root :is(.practice-today-tile[data-action="passage-open"], .passage-flow[data-passage-stage="entry"] [data-action="passage-random"]) :is(svg,small) {
    color: inherit;
  }

  .web-root .web-classic-resume {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: min(100%, 41rem);
    margin: 0 0 1rem;
    padding: .7rem .9rem;
    border-color: #cbd7c7;
    background: #edf2e8;
    color: var(--web-ink);
    text-align: start;
  }

  .web-root .web-classic-resume span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .web-root .web-classic-resume :is(strong,small) {
    display: block;
  }

  .web-root .web-classic-resume svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .web-root .practice-today-tile .practice-icon {
    width: 24px;
    height: 24px;
  }

  .web-root .practice-vow-icon .practice-icon {
    width: 19px;
    height: 19px;
  }

  .web-root #web-classics-search {
    display: flex;
    align-items: end;
    gap: .65rem;
    margin-block-end: 1.5rem;
  }

  .web-root #web-classics-search label {
    flex: 1 1 23rem;
    max-width: 30rem;
  }

  .web-root #web-classics-search input {
    min-height: 44px;
    padding-inline: .8rem;
  }

  .web-root.practice-main-tab .classic-shelf {
    margin-block: 1.75rem;
  }

  .web-root.practice-main-tab .classic-shelf h2 {
    font: 700 1.35rem/1.3 var(--web-serif);
    margin: 0 0 .65rem;
  }

  .web-root.practice-main-tab .classic-shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: .8rem;
  }

  .web-root .classic-shelf-entry .classic-book-cover {
    min-height: 9rem;
    height: 100%;
    padding: 1rem 37% 1rem 1.1rem;
    background-size: 100% 100%, auto 120%;
  }

  .web-root .classic-shelf-entry .classic-book-cover strong {
    font-size: 1.15rem;
    text-wrap: pretty;
  }

  .web-root .classic-shelf-entry:hover .classic-book-cover {
    border-color: #7f917a;
  }

  .web-root .classic-detail-hero {
    min-height: 10rem;
    margin-block-end: 1rem;
    padding: 1.4rem 35% 1.4rem 1.5rem;
  }

  .web-root .classic-detail-hero h1 {
    font: 700 clamp(1.85rem, 3.9vw, 3rem)/1.2 var(--web-serif);
  }

  .web-root .web-book-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 26%);
    align-items: start;
    gap: 1rem;
  }

  .web-root .web-book-layout > :is(.classic-contents,.classic-edition),
  .web-root .web-settings > :is(.settings-group,.practice-more) {
    padding: .9rem 1.15rem;
    border: 1px solid var(--web-line);
    border-radius: 13px;
    background: #fcf8ef;
    min-width: 0;
  }

  .web-root .web-book-layout .classic-contents h2 {
    font: 700 1.3rem/1.25 var(--web-serif);
    margin-top: 0;
  }

  .web-root .web-book-layout .classic-edition summary {
    font-weight: 650;
  }

  .web-root .practice-guide-home {
    gap: 1rem;
  }

  .web-root .practice-guide-home .practice-guide-hero {
    margin: 0;
    min-height: clamp(8.5rem, 13vw, 10.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
    border: 1px solid var(--web-line);
    border-radius: 16px;
    background-size: auto 112%;
    background-repeat: no-repeat;
  }

  .web-root .practice-guide-home .practice-guide-hero p {
    max-width: 45%;
    font-size: 1rem;
  }

  .web-root .practice-guide-home .practice-guide-feature {
    padding: 1.1rem 1.3rem;
    background-position: right 1rem center;
  }

  .web-root .practice-guide-home .practice-guide-primary {
    width: max-content;
    max-width: 100%;
  }

  .web-root .practice-guide-home > .practice-guide-list,
  .web-root .web-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
  }

  .web-root .practice-guide-home .practice-guide-card {
    min-height: 5.3rem;
    padding: .9rem 1.1rem;
  }

  .web-root .web-practice-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
  }

  .web-root :is(.web-practice-start, .web-practice-learn) {
    display: grid;
    gap: .7rem;
  }

  .web-root .web-practice-start {
    padding: 1.1rem;
    border: 1px solid var(--web-line);
    border-radius: 16px;
    background: #fcf8ef;
  }

  .web-root .web-practice-start h2 {
    font: 700 1.5rem/1.25 var(--web-serif);
  }

  .web-root .web-practice-ritual {
    display: grid;
    justify-items: start;
    gap: .35rem;
    padding-block: .8rem;
    border-top: 1px solid var(--web-line);
  }

  .web-root .web-practice-ritual h3 {
    margin: 0;
    font-size: 1.13rem;
  }

  .web-root .web-practice-ritual p {
    font-size: .93rem;
  }

  .web-root .web-practice-start .actions {
    margin: 0;
  }

  .web-root .practice-guide-legacy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }

  .web-root .practice-guide-legacy > :is(h2,.actions,.muted,[aria-live]) {
    grid-column: 1 / -1;
  }

  .web-root .practice-guide-legacy .actions {
    margin-block: .15rem;
  }

  .web-root .practice-guide-legacy .card {
    margin: 0;
  }

  .web-root .web-settings > :is(.practice-identity,.practice-more,.muted) {
    grid-column: 1 / -1;
  }

  .web-root .web-settings .practice-identity {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    padding: 1rem 1.3rem;
    background: #eef0e6;
  }

  .web-root .web-settings .settings-group h2 {
    margin-top: 0;
    font: 700 1.25rem/1.25 var(--web-serif);
  }

  .web-root .web-settings .practice-more {
    margin: 0;
  }

  .web-root .web-settings .practice-more summary {
    font-weight: 650;
  }

  .web-root .passage-flow:not([data-passage-stage="themes"]) {
    max-width: 35rem;
    margin-inline: auto;
  }

  .web-root .passage-flow[data-passage-stage="entry"] {
    width: 100%;
    max-width: 53rem;
    gap: .75rem;
  }

  .web-root .passage-flow[data-passage-stage="entry"] .passage-top h1 {
    font: 700 clamp(2rem, 4vw, 2.65rem)/1.2 var(--web-serif);
  }

  .web-root .passage-flow[data-passage-stage="entry"] .passage-art.entry {
    flex: 0 0 2.5rem;
    min-height: 0;
    margin-inline: 0;
    background-position: center 65%;
  }

  .web-root .passage-flow[data-passage-stage="entry"] .passage-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .web-root .passage-flow[data-passage-stage="entry"] .passage-row {
    min-height: 4.5rem;
    gap: 1rem;
    border-radius: 13px;
  }

  .web-root .passage-flow[data-passage-stage="entry"] [data-action="passage-random"] {
    grid-column: 1 / -1;
    min-height: 5.3rem;
  }

  .web-root .theme-hero {
    border-radius: 16px;
    min-height: clamp(11rem, 23vw, 17rem);
  }

  .web-root .theme-directory-body {
    padding-inline: 0;
  }

  .web-root.immersive-reader #view {
    padding: 0;
  }

  .web-root.immersive-reader :is(.reader-tools,.reader-caption) {
    top: var(--web-header-height);
  }

  .web-root.immersive-reader .reader-tools:not([hidden]) {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    width: min(100%, 51rem);
    padding: .35rem .95rem;
    border-bottom: 1px solid var(--page-line);
  }

  .web-root .web-reader-heading {
    flex: 1;
    min-width: 0;
    color: var(--page-sub);
    font: 700 .95rem/1.45 var(--web-serif);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .web-root .web-reader-buttons {
    display: flex;
    flex: none;
    gap: .1rem;
  }

  .web-root .web-reader-buttons button {
    padding-inline: .55rem;
    border-radius: .5rem;
    white-space: nowrap;
  }

  .web-root .web-reader-buttons button:hover {
    background: color-mix(in srgb, var(--page-ink) 7%, var(--page));
  }

  .web-root .web-reader-buttons button svg {
    width: 1rem;
    height: 1rem;
  }

  .web-root .web-reader-buttons [data-reader-bookmark] span {
    display: inline;
  }

  .web-root.immersive-reader .reader-footer {
    justify-content: center;
    gap: .5rem;
  }

  .web-root.immersive-reader .reader-footer output {
    flex: 0 1 auto;
  }

  .web-root.immersive-reader .reader-footer [data-reader-toggle],
  .web-root .passage-reader-actions :is([data-reader-contents-open], [data-reader-player-open]) {
    display: none;
  }

  .web-root.immersive-reader .reader-surface {
    inset-block-start: calc(var(--web-header-height) + 3.65rem);
  }

  .web-root.immersive-reader .reader-player:not([hidden]) {
    top: var(--web-header-height);
  }

  .web-root .reader-contents {
    inset: 0;
    margin: auto;
    width: min(90%, 45rem);
    height: min(85dvh, 46rem);
    border-radius: 18px;
  }
}

@media (min-width: 60rem) {
  body.web-root {
    --web-header-height: 4.3rem;
  }

  .web-root #shell > header {
    flex-wrap: nowrap;
  }

  .web-root #web-nav:not([hidden]) {
    order: 0;
    flex: 1 1 auto;
  }

  .web-root #shell > header .wordmark {
    margin-inline-end: 0;
  }
}

@media (min-width: 48rem) and (max-width: 59.99rem) {
  .web-root.practice-main-tab .classic-shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
