/* Readable type over the compact phone canvas. The toolbox is already device-sized. */
@layer ar-explorer-phone-type {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] {
  --ar-phone-note:28px; --ar-phone-ui:32px; --ar-phone-body:35px;
  --ar-phone-heading:43px; --ar-phone-display:57px; --ar-phone-verse:46px;
}
@media (orientation:landscape) {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] {
  --ar-phone-note:19px; --ar-phone-ui:22px; --ar-phone-body:24px;
  --ar-phone-heading:34px; --ar-phone-display:49px; --ar-phone-verse:32px;
}
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace {
  font-size:var(--ar-phone-body)!important; min-width:0!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(p,li,dt,dd,blockquote,figcaption) {
  font-size:var(--ar-phone-body)!important; line-height:1.48!important; overflow-wrap:anywhere;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.eyebrow,.muted,.status,.ar-beta-notice-original,.scripture-format-note,.ar-library-tagline,.breadcrumb) {
  font-size:var(--ar-phone-note)!important; line-height:1.35!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(h2,h3,h4,summary strong) {
  font-size:var(--ar-phone-heading)!important; line-height:1.17!important; overflow-wrap:anywhere;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(h4,summary strong) {font-size:var(--ar-phone-body)!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #ar-library-title {
  font-size:var(--ar-phone-display)!important; line-height:1.1!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .ar-library-tagline {
  max-width:30em!important; text-wrap:balance; margin-inline:auto!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(button,summary,input,select,textarea,label,.text-link,.ar-choice) {
  font-size:var(--ar-phone-ui)!important; line-height:1.26!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(button,summary,.text-link,.ar-choice) {
  white-space:normal!important; height:auto!important; overflow-wrap:anywhere;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #global-query {
  font-size:max(40px,var(--ar-phone-body))!important; min-width:0!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #search-form {
  grid-template-columns:minmax(0,1fr) auto!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #search-form button[type=submit] {
  min-width:0!important; padding-inline:22px!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .ar-library-shortcuts {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:min(100%,710px)!important; margin-inline:auto!important; gap:8px 14px!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .ar-library-shortcuts button {
  min-width:0!important; min-height:65px!important; padding:9px 12px!important; justify-content:center!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #ar-workspace-actions {flex-wrap:wrap!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #ar-workspace-actions :is(button,summary) {
  font-size:var(--ar-phone-note)!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .reading-options-body68 {
  width:min(740px,calc(100vw - 78px))!important; max-height:65vh!important; overflow:auto!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .reading-options-controls68 {flex-wrap:wrap!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.literary-card,.reading-card,.study-card,.ar-dashboard-disclosure-copy,.ar-route-choices,.ar-library-shortcuts,.reading-tool-intro) {min-width:0!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.compare-grid,.message59-divider,.welcome-help56-grid) {min-width:0!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.compare-grid,.message56-columns) {
  grid-template-columns:minmax(0,1fr)!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .reading-tool-header {grid-template-columns:minmax(0,1fr) minmax(0,21%)!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .reading-tool-art {width:100%!important; min-width:0!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .scripture-text {
  font-size:calc(var(--ar-phone-verse) * var(--reading-scale69,1))!important; line-height:1.63!important;
  overflow-wrap:anywhere;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .scripture-text :is(p,li,.verse-text,.verse-copy) {
  font-size:inherit!important; line-height:inherit!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.scripture-text,.reading-card) :is(.verse-number,.verse-num,sup) {
  font-size:.66em!important; line-height:1!important;
}
}


@layer ar-explorer-phone-type {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .ar-dashboard-disclosure-copy>small,
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #ar-shelf-disclosure .ar-dashboard-disclosure-copy::after,
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.message56-open-label,.message56-close-label,.overview57-open-label,.overview57-close-label,.ar-feature-meta) {
  font-size:var(--ar-phone-note)!important; line-height:1.35!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #ar-visual-mode-toggle {flex:0 0 auto!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.ar-library-shortcuts,#search-form) button {min-height:76px!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #global-query {height:auto!important;min-height:76px!important;padding-inline:20px!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] .scripture-text .verse-row {
  grid-template-columns:max(1.7em,55px) minmax(0,1fr)!important; column-gap:.30em!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] .scripture-text .study-verse-pick {
  width:auto!important; min-width:1.65em!important; padding-inline:.18em!important;
  font-size:.66em!important; white-space:nowrap!important; overflow-wrap:normal!important;
  line-height:1.05!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.reader-tools,.chapter-navigation,.inline-form,.library-switch) {min-width:0!important;flex-wrap:wrap!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(input,select,textarea):not([type=checkbox],[type=range],[type=radio]) {min-width:0!important;max-width:100%!important}
}


@layer ar-explorer-phone-type {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #ar-workspace-actions > :is(button,details) {flex:0 0 auto!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #ar-workspace-actions > :is(button,details) > summary,
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #ar-workspace-actions > button,
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #ar-visual-mode-toggle {font-size:min(25px,var(--ar-phone-note))!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .scripture-text .verse-number {
  min-width:1.7em!important; width:auto!important; padding-inline:.16em!important;
  white-space:nowrap!important; overflow-wrap:normal!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.foundation-grid,.welcome-site-guide56,.fs-card-grid,.library-grid,.paths-grid):not([hidden]) {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important; gap:clamp(15px,2vw,23px)!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.foundation-grid,.welcome-site-guide56,.fs-card-grid,.library-grid,.paths-grid) > * {
  min-width:0!important; width:auto!important; max-width:none!important; grid-column:auto!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .foundation-grid > :last-child:nth-child(odd) {grid-column:1/-1!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.foundation-berean,.foundation-section) {
  width:100%!important; max-width:none!important; box-sizing:border-box!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.foundation-berean,.foundation-section,.foundation-grid > article) {
  padding:clamp(22px,3vw,36px)!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.foundation-berean,.foundation-section,.foundation-grid > article) h4 {
  font-size:var(--ar-phone-heading)!important; line-height:1.22!important; margin-block:0 .44em!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.foundation-berean,.foundation-section,.foundation-grid > article) p {
  font-size:calc(var(--ar-phone-body) * var(--reading-scale69,1))!important;
  max-width:65ch!important; margin-block:.38em .7em!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .foundation-grid > * :is(button,a) {min-height:80px!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .foundation-section:not(details)+.foundation-section {margin-block-start:18px!important}
@media (max-device-width:360px) {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.foundation-grid,.welcome-site-guide56,.fs-card-grid,.library-grid,.paths-grid):not([hidden]) {
  grid-template-columns:minmax(0,1fr)!important;
}
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit]:has([data-reading-option68="size"][data-reading-value68="extra-large"][aria-pressed="true"]) #workspace :is(.foundation-grid,.welcome-site-guide56,.fs-card-grid,.library-grid,.paths-grid):not([hidden]) {
  grid-template-columns:minmax(0,1fr)!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit]:has([data-reading-option68="spacing"][data-reading-value68="relaxed"][aria-pressed="true"]) #workspace :is(.scripture-text,.foundation-section p,.foundation-grid p) {
  line-height:1.9!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] .ar-explorer-drawer-trigger svg {width:19px!important;height:29px!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] .ar-explorer-drawer-trigger {justify-content:flex-start!important;padding-inline-start:2px!important}
}



@layer ar-explorer-phone-type {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .foundation-grid > article {
  display:flex!important; flex-direction:column!important; align-items:flex-start!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .foundation-grid > article > :is(button,a) {margin-top:auto!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.tanakh-text,.tanakh-passage,.tanakh-verse-row) :is(p,.tanakh-verse-content) {
  font-size:calc(var(--ar-phone-verse) * var(--reading-scale69,1))!important; line-height:1.6!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace :is(.foundation-section,.foundation-grid,.compare-grid,.fs-card-grid) :is(pre,code) {
  white-space:pre-wrap; overflow-wrap:anywhere;
}
}


/* Keep the desktop cards and theme; change the density, not the design. */
@layer ar-explorer-phone-type {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #panel-workshop .foundation-grid:not([hidden]) {
  grid-template-columns:minmax(0,1fr)!important;
  gap:clamp(19px,2.6vw,26px)!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #panel-workshop .foundation-grid > article {
  padding:clamp(24px,3.3vw,34px)!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #panel-workshop .foundation-grid > article h4 {
  font-size:var(--ar-phone-body)!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #panel-workshop .foundation-grid > article > :is(button,a) {
  min-height:max(72px,calc(44px * var(--ar-drawer-fit,2.5)))!important;
}
@media (orientation:landscape) and (min-device-width:620px) {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit]:not(:has([data-reading-option68="size"][data-reading-value68="extra-large"][aria-pressed="true"])) #workspace #panel-workshop .foundation-grid:not([hidden]) {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
}
}
@layer ar-explorer-phone-type {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #panel-workshop .foundation-grid {margin-block:19px 34px!important}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #panel-workshop .foundation-grid > article > :is(button,a) {
  min-height:calc(44px * var(--ar-drawer-fit,2.5))!important; box-sizing:border-box;
}
@media (orientation:portrait) {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #panel-workshop :is(.foundation-section,.foundation-grid > article) p {
  font-size:calc(max(35px, 16px * var(--ar-drawer-fit,2.5)) * var(--reading-scale69,1))!important;
}
}
}
/* Keep the PC dashboard treatment and improve the smallest labels at phone fit. */
@layer ar-explorer-phone-type {
@media (orientation:portrait) {
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .ar-library-tagline {
  font-size:max(var(--ar-phone-note),calc(13px * var(--ar-drawer-fit,2.5)))!important;
  line-height:1.45!important; max-width:34em!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .ar-library-shortcuts button {
  font-size:max(var(--ar-phone-ui),calc(13px * var(--ar-drawer-fit,2.5)))!important;
  min-height:calc(35px * var(--ar-drawer-fit,2.5))!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace .ar-dashboard-disclosure-copy > small {
  font-size:max(var(--ar-phone-note),calc(12px * var(--ar-drawer-fit,2.5)))!important;
}
html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #workspace #global-query::placeholder {
  font-size:max(29px,calc(12px * var(--ar-drawer-fit,2.5)));
}
}
}
