/* Reference screens only. The adopted home and existing exercises stay scoped separately. */
body.tips-screen{background:#fafbf9;color:#213744;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));line-height:1.5}
.tips-screen>.site-header,.tips-screen>footer{display:none}
.tips-screen #main{width:100%;max-width:1040px;margin:0 auto;min-height:0}
.tips-screen #notice{max-width:1040px;margin:0 auto 10px}
.tips-shell{height:calc(100vh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));height:calc(var(--home-height,100dvh) - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:640px;display:grid;grid-template-rows:48px 48px minmax(0,1fr) 48px;gap:10px}
.tips-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tips-heading h1{font-size:23px;line-height:1.4;letter-spacing:0;margin:0;white-space:nowrap}
.tips-heading nav{width:auto;display:flex;gap:6px}
.tips-heading nav a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 12px;border-radius:12px;background:#e9f1ed;color:#344b54;font-size:14px;white-space:nowrap}
.tips-category{display:flex;align-items:center;gap:12px;padding:0 2px}
.tips-category label{font-size:14px;white-space:nowrap;color:#41575f}
.tips-category select{min-width:0;min-height:48px;flex:1;padding:8px 12px;border:1px solid #c5d8d1;border-radius:12px;background:#f4f8f6;font-size:16px;color:#213744}
.tips-content{min-width:0;min-height:0;display:flex;flex-direction:column;gap:8px}
.tip-list{display:grid;grid-template-rows:repeat(5,minmax(min-content,1fr));gap:8px;flex:1;min-height:0}
.tip-list-card{display:flex;align-items:center;min-width:0;min-height:72px;padding:14px 20px;border:1px solid transparent;border-radius:18px;text-decoration:none;background:#e5f0f6;color:#213744;touch-action:manipulation}
.tip-list-card>span{display:flex;flex-direction:column;gap:5px;min-width:0}
.tip-list-card strong{font-size:20px;font-weight:750;line-height:1.4}
.tip-list-card>span>span{font-size:15px;line-height:1.5;color:#344b54}
.tip-list-card:nth-child(even){background:#e7f1eb}
.tip-list-card[aria-current="true"]{border:2px solid #4d7b72;background:#dcece6}
.tips-pagination{width:100%;max-width:none;margin:0;padding:0;border:0;display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;gap:12px;font-size:16px}
.tips-pagination>a,.tips-pagination>button,.tip-diagram-button{display:flex;align-items:center;justify-content:center;min-width:90px;min-height:48px;padding:8px 18px;border:1px solid #c5d8d1;border-radius:12px;background:#e7f0eb;color:#294e43;text-decoration:none;font:inherit;font-weight:650;touch-action:manipulation}
.tips-pagination>button:disabled{opacity:1;color:#75827c;background:#f2f4f2;border-color:#dce3df;cursor:default}
.tip-page-count{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.4;font-variant-numeric:tabular-nums;color:#41575f}
.tip-page-count small{font-size:12px}
.tips-pagination>.tip-back-list{width:100%}
.tips-detail-view{min-height:470px}
.tip-article{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1;border:1px solid #d5e1dc;border-radius:20px;padding:20px;background:#fffefb;scroll-padding-block:16px}
.tip-article h2{font-size:23px;line-height:1.45;letter-spacing:0;margin:0 0 10px}
.tip-article h3{font-size:15px;margin:14px 0 6px;color:#3c6158}
.tip-article p{font-size:17px;line-height:1.65;margin:0 0 10px;overflow-wrap:break-word}
.tip-rule{padding:14px 16px;border-radius:14px;background:#e9f3ee}
.tip-rule h3{margin:0 0 4px}
.tip-rule p{margin:0}
.tip-examples ul{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.tip-examples li{padding:10px 14px;border-radius:12px;background:#edf3f8}
.tip-examples li p[lang="en"]{font-size:19px;line-height:1.6;font-weight:650;white-space:normal;overflow-wrap:anywhere;margin:0 0 3px}
.tip-examples li p:last-child{font-size:15px;line-height:1.7;color:#344b54;margin:0}
.tip-benefit p{margin:0}
.tip-notes{margin-top:12px;border:1px solid #d5e1dc;border-radius:12px;background:#f5f8f3}
.tip-notes summary{cursor:pointer;min-height:48px;box-sizing:border-box;padding:12px 14px;font-size:16px;font-weight:650;color:#344f45;touch-action:manipulation}
.tip-notes>div{padding:0 14px 4px}
.tip-notes p{font-size:16px;line-height:1.75}
.tip-reference-label{font-size:14px!important;color:#41575f;margin:0 0 10px!important}
.tip-diagram-button{margin-top:16px;min-width:140px;font-size:16px;background:#e7efdf}
.tip-sources{margin-top:8px;font-size:14px;color:#41575f}
.tip-sources summary{cursor:pointer;min-height:48px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
.tip-sources ul{margin:0;padding-left:20px}.tip-sources a{display:inline-flex;align-items:center;min-height:44px;color:#346456;overflow-wrap:anywhere}
.tip-not-found{margin:0;padding:8px 12px;background:#f7eddb;border-radius:10px;color:#634e2f;font-size:14px}
.tips-shell a:focus-visible,.tips-shell button:focus-visible,.tips-shell select:focus-visible,.tips-shell summary:focus-visible{outline:3px solid #215c76;outline-offset:3px}
@media(min-width:700px){.tip-examples ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(hover:hover){.tip-list-card:hover{filter:brightness(.97)}}
@media(max-width:599px){
 .tips-shell{gap:8px;min-height:632px}
 .tips-heading h1{font-size:20px}.tips-heading nav{gap:4px}.tips-heading nav a{font-size:13px;padding:8px 9px}
 .tips-category{gap:8px}.tips-category label{font-size:12px}
 .tip-list{gap:6px}.tip-list-card{min-height:68px;padding:10px 14px;border-radius:16px}.tip-list-card strong{font-size:18px}.tip-list-card>span>span{font-size:14px}
 .tips-detail-view{min-height:470px}.tip-article{padding:14px}.tip-article h2{font-size:21px}.tip-article p{font-size:16px;line-height:1.65}.tip-rule{padding:12px}.tip-examples li{padding:10px 12px}.tip-examples li p[lang="en"]{font-size:18px}.tip-notes p{font-size:16px}
}
@media(max-width:359px){.tips-screen{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.tips-heading h1{font-size:19px}.tips-heading nav a{padding:8px;font-size:12px}.tip-list-card{padding:10px 12px}}
