/* Scoped styles for additional Emmaus tools */
.em-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:16px 0}
.em-tool-tile{display:flex;flex-direction:column;text-align:left;gap:6px;min-height:114px;padding:15px;border-radius:17px;border:1px solid rgba(218,176,112,.4);background:linear-gradient(145deg,rgba(57,45,48,.92),rgba(22,20,27,.95));color:#f9f0df;cursor:pointer}
.em-tool-tile strong{font-size:1rem}.em-tool-tile small{line-height:1.4;opacity:.76}.em-tool-ico{font-size:1.5rem;color:#e5bf73}.em-tool-muted{color:#c3b7a7;line-height:1.55;font-size:.92rem}.em-back,.em-tool-btn,.em-primary{border:1px solid rgba(222,181,116,.45);background:#32282b;color:#fff2dc;padding:10px 13px;border-radius:12px;margin:4px;cursor:pointer;font:inherit}.em-primary{background:linear-gradient(120deg,#a37735,#e9c77c);color:#211a14;font-weight:750}.em-search-form,.em-fields,.em-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.em-search-form input{flex:1 1 170px}.em-fields select{flex:2 1 140px}.em-fields input{flex:1 1 65px;min-width:65px;max-width:115px}#panel-body .em-fields select,#panel-body .em-fields input,#panel-body .em-search-form input,#panel-body textarea{background:#221e22;color:#f8eedf;border:1px solid #91724a;border-radius:9px;padding:9px;font:inherit;max-width:100%}.em-result,.em-plan-card{padding:13px 4px;border-bottom:1px solid rgba(214,176,110,.28)}.em-result p{margin:4px 0}.em-plan-card details{margin-top:8px}.em-plan-card summary{cursor:pointer;color:#e9c78c}.em-plan-row{display:flex;gap:10px;align-items:center;padding:4px 0}.em-plan-row input{width:19px;height:19px}.em-verse-text{padding:18px;border-left:3px solid #d6ae64;background:rgba(50,40,42,.7);font-family:Georgia,serif;line-height:1.7}.em-reduce-motion .feed-landscape,.em-reduce-motion .road-clouds{animation:none!important}@media(max-width:380px){.em-tool-grid{grid-template-columns:1fr}}

/* Six bottom tabs stay legible without horizontal overflow on smaller phones. */
nav[aria-label="WalkToEmmaus"]{gap:clamp(0px,1.5vw,12px);justify-content:space-evenly}nav[aria-label="WalkToEmmaus"] button{min-width:0;flex:1 1 0;padding:.35rem .15rem;font-size:clamp(.65rem,2.4vw,.8rem);white-space:nowrap}nav[aria-label="WalkToEmmaus"] button span{font-size:1.2rem}#emmaus-tools-nav{color:#eec98c}

/* Permanent navigation link, styled identically to the bottom tab buttons. */
body > nav #emmaus-tools-nav{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-width:0;flex:1 1 0;padding:.35rem .08rem;text-align:center;color:#f5d18c;background:rgba(231,189,115,.10);border-radius:10px;font-size:clamp(.65rem,2.4vw,.8rem);font-family:inherit;text-decoration:none;white-space:nowrap;line-height:1.4}
body > nav #emmaus-tools-nav span{font-size:1.32rem;line-height:1.3}
body > nav{gap:clamp(1px,1vw,9px)!important;justify-content:space-evenly!important}
body > nav button{min-width:0!important;flex:1 1 0!important;padding:.35rem .08rem!important;font-size:clamp(.65rem,2.4vw,.8rem)!important;white-space:nowrap}
.header-tools-shortcut{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:8px 9px;border-radius:14px;border:1px solid rgba(229,192,126,.55);color:#ffdf9f;text-decoration:none;background:rgba(28,22,31,.76);font:600 12px system-ui,sans-serif;white-space:nowrap}
@media(max-width:370px){.header-tools-shortcut{font-size:11px;padding:6px}.header-tools-shortcut::first-letter{font-size:12px}}
