/* Scoped to the front-page template; other pages retain their existing layout. */
body.home{--th-ink:#202526;--th-muted:#5d6465;--th-red:#bc252b;--th-paper:#f5f4f0;--th-line:#e1e3de;background:#fff;color:var(--th-ink)}
.home #masthead{background:#fff!important;border-bottom:1px solid var(--th-line)}
.home .navbar-brand img{max-width:180px;max-height:58px;width:auto;height:auto}
.th-home{font-family:system-ui,-apple-system,"Noto Sans TC","Microsoft JhengHei",sans-serif;line-height:1.85;font-size:17px}
.th-home *{box-sizing:border-box}.th-wrap{width:min(1200px,calc(100% - 64px));margin-inline:auto}
.th-home a{color:#a61d25;text-underline-offset:5px}.th-home a:hover{color:#72141a}.th-home a:focus-visible,.th-mobile-contact a:focus-visible{outline:3px solid #c78018;outline-offset:5px}
.th-home p{margin:0 0 20px}.th-home li{margin-bottom:8px}.th-home img{max-width:100%;height:auto;display:block;border-radius:5px}.th-home strong{font-weight:750}
.th-hero{background:var(--th-paper);border-bottom:1px solid var(--th-line);padding:65px 0 55px;position:relative}
.th-hero:before{content:"";position:absolute;top:0;left:0;height:5px;width:140px;background:var(--th-red)}
.th-hero-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:44px;align-items:center}.th-eyebrow{font-size:13px;font-weight:800;letter-spacing:2px;color:var(--th-red);margin-bottom:20px!important}
.th-hero h1{font-size:clamp(30px,3.5vw,48px);line-height:1.35;letter-spacing:-1px;font-weight:850;margin:0 0 24px;text-wrap:balance}
.th-intro>p:first-child{font-size:14px;color:var(--th-muted)}.th-intro>p:last-child{font-size:13px;color:var(--th-muted);border-top:1px solid #d4d6d0;padding-top:17px;margin-bottom:0}
.th-intro>ul{list-style:none;padding:0;display:flex;gap:10px;flex-wrap:wrap;margin:26px 0}.th-intro>ul li{margin:0}.th-intro>ul a{display:block;padding:11px 16px;font-size:14px;font-weight:750;text-decoration:none;background:#fff;border:1px solid #bbc0b8;border-radius:4px;color:var(--th-ink)}
.th-intro>ul li:first-child a{background:var(--th-red);color:white;border-color:var(--th-red)}.th-intro>ul a:hover{filter:brightness(.92)}
.th-hero-photo{margin:0;position:relative}.th-hero-photo img{width:100%;aspect-ratio:1.05;object-fit:cover;box-shadow:14px 14px 0 #e4e3dc}.th-hero-photo figcaption{position:relative;margin:25px 0 0;font-size:13px;color:var(--th-muted);text-align:right}
.th-jump{border-bottom:1px solid var(--th-line);background:#fff}.th-jump>.th-wrap{display:flex;align-items:center;gap:28px;padding-block:21px;flex-wrap:wrap}.th-jump span{font-size:13px;color:var(--th-muted);margin-right:auto}.th-jump a{font-size:14px;font-weight:750;text-decoration:none;white-space:nowrap;color:var(--th-ink)}.th-jump a:hover{color:var(--th-red)}
.th-sections{padding-top:12px}.th-section{padding:56px 0;border-bottom:1px solid var(--th-line);scroll-margin-top:105px}.th-section-heading{display:flex;gap:18px;align-items:baseline;margin-bottom:28px}.th-number{font-size:13px;font-weight:800;color:var(--th-red);font-variant-numeric:tabular-nums;letter-spacing:1px}.th-section h2{font-size:clamp(24px,2.5vw,32px);font-weight:800;line-height:1.45;letter-spacing:-.5px;margin:0}.th-section h3{font-size:21px;line-height:1.55;font-weight:780;margin:0 0 16px}.th-section-body>p{max-width:900px}
.th-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.th-card{min-width:0;padding:28px;background:var(--th-paper);border-top:3px solid #dcded7}.th-card p:last-child,.th-card ul:last-child{margin-bottom:0}.th-card ul{padding-left:22px}
.th-card blockquote{border-left:3px solid var(--th-red);padding:4px 0 4px 18px;margin:24px 0;color:var(--th-muted);font-size:15px}.th-card blockquote p:last-child{margin-bottom:0}.th-reasons .th-card:nth-child(3){grid-row:span 2}.th-reasons .th-card:first-child{border-top-color:var(--th-red)}
.th-tires .th-section-body>p:has(>img){max-width:none;margin:0 0 28px}.th-tires .th-section-body>p>img{width:100%;max-height:360px;object-fit:cover}.th-tires .th-cards{clear:both}.th-tires .th-card:first-child ul{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0}.th-tires .th-card:first-child li{padding:10px;background:white;border:1px solid var(--th-line);font-size:15px;margin:0}
.th-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.th-gallery img{width:100%;height:320px;object-fit:cover}.th-tires .th-gallery img{height:300px;object-fit:contain;background:#f1f1ee}.th-alignment .th-gallery{float:right;width:52%;margin:0 0 24px 36px;gap:12px}.th-alignment .th-gallery img{height:250px}.th-section:after{content:"";display:table;clear:both}
.th-rotation{background:#222b2b;color:#fff;padding:36px 40px;margin-top:36px;border:0;border-left:5px solid var(--th-red)}.th-rotation .th-number,.th-rotation a{color:#ffd0cb}.th-rotation .th-section-body>p{max-width:none}.th-rotation h2{font-size:27px}
.th-maintenance .th-gallery{float:right;width:48%;margin:0 0 20px 32px}.th-maintenance .th-gallery img{height:320px}.th-maintenance ul{padding-left:24px}.th-booking ol{counter-reset:steps;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;gap:20px;padding:0;margin:25px 0}.th-booking ol li{counter-increment:steps;background:var(--th-paper);padding:24px;border-bottom:2px solid var(--th-red)}.th-booking ol li:before{content:"0" counter(steps);display:block;color:var(--th-red);font-size:28px;font-weight:800;margin-bottom:10px}
.th-diary ul{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.th-diary li{border:1px solid var(--th-line);border-top:3px solid var(--th-red);padding:25px;font-weight:650;background:#fff;margin:0}.th-faq .th-cards{gap:0 30px}.th-faq .th-card{background:none;border-top:1px solid var(--th-line);padding:24px 0}.th-faq h3{font-size:18px}.th-faq p{font-size:16px;color:var(--th-muted)}
.th-contact .th-section-body{display:flow-root}.th-contact .th-gallery{float:right;width:46%;margin:0 0 24px 32px;grid-template-columns:1fr}.th-contact .th-gallery img{height:230px}.th-contact ul{list-style:none;padding:0}.th-contact li{padding:10px 0;border-bottom:1px solid var(--th-line);font-size:16px}.th-contact .th-section-body>p:last-child{clear:both;max-width:none;background:var(--th-paper);padding:22px;display:flex;gap:24px;flex-wrap:wrap;font-weight:750}
/* Keep the original sidebar widgets in one column with a bounded width. */
.th-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px;align-items:start}
.th-content-layout>*,.th-sidebar .widget,.th-sidebar .wp-block-group{min-width:0}
.th-sidebar{padding-block:40px;overflow-wrap:anywhere}
.th-sidebar .row>div{width:100%;min-width:0}
.th-sidebar .widget{font-size:14px}
.th-sidebar h2{font-size:19px;line-height:1.5;margin-bottom:16px}
.th-sidebar .wp-block-categories-list{columns:auto}
.th-sidebar .list-group-item{white-space:normal;min-width:0}
.th-sidebar .list-group-item a{min-width:0;max-width:100%;overflow-wrap:anywhere}
.th-sidebar .wp-block-search__inside-wrapper{display:flex;min-width:0;max-width:100%}
.th-sidebar .wp-block-search__input{min-width:0;width:0;flex:1 1 0}
.th-sidebar .wp-block-search__button{flex-shrink:0;white-space:nowrap}
.th-sidebar img,.th-sidebar iframe{max-width:100%}
.home .bootscore-footer-top{background:#202929!important;color:#fff}.home .bootscore-footer-columns{background:#f5f4f0!important}.th-mobile-contact{display:none}
@media(min-width:992px){.th-sidebar .offcanvas-body{display:block!important}.th-content-layout .th-alignment .th-gallery,.th-content-layout .th-maintenance .th-gallery{float:none;width:100%;margin:0 0 24px}.th-content-layout .th-contact .th-gallery{float:none;width:100%;grid-template-columns:1fr 1fr;margin:0 0 24px}.th-content-layout .th-contact .th-gallery img{height:200px}}
@media(min-width:1200px){.th-content-layout{grid-template-columns:minmax(0,1fr) 300px;gap:36px}}
@media(max-width:991px){.th-wrap{width:calc(100% - 40px)}.th-hero{padding:40px 0}.th-hero-grid{gap:28px;grid-template-columns:1fr 1fr}.th-hero h1{font-size:32px}.th-hero-photo img{aspect-ratio:3/4}.th-intro>ul{display:grid}.th-jump>.th-wrap{gap:14px 22px}.th-jump span{width:100%}.th-alignment .th-gallery,.th-maintenance .th-gallery{float:none;width:100%;margin:0 0 24px}.th-diary ul{grid-template-columns:1fr}.th-content-layout{grid-template-columns:minmax(0,1fr);gap:0}.th-sidebar{padding-block:28px}.th-sidebar .offcanvas-body{display:block}}
@media(max-width:640px){.th-wrap{width:calc(100% - 36px)}.th-home{font-size:16px}.th-hero-grid{grid-template-columns:1fr;gap:28px}.th-hero h1{font-size:34px}.th-hero-photo img{aspect-ratio:4/3;box-shadow:7px 7px 0 #e4e3dc}.th-hero-photo figcaption{margin-top:16px}.th-intro>ul{grid-template-columns:1fr 1fr;gap:8px}.th-intro>ul li:first-child{grid-column:1/-1}.th-intro>ul a{text-align:center;padding:13px 8px}.th-jump>.th-wrap{padding-block:18px;gap:12px 20px}.th-jump a{font-size:13px}.th-section{padding:36px 0;scroll-margin-top:90px}.th-section-heading{gap:12px;margin-bottom:22px}.th-cards{grid-template-columns:1fr;gap:16px}.th-card{padding:23px}.th-reasons .th-card:nth-child(3){grid-row:auto}.th-tires .th-section-body>p:has(>img){float:none;width:100%;margin:0 0 24px}.th-gallery{gap:10px}.th-gallery img,.th-alignment .th-gallery img{height:180px}.th-tires .th-gallery img{height:230px}.th-maintenance .th-gallery img{height:220px}.th-booking ol{grid-template-columns:1fr;gap:12px}.th-booking ol li{padding:18px 22px}.th-booking ol li:before{font-size:22px;margin-bottom:4px}.th-rotation{padding:28px 22px;margin-top:26px}.th-rotation h2{font-size:24px}.th-contact .th-gallery{float:none;width:100%;grid-template-columns:1fr 1fr;margin:0 0 24px;gap:10px}.th-contact .th-gallery img{height:160px}.th-contact .th-section-body>p:last-child{display:grid;gap:12px;padding:18px}.home{padding-bottom:65px}.th-mobile-contact{display:grid;grid-template-columns:repeat(3,1fr);position:fixed;bottom:0;left:0;right:0;z-index:1025;background:white;border-top:1px solid #ddd;padding-bottom:env(safe-area-inset-bottom)}.th-mobile-contact a{text-align:center;padding:16px 8px;text-decoration:none;font-size:14px;font-weight:750;color:var(--th-ink)}.th-mobile-contact a:nth-child(2){background:var(--th-red);color:#fff}.home .top-button{bottom:80px}}
@media(prefers-reduced-motion:no-preference){html:has(.th-home){scroll-behavior:smooth}}
