/* The search and saved lists are the first actions on the home screen. */
.feature-hero.hero{display:block;min-height:0;padding:38px 0 23px;overflow:visible}
.feature-hero .hero-copy{max-width:none;pointer-events:auto}
.feature-hero .hero-eyebrow{gap:8px;font-size:10px;letter-spacing:.8px;color:#a3aa9a}
.feature-hero h1{margin:14px 0 12px;font-size:clamp(30px,3.6vw,46px);font-weight:800;line-height:1.5;letter-spacing:-1.7px}
.feature-hero h1>span{display:inline-block}
.feature-hero .hero-description{max-width:none;margin:0;color:#a3aa9e;font-size:12px;line-height:1.9;letter-spacing:.15px;white-space:normal}
.hero-mobile-break{display:none}
.hero-functions{display:flex;align-items:center;justify-content:space-between;gap:22px}
.hero-create-team{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;flex:none;padding:11px 19px;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:#fff5ee;font-size:13px;font-weight:700;white-space:nowrap}
.hero-create-team:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.hero-create-team>.icon{width:17px;height:17px}
.team-entry-options{display:grid;gap:10px;margin-top:23px}
.team-entry-options>button{min-height:49px;padding:12px 15px;font-size:13px;line-height:1.6}
.team-entry-note{margin:15px 0 0;color:var(--muted);font-size:11px;line-height:1.7}
.team-entry-cancel{min-height:44px;margin-top:9px;padding:8px 12px;background:none;color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:4px}
.feature-search.search-section{margin-top:0;padding-bottom:27px}
.feature-search .search-topline{margin-bottom:9px}
.feature-search .search-topline>.eyebrow{font-family:var(--font);font-size:11px;font-weight:600;letter-spacing:.4px}
.feature-search .search-topline>span{font-size:10px;color:#838b7e}
.feature-search .search-form{height:64px;border-color:#666b5e;border-radius:8px}
.feature-search .search-input-icon{width:21px!important;height:21px!important;margin-inline:20px 14px}
.feature-search #pokemon-search{font-size:16px;padding-block:17px}
.feature-search #pokemon-search::placeholder{font-size:13px}
.feature-search .search-submit{min-width:141px;margin:6px;padding-inline:22px;gap:22px;font-size:12px}
.feature-search .quick-search{margin-top:11px;gap:16px}
.feature-search .quick-label{font-size:10px}
.feature-search .quick-tags{gap:6px}
.feature-search .quick-tags button{min-height:33px;padding:5px 11px;font-size:10px}
.hero-launcher{display:flex;align-items:stretch;margin-top:23px;border-top:1px solid #43473d;border-bottom:1px solid #343930;background:#1c1f1b}
.hero-action{position:relative;display:flex;flex:1;align-items:center;gap:12px;min-width:0;min-height:68px;padding:13px 20px;background:none;text-align:left;transition:background .15s,color .15s}
.hero-action+.hero-action{border-left:1px solid #343930}
.hero-action>.icon{width:19px;height:19px;color:#b0b89f}
.hero-action-copy{display:flex;align-items:center;gap:13px;min-width:0;flex:1}
.hero-action-copy strong{font-size:12px;font-weight:600;white-space:nowrap}
.hero-action-copy small{font:11px var(--mono);color:#959d87;white-space:nowrap}
.hero-action-arrow{font:18px var(--mono);color:#737e65}
.hero-action:hover{background:#292e24}
.hero-action:hover .hero-action-arrow{color:var(--accent)}
.hero-action:focus-visible{z-index:1;outline-offset:-2px}
.hero-storage-note{margin:10px 0 0;font-size:10px;line-height:1.6;color:#777f70}

@media(max-width:900px){
  .main-nav{gap:22px;margin-right:0}
  .feature-hero.hero{padding-top:29px}
  .feature-hero h1{font-size:37px}
  .hero-action{padding-inline:14px;gap:9px}
  .hero-action-copy{gap:8px}
  .hero-action-copy strong{font-size:11px}
  .hero-action-copy small{font-size:10px}
}
@media(max-width:680px){
  .feature-hero.hero{padding:25px 0 19px}
  .feature-hero .hero-eyebrow{font-size:9px;letter-spacing:.3px;gap:7px}
  .feature-hero h1{margin:12px 0 10px;font-size:clamp(28px,7.3vw,38px);line-height:1.45;letter-spacing:-1.1px}
  .feature-hero h1>span{display:block}
  .feature-hero .hero-description{font-size:11px;line-height:1.85;letter-spacing:0}
  .hero-mobile-break{display:block}
  .hero-functions{align-items:flex-start;flex-direction:column;gap:15px}
  .hero-create-team{min-height:43px;padding:9px 15px;gap:10px;font-size:12px}
  .feature-search.search-section{padding-bottom:20px}
  .feature-search .search-topline>.eyebrow{font-size:10px}
  .feature-search .search-topline>span{font-size:9px}
  .feature-search .search-form{height:58px;border-radius:7px}
  .feature-search .search-input-icon{margin-inline:13px 9px;width:18px!important;height:18px!important}
  .feature-search #pokemon-search{padding-block:16px;font-size:16px}
  .feature-search #pokemon-search::placeholder{font-size:11px}
  .feature-search .search-submit{min-width:44px;width:44px;margin:5px;padding:0;gap:0}
  .feature-search .quick-search{margin-top:10px;gap:9px;align-items:center}
  .feature-search .quick-label{font-size:9px;padding-top:0}
  .feature-search .quick-tags{gap:4px;flex-wrap:wrap}
  .feature-search .quick-tags button{min-height:30px;padding:4px 7px;font-size:9px;gap:7px}
  .hero-launcher{margin-top:17px}
  .hero-action{min-height:65px;padding:10px 12px;gap:9px}
  .hero-action>.icon{width:17px;height:17px}
  .hero-action-copy{flex-direction:column;align-items:flex-start;gap:3px}
  .hero-action-copy strong{font-size:10px;line-height:1.5}
  .hero-action-copy small{font-size:10px;line-height:1.5}
  .hero-action-arrow{display:none}
  .hero-storage-note{margin-top:8px;font-size:9px}
}
@media(max-width:480px){
  .main-nav{gap:10px}
  .main-nav .nav-button{min-width:28px}
  .main-nav .nav-button>.icon{margin-bottom:0}
  .main-nav .nav-button>span:not(.nav-history-count){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  #nav-team{min-width:58px;flex-direction:column;justify-content:center;gap:4px}
  #nav-team>#team-nav-label{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-size:9px;line-height:1.3}
  #nav-team>.nav-history-count{position:absolute;top:calc(50% - 22px);right:0;min-width:14px;height:14px;font-size:8px}
  .hero-action{justify-content:center;padding-inline:7px;gap:0}
  .hero-action>.icon{display:none}
  .hero-action-copy{flex:none;align-items:center;gap:3px}
  .hero-action-copy strong{font-size:11px}
}
@media(max-width:380px){
  .feature-hero.hero{padding-top:23px}
  .feature-hero h1{font-size:28px;letter-spacing:-1.2px}
  .feature-hero .hero-description{font-size:10px}
  .feature-search .search-topline>span{font-size:8px}
  .feature-search .quick-search{align-items:flex-start}
  .feature-search .quick-label{padding-top:6px;font-size:8px}
  .feature-search .quick-tags button{font-size:8px;padding-inline:6px;gap:4px}
  .hero-action-copy strong{font-size:10px}
  .hero-storage-note{font-size:8px}
}

/* A shared lineup replaces the search field, keeping all six slots in place. */
.shared-team-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;height:50px;min-width:0;padding:0 10px 0 14px;border:1px solid #566147;border-radius:7px;background:#252c20}
.shared-team-notice p{flex:1;min-width:0;margin:0;color:#b9c6a9;font-size:11px;line-height:1.5}
.shared-team-notice p>span{white-space:nowrap}
.shared-calculation-note{flex:none;margin:0;padding-inline:2px;color:#b5bda7;font-size:9px;line-height:1.5}
.shared-team-notice-actions{display:flex;align-items:center;gap:6px;flex:none;height:100%;min-width:0}
.shared-team-notice button{display:flex;align-items:center;justify-content:center;flex:none;height:calc(100% - 8px);padding:0 9px;border:1px solid #667453;border-radius:4px;background:#313c27;color:#e1e9d7;font-size:10px;line-height:1.3;white-space:nowrap}
.shared-team-notice button:hover{border-color:#a4b88a;background:#3b482e}
body.shared-team-mode .team-toolbar{min-width:0}
body.shared-team-mode .team-title-group{flex:1;min-width:0;overflow:hidden}
body.shared-team-mode #team-title{flex:1;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.shared-team-mode .team-count{flex:none}
.reset-dialog.share-team-dialog{width:calc(100% - 32px);max-width:560px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:24px;overflow:auto;overscroll-behavior:contain}
.share-team-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.share-team-dialog .share-team-heading h2{margin:0;font-size:20px;line-height:1.5}
.share-team-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:1px solid #4c5940;border-radius:5px;background:none;color:#bac8ab}
.share-team-close .icon{width:18px;height:18px}
.share-team-close:hover{background:#333d2b;color:var(--ink)}
.share-team-description{margin:0;color:#a1af91;font-size:12px;line-height:1.8}
.share-team-preview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:start;gap:7px;margin:17px 0 21px;padding:12px 0;border-top:1px solid #404c35;border-bottom:1px solid #404c35}
.share-preview-pokemon{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;text-align:center}
.share-preview-pokemon img{width:44px;height:44px;object-fit:contain;image-rendering:pixelated}
.share-preview-pokemon strong{font-size:10px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.share-preview-pokemon small{color:#96a585;font-size:8px;line-height:1.5;overflow-wrap:anywhere}
.share-url-label,.share-name-label{display:block;margin-bottom:7px;color:#cad6ba;font-size:11px;font-weight:500}
.share-name-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;margin-top:16px}
.share-name-label small{flex:none;color:#879877;font-size:10px;font-weight:400;white-space:nowrap}
.team-share-url,.team-share-name{display:block;min-width:0;width:100%;height:44px;padding:9px 11px;border:1px solid #59674c;border-radius:5px;background:#191f16;color:#d9e4ce;font-family:var(--font);font-size:16px;line-height:1.5}
.team-share-url{user-select:all}
.team-share-name::placeholder{color:#7d8d6d;font-size:12px}
.team-share-url:focus,.team-share-name:focus{border-color:var(--accent);box-shadow:0 0 0 2px #ee5b4022;outline:none}
.share-team-help{margin:8px 0 0;color:#879877;font-size:10px;line-height:1.7}
#team-share-name-help{margin-bottom:15px}
.share-team-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.share-team-actions>button{flex:1 1 110px;min-width:0;min-height:44px;padding:9px 11px;font-size:11px;line-height:1.5}
.team-share-feedback{margin:12px 0 0;color:#e4c9a2;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.team-share-feedback:empty{display:none}
@media(max-height:900px) and (min-width:681px){.shared-team-notice{height:40px}}
@media(max-width:680px){
  .shared-team-notice{height:42px;gap:6px;padding-inline:7px}
  .shared-team-notice p{font-size:9px;line-height:1.4}
  .shared-team-notice-actions{gap:4px}
  .shared-team-notice button{padding-inline:6px;font-size:9px}
  .reset-dialog.share-team-dialog{padding:20px 16px}
  .share-team-dialog .share-team-heading h2{font-size:18px}
  .share-team-description{font-size:11px}
  .share-team-preview{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 6px;margin-block:14px 17px;padding-block:12px}
  .share-preview-pokemon img{width:42px;height:42px}
  .share-preview-pokemon strong{font-size:10px}
}
@media(max-width:380px){
  .team-toolbar .team-actions{gap:2px}
  .team-toolbar .team-actions .team-back,.team-toolbar .team-actions>.text-button{width:24px;min-width:24px}
  .shared-team-notice button{font-size:8.5px;padding-inline:5px}
  body.shared-team-mode .team-title-group h1{font-size:14px;letter-spacing:0}
}
@media(max-height:760px){.shared-team-notice{height:32px}}
@media(max-height:620px){
  .share-team-preview{gap:8px 4px;margin-block:12px 15px;padding-block:8px}
  .share-preview-pokemon img{width:36px;height:36px}
  .share-team-description{line-height:1.5}
  .share-team-actions{margin-top:14px}
}
@media(max-height:560px){.shared-team-notice{height:28px}}

/* Ability explanations remain in the page and work with touch or keyboard. */
.ability-block .ability-label{padding-top:13px;font-size:11px}
.ability-content{flex:1;min-width:0}
.ability-content .ability-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;align-items:start}
.ability-details{min-width:0;border:1px solid #414c37;border-radius:5px;background:#242c20;overflow:hidden}
.ability-details .ability-chip{display:flex;width:100%;min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:0;background:transparent;font-size:13px;line-height:1.6;cursor:pointer;list-style:none}
.ability-chip::-webkit-details-marker{display:none}
.ability-details .ability-chip:hover{background:#303b29;color:var(--ink)}
.ability-details .ability-chip:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.ability-details .ability-chip small{font-size:10px;white-space:nowrap}
.ability-chevron{flex:none;width:7px;height:7px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.ability-details[open] .ability-chevron{transform:translateY(2px) rotate(225deg)}
.ability-details[open] .ability-chip{border-bottom:1px solid #414c37}
.ability-details .ability-description{margin:0;padding:12px;color:#c8d0bf;font-size:13px;line-height:1.9;overflow-wrap:anywhere}
.ability-details .ability-description-english{padding-top:0;font-size:12px}
.ability-description-english>span{display:block;margin-bottom:4px;color:#8d9a7f;font-size:10px}
.ability-details .ability-version-note{margin:0;padding:0 12px 12px;color:#8d9a7f;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.ability-details .ability-translation-note{margin:0;padding:0 12px 10px;color:#a8b69a;font-size:11px;line-height:1.8}
.ability-source-note{margin:9px 0 0;color:#8d9a7f;font-size:10px;line-height:1.8}
@media(max-width:680px){
  .ability-block{display:block}
  .ability-block .ability-label{display:block;padding:0;margin-bottom:8px;font-size:11px}
  .ability-content .ability-list{grid-template-columns:1fr}
}
