/* The same reading experience, from a phone to a desktop. */
html{-webkit-text-size-adjust:100%;scroll-padding-bottom:100px}
.main,.atlas-layout,.map-stage,.time-pane{min-width:0}
.time-heading>.eyebrow{display:none}
.time-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
.time-heading h2,.time-heading p{margin:0}
.time-controls{margin:14px 0}
.time-now{padding:10px 0;margin-bottom:16px}
.time-nearby{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:10px 0 14px;border-top:0}
.time-nearby h3{font-size:17px;line-height:1.6;margin:0;font-weight:400}
.time-nearby>div{gap:6px}
.time-nearby button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 12px;font-size:17px;line-height:1.5;border-radius:3px}
.time-nearby button[aria-pressed="true"]{border-color:var(--clay);background:#e7d5b9;color:#402c1e}
.time-nearby>p{font-size:16px;line-height:1.8;margin:0}
.time-scale-note{margin:0;font-size:16px}
.card-excerpt{font-size:14px}
.map-zoom>button{width:44px;height:44px}
.map-zoom .icon{width:18px;height:18px}
.earth-marker.compact{min-width:44px;min-height:44px}
.map-stage.earth .map-zoom{bottom:auto;top:230px}
.map-detail-link{display:inline-flex;gap:7px;align-items:center;min-height:44px;color:var(--clay);font-size:16px;text-decoration:underline;text-underline-offset:4px}
.map-detail-link>.icon{width:17px;height:17px;transform:rotate(90deg)}
.map-help-phone{display:none}
.map-intro-phone{display:none}
.inspector-heading{scroll-margin-top:24px}
@media(min-width:651px) and (max-width:1050px){
  .reading-grid,.library-grid{grid-template-columns:1fr}
  .reading-card{display:grid;grid-template-columns:145px minmax(0,1fr)}
  .card-art,.library-grid .card-art{height:100%;min-height:230px;border-bottom:0;border-right:1px solid var(--line)}
  .card-title,.library-grid .card-title{font-size:24px;min-height:0}
  .card-excerpt{font-size:16px}
  .card-meta,.card-bottom{font-size:14px}
  .home-notes{grid-template-columns:1fr}
  .home-notes p{font-size:15px}
  .home-notes h3{font-size:23px}
  .ritual-note>.text-button,.atlas-note>div>span{font-size:15px}
  .atlas-tools{gap:12px;align-items:start}
  .map-search-wrap{width:100%}
  .scope-tabs{gap:16px;flex-wrap:wrap}
}
@media(max-width:650px){
  body{font-size:16px}
  .primary-button,.secondary-button,.text-button,.reader-pagination>button{min-height:44px}
  .mobile-header{padding:14px 20px;padding-top:calc(14px + env(safe-area-inset-top));gap:12px}
  .mobile-header .icon-button,.modal-top .icon-button{width:44px;height:44px;flex-shrink:0}
  .mobile-header .icon-button>.icon,.modal-top .icon-button>.icon{width:19px;height:19px}
  .header-actions{gap:8px}
  .topbar{min-height:44px;flex-wrap:nowrap;gap:8px;padding:6px 20px}
  .topbar>div{font-size:12px;letter-spacing:.5px;gap:5px}
  .topbar-dot{width:3px;height:3px;flex-shrink:0}
  .topbar-date{font-size:var(--philo-year-size)}
  .map-workspace .topbar{display:none}
  .main{padding:18px 20px 24px}
  .home-hero{min-height:230px;padding:22px 18px 28px}
  .home-hero .eyebrow{font-size:10px;letter-spacing:.8px;white-space:normal}
  .home-hero h1{font-size:27px;letter-spacing:.5px;margin:13px 0}
  .home-hero p{font-size:16px;line-height:1.8;letter-spacing:.2px;max-width:100%}
  .home-hero>.hero-drawing{top:98px;right:2px;opacity:.22}
  .hero-stamp{font-size:13px;margin-top:18px}
  .hero-stamp>.icon{width:16px;height:16px}
  .section-heading .eyebrow,.home-notes .eyebrow{font-size:11px;letter-spacing:1px}
  .section-heading h2{font-size:23px;letter-spacing:.2px}
  .daily-count{font-size:14px;gap:6px;white-space:nowrap}
  .daily-count b{font-size:23px}
  .reading-grid{gap:16px}
  .reading-card{grid-template-columns:96px minmax(0,1fr);min-height:225px}
  .card-art>.line-art{width:114px;min-width:114px;height:150px}
  .card-art>.topic-tag{font-size:11px;left:7px;top:10px;max-width:calc(100% - 14px);padding:4px;line-height:1.5;white-space:normal}
  .card-number{font-size:25px}
  .card-content,.library-grid .card-content{padding:17px 14px}
  .card-title,.library-grid .card-title{font-size:21px;line-height:1.6;letter-spacing:.2px;margin:10px 0;min-height:0}
  .card-meta{font-size:13px;letter-spacing:0;flex-wrap:wrap}
  .card-excerpt{font-size:15px;line-height:1.8;letter-spacing:.1px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .card-bottom{font-size:13px;letter-spacing:0;margin-top:12px;padding-top:10px}
  .circle-arrow{width:26px;height:26px;flex-shrink:0}
  .read-badge{font-size:11px;padding:4px 6px}
  .home-notes{gap:16px}
  .ritual-note{padding:20px 18px 58px;min-height:160px;gap:12px}
  .ritual-note h3{font-size:20px;line-height:1.6}
  .ritual-note p,.atlas-note>div>span{font-size:15px;line-height:1.8}
  .ritual-note>.text-button{font-size:16px;min-height:44px;bottom:6px}
  .atlas-note{min-height:185px}
  .atlas-note h3{font-size:23px;line-height:1.6}
  .reading-directions>span,.reading-directions>.text-button{font-size:15px;min-height:44px;display:flex;align-items:center}
  .direction-pill{font-size:13px;padding:5px 9px}
  .mobile-nav{padding:8px max(4px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));min-height:72px}
  .mobile-nav>button{min-height:52px;min-width:0;padding:3px;width:25%;gap:5px}
  .mobile-nav>button>.icon{width:23px;height:23px}
  .mobile-nav>button>span{font-size:13px;letter-spacing:0}
  .page-footer{padding:20px 20px calc(104px + env(safe-area-inset-bottom));font-size:15px}
  .page-footer>span:first-child{font-size:22px}
  .page-intro{margin:5px 0 22px}
  .page-intro h1,.atlas-intro h1,.progress-intro h1{font-size:27px;line-height:1.55;margin:13px 0 10px;text-wrap:balance}
  .page-intro .eyebrow{font-size:12px;letter-spacing:1px;line-height:1.7}
  .page-intro p{font-size:17px}
  .atlas-intro{gap:12px;margin-bottom:10px}
  .atlas-intro h1{font-size:25px;margin:8px 0}
  .atlas-intro p{font-size:16px;line-height:1.7}
  .map-intro-desktop{display:none}
  .map-intro-phone{display:inline}
  .map-view-toggle{margin:0;min-height:48px}
  .map-view-toggle>button{font-size:17px;padding:9px 8px;min-height:44px}
  .scope-tabs{gap:9px;flex-wrap:wrap;justify-content:space-between;width:100%}
  .scope-tabs>button{font-size:16px;padding:7px 2px;min-height:44px}
  .scope-tabs small{font-size:16px;padding:0 4px}
  .atlas-tools{gap:12px;margin-bottom:16px}
  .search-field input,.search-field input::placeholder{font-size:18px}
  .map-stage.network{height:540px;min-height:0}
  #network{height:100%;min-height:0;touch-action:pan-y}
  .map-corner-label{left:16px;right:16px;top:16px;pointer-events:none}
  .map-corner-label>.eyebrow{font-size:12px;line-height:1.6;letter-spacing:.7px}
  .map-bottom-left{left:14px;bottom:14px;right:62px}
  .map-legend{flex-wrap:wrap;gap:8px}
  .map-legend>button{font-size:15px;min-height:44px;padding:2px 3px}
  .map-help-desktop{display:none}
  .map-help-phone{display:inline}
  .map-help{font-size:13px;line-height:1.7}
  .map-zoom{bottom:18px;right:12px}
  .map-stage.earth .map-zoom{top:225px;right:10px}
  .map-stage.earth .map-corner-label{padding:17px 16px 0}
  .earth-toolbar{padding:10px 12px;gap:6px}
  .earth-toolbar>button{font-size:15px;padding:7px 10px;min-height:44px}
  .earth-places{padding:14px 12px;gap:6px}
  .earth-places>button{font-size:15px;min-height:44px}
  .globe-container{height:420px;min-height:420px}
  .atlas-caption{font-size:15px;margin-top:15px}
  #map-inspector .inspector-art{height:98px;padding:6px 20px}
  #map-inspector .inspector-art>.line-art{height:88px;width:120px}
  #map-inspector .inspector-body,#map-inspector .inspector-empty{padding:22px 20px}
  .inspector-body>.eyebrow{font-size:19px}
  .inspector-body h2{font-size:30px}
  .inspector-body>p{font-size:20px}
  .location-bridge strong,.location-bridge strong small{font-size:24px;overflow-wrap:anywhere}
  .related-nodes>button,.place-connections>button{font-size:18px;min-height:52px}
  .related-nodes small{font-size:16px}
  .time-pane{padding:16px 16px 20px}
  .time-heading{display:none}
  .map-stage.time .map-corner-label{padding:17px 16px 0}
  .map-stage.time .map-corner-label>.eyebrow{display:none}
  .time-heading p{font-size:16px}
  .time-controls{gap:6px}
  .time-controls>button{min-height:44px;padding:7px 9px;font-size:15px}
  .time-now{font-size:15px;gap:4px 10px}
  .time-now>span:last-child{font-size:14px}
  .time-scrubber-label{font-size:16px}
  .time-nearby{display:block}
  .time-nearby h3{font-size:16px;margin:0 0 7px}
  .time-nearby button{font-size:16px;padding:6px 10px}
  .time-scale-note{font-size:15px}
  .topic-tabs>button{font-size:15px;min-height:44px;padding:8px 11px}
  .topic-tabs{margin-right:-20px;padding-right:20px}
  .library-meta{font-size:14px;line-height:1.8}
  .reader-topline>.text-button{font-size:16px;min-height:44px}
  .reader-topline>span{font-size:16px;gap:5px}
  .reader-topline .icon-button{width:44px;height:44px}
  .reading-illustration{height:180px}
  .reading-body{padding:25px 22px}
  .reading-body>.topic-tag{font-size:13px}
  .reading-body h1{font-size:29px;line-height:1.6}
  .reader-author,.illustration-caption{font-size:14px;line-height:1.7}
  .story-text{font-size:23px;line-height:2;letter-spacing:.5px}
  .term-hint,.source-line{font-size:15px;line-height:1.8}
  .insight-toggle{padding:14px 0;min-height:60px}
  .insight-toggle>.eyebrow{font-size:10px;letter-spacing:1px}
  .insight-toggle>span:nth-child(2){font-size:16px}
  .insight-body{padding:6px 20px 24px}
  .insight-body h2{font-size:23px}
  .insight-body p{font-size:18px;line-height:1.9}
  .reader-actions>.primary-button,.reader-actions>.secondary-button{font-size:17px;min-height:48px}
  .reader-pagination{font-size:15px}
  .stat-card{padding:16px 10px}
  .stat-card>span{font-size:13px;white-space:normal;line-height:1.6}
  .stat-card>div{font-size:43px;margin:12px 0 7px}
  .stat-card>div>small{font-size:13px}
  .stat-card p{font-size:13px;line-height:1.7;letter-spacing:0}
  .week-section{padding:22px 18px}
  .week-section .eyebrow,.topic-progress-body>.eyebrow{font-size:11px;letter-spacing:.7px}
  .week-section h2{font-size:22px}
  .week-section p,.week-day>span,.topic-progress-meta,.progress-note{font-size:15px;line-height:1.8}
  .week-days{gap:4px}
  .day-circle{width:32px;height:32px;font-size:16px}
  .progress-denominator{font-size:13px;line-height:1.7}
  .topic-progress-art{width:76px;min-width:76px}
  .topic-progress-body{padding:18px 15px 18px 0;min-width:0}
  .topic-progress-heading{font-size:21px;line-height:1.6;gap:6px}
  .modal{border-radius:20px 20px 0 0;padding:22px 22px calc(26px + env(safe-area-inset-bottom));max-height:calc(100dvh - 16px);overscroll-behavior:contain}
  .modal-top{margin-bottom:15px;gap:12px}
  .modal-top .eyebrow{font-size:11px;letter-spacing:.8px}
  .modal-subtitle{font-size:16px;line-height:1.8}
  .term-kind,.term-language small,.term-saved{font-size:15px}
  .term-explanation{font-size:19px}
  .term-modal-actions{flex-wrap:wrap}
  .term-modal-actions>.primary-button,.term-modal-actions>.secondary-button{font-size:16px;min-height:48px;flex:1;white-space:nowrap}
  .topic-option{min-height:88px;padding:12px;gap:10px}
  .topic-option b{font-size:20px}
  .topic-option small{font-size:15px;line-height:1.6}
  .topic-selection-bottom{gap:8px;flex-wrap:wrap}
  .topic-selection-bottom>span{font-size:15px}
  .topic-selection-bottom>.primary-button{font-size:16px;min-height:48px}
  .topics-timing,.done-stats,.done-modal .modal-subtitle{font-size:15px;line-height:1.8}
  .account-summary,.account-note,.account-sync,#account-error{font-size:16px;line-height:1.8}
  .account-modal>.primary-button,.account-bottom>.text-button,#account-form>.primary-button{font-size:16px;min-height:48px}
  #account-form>label{font-size:16px}
  .toast{bottom:calc(86px + env(safe-area-inset-bottom));font-size:15px;padding:11px 17px;max-width:calc(100% - 32px);line-height:1.6}
}
@media(max-width:365px){
  .main,.topbar,.mobile-header{padding-left:16px;padding-right:16px}
  .home-hero{padding-left:15px;padding-right:15px}
  .home-hero h1{font-size:24px}
  .home-hero p{font-size:15px;max-width:100%}
  .section-heading h2{font-size:21px}
  .section-heading{gap:8px}
  .reading-card{grid-template-columns:84px minmax(0,1fr)}
  .card-art>.line-art{width:100px;min-width:100px}
  .card-content,.library-grid .card-content{padding:16px 12px}
  .card-title,.library-grid .card-title{font-size:20px}
  .mobile-nav>button>span{font-size:12px}
  .scope-tabs>button{font-size:15px}
  .scope-tabs{gap:7px}
  .time-controls>button{font-size:14px;padding:7px 8px}
  .topic-tabs{margin-right:-16px;padding-right:16px}
  .term-modal{padding-left:18px;padding-right:18px}
  .stat-card>span,.stat-card p{font-size:12px}
}
/* A visible account entry and a readable, optional email prompt. */
.page-footer{flex-wrap:wrap;gap:8px 20px}.footer-legal{display:flex;flex-wrap:wrap;gap:0 16px;flex-basis:100%;width:100%}.footer-legal a,.footer-legal button{display:inline-flex;align-items:center;min-height:44px;color:var(--olive);font-size:14px;text-decoration:underline;text-underline-offset:3px}.catalogue-note{font-size:14px;line-height:1.8;color:var(--muted);margin:18px 0 4px}#account-email-controls>.primary-button{width:100%;min-height:50px;font-size:16px}.account-email-preference{display:flex;min-height:44px;align-items:center;font-size:15px;text-decoration:underline;text-underline-offset:3px}.account-modal{max-height:calc(100dvh - env(safe-area-inset-top) - 16px)}@media(max-width:650px){.footer-legal a,.footer-legal button{font-size:15px}.catalogue-note{font-size:15px}}
.account-entry{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:999px;color:var(--olive);background:var(--card);font-size:14px;white-space:nowrap;cursor:pointer}
.account-entry>.icon{width:18px;height:18px}
.account-entry:hover{background:var(--paper)}
.account-modal #account-form>label{font-size:15px}
.account-modal #account-form input{min-height:50px;font-size:16px;border-radius:8px}
.account-modal #account-form>.primary-button{min-height:50px;font-size:16px}
.account-modal .account-note,.account-modal #account-error{font-size:14px;line-height:1.8}
.account-modal .account-guest{min-height:44px;display:flex;margin:18px auto 0;font-size:15px;align-items:center;justify-content:center}
.account-modal button:disabled{opacity:.55;cursor:default}
.account-privacy{display:flex;justify-content:center;align-items:center;min-height:44px;font-size:14px;color:var(--muted);text-underline-offset:3px}
@media(max-width:650px){.topbar>.account-entry{display:none}}
@media(max-width:650px){.account-entry{font-size:15px;min-width:76px;padding:0 10px}.account-modal .account-note,.account-modal #account-error{font-size:16px}}

.account-code-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.account-code-actions>.text-button{min-height:44px;font-size:14px}.account-delete-link{display:block;color:#8b4b37;min-height:44px;font-size:14px;margin:16px auto 0}.account-delete-confirm{background:#88462e;width:100%;min-height:50px;margin-top:24px}.account-delete-modal{width:450px}.account-delete-modal .account-guest{display:flex;justify-content:center;min-height:44px;margin:16px auto 0}@media(max-width:650px){.account-code-actions>.text-button,.account-delete-link{font-size:16px}.account-delete-modal{width:100%}}
