/* Tactile controls inspired by the supplied mint speedometer icon. */
:root{--instrument-mint:#70efbe;--instrument-white:#f3faf7;--instrument-muted:#bbcbd0;--instrument-edge:#8fbbc33d;--instrument-shadow:inset 0 1px 1px #e1ffff1f,inset 0 -1px 1px #0008,0 6px 18px #0004;--instrument-surface:radial-gradient(ellipse at 12% 0%,#344b55a6,transparent 64%),linear-gradient(145deg,#182b35,#08151e 65%,#040d15);--instrument-control:linear-gradient(145deg,#243b46,#10222d 55%,#07131d)}
body:not(.reader-page){--green:var(--instrument-mint);--mint:var(--instrument-mint);--reading-brand:var(--instrument-mint)}
body:not(.reader-page) :is(.glass,.panel,.map-card,.tips,.home-video,.archive-entry,.composer-editor,.composer-draft,.composer-next,.challenge-progress,.journey-tile,.journey-facts,.book-card,.book-invitation,.reading-note,.continue-reading,.country-reading,.country-challenge,.companion){background:var(--instrument-surface);border:1px solid var(--instrument-edge);border-radius:22px;box-shadow:var(--instrument-shadow);color:var(--instrument-white);backdrop-filter:none;-webkit-backdrop-filter:none}
body:not(.reader-page) :is(.button,.text-pill,.library-read,.saved-path-link,.login-button,.plan-link,.story-more button,.continue-reading>a,.archive-entry>a):not(:disabled),body .hero .map-card button{background:var(--instrument-control);border:1px solid #98c1ca52;border-radius:15px;box-shadow:var(--instrument-shadow);color:var(--instrument-white);text-shadow:none;min-height:46px;font-weight:650;transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
body:not(.reader-page) :is(.button.primary,.button.white,.library-read,.continue-reading>a,.archive-entry>a):not(:disabled){background:radial-gradient(ellipse at 0 0,#4c786b80,transparent 80%),linear-gradient(145deg,#173b35,#0b2826 65%,#08191c);border-color:#70efbe9c;color:#a0ffda;box-shadow:inset 0 1px 1px #c2ffe84d,inset 0 -1px 1px #0009,0 6px 20px #0005}
body .hero .hero-reading-actions .button{border-radius:16px}
body .hero .stats,body .hero .map-card{background:var(--instrument-surface);border-color:var(--instrument-edge);border-radius:22px;box-shadow:var(--instrument-shadow)}
body .hero .stats>div{border-color:#a3d5d82b}body .hero .stats strong{color:#f3faf7}body .hero .stats small,body .hero .map-card p{color:var(--instrument-muted)}
body .hero .map-card>img{border-radius:13px}
body .hero h1 em,body .hero .map-card button,body .journey-hero-copy h2,body .journey-facts a,body .journey-section .section-heading>a{color:var(--instrument-mint)}
body .hero .hero-video-link .play-icon{background:#7bf2c5;color:#09251f;box-shadow:0 0 0 5px #70efbe0f}
body #experience.experience{background:transparent;border:0;box-shadow:none}
body #experience.experience>a,body .tips-grid button,body .share-formats :is(a,button){background:var(--instrument-surface);border:1px solid var(--instrument-edge);border-radius:20px;box-shadow:var(--instrument-shadow);color:var(--instrument-white);transition:border-color .18s,box-shadow .18s,transform .18s}
body #experience.experience>a svg,body #experience.experience .path-arrow,body .tips-grid svg,body .tips-heading>svg,body .share-formats svg{color:var(--instrument-mint)}
body:not(.reader-page) :is(.route-card,.story-card,.journey-tile){border-radius:20px;overflow:hidden;border:1px solid var(--instrument-edge);box-shadow:0 5px 18px #0003}
body .route-copy{background:linear-gradient(transparent,#08151ee8 65%,#041019)}
body .journey-tile-copy,body .card-copy{background:var(--instrument-surface);color:var(--instrument-white)}
body .round-arrow{background:var(--instrument-control);border:1px solid #8fc8bb66;border-radius:50%;box-shadow:inset 0 1px 1px #e1ffff26;color:var(--instrument-mint)}
body.road-editorial .story-card{background:var(--instrument-surface);padding-bottom:0}
body.road-editorial .story-card>div{padding:20px 22px 24px}
body.road-editorial .story-card img{border-radius:0}
body.road-editorial .book-card{background:var(--instrument-surface)}
body.road-editorial .book-cover{background:#0b1821}
body.road-editorial .book-invitation a,body.road-editorial .next a{color:var(--instrument-mint)}
body.road-editorial .book-language,body .language-badge{background:#0b2226;border-color:#70efbe57;color:#abf5da;border-radius:7px}
body:not(.reader-page) :is(.route-tabs,.library-tabs,.composer-tabs,.reading-filters){background:#091820;border:1px solid #88b8c03b;border-radius:17px;box-shadow:inset 0 2px 6px #0004;padding:5px}
body:not(.reader-page) :is(.route-tabs,.library-tabs,.composer-tabs,.filters) button{color:#d2dfdf;border-radius:12px;min-height:44px}
body:not(.reader-page) :is(.route-tabs,.library-tabs,.composer-tabs,.filters) button[aria-pressed=true],body .route-tabs [aria-pressed=true]{background:linear-gradient(145deg,#234b40,#0c2c28);border:1px solid #70efbe7a;color:#9dffda;box-shadow:inset 0 1px 1px #baffdf38,0 2px 5px #0004}
body:not(.reader-page) :is(input,textarea,select){border-radius:12px;border-color:#8bb5bd66;background-color:#0b1922;color:#eef7f4;box-shadow:inset 0 2px 6px #0005}
body:not(.reader-page) :is(input,textarea)::placeholder{color:#b3c4c9}
body .site-locale select,.site-frame>.header .site-locale select{background-color:#10222dcc;border-color:#a9d9d266;border-radius:13px;box-shadow:inset 0 1px 1px #e1ffff26,0 3px 10px #0002}
body .site-locale option{background:#10222d}
body .site-frame>.header .saved-path-link{background:var(--instrument-control);border-color:#a9d9d266;border-radius:15px;box-shadow:var(--instrument-shadow);color:#eef7f4}
body .site-frame>.header .icon-button,body .road-menu,body .site-header .menu{border-radius:12px}
body .site-frame>.header .menu-toggle,body .road-menu,body .site-header .menu{background:var(--instrument-control);border:1px solid #88b8c04d;box-shadow:inset 0 1px 1px #e1ffff26}
body .freedom-link{color:#a4fbd8!important}
body :where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #70efbe;outline-offset:4px}
body:not(.reader-page) :is(.button,.library-read,.text-pill,button):disabled{opacity:.45;box-shadow:none;cursor:not-allowed;transform:none}
@media(hover:hover){
 body:not(.reader-page) :is(.button,.text-pill,.library-read,.saved-path-link,.login-button,.story-more button,.archive-entry>a):not(:disabled):hover,body .hero .map-card button:hover{background:linear-gradient(145deg,#2b4d50,#102c32);border-color:#8af9cf;color:#c3ffe8;box-shadow:inset 0 1px 1px #e1ffff38,0 7px 20px #0005;transform:translateY(-1px)}
 body #experience.experience>a:hover,body .tips-grid button:hover,body .journey-tile:hover,body .story-card:hover{border-color:#70efbe8c;box-shadow:inset 0 1px 1px #e1ffff26,0 7px 20px #0005}
}
body:not(.reader-page) :is(.button,.text-pill,.library-read,.saved-path-link):active,body #experience.experience>a:active,body .tips-grid button:active{transform:translateY(1px);box-shadow:inset 0 2px 8px #0007;border-color:#a2ffdc}
@media(max-width:600px){
 body:not(.reader-page) :is(.glass,.panel,.map-card,.tips,.home-video,.archive-entry,.composer-editor,.composer-draft,.composer-next,.journey-tile,.book-card){border-radius:18px}
 body .hero .stats{border-radius:18px}
 body #experience.experience>a{border:1px solid var(--instrument-edge);border-radius:16px;margin-bottom:8px}
 body #experience.experience>a+a{border-top:1px solid var(--instrument-edge)}
 body .hero .hero-reading-actions .button{font-size:15px;padding:12px 10px}
 body.road-editorial .story-card>div{padding:18px}
}
@media(prefers-reduced-motion:reduce){body :is(.button,.text-pill,.library-read,.saved-path-link,#experience>a,.tips-grid button){transition:none;transform:none!important}}

/* Shared treatment for every page family and dynamically opened controls. */
body:not(.reader-page){--instrument-primary:radial-gradient(ellipse at 0 0,#4c786b80,transparent 80%),linear-gradient(145deg,#173b35,#0b2826 65%,#08191c)}
body :is(.vh-button,.vh-channel-button,.vh-clear,.vh-reset,.road-btn,.edition-read,.text-button,.reading-challenge-link,.empty-state button,.journey-subnav a,.chips a,.plan-controls button,.dialog-card,.club-saved button,.reading-navigation button,.reader-tools button,.reader-primary,.reader-library,.panel-heading button,.setting-options button,.reset-settings,.bookmark-remove,.modal-close,.reading-close,.reading-search button,.composer-thumbnail .media-remove,.leaflet-popup-content button):not(:disabled){background:var(--instrument-control);color:var(--instrument-white);border:1px solid #98c1ca52;border-radius:14px;box-shadow:var(--instrument-shadow);min-height:44px;font-weight:600;text-decoration:none;transition:border-color .18s,box-shadow .18s;}
body :is(.road-btn,.edition-read,.vh-channel-button,.vh-reset,.text-button,.reading-challenge-link,.reader-primary,.reset-settings){padding:11px 18px}
body :is(.button.text){padding:11px 18px;line-height:1.4}
body :is(.edition-read,.reading-challenge-link,.reader-primary,.vh-button.primary,.road-btn:not(.secondary)){background:var(--instrument-primary,linear-gradient(145deg,#173b35,#0b2826 65%,#08191c));color:#a0ffda;border-color:#70efbe9c}
body .book-edition:is(:hover,:focus-visible) .edition-read{background:var(--instrument-control);border-color:var(--instrument-mint);color:#a0ffda}
body :is(.reader-tools button,.reader-library,.panel-heading button,.modal-close,.reading-close,.vh-clear,.reading-search button,.composer-thumbnail .media-remove,.bookmark-remove){min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px}
body :is(.vh-stage,.vh-filters,.vh-card,.vh-empty,.card,.globe-panel,.service-strip>div,.service-strip>a,.filters,.plan-row,.map-list,.story-composer,.composer-route,.composer-empty,.reading-invitation,.journey-books>a,.chapter-links>a,.journey-challenge,.journey-relief,.country-story,.statement,.feature-grid>a,.fact-card,.number-grid>div,.photo-grid article,.document-card,.reading-search,.library-search,.empty-state,.edition-notice){background:var(--instrument-surface);color:var(--instrument-white);border:1px solid var(--instrument-edge);border-radius:22px;box-shadow:var(--instrument-shadow)}
body :is(.card,.vh-card){overflow:hidden}
body .card-copy{background:transparent;color:var(--instrument-white)}
body .card :is(p,small),body .vh-card-meta,body .vh-total,body .vh-player-help,body .vh-feature-info .vh-meta{color:var(--instrument-muted)}
body .card-link,body .vh-card-category,body .vh-kicker,body .vh-now{color:var(--instrument-mint)}
body .service-strip{gap:10px;background:none;border:0;overflow:visible}
body .service-strip>a:hover{border-color:var(--instrument-mint);background:var(--instrument-control)}
body .vh-card h3{margin:0;padding:18px 18px 10px}
body .vh-card-meta{padding:0 18px 20px}
body .vh-thumb{border-radius:0;outline:none}
body .vh-card.active{border-color:var(--instrument-mint);box-shadow:0 0 0 2px #70efbe55}
body .vh-card.active .vh-thumb{outline:none}
body .vh-sequence{flex-wrap:wrap}
body .vh-tabs button,body .reading-filters button{border-radius:12px;min-height:44px;color:var(--instrument-white)}
body :is(.vh-tabs,.reading-filters) button[aria-pressed=true],body .journey-map-list button[aria-current=true],body .map-list button[aria-current=true]{background:linear-gradient(145deg,#234b40,#0c2c28);border:1px solid #70efbe7a;color:#9dffda;box-shadow:inset 0 1px 1px #baffdf38}
body .journey-map-list button,body .map-list>button{background:var(--instrument-control);border:1px solid var(--instrument-edge);border-radius:14px;color:var(--instrument-white);min-height:48px}
body .map-list{border-radius:0;padding:10px;display:flex;flex-direction:column;gap:8px}
body .map-list>button{flex-shrink:0}
body .map-list>button:hover{background:var(--instrument-control);border-color:var(--instrument-mint)}
body .journey-tile::after{background:linear-gradient(transparent 24%,#07151cc9 76%,#041019f5)}
body .journey-tile-copy{background:transparent}
body .journey-tile:has(.tile-placeholder){background:var(--instrument-surface)}
body :is(.modal,.reading-dialog,dialog:not(#reader-panel)){background:var(--instrument-surface);color:var(--instrument-white);border:1px solid var(--instrument-edge);border-radius:22px;box-shadow:0 20px 70px #0008}
body .dialog-card{overflow:hidden;padding:0;text-align:left}
body .dialog-card strong{display:block;padding:16px}
body .header nav.open,body .site-header #nav.open,body .site-header .more>div,body .road-nav.open{background:var(--instrument-surface);border-color:var(--instrument-edge);border-radius:18px;box-shadow:var(--instrument-shadow)}
body :is(.road-nav a,.header nav a,.site-header #nav>a):hover{color:var(--instrument-mint)}
body .reader-header,body .reader-bottom,body #reader-panel,body #reader-panel .panel-heading{background:var(--instrument-surface);color:var(--instrument-white);border-color:var(--instrument-edge)}
body.reader-page{--accent:#21755c}
body.reader-page[data-theme=night]{--accent:var(--instrument-mint)}
body #reader-panel{--ink:#f3faf7;--muted:#bbcbd0;--surface:#16312f;--border:#8fbbc33d;--accent:#70efbe;--highlight:#254b40;color:var(--instrument-white);color-scheme:dark}
body .reader-header .reader-book-title{background:transparent;border:0;box-shadow:none;color:var(--instrument-white);min-height:44px}
body .reader-header .reader-book-title>span{color:var(--instrument-muted)}
body .reading-navigation button{padding:8px 12px;color:var(--instrument-white);flex:1}
body .reader-tools{gap:5px}
body .reader-tools button:hover,body .panel-heading button:hover{background:var(--instrument-control);border-color:var(--instrument-mint)}
body .reading-navigation button[aria-pressed=true]{border-color:var(--instrument-mint);color:var(--instrument-mint)}
body .reader-bottom input[type=range],body #reader-panel input[type=range]{accent-color:var(--instrument-mint)}
body #reader-panel input:not([type=range]){background:#0b1922;color:var(--instrument-white);border:1px solid #8bb5bd66;border-radius:12px;min-height:46px}
body #reader-panel .toc-list button{border-radius:12px;min-height:44px}
body #reader-panel .toc-list button[aria-current=true]{background:linear-gradient(145deg,#234b40,#0c2c28);color:#9dffda}
body #reader-panel .setting-options button[aria-pressed=true]{outline-color:var(--instrument-mint)}
body :is(.vh-button,.reader-primary,.reading-navigation button,.reader-tools button,.plan-controls button):disabled{opacity:.4;box-shadow:none;cursor:not-allowed}
body .reading-search input,body .library-search input{background:transparent;border:0;box-shadow:none;border-radius:0;min-height:44px;font-size:16px}
body .composer-editor :is(input:not([type=file]),select,textarea){background:#0b1922;color:var(--instrument-white);border-color:#8bb5bd66;border-radius:12px}
body .composer-tabs{overflow-x:auto}
body .composer-tabs button{flex-shrink:0;min-width:64px}
body .composer-thumbnail .media-remove{width:44px;height:44px}
body .media-add{background:var(--instrument-control);border-color:#70efbe77;color:var(--instrument-white);border-radius:16px}
body .leaflet-popup-content-wrapper,body .leaflet-popup-tip{background:#10222d;color:var(--instrument-white)}
body .leaflet-control-zoom a{background:#10222d;color:var(--instrument-white)}
body .vh-toast,body #toast,body #reader-toast{background:#102c29;color:#b6ffe0;border:1px solid #70efbe88;border-radius:14px}
@media(hover:hover){body :is(.vh-button,.vh-channel-button,.vh-reset,.road-btn,.edition-read,.text-button,.reading-challenge-link,.journey-subnav a,.chips a,.plan-controls button,.reader-primary,.reading-navigation button,.empty-state button):not(:disabled):hover{background:var(--instrument-control);border-color:var(--instrument-mint);color:#b6ffe0}body :is(.card,.vh-card,.journey-books>a,.chapter-links>a):hover{border-color:#70efbe88}}
@media(max-width:600px){body :is(.vh-stage,.vh-filters,.vh-card,.card,.globe-panel,.filters,.plan-row,.story-composer,.reading-invitation,.journey-books>a,.chapter-links>a,.fact-card,.document-card){border-radius:18px}body .reader-tools{gap:3px}body .reader-tools button{min-width:40px;min-height:44px;padding:8px}body .reader-library{min-width:36px;padding:5px}body .reader-header{gap:4px}body .reader-book-title{max-width:calc(100vw - 190px)}body .reading-navigation{gap:6px}body .reading-navigation button{font-size:12px;padding:8px 4px}body :is(.plan-controls button,.vh-clear,.modal-close,.reading-close){min-width:44px;min-height:44px}body .composer-editor{border-radius:0}body .reading-note{padding:22px}}
/* Disabled actions retain their shape; only their emphasis changes. */
body :is(.button,.vh-button,.reader-primary,.reading-navigation button,.reader-tools button,.plan-controls button):disabled{background:var(--instrument-control);color:var(--instrument-muted);border:1px solid #98c1ca52;border-radius:14px;opacity:.4;box-shadow:none}
body .chapter-contents{background:var(--instrument-surface);color:var(--instrument-white);border:1px solid var(--instrument-edge);border-radius:18px;box-shadow:var(--instrument-shadow)}
body .chapter-contents summary{min-height:44px;display:flex;align-items:center}
body .chapter-contents a{color:#9dffda}
body .menu-toggle{border-radius:14px}
body :is(.legacy-stats,.legacy-map-card){background:var(--instrument-surface);border:1px solid var(--instrument-edge);border-radius:22px;box-shadow:var(--instrument-shadow)}
@media(max-width:600px){body .reader-tools [data-panel=contents]{display:none}}
@media(max-width:600px){body .site-header .header-main{gap:8px}body .site-header .brand{flex:1 1 auto;min-width:0}body .site-header .brand .personal-wordmark{min-width:0;max-width:100%;padding-left:0}body .site-header .brand strong{white-space:normal;font-size:13px}body .site-header .brand small{max-width:170px;font-size:9px}body .site-header .menu{width:44px;min-width:44px;height:44px;flex:0 0 44px}}
body .nav-freedom-mark{display:inline-flex;align-items:center;justify-content:center;width:23px;height:26px;overflow:hidden;background:transparent;flex:none}
body .nav-freedom-mark>svg{display:block;width:23px;height:26px;overflow:hidden;filter:none;stroke:none}
body .hero h1 em{color:#70efbe}
body .site-header .brand{flex-direction:row;align-items:center;gap:12px}
body .site-header .brand .personal-wordmark{padding-left:0}
body .composer-visual{background:#09191f}
body .composer-place{background:var(--instrument-control);color:var(--instrument-white);border-color:var(--instrument-edge);border-radius:14px;box-shadow:var(--instrument-shadow)}
@media(min-width:901px){body .road-header .road-nav{background:transparent;border:0;box-shadow:none}}
@media(max-width:600px){body .road-header .road-head-inner{width:100%;padding-inline:16px;gap:8px}body .road-header .road-brand{display:flex;flex:1 1 auto;min-width:0;align-items:center;gap:8px}body .road-header .road-brand>span{min-width:0}body .road-header .road-brand img{width:28px;height:28px;flex:none}body .road-header .road-brand strong{font:750 13px/1.2 Arial,sans-serif;white-space:normal;letter-spacing:-.02em}body .road-header .road-brand small{font:600 9px/1.35 Arial,sans-serif;white-space:normal;letter-spacing:0}body .road-header .road-menu{flex:0 0 44px;width:44px;min-width:44px;min-height:44px;padding:10px}}
