@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
:root{--navy:#14243e;--deep:#0d1b31;--gold:#d8b667;--gold2:#f2d493;--muted:#6e7785;--light:#f6f6f4;--line:#e5e7ea;--dark:#222e40;--cream:#fff9ea}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--dark);background:white;font-family:'DM Sans',Arial,sans-serif;font-size:15px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.wrap{max-width:1260px;margin:auto;padding:0 28px}h1,h2,h3,h4,p{margin:0}h1,h2,.serif{font-family:'Playfair Display',Georgia,serif}h1{font-size:clamp(32px,4.2vw,54px);line-height:1.17;letter-spacing:-.6px}h2{font-size:clamp(26px,2.8vw,36px);line-height:1.2}.muted{color:var(--muted)}.tiny{font-size:12px}.gold-text{color:var(--gold)}.eyebrow{letter-spacing:2.1px;text-transform:uppercase;font-size:11px;font-weight:700;color:var(--gold)}.topbar{background:var(--navy);color:#fff}.topinner{display:flex;align-items:center;min-height:95px;gap:26px}.brand{display:flex;align-items:center;min-width:230px}.brand img{width:258px;height:82px;object-fit:contain;object-position:left center}.nav{margin-left:auto;display:flex;gap:28px;align-items:center;font-size:13px}.nav a{opacity:.86}.nav a:hover,.nav a.active{color:var(--gold2);opacity:1}.topactions{display:flex;gap:12px;align-items:center}.circle-button{border:1px solid #687690;border-radius:50%;color:var(--gold);background:transparent;width:36px;height:36px;font-size:23px}.outline-button{color:#fff;background:none;border:1px solid #a9a9a9;border-radius:5px;padding:8px 15px;font-size:13px}.outline-button:hover{border-color:var(--gold);color:var(--gold)}.preview-ribbon{background:#fff5dc;color:#584318;font-size:12px;text-align:center;padding:8px 24px;border-bottom:1px solid #ecd79d}.hero{background:linear-gradient(110deg,#11223c 0%,#142d4a 54%,#0c1b31 100%);overflow:hidden;color:white}.hero-inner{min-height:270px;display:flex;align-items:center;gap:50px;justify-content:space-between;padding-top:32px;padding-bottom:32px}.hero-copy{max-width:600px}.hero h1{margin:11px 0 15px}.hero h1 em{color:var(--gold);font-style:normal}.hero p{font-size:15px;color:#d7dee8;max-width:590px;line-height:1.8}.hero-visual{flex:0 0 37%;display:flex;position:relative;justify-content:center}.hero-visual img{width:280px;border-radius:9px;box-shadow:0 20px 40px #050e1d75;transform:rotate(-5deg);border:5px solid #22334a}.hero-free{width:155px!important;position:absolute;right:-7px;bottom:-18px;transform:rotate(8deg)!important}.benefits{background:#f8f9f9;border-bottom:1px solid var(--line)}.benefits-inner{display:flex;justify-content:space-between;align-items:center;padding-top:15px;padding-bottom:15px;gap:14px;font-size:13px}.benefits b{color:#b58d3f;margin-right:8px}.main-area{padding-top:40px;padding-bottom:80px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.section-head h2{margin:6px 0 8px}.section-head p{font-size:13px;color:var(--muted)}.search{border:1px solid #dce0e5;border-radius:8px;background:#fff;padding:12px 15px;min-width:230px;outline-color:var(--gold)}.country-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px 19px}.country-tile{border:1px solid #ecebeb;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 2px 10px #18233809;transition:transform .2s,box-shadow .2s}.country-tile:hover{transform:translateY(-3px);box-shadow:0 10px 26px #19243718}.tile-image{display:block;width:100%;aspect-ratio:1.75;object-fit:cover;background:var(--navy)}.tile-content{padding:14px 14px 16px}.tile-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.tile-name{font-weight:700;font-size:16px}.country-region{font-size:11px;color:var(--muted)}.tile-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eee;padding:11px 0 0;margin-top:10px;font-size:12px}.tile-row .label-gold{color:#916918}.tile-row .label-green{color:#338167}.tile-row span:last-child{font-weight:700}.text-link{color:#ae8638;font-weight:700;font-size:13px}.text-link:hover{text-decoration:underline}.detail-head{background:var(--navy);color:#fff;padding:29px 0 36px}.back-link{font-size:12px;color:#cdd7e4;display:inline-block;margin-bottom:20px}.detail-heading{display:grid;grid-template-columns:290px 1fr;gap:38px;align-items:center}.detail-heading>img{width:100%;height:auto;border-radius:8px;box-shadow:0 15px 32px #030e1c99}.detail-heading h1{font-size:clamp(30px,3.6vw,46px);margin:8px 0 15px}.detail-heading p{color:#d8e0ec;max-width:580px}.detail-stats{display:flex;gap:20px;margin-top:17px;font-size:13px;color:#f1dec0}.action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.button{border:0;display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:6px;padding:11px 17px;font-weight:700;font-size:13px;transition:filter .18s;cursor:pointer}.button:hover{filter:brightness(.94)}.button.gold{background:linear-gradient(130deg,#f1d695,#d4ab55);color:#242b39}.button.navy{background:var(--navy);color:#fff}.button.light{background:#fff;color:var(--navy);border:1px solid #ccd2d8}.button.soft{background:#f3f5f7;color:#223b56}.button:disabled{opacity:.5;cursor:not-allowed}.detail-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:25px;align-items:start;margin-top:29px}.sidebar{border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden;position:sticky;top:20px;max-height:85vh;display:flex;flex-direction:column}.sidebar h3{font-family:'DM Sans',Arial,sans-serif;font-size:14px;letter-spacing:.3px}.sidebar-top{padding:18px;border-bottom:1px solid var(--line);flex:none}.sidebar-top small{font-size:11px;color:var(--muted)}.sidebar-list{overflow:auto;padding:8px}.toc-item{display:flex;justify-content:space-between;align-items:flex-start;gap:11px;border:0;background:transparent;border-radius:5px;padding:10px 11px;color:#344158;text-align:left;width:100%;font-size:12px}.toc-item:hover{background:#f5f6f8}.toc-item.active{background:#f9efd5;color:#634719;font-weight:700}.toc-item small{font-size:11px;white-space:nowrap;color:#8d97a4}.reader-card{border:1px solid var(--line);background:#fff;border-radius:11px;overflow:hidden}.reader-nav{padding:14px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.reader-nav strong{font-size:13px}.reader-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.tool{border:1px solid #d9dfe6;background:#fff;border-radius:6px;padding:7px 10px;color:#36455b;font-size:12px}.tool.on,.tool:hover{border-color:var(--gold);background:#fbf5e8}.page-stage{background:#f2f3f5;min-height:380px;padding:22px;display:flex;justify-content:center;align-items:flex-start}.page-paper{max-width:760px;margin:auto;min-width:0;width:100%;background:#fff;box-shadow:0 5px 23px #101a2830;border-radius:4px}.page-paper img{display:block;width:100%;height:auto}.page-text{white-space:pre-wrap;word-break:break-word;font-size:15px;line-height:1.75;padding:34px 38px;color:#29364d;min-height:400px}.locked{text-align:center;padding:55px 30px;max-width:600px;margin:auto}.locked .lockicon{font-size:35px;color:#9f762c}.locked h3{font-family:'Playfair Display',Georgia,serif;font-size:24px;margin:11px 0}.locked p{font-size:13px;color:var(--muted);margin-bottom:20px}.reader-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;border-top:1px solid var(--line)}.reader-footer span{font-size:12px;color:var(--muted)}.assist-panel{margin-top:17px;border:1px solid var(--line);border-radius:11px;padding:20px;background:#fff}.assist-panel h3{font-size:16px;font-family:'DM Sans',Arial,sans-serif;margin-bottom:5px}.assist-panel p{font-size:12px;color:var(--muted)}.assist-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.assist-panel label{display:block;font-size:12px;font-weight:700;margin:11px 0 5px}.assist-panel select,.assist-panel textarea{width:100%;padding:10px;border:1px solid #d9dfe6;border-radius:6px;background:#fff;font-size:13px;outline-color:var(--gold)}.assist-panel textarea{resize:vertical;min-height:72px}.audio-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.notice{margin-top:9px;padding:9px 11px;background:#faf5e8;border-left:3px solid var(--gold);font-size:11px;color:#735b2a}.free-card{margin-top:25px;border:1px solid #e8e8e8;border-radius:10px;overflow:hidden;background:#fff}.free-card .free-header{background:#f6f6f4;padding:14px 18px;font-size:15px;font-weight:700;display:flex;justify-content:space-between;align-items:center}.free-content{display:grid;grid-template-columns:220px 1fr;gap:23px;padding:20px}.free-content img{width:100%;max-height:330px;object-fit:contain;box-shadow:0 4px 16px #26314320}.free-content p{font-size:14px;color:var(--muted);margin-bottom:14px}.free-content .free-actions{display:flex;flex-wrap:wrap;gap:10px}.card-visual{max-width:530px;width:100%;margin:15px auto 4px;display:block;box-shadow:0 8px 30px #12213a21}.content-nav{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.pill{font-size:11px;font-weight:700;border-radius:100px;padding:4px 9px;display:inline-block;background:#f2f5fa;color:#40526b}.pill.free{background:#e3f3eb;color:#287453}.library-empty{padding:55px 20px;text-align:center;max-width:640px;margin:auto}.library-empty h2{margin-bottom:12px}.library-empty p{color:var(--muted);margin-bottom:19px}.about{max-width:780px;margin:auto;padding-top:48px;padding-bottom:65px}.about h1{margin:13px 0 21px}.about p{margin:15px 0;font-size:16px;color:#556071}.footer{background:var(--deep);color:#fff;margin-top:20px;padding:23px 0}.foot-wrap{display:flex;align-items:center;gap:22px;font-size:13px}.foot-wrap img{width:160px;height:60px;object-fit:contain}.foot-wrap small{color:#98a9ba}.foot-wrap a{margin-left:auto;color:var(--gold2)}.modal-overlay{position:fixed;inset:0;z-index:40;background:#081527bb;display:flex;justify-content:center;align-items:center;padding:20px}.modal{position:relative;max-width:490px;width:100%;border-radius:12px;background:#fff;padding:31px;box-shadow:0 30px 70px #071b3480}.modal h2{font-size:29px;margin-bottom:12px}.modal p{color:#647181;font-size:14px;margin:10px 0 17px}.modal label{display:block;margin:14px 0 5px;font-size:12px;font-weight:700}.modal input{width:100%;padding:12px;border-radius:6px;border:1px solid #cfd5dd;margin-bottom:16px}.modal-close{position:absolute;right:12px;top:11px;background:transparent;border:0;font-size:28px;color:#738095}.hidden{display:none!important}#toast{position:fixed;right:22px;bottom:22px;z-index:60;background:#152541;color:#fff;border-radius:7px;padding:12px 18px;box-shadow:0 8px 35px #121a2850;display:none;font-size:13px}#toast.show{display:block}.section-hr{margin:27px 0;border:0;border-top:1px solid #e8e8e8}
@media(max-width:1100px){.country-grid{grid-template-columns:repeat(3,1fr)}.hero-visual{flex-basis:30%}.hero-visual img{width:210px}.hero-free{width:112px!important}.detail-layout{grid-template-columns:225px 1fr}.wrap{padding:0 20px}}
@media(max-width:760px){.topinner{min-height:72px}.brand{min-width:0}.brand img{width:190px;height:60px}.nav{display:none}.hero-inner{min-height:260px}.hero-visual{display:none}.benefits-inner{flex-wrap:wrap;justify-content:flex-start;gap:8px 19px}.country-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head{align-items:start;flex-direction:column}.section-head .search{width:100%}.detail-heading{grid-template-columns:145px 1fr;gap:18px}.detail-heading h1{font-size:28px}.detail-layout{display:flex;flex-direction:column}.sidebar{width:100%;position:relative;top:auto;max-height:290px}.reader-card,.free-card{width:100%}.assist-grid{grid-template-columns:1fr}.page-stage{padding:8px}.page-text{padding:22px 20px}.free-content{grid-template-columns:145px 1fr;gap:12px}.foot-wrap{flex-wrap:wrap}.foot-wrap a{margin:0}}
@media(max-width:500px){.wrap{padding-left:15px;padding-right:15px}.topactions{gap:6px}.outline-button{font-size:11px;padding:7px}.circle-button{width:31px;height:31px}.brand img{width:170px}.country-grid{grid-template-columns:1fr 1fr;gap:13px}.tile-name{font-size:13px}.tile-content{padding:10px}.tile-row{font-size:10px}.detail-heading{grid-template-columns:1fr}.detail-heading>img{width:190px}.free-content{grid-template-columns:1fr}.free-content img{max-width:230px}.page-text{font-size:13px}.topinner{gap:8px}.foot-wrap img{display:none}}

/* Reader controls: same previous/next navigation above and below each page. */
.reader-footer-top{border-top:0;border-bottom:1px solid var(--line);background:#fafbfc}.reader-original-label{font-size:12px;color:#607080}.card-extra{max-width:530px;margin:16px auto;border:1px solid var(--line);border-radius:7px;padding:12px 15px}.card-extra summary{cursor:pointer;font-size:13px;font-weight:600}.card-extra img{width:100%;height:auto}
@media(max-width:500px){.reader-footer{padding:10px;gap:8px}.reader-footer .button{padding:9px 10px;font-size:12px}.reader-footer span{font-size:11px;text-align:center}}

/* V8: approved compact card layout and right-hand globe, keeping the original palette */
.topinner{min-height:96px}.brand{min-width:310px}.brand img{width:330px;height:91px}
.hero-v8{background:linear-gradient(112deg,#0b213e,#0b2343 65%,#081a31)}
.hero-v8 .hero-inner{min-height:282px;padding-top:22px;padding-bottom:22px;gap:20px}
.hero-v8 .hero-copy{max-width:625px;z-index:1}.hero-globe{flex:1;justify-content:flex-end;align-self:stretch;overflow:visible;min-width:325px}
.hero-globe img{width:100%;height:300px;min-width:450px;max-width:610px;position:absolute;right:-66px;top:-11px;object-fit:cover;object-position:right center;border:0;border-radius:0;box-shadow:none;transform:none;mask-image:linear-gradient(to right,transparent,#000 14%,#000 95%,transparent)}
.country-grid{gap:15px 17px}.v8-tile{border-radius:11px;border-color:#d9dee5;overflow:hidden;box-shadow:0 2px 8px #1d2c4510}
.tile-cover{background:linear-gradient(125deg,#163657,#10223d);min-height:116px;display:flex;align-items:center;justify-content:space-between;padding:11px 10px 11px 16px;gap:8px}
.tile-small-cover{width:39%;min-width:75px;max-width:116px;aspect-ratio:1.78;object-fit:cover;object-position:center;box-shadow:0 4px 9px #00152c60;border-radius:4px;transform:rotate(-2deg)}
.tile-country{display:flex;align-items:center;gap:10px;color:white;font:700 21px 'Playfair Display',Georgia,serif;min-width:0;line-height:1.15}.tile-flag{font:normal 25px Arial,sans-serif;flex:none}
.tile-actions{display:flex;gap:7px;padding:8px;background:#fff}.mini-cta{display:flex;flex:1;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;padding:8px 7px;border-radius:6px;border:1px solid #e9cb8d;min-width:0}
.mini-cta span{margin-left:5px}.mini-free{color:#86601c;background:#fff8e9}.mini-full{color:#fff;background:#14355c;border-color:#14355c}.mini-cta:hover{filter:brightness(.93)}
.card-page-nav{display:flex;justify-content:space-between;align-items:center;padding:13px 17px;gap:9px;border-bottom:1px solid #e4e8ef}.card-page-nav:last-child{border-top:1px solid #e4e8ef;border-bottom:0}
.card-page-nav strong{font-size:13px;color:#516073}.card-page-stage{background:#f3f5f7;padding:17px 8px;display:flex;justify-content:center}.card-page-stage .card-visual{max-width:690px;margin:0;width:100%;box-shadow:0 6px 20px #1723381c}
.disabled-link{pointer-events:none;opacity:.4}
.phrase-detail{background:#f9f4e9;color:#685027;padding:9px 11px;border-radius:6px;font-size:12px;min-height:37px;margin-top:8px}
.sample-link{display:inline-block;margin-top:11px;text-decoration:underline;color:#805d22;font-size:12px;font-weight:700}
.translation-page{background:#fff;box-shadow:0 5px 23px #101a2830;border-radius:5px;max-width:770px;padding:38px 38px 28px;width:100%}.translation-kicker{font-size:11px;color:#af8940;font-weight:700;letter-spacing:1.4px;margin-bottom:9px}.translation-page h2{font-size:31px;line-height:1.22;margin-bottom:12px;color:#14243e}.translation-intro{font-size:15px;color:#566477;margin-bottom:18px}.translation-sections{display:grid;grid-template-columns:1fr 1fr;gap:14px}.translation-sections section{background:#fcfbf8;border:1px solid #e7e4de;padding:14px;border-radius:7px}.translation-sections h3{font:700 16px Georgia,serif;color:#16345a;margin-bottom:8px}.translation-sections p{font-size:12px;line-height:1.65;color:#38475d}.translation-notice{margin-top:15px;font-size:11px;color:#755b31;border-top:1px solid #e7d6b4;padding-top:10px}
@media (max-width:1100px){.tile-actions{flex-direction:column}.tile-cover{min-height:100px}.hero-globe img{right:-25px;min-width:330px}.brand img{width:280px}.brand{min-width:260px}}
@media (max-width:760px){.hero-v8 .hero-inner{min-height:240px}.hero-globe{min-width:0;opacity:.35;position:absolute;right:0;top:0;height:100%;width:70%;z-index:0}.hero-v8{position:relative}.hero-v8 .hero-copy{z-index:2}.hero-globe img{min-width:300px;max-width:100%;height:100%;right:0;top:0}.tile-actions{flex-direction:row}.brand img{width:225px}.brand{min-width:180px}.translation-page{padding:24px 16px}.translation-sections{grid-template-columns:1fr}}
@media (max-width:520px){.tile-actions{flex-direction:column}.tile-country{font-size:17px}.tile-cover{min-height:95px}.mini-cta{font-size:10px}}

/* Avoid truncation on four-column guide tiles */
.mini-cta{font-size:10px;padding:7px 6px;letter-spacing:-.15px}.mini-cta span{margin-left:2px}.tile-country{font-size:20px}

/* V9: Retain approved white page, navy tiles, flags and exact official artwork. */
.tile-cover{height:99px;min-height:99px;padding:4px 7px 4px 14px}
.tile-small-cover{height:99px;width:auto;max-width:40%;min-width:0;aspect-ratio:auto;object-fit:contain;object-position:right center;box-shadow:none;border-radius:0;transform:none}
.tile-country{font-size:19px;line-height:1.05;gap:8px}.tile-flag{font-size:25px}
.tile-actions{gap:6px;padding:6px}.mini-cta{font-size:10px;white-space:nowrap;padding:7px 6px}
.reading-language-control{font:700 12px Arial,sans-serif;display:flex;align-items:center;gap:8px;color:#283c58}
.reading-language-control select{max-width:230px;min-width:160px;padding:8px 10px;background:#fff;border:1px solid #bdc6d1;border-radius:6px;color:#172845;font-weight:600;font-size:12px}
.translation-status{margin:0;padding:10px 15px;background:#eff5fb;color:#24445f;font-size:12px;border-bottom:1px solid #dce5ef;line-height:1.5}
.translation-status.warning{background:#fff6e7;color:#685226}.translation-status.success{background:#eff8f1;color:#35644a}.translation-status[hidden]{display:none}
.reader-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.translation-prose{max-width:650px;margin:auto}.translation-prose h3{font-family:Georgia,serif;font-size:19px;color:#183151;margin:19px 0 8px;line-height:1.4}
.translation-prose p{color:#29384f;font-size:15px;line-height:1.75;margin:14px 0;white-space:normal}
.audio-panel{padding:22px}.audio-panel>.phrase-control{max-width:650px}.phrase-detail{font-size:14px;line-height:1.5;margin-top:15px;background:#f9f4e9;padding:14px 15px}
.local-expression{font-size:21px;font-weight:700;color:#102744}.roman-expression{font-size:14px;font-style:italic;color:#5d7188;margin:4px 0}
.meaning-expression{font-size:14px;color:#685027;font-weight:600;margin-top:5px}
.about p{line-height:1.8}.about strong{color:#1b2d49}
@media(max-width:1000px){.reader-nav{flex-wrap:wrap;gap:12px}.reader-tools{margin-left:0}.reading-language-control select{min-width:135px}}
@media(max-width:500px){.reader-tools{justify-content:flex-start;width:100%}.reading-language-control{width:100%}.reading-language-control select{flex:1;max-width:100%}.tile-small-cover{max-width:40%;height:91px}.tile-cover{height:91px;min-height:91px}.mini-cta{font-size:9px}}

/* v10: official flags and approved founder portrait, without changing homepage layout */
.tile-flag{display:inline-flex;align-items:center;justify-content:center;width:40px;height:31px;flex:none}
.tile-flag-img{display:block;width:38px;height:28px;object-fit:contain;border-radius:2px;box-shadow:0 1px 3px #0002}
.about-founder-layout{display:grid;grid-template-columns:250px minmax(0,1fr);align-items:start;gap:32px;margin-top:21px}
.about-founder-layout h1{margin-top:0}.founder-portrait{margin:0;border:1px solid #e5e7ea;border-radius:10px;overflow:hidden;background:#f4f4f4}
.founder-portrait img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center 22%}
.founder-portrait figcaption{font:12px Arial,sans-serif;text-align:center;padding:10px;color:#516075}
@media(max-width:700px){.about-founder-layout{grid-template-columns:1fr}.founder-portrait{max-width:270px}}

/* v10.1 usability pass: retained approved artwork, logo and palette */
.topbar{border-bottom:2px solid var(--gold)}
.hero-v8 h1{font-size:clamp(28px,4.3vw,49px)}
.mobile-menu-toggle{display:none;border:1px solid #e7c67d;background:transparent;color:#f2d493;font-size:23px;border-radius:6px;width:39px;height:38px;cursor:pointer}
.mobile-nav[hidden]{display:none!important}
.mobile-nav{background:#1a3151;display:flex;flex-direction:column;padding:12px 20px;gap:4px}
.mobile-nav a,.mobile-nav button{display:block;text-align:left;border:0;background:none;color:white;padding:11px 8px;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer}
.mobile-nav a:focus-visible,.mobile-nav button:focus-visible,.mobile-menu-toggle:focus-visible,.chapters-toggle:focus-visible{outline:3px solid #e6b75c;outline-offset:2px}
.chapters-toggle{display:none;border:1px solid #dec181;border-radius:7px;background:#fcf6e9;color:#243a59;padding:12px 14px;font-weight:700;cursor:pointer;text-align:left;width:100%}
.toc-item span{overflow-wrap:anywhere;line-height:1.4}
.library-guide{min-width:0}
.library-guide .country-tile{height:calc(100% - 42px)}
.continue-guide{display:block;border:1px solid #d6b16b;border-radius:6px;background:#fbf6e8;color:#14243e;text-align:center;padding:8px;margin-top:8px;font-weight:700;font-size:12px;text-decoration:none}
@media(max-width:760px){
 .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center}
 .topactions{margin-left:auto}
 .topactions #installBtn{display:none}
 .topactions #accountBtn{display:none}
 .topinner{min-height:74px}
 .chapters-toggle{display:block;order:0}
 .detail-layout>.sidebar{display:none;order:1;max-height:55vh;position:relative;width:100%}
 .detail-layout>.sidebar.mobile-open{display:flex}
 .detail-layout>div:last-child{order:2;width:100%;min-width:0}
 .reader-footer-top{position:sticky;top:0;z-index:9;box-shadow:0 2px 7px #152a4217}
 .hero-v8 h1{font-size:clamp(25px,5.8vw,34px);line-height:1.16}
 .hero-v8 .hero-inner{min-height:205px}
 .reader-nav{padding:10px}
 .page-stage{overflow-x:auto;justify-content:flex-start}
 .page-paper{margin:0 auto}
 .page-stage.zoomed-page .page-paper{min-width:650px;margin:0}
 .page-stage.zoomed-page .page-paper img{width:100%;max-width:none}
 .tile-actions .mini-full{font-weight:800}
}
@media(min-width:761px){.topactions .install-label{background:#d8b667;color:#152541;border-color:#d8b667}}
@media(max-width:500px){.brand img{width:min(43vw,180px);height:auto}.hero-v8 h1{font-size:26px}.reader-footer span{white-space:nowrap}.reader-footer .button{font-size:11px;padding:8px}.detail-heading{margin-bottom:12px}}

/* Japan full translation text: keep paragraphs, diagram labels and headings readable */
.translation-page .translation-intro,.translation-page .translation-sections p{white-space:pre-line;overflow-wrap:anywhere}
.translation-page,.translation-sections,.translation-sections section{min-width:0;box-sizing:border-box}
.translation-page h2,.translation-sections h3{overflow-wrap:anywhere}

/* v10.1.2 verified owner review controls */
.page-stage {overflow-x:auto;justify-content:center;display:block;text-align:center;}
.page-stage .page-paper {width:100%;max-width:760px;display:block;margin:0 auto;}
.page-stage .page-paper img {display:block;width:100%;height:auto;}
.page-stage.zoomed-page {text-align:left;}
.page-stage.zoomed-page .page-paper {width:145%;min-width:145%;max-width:none;margin:0;}
.page-stage.zoomed-page .page-paper img {width:100%;max-width:none;}
.reader-card {scroll-margin-top:12px;}
#versionBadge {font-size:11px;color:#adbfd6;margin:0 12px;}

/* Owner review v10.1.3: scrollable reader with incremental zoom and drag */
.page-stage{display:block;overflow:auto;max-width:100%;overscroll-behavior:contain;touch-action:pan-x pan-y;max-height:80vh;}
.page-stage .page-paper,.page-stage .translation-page{margin:0 auto;box-sizing:border-box;}
.page-stage.reader-is-zoomed{cursor:grab;}
.page-stage.reader-dragging{cursor:grabbing;user-select:none;}
.page-stage.reader-dragging img{pointer-events:none;}
.zoom-percent{font-size:12px;min-width:40px;text-align:center;color:#3f5066;font-variant-numeric:tabular-nums;}
@media (max-width:760px){.page-stage{max-height:72vh;padding:12px;touch-action:pan-x pan-y;}}

/* v10.1.4 visual polish, retain the user-approved official assets */
:root{--navy:#14243e;--deep:#0d1b31;--brand-card:#14243e}
.hero-v8 {background:#0d2340;}
.hero-v8 .hero-inner{isolation:isolate;}
.hero-globe{position:relative;overflow:hidden;}
.hero-globe img{border:0!important;border-radius:0!important;box-shadow:none!important;object-fit:cover;object-position:center center;transform:none!important;mask-image:linear-gradient(to right, transparent 0%,#000 27%,#000 72%,transparent 100%);-webkit-mask-image:linear-gradient(to right, transparent 0%,#000 27%,#000 72%,transparent 100%);}
.tile-cover {background:#14243e;overflow:hidden;}
.v8-tile{overflow:hidden;}
.tile-small-cover {object-fit:cover;object-position:center right;max-height:99px;clip-path:inset(0 round 0 8px 0 0);}
.mini-cta{font-size:clamp(8px,.75vw,10px);white-space:normal;min-width:0;text-align:center;line-height:1.2;overflow-wrap:normal;}
.mini-full{background:#14243e;border-color:#14243e;flex:1.16;}
.mini-free{flex:1;}
.mini-cta span{flex:none;}
@media(max-width:1100px){.tile-actions{flex-direction:column}.mini-cta{font-size:11px;min-height:33px;}}
@media(max-width:760px){.hero-globe{opacity:.37}.hero-globe img{mask-image:linear-gradient(to right,transparent,#000 42%,transparent 100%);-webkit-mask-image:linear-gradient(to right,transparent,#000 42%,transparent 100%)}}
@media(max-width:520px){.mini-cta{font-size:10px}}

/* v10.1.5: minimal review divider, globe flush with banner edges */
#previewRibbon.preview-divider{height:2px!important;min-height:2px!important;padding:0!important;border:0!important;background:#d8b667!important;font-size:0!important;line-height:0!important;}
.hero-v8{position:relative;overflow:hidden;background:#0d2340;}
.hero-v8 .hero-inner{position:relative;isolation:auto;min-height:300px;}
.hero-v8 .hero-copy{position:relative;z-index:2;}
.hero-v8 .hero-globe{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:48%!important;height:100%!important;min-width:0!important;max-width:none!important;overflow:hidden!important;opacity:1;z-index:1;pointer-events:none;}
.hero-v8 .hero-globe img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:50% 50%!important;transform:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;mask-image:linear-gradient(to right,transparent 0%,#000 30%,#000 100%)!important;-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 30%,#000 100%)!important;}
@media(max-width:900px){.hero-v8 .hero-globe{width:55%!important;opacity:.62;}.hero-v8 .hero-globe img{mask-image:linear-gradient(to right,transparent 0%,#000 65%,#000 100%)!important;-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 65%,#000 100%)!important;}}
@media(max-width:760px){.hero-v8 .hero-globe{display:block!important;width:72%!important;opacity:.25;}.hero-v8 .hero-copy{max-width:100%;}}
