@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700&display=swap');
.country{display:inline-flex;gap:5px;align-items:center;white-space:nowrap}.country>span{font-size:1.25em;line-height:1}.entity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.entity-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper)}.entity-visual{position:relative;height:174px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#e0ebd8,#f1f4eb);border-bottom:1px solid var(--line)}.entity-monogram{font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:52px;letter-spacing:2px;color:#759168}.entity-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#e7ecdf}.entity-info{padding:17px;min-width:0}.entity-info h3{font-size:17px;line-height:1.5;margin:7px 0;overflow-wrap:anywhere}.person-image-label{font-size:10px;letter-spacing:.7px;color:#566d50}.entity-country{font-size:11px;color:var(--muted);margin:8px 0}.entity-association{font-size:12px;line-height:1.7;margin:10px 0;overflow-wrap:anywhere}.entity-source{display:inline-block;font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:8px 0;min-height:32px}.portrait-credit{font-size:10px;line-height:1.8;color:#60705b;margin-top:8px;padding-top:9px;border-top:1px solid var(--line)}.portrait-credit summary{cursor:pointer;min-height:30px}.portrait-credit a,.identity-provenance a{text-decoration:underline;text-underline-offset:2px}.team-card{flex-direction:row}.team-card .entity-visual{width:72px;min-width:72px;height:auto;border-bottom:0;border-right:1px solid var(--line)}.team-card .entity-monogram{font-size:24px}.team-card .entity-info{flex:1}.team-card h3{font-size:14px}.identity-note{font-size:11px;line-height:1.9;color:var(--muted)}.identity-provenance{margin:30px 0;padding-top:25px;border-top:1px solid var(--line)}.credit-row{padding:16px;border:1px solid var(--line);border-radius:9px;margin:12px 0;background:var(--paper);font-size:12px}.identity-provenance summary{cursor:pointer;padding:15px 0}.entity-card[hidden],.entity-visual img[hidden],.portrait-credit[hidden]{display:none!important}@media(max-width:580px){.entity-grid{gap:10px}.entity-visual{height:146px}.entity-info{padding:13px}.entity-info h3{font-size:15px}.entity-association{font-size:11px}.team-card{grid-column:1/-1}.team-card .entity-visual{min-width:65px;width:65px}.entity-country{font-size:10px}}
:root{--bg:#f5f6f2;--paper:#fff;--ink:#19332e;--muted:#73807a;--line:#dfe5dc;--green:#d2edab;--dark:#142b27;--orange:#d98542}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans','Noto Sans TC',sans-serif;font-size:14px}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:8px;padding:10px 15px;transition:.18s}button:hover{border-color:#8caa8b;background:#f0f6e9}button:focus-visible,a:focus-visible{outline:3px solid #6d9d6c;outline-offset:3px}.shell{display:flex;min-height:100vh}aside{width:222px;flex-shrink:0;position:fixed;height:100vh;background:#edf0e8;border-right:1px solid var(--line);padding:36px 23px;display:flex;flex-direction:column}.brand{font-size:19px;font-weight:800;letter-spacing:-.8px;white-space:nowrap}.brand>span:last-child{font-weight:400}.brandmark{display:inline-block;transform:skew(-18deg);color:#609554;font-size:25px;margin-right:4px}.eyebrow{font-size:8px;letter-spacing:2px;color:var(--muted);margin-top:8px}nav{margin-top:55px;display:flex;flex-direction:column;gap:9px}nav button{border:0;background:transparent;text-align:left;padding:13px 14px;font-weight:500;display:flex;align-items:center;gap:13px}nav button.active{background:var(--ink);color:#e1f6c5}nav button b{font-size:19px;font-weight:400}.sidebottom{margin-top:auto;padding:22px 8px 0;border-top:1px solid #d3dccf;color:var(--muted);font-size:11px}.sidebottom strong{display:block;color:var(--ink);font-size:29px;font-weight:500;margin:12px 0 5px;font-variant-numeric:tabular-nums}.sidebottom small{font-size:10px}.pulse{display:inline-block;width:6px;height:6px;background:#6b9863;border-radius:100%;margin-right:5px}.main{margin-left:222px;width:calc(100% - 222px)}header{height:86px;margin:0 46px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:10px;letter-spacing:1.2px;color:var(--muted)}.breadcrumb span{margin-left:12px}.header-right{display:flex;gap:8px}.header-right button{background:transparent;font-size:11px}.settingsbutton{max-width:230px}main{padding:36px 46px 40px;max-width:1500px;margin:auto}h1{font-size:34px;letter-spacing:-1.5px;line-height:1.4;margin:0 0 8px}h2{font-size:21px;margin:0}h3{margin:0;font-size:17px}.muted{color:var(--muted)}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.intro p{color:var(--muted);margin:0;line-height:1.7}.tiny{font-size:10px;letter-spacing:1.7px;font-weight:600}.hero{background:var(--dark);color:#f4f6ed;min-height:270px;border-radius:15px;display:flex;position:relative;overflow:hidden;margin-bottom:27px}.herocopy{padding:32px 35px;z-index:1;max-width:65%}.hero .tiny{color:#b6d89d}.hero h2{font-size:38px;letter-spacing:-1.2px;margin:15px 0 9px}.hero p{color:#a9bcb2;font-size:12px}.hero button{background:var(--green);border:0;color:#213326;margin-top:16px;font-weight:600}.hero svg{position:absolute;right:-10px;width:48%;height:100%;opacity:.65}.hero .bigword{font-family:'Barlow Condensed',sans-serif;font-size:130px;position:absolute;right:25px;bottom:-37px;color:#badaab;opacity:.045;font-weight:800}.heroflag{display:inline-block;border:1px solid #536c5b;border-radius:5px;font-size:10px;padding:5px 9px;margin-left:14px;color:#c3d6bd}.tools{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0 20px}.segmented{display:flex;gap:3px;background:#e9ede5;border-radius:9px;padding:4px}.segmented button{background:transparent;border:0;font-size:12px;padding:8px 15px;white-space:nowrap}.segmented button.active{background:white;box-shadow:0 1px 5px #19332e15}.search{background:white;border:1px solid var(--line);border-radius:8px;padding:11px 13px;max-width:280px;width:100%;outline:none}.filters{display:flex;gap:8px;overflow:auto;padding:0 0 13px;scrollbar-width:none}.filters button{white-space:nowrap;font-size:11px;border-radius:20px;padding:8px 14px;background:transparent}.filters button.active{background:var(--ink);color:white;border-color:var(--ink)}.contentgrid{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:25px}.datehead{display:flex;justify-content:space-between;align-items:center;padding:18px 0 12px;border-top:1px solid var(--line);font-size:12px;font-weight:600}.datehead span{font-size:10px;font-weight:400;color:var(--muted)}.racecard{border:1px solid var(--line);border-radius:11px;background:white;margin-bottom:10px;display:flex;overflow:hidden;min-height:108px;transition:transform .15s,box-shadow .15s}.racecard:hover{transform:translateY(-2px);box-shadow:0 5px 18px #19332e0a}.racetime{width:93px;padding:22px 14px;border-right:1px solid #e8ece6;flex-shrink:0;text-align:center}.racetime strong{font-size:22px;letter-spacing:-.5px;font-weight:600}.racetime small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.racebody{flex:1;min-width:0;padding:16px 17px;cursor:pointer}.racebody .tiny{font-size:9px;letter-spacing:.8px;display:flex;gap:8px;align-items:center}.dot{width:6px;height:6px;border-radius:50%;display:inline-block}.racebody h3{font-size:15px;margin:7px 0}.racebody p{font-size:11px;color:var(--muted);margin:0;line-height:1.6}.cardactions{padding:13px 13px 13px 0;display:flex;flex-direction:column;align-items:end;justify-content:space-between;gap:8px}.star{border:0;background:transparent;padding:0 3px;font-size:22px;line-height:1}.star.saved{color:#a48324}.badge{display:inline-block;padding:5px 7px;font-size:9px;border-radius:5px;white-space:nowrap;background:#f0f2ec;color:#687268}.badge.free{background:#eaf4df;color:#547742}.badge.unconfirmed{background:#f5efe3;color:#a07c38}.live{background:#f7e4df;color:#b25343}.railbox{border:1px solid var(--line);padding:20px;border-radius:11px;margin-bottom:17px}.railbox h3{font-size:13px;margin-bottom:17px}.railrow{display:flex;align-items:center;justify-content:space-between;font-size:11px;padding:10px 0;border-bottom:1px solid var(--line)}.railrow:last-child{border:0}.railrow b{font-weight:500}.railbox p{font-size:11px;color:var(--muted);line-height:1.9}.railbox a{font-size:11px;text-decoration:underline}.railbox.mint{background:#e6eddd;border:0}.railbox .number{font-family:'Barlow Condensed',sans-serif;font-size:45px;line-height:1}.empty{padding:38px 24px;border:1px dashed #ccd7c5;border-radius:10px;text-align:center;margin:15px 0;background:#f0f3eb}.empty h3{font-size:16px;margin:12px 0}.empty p{color:var(--muted);line-height:1.8;font-size:12px}.empty button{margin-top:8px}.catalogue{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-top:22px}.seriescard{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;cursor:pointer}.seriescard:hover{border-color:#8ca88a}.serieslogo{font-family:'Barlow Condensed',sans-serif;font-size:31px;font-weight:800;font-style:italic;margin:14px 0}.seriescard p{font-size:11px;color:var(--muted);line-height:1.8}.seriescard .seriesfoot{margin-top:19px;display:flex;justify-content:space-between;font-size:10px}.sectionhead{display:flex;justify-content:space-between;align-items:center;margin:25px 0 15px}.note{border-left:3px solid #9db68e;background:#eef3e8;padding:14px 18px;font-size:12px;color:#5a6d58;line-height:1.9}.statsbar{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:23px 0}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:20px}.stat strong{font-size:29px;display:block;margin-bottom:6px}.stat span{font-size:11px;color:var(--muted)}footer{padding:18px 46px 28px;font-size:10px;color:var(--muted);line-height:1.9}dialog{border:0;border-radius:16px;max-width:760px;width:calc(100% - 30px);padding:0;max-height:90vh;color:var(--ink);background:var(--bg)}dialog::backdrop{background:#10272188;backdrop-filter:blur(4px)}.modalhead{background:var(--dark);color:white;padding:28px 30px;position:relative}.modalhead h2{margin:12px 0 8px;font-size:27px}.modalhead p{color:#b4c6bb;font-size:12px}.close{position:absolute;right:15px;top:15px;border:0;background:#ffffff15;color:white;padding:4px 10px;font-size:21px}.modalbody{padding:24px 30px}.tabs{display:flex;gap:4px;overflow:auto;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:22px}.tabs button{border:0;background:transparent;white-space:nowrap;font-size:12px}.tabs button.active{background:var(--ink);color:white}.detailrow{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:15px;align-items:center;justify-content:space-between}.detailrow h3{font-size:13px}.detailrow small{font-size:11px;color:var(--muted);line-height:1.9}.primary{background:var(--ink);color:white;border:0}.linkbutton{display:inline-block;border:1px solid var(--line);padding:11px 16px;border-radius:8px;background:white;font-size:12px;margin:8px 5px 5px 0}.detailtext{line-height:2;font-size:13px}.detailtext h3{margin:20px 0 10px}.infochips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-size:10px;color:var(--muted);font-weight:400}td,th{padding:12px 8px;border-bottom:1px solid var(--line)}td:last-child{text-align:right}.smalltitle{font-size:11px;letter-spacing:1px;color:var(--muted);margin:20px 0 10px}.prefscontent{padding:30px}.prefscontent label{display:block;font-size:12px;margin:22px 0 8px}.prefscontent select{width:100%;padding:12px;background:white;border:1px solid var(--line);border-radius:7px;color:var(--ink)}.prefscontent p{font-size:12px;color:var(--muted);line-height:1.8}.prefscontent .buttons{margin-top:25px;display:flex;justify-content:space-between}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:12px 22px;background:var(--ink);color:white;border-radius:9px;font-size:12px;opacity:0;pointer-events:none;z-index:10;transition:.2s}#toast.show{opacity:1}.sourcepill{font-size:10px;color:var(--muted);margin-top:18px;line-height:1.8}.nextcount{font-size:12px;color:#bad399;margin-top:12px}.listmeta{font-size:11px;color:var(--muted);margin:10px 0 18px}.freehead{display:flex;gap:10px;align-items:center}.checkbox{font-size:12px;display:flex;align-items:center;gap:8px}input[type=checkbox]{accent-color:#315d3a}
@media(min-width:1500px){main{padding-top:45px}}@media(max-width:1150px){aside{width:190px;padding:30px 16px}.main{margin-left:190px;width:calc(100% - 190px)}header{margin:0 28px}main{padding:28px}.contentgrid{grid-template-columns:minmax(0,1fr) 215px;gap:18px}.catalogue{grid-template-columns:repeat(2,1fr)}.hero h2{font-size:31px}.cardactions{max-width:110px}.badge{white-space:normal;text-align:center}.settingsbutton{max-width:170px}.herocopy{max-width:76%}}
@media(max-width:850px){aside{width:72px;padding:22px 10px}.brand{font-size:0}.brandmark{font-size:28px;margin-left:10px}.eyebrow,.sidebottom,nav button span{display:none}nav{margin-top:35px}nav button{justify-content:center;padding:14px}.main{margin-left:72px;width:calc(100% - 72px)}.contentgrid{grid-template-columns:1fr}.rail{display:grid;grid-template-columns:1fr 1fr;gap:16px}.railbox{margin-bottom:0}.railbox:last-child{display:none}.hero h2{font-size:32px}.herocopy{max-width:80%}.breadcrumb{font-size:9px}}
@media(max-width:580px){aside{position:fixed;bottom:0;height:65px;width:100%;z-index:5;flex-direction:row;padding:5px 8px;background:#f7f9f2f5;backdrop-filter:blur(12px);border-right:0;border-top:1px solid var(--line)}aside .brand{display:none}nav{margin:0;width:100%;flex-direction:row;gap:0}nav button{flex:1;display:flex;flex-direction:column;gap:3px;font-size:10px;padding:5px;border-radius:7px}nav button span{display:block;font-size:9px}nav button b{font-size:19px}.main{margin:0 0 65px;width:100%}header{height:64px;margin:0 20px}.breadcrumb{letter-spacing:.8px}.breadcrumb>span{display:none}.breadcrumb:before{content:'▰ ';color:#669557}.header-right button{font-size:10px;padding:8px 10px}.settingsbutton{max-width:150px}main{padding:25px 18px}.intro{margin-bottom:20px;gap:10px}h1{font-size:27px;letter-spacing:-1px}.intro p{font-size:11px}.intro>.tiny{display:none}.hero{min-height:237px;border-radius:12px;margin-bottom:20px}.herocopy{padding:25px;max-width:100%}.hero h2{font-size:29px}.hero svg{width:65%;opacity:.18}.hero p{font-size:11px}.hero .tiny{font-size:9px}.heroflag{margin-left:8px}.hero button{padding:10px 15px;font-size:12px;margin-top:12px}.tools{flex-wrap:wrap;gap:13px;margin-top:20px}.search{max-width:100%;font-size:12px}.segmented{width:100%}.segmented button{flex:1;font-size:11px;padding:8px}.filters button{font-size:10px;padding:7px 12px}.racetime{width:76px;padding:22px 9px}.racetime strong{font-size:19px}.racebody{padding:15px 12px}.racebody h3{font-size:13px}.racebody p{font-size:10px}.cardactions{max-width:77px;padding:14px 10px 14px 0}.badge{font-size:8px;padding:4px}.racebody .tiny{font-size:8px}.rail{grid-template-columns:1fr}.railbox:first-child{display:none}.catalogue{grid-template-columns:1fr 1fr;gap:10px}.seriescard{padding:16px}.serieslogo{font-size:25px}.seriescard h3{font-size:12px}.seriescard p{font-size:10px}.seriescard .seriesfoot{font-size:9px}.statsbar{gap:8px}.stat{padding:15px 12px}.stat strong{font-size:24px}.stat span{font-size:9px}footer{padding:10px 20px 25px;font-size:9px}.modalhead{padding:26px 22px}.modalhead h2{font-size:23px}.modalbody{padding:20px}.tabs button{padding:9px 11px;font-size:11px}.prefscontent{padding:25px}dialog{max-height:92dvh}#toast{bottom:83px;max-width:90%;width:max-content}.note{font-size:11px;padding:12px}.sectionhead h2{font-size:19px}}

/* iOS safe areas, keyboard focus, and reduced-motion preference. */
.tabs button,.close,.entity-source,.portrait-credit summary{min-height:44px}.close{min-width:44px}
@media(max-width:580px){aside{height:calc(65px + env(safe-area-inset-bottom));padding-bottom:calc(5px + env(safe-area-inset-bottom))}.main{margin-bottom:calc(65px + env(safe-area-inset-bottom))}header{padding-top:env(safe-area-inset-top);height:calc(64px + env(safe-area-inset-top))}#toast{bottom:calc(83px + env(safe-area-inset-bottom))}.entity-source{padding-top:12px;padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.freshness-warning{background:#fff3df;border-left-color:#b18034;color:#795c2e;margin:16px 0}.freshness-warning p{margin:7px 0}.freshness-warning a{text-decoration:underline}.freshness-status{font-size:10px;color:#6c795f;line-height:1.8}
.seriesmark{position:relative;display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:88px;margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f0f3eb}.seriesmark-fallback{font-family:Arial,sans-serif;font-style:normal;font-size:17px;font-weight:600;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}.seriesmark small{font-size:10px;font-weight:400;color:var(--muted)}.driver-number{font-size:12px;color:var(--muted);margin:5px 0}.driver-number b{font-size:16px;color:var(--ink)}

.driver-card .entity-visual{height:260px;background:#f5f1f0}.driver-card .entity-visual img{background:#f5f1f0}@media(max-width:580px){.driver-card .entity-visual{height:210px}}
