/* 首頁「互動式元素週期表」主視覺（只在首頁載入；週期表本體樣式在 periodic-table.css） */
.home-main{padding-top:.4rem}
.home-pt .wrap{padding:10px 6px 18px}
.home-pt header.top{margin-bottom:8px}
.home-pt h1{font-size:clamp(1.5rem,2.6vw,2.1rem);margin:.1em 0 .2em}
.home-pt .sub{max-width:62em;line-height:1.55}
.home-pt .legend{margin:4px 0 10px}
/* 建置時寫進 HTML 的靜態格子是 <a>：外觀要與 JS 產生的 <button> 一樣 */
.home-pt a.cell,.home-pt a.pholder{text-decoration:none;line-height:normal;font-size:13.333px}
.home-pt a.cell:focus-visible,.home-pt a.pholder:focus-visible{outline:3px solid #1d4ed8;outline-offset:1px}
.pt-swipe{display:none;margin:0 0 6px;font-size:13px;color:#5c6675;text-align:center}
.home-rest{max-width:1180px;margin:0 auto}
.home-intro{margin:-.4rem 0 .8rem;color:#475569}
.home-rest .sec-head+.home-intro+.btn-row{margin-bottom:1.1rem}
.pt-howto p{line-height:1.85;color:#1f2937;max-width:58em}
@media (max-width:720px){
  .home-pt .wrap{padding:6px 0 12px}
  .home-pt header.top{flex-direction:column;align-items:stretch;gap:8px}
  .home-pt .tools input[type="search"]{width:100%;flex:1 1 100%;font-size:16px;padding:10px 14px}
  .home-pt .sub{font-size:13px}
  .home-pt .legend{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
  .home-pt .legend button{flex:0 0 auto}
  .pt-swipe{display:block}
  .home-pt .board{padding:8px 6px 10px}
  /* 手機：格子約 36px，只顯示原子序＋符號，點開再看中文與注音 */
  .home-pt .ptable{min-width:700px;grid-template-columns:30px repeat(18,minmax(34px,1fr));gap:3px}
  .home-pt .cell,.home-pt .pholder{min-height:44px;padding-top:4px}
  .home-pt .cell .zh,.home-pt .cell .mass{display:none}
  .home-pt .gh{min-height:34px}
  .home-pt .gh .new{font-size:13px}.home-pt .gh .old{font-size:10px}
  .home-pt .ph{font-size:14px}
  .home-pt .series-label{font-size:11px}
}
