/*
Theme Name: Todolist Travel
Description: Independent regional travel publishing theme for 台旅清單 and 中旅清單.
Version: 1.2.7
Author: Todolist
License: GPL-2.0-or-later
Text Domain: todolist-travel
*/
:root{--navy:#19384e;--accent:#bd4300;--muted:#60717b;--border:#e1e7eb;--bg:#fff;--soft:#f3f6f8;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--navy);font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;line-height:1.75;font-size:17px}a{color:inherit;text-underline-offset:4px}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait}button,.button{min-height:44px;border:1px solid var(--border);border-radius:999px;padding:8px 20px;background:white;color:var(--navy)}button:hover,a:hover{color:var(--accent)}button.primary,.button.primary{background:var(--navy);color:#fff;border-color:var(--navy)}:focus-visible{outline:3px solid var(--accent);outline-offset:4px}h1,h2,h3{line-height:1.35;text-wrap:balance}h1{font-size:clamp(26px,3vw,38px)}h2{font-size:clamp(23px,2.4vw,30px)}img{max-width:100%;height:auto}.wrap{max-width:1200px;margin:auto;padding:0 24px}.site-header{position:sticky;top:0;background:#fffc;backdrop-filter:blur(10px);border-bottom:1px solid var(--border);z-index:10}.header-inner{display:flex;align-items:center;gap:22px;min-height:88px}.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;white-space:nowrap;font-size:27px}.brand img{width:56px;height:56px;object-fit:contain}.header-nav{margin-left:auto;display:flex;align-items:center;gap:20px}.header-nav a{text-decoration:none}.icon-button{width:46px;padding:8px;display:grid;place-items:center}.icon{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.skip-link{position:fixed;top:-100px;left:16px;background:white;z-index:50}.skip-link:focus{top:12px}.discovery{padding-top:30px}.search-open{width:100%;display:flex;gap:14px;align-items:center;text-align:left;border-radius:999px;padding:13px 22px;margin-bottom:28px;font-weight:600}.shortcut-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px;margin:20px 0 44px}.shortcut{border:0;background:none;text-align:center;text-decoration:none;padding:8px 2px;font-size:15px;display:flex;flex-direction:column;align-items:center;gap:8px;line-height:1.5}.shortcut .icon{width:30px;height:30px}.shortcut-icon{width:58px;height:58px;display:grid;place-items:center;background:var(--soft);border-radius:50%;color:var(--accent)}.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:18px}.section-title h2{margin:0}.city-rail{display:flex;overflow-x:auto;gap:14px;scroll-snap-type:x mandatory;padding-bottom:12px;margin-bottom:38px}.city{flex:0 0 176px;min-height:112px;border:1px solid var(--border);border-radius:var(--radius);background:var(--soft);display:flex;flex-direction:column;justify-content:center;padding:22px;text-decoration:none;scroll-snap-align:start}.city strong{font-size:24px}.city span{font-size:14px;color:var(--muted)}.filters{display:flex;gap:10px;overflow-x:auto;padding:8px 0 18px;white-space:nowrap}.filters select{max-width:170px;min-height:44px;border:1px solid var(--navy);color:white;background:var(--navy);border-radius:10px;padding:10px}.filters button[aria-pressed=true]{color:white;background:var(--accent);border-color:var(--accent)}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.post-card{display:block;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;text-decoration:none;transition:transform .2s,border-color .2s}.post-card:hover{transform:translateY(-3px);border-color:var(--accent)}.post-card img{display:block;width:100%;aspect-ratio:8/5;object-fit:cover}.post-card h2{font-size:20px;line-height:1.6;margin:0;padding:16px}.count,.empty{color:var(--muted)}.empty{padding:32px 0}.more-wrap{text-align:center;margin:30px 0 54px}.more-wrap button{min-width:200px}.guide-copy{border-top:1px solid var(--border);padding:34px 0;max-width:900px}.link-buttons{display:flex;flex-wrap:wrap;gap:10px}.link-buttons a{border:1px solid var(--border);border-radius:9px;padding:8px 14px;text-decoration:none}.article{max-width:900px;padding-top:38px;padding-bottom:50px}.article .featured{width:100%;border-radius:var(--radius);margin-bottom:20px}.article h2{margin-top:2em}.article h3{margin-top:1.8em}.article p{margin:1em 0}.article table{width:100%;border-collapse:collapse}.article th{background:var(--navy);color:#fff}.article td,.article th{padding:12px;border:1px solid var(--border)}.article .wp-block-table{overflow:auto}.article .alignwide{max-width:100%}.site-footer{border-top:1px solid var(--border);padding:28px 0;color:var(--muted);font-size:14px}.footer-links{display:flex;flex-wrap:wrap;gap:18px}.site-footer .brand{font-size:20px}.site-footer .brand img{width:38px;height:38px}dialog{border:0;border-radius:18px;width:min(760px,calc(100% - 24px));padding:26px;color:var(--navy);max-height:90dvh;overflow:auto}dialog::backdrop{background:#19384e66}.search-form{display:flex;gap:10px;align-items:center}.search-form input{flex:1;min-width:0;border:1px solid var(--accent);border-radius:999px;min-height:48px;padding:10px 16px}.search-form button[type=submit]{background:var(--accent);color:white;border-color:var(--accent)}.keywords{display:flex;flex-wrap:wrap;gap:10px}.keywords button{background:var(--soft)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.search-note{font-size:14px;color:var(--muted)}.mobile-menu{display:none}.breadcrumbs{font-size:14px;color:var(--muted);margin-bottom:20px}.badge{font-size:14px;color:var(--muted)}[hidden]{display:none!important}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){body{font-size:16px}.wrap{padding:0 16px}.header-inner{min-height:76px;gap:10px}.brand{font-size:23px;gap:8px}.brand img{width:48px;height:48px}.header-nav{gap:8px}.header-nav>a:not(.language){display:none}.language{font-size:13px}.mobile-menu{display:grid}.site-header nav.open{position:absolute;top:76px;left:0;right:0;background:white;flex-wrap:wrap;padding:16px;border-bottom:1px solid var(--border)}.site-header nav.open>a{display:inline-block}.shortcut-grid{grid-template-columns:repeat(4,1fr);row-gap:20px;margin-bottom:32px}.shortcut{font-size:14px}.shortcut-icon{width:52px;height:52px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.post-card h2{font-size:16px;line-height:1.6;padding:12px}.city{flex-basis:145px;min-height:104px;padding:18px}.city strong{font-size:21px}.search-form{gap:6px}.search-form button{padding:8px 12px}.discovery{padding-top:22px}.search-open{font-size:15px;padding:12px 16px}dialog{padding:18px}.article th,.article td{min-width:120px}.guide-copy{padding:26px 0}}
@media(max-width:760px){.site-header .brand{font-size:18px;gap:6px;flex-shrink:0}.site-header .brand img{width:40px;height:40px}.header-inner{gap:8px}.header-nav{min-width:0}.header-nav .language{white-space:nowrap;font-size:12px}.site-header .icon-button{flex-shrink:0;width:44px;padding:7px}}
@media(max-width:360px){.header-nav .language{display:none}.site-header nav.open>.language{display:inline-block}.site-header .brand{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.post-card:hover{transform:none}}
