/* Google Timeline page. Colours come from the tokens in /styles.css, so dark mode follows them. */
.tl-hero{margin-bottom:64px}
.tl-hero h1{font-size:clamp(38px,5.4vw,68px)}
.tl-link-button{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--text);text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:44px}
.tl-hero .actions .tl-link-button{font-size:16px}
.tl-chips{list-style:none;padding:0;margin:8px auto 0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:820px}
.tl-chips li{background:var(--card);border:1px solid var(--line);border-radius:99px;padding:9px 16px;font-size:14px;font-weight:600;color:var(--soft)}

.tl-urgent .content-inner>h2{margin-bottom:18px}
.tl-flag,.content-band.dark p.tl-flag{display:inline-block;margin:0 0 14px;padding:6px 12px;border-radius:99px;background:var(--lime);color:var(--ink);font:800 12px Manrope,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.tl-urgent-lead{max-width:780px;font-size:18px}
.content-band.dark a{color:var(--lime)}
.tl-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:36px}
.tl-steps article{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:24px;min-width:0}
.tl-steps h3{margin:0 0 12px;font:800 19px Manrope,sans-serif;color:var(--on-surface)}
.tl-steps ol{margin:0;padding-left:20px;color:var(--on-surface-muted);line-height:1.6}
.tl-steps li{margin:6px 0}
.tl-steps strong{color:var(--on-surface)}
.content-band.dark code{background:rgba(255,255,255,.1);padding:1px 6px;border-radius:6px;color:var(--on-surface);font-size:.92em;overflow-wrap:anywhere}
.tl-source{font-size:14px;margin-top:26px}

.tl-tool{max-width:980px;margin:90px auto 30px}
.tl-card{background:var(--card);border:1px solid var(--line);border-radius:28px;padding:40px;min-width:0}
.tl-card h2{display:flex;align-items:center;gap:12px;font:800 clamp(22px,3vw,28px)/1.2 Manrope,sans-serif;margin:44px 0 12px}
.tl-card h2:first-child{margin-top:0}
.tl-step{flex:0 0 auto;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--surface);color:var(--on-surface);font:800 16px Manrope,sans-serif}
.tl-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:34px 20px;border:2px dashed var(--line);border-radius:20px;background:var(--card-soft);cursor:pointer;transition:border-color .15s,background .15s}
.tl-drop:hover,.tl-drop:focus-within,.tl-drop.is-over{border-color:var(--accent)}
.tl-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.tl-drop-title{font:800 18px Manrope,sans-serif;color:var(--text)}
.tl-drop-note{font-size:15px;color:var(--muted)}
.tl-sample-line{margin:14px 0 0;color:var(--muted);font-size:15px}
.tl-sample-line .tl-link-button{min-height:0;font-size:15px}
.tl-status{min-height:1.4em;margin:12px 0 0;font-weight:700;font-size:15px;line-height:1.5}
.tl-status[data-tone=error]{color:#b3261e}
.tl-status[data-tone=ok],.tl-status[data-tone=info]{color:var(--accent)}

.tl-results{margin-top:28px;border-top:1px solid var(--line);padding-top:28px}
.tl-summary{font-size:17px;line-height:1.6;color:var(--soft);margin-bottom:20px}
.tl-summary strong{color:var(--text)}
.tl-filters{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px}
.tl-filters label,.tl-place label{display:block;font-size:13px;font-weight:700;color:var(--soft)}
.tl-filters select{font-weight:600}
.tl-filters select,.tl-filters input,.tl-place input,.tl-reason input{margin-top:6px;font-size:16px;max-width:100%;background:var(--card-soft);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:12px}
.tl-inline{display:flex;align-items:center;gap:8px;font-size:15px;margin-top:6px}
.tl-inline input{width:110px;margin-top:0}
.tl-help{color:var(--muted);line-height:1.6;margin:0 0 16px}

.tl-places{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tl-place{border:1px solid var(--line);border-radius:16px;padding:16px;display:grid;gap:10px;min-width:0;background:var(--card-soft)}
.tl-place-head{display:flex;align-items:center;gap:10px;min-width:0}
.tl-place-label{font-weight:800;min-width:0;overflow-wrap:anywhere;flex:1}
.tl-place-count{font-size:13px;color:var(--muted);white-space:nowrap}
.tl-map{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:99px;border:1px solid var(--line);color:var(--text);font-size:13px;font-weight:700;text-decoration:none}

.tl-months details{border:1px solid var(--line);border-radius:16px;margin-bottom:10px;background:var(--card-soft)}
.tl-months summary{display:flex;justify-content:space-between;gap:12px;padding:16px 18px;font:800 17px Manrope,sans-serif;cursor:pointer;min-height:44px;align-items:center}
.tl-month-stats{font:600 14px 'DM Sans',sans-serif;color:var(--muted)}
.tl-months ul{list-style:none;margin:0;padding:0 10px 10px}
.tl-trip{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:start;padding:12px 8px;border-top:1px solid var(--line)}
.tl-trip.is-business{background:color-mix(in srgb,var(--lime) 22%,transparent);border-radius:12px}
.tl-tick{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:700;cursor:pointer}
.tl-tick input{width:22px;height:22px;margin:0;accent-color:var(--green);flex:0 0 auto}
.tl-trip-body{min-width:0}
.tl-trip-meta{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted)}
.tl-trip-meta strong{color:var(--text);font-size:15px;white-space:nowrap}
.tl-route{font-weight:700;margin:4px 0 8px;overflow-wrap:anywhere}
.tl-reason{display:block}
.tl-reason input{margin-top:0;width:100%;padding:10px 12px}
.tl-empty{color:var(--muted)}
.tl-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.tl-download{margin-top:34px;border-top:1px solid var(--line);padding-top:6px}
.tl-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.tl-totals div{border-radius:16px;padding:18px;background:var(--card-soft);border:1px solid var(--line)}
.tl-totals div:first-child{background:var(--lime);border-color:var(--lime);--text:#15241e;--muted:#4f5c56;color:var(--ink)}
.tl-totals span,.tl-totals small{display:block;font-size:13px;color:var(--muted);font-weight:700}
.tl-totals strong{display:block;font:800 clamp(22px,6.2vw,30px) Manrope,sans-serif;color:var(--text);margin:4px 0;white-space:nowrap}
.tl-choice{border:0;padding:0;margin:0 0 14px;display:grid;gap:4px}
.tl-choice legend{font-size:13px;font-weight:700;color:var(--soft);margin-bottom:6px}
.tl-choice label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:16px;cursor:pointer}
.tl-choice input{width:20px;height:20px;margin:0;accent-color:var(--green)}
.tl-warnings{margin:0 0 16px;padding-left:20px;color:var(--soft);line-height:1.6}
.tl-warnings:empty{display:none}
.tl-primary-button{width:100%;min-height:54px;border:0;border-radius:99px;background:var(--green);color:#fff;font:800 17px 'DM Sans',sans-serif;cursor:pointer}
.tl-primary-button:hover,.tl-primary-button:focus-visible{filter:brightness(1.08)}

.tl-next{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:40px;align-items:center;margin-top:70px}
.tl-next h2{font:800 clamp(28px,4vw,40px)/1.12 Manrope,sans-serif;margin:0 0 16px}
.tl-next ol{padding-left:22px;line-height:1.7;color:var(--soft);font-size:17px}
.tl-next li{margin:8px 0}
.tl-next .actions{flex-wrap:wrap}
.tl-shot{margin:0;justify-self:center}
.tl-shot img{display:block;width:100%;max-width:300px;height:auto;border-radius:24px;box-shadow:18px 20px 0 var(--shadow)}

.tl-share{margin-top:70px;padding:32px;border-radius:24px;background:var(--surface);color:var(--on-surface)}
.tl-share h2{font:800 26px Manrope,sans-serif;margin:0 0 8px}
.tl-share p{color:var(--on-surface-muted);margin:0 0 16px}
.tl-share-buttons{display:flex;flex-wrap:wrap;gap:10px}
.tl-share-buttons button{min-height:44px;padding:10px 18px;border:1px solid #52635b;border-radius:99px;background:transparent;color:var(--on-surface);font:700 15px 'DM Sans',sans-serif;cursor:pointer}
.tl-share-buttons button:first-child{background:var(--lime);border-color:var(--lime);color:var(--ink)}
.tl-share-buttons button:hover,.tl-share-buttons button:focus-visible{border-color:var(--lime)}
.tl-share .tl-status{color:var(--lime)}

.tl-faq{margin-top:60px;max-width:760px}
.tl-faq h2{font:800 34px Manrope,sans-serif}
.tl-faq code,.article-flow code{font-size:.92em;overflow-wrap:anywhere}

.print-footer{display:none}

@media(max-width:800px){
  .tl-hero{margin-bottom:48px}
  .tl-hero .actions{align-items:center}
  .tl-steps,.tl-places,.tl-filters,.tl-next{grid-template-columns:minmax(0,1fr)}
  .tl-tool{margin:60px auto;padding:0 16px}
  .tl-card{padding:22px 18px;border-radius:22px}
  .tl-trip{grid-template-columns:44px minmax(0,1fr);gap:4px}
  .tl-tick{width:44px;justify-content:center;align-items:flex-start;padding-top:2px}
  .tl-tick span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tl-months ul{padding:0 6px 6px}
  .tl-months summary{padding:14px}
  .tl-share{padding:24px 20px}
  .tl-share-buttons button{flex:1 1 100%}
  .tl-shot img{max-width:260px}
}

@media(prefers-color-scheme:dark){
  .tl-status[data-tone=error]{color:#ffb4ab}
  .tl-trip.is-business{background:color-mix(in srgb,var(--lime) 12%,transparent)}
  .tl-primary-button{background:var(--lime);color:var(--ink)}
  .tl-step{background:var(--lime);color:var(--ink)}
}

@media print{
  .site-nav,footer,.tl-hero .actions,.tl-chips,.tl-tool,.tl-share,.tl-faq details:not([open]) p{display:none !important}
  body{background:#fff;color:#000}
  .content-band.dark{background:#fff;color:#000}
  .content-band.dark p,.tl-steps ol,.tl-steps h3,.tl-steps strong,.content-band.dark code{color:#000}
  .tl-steps article{border-color:#999;background:#fff;break-inside:avoid}
  .print-footer{display:flex;align-items:center;gap:16px;border-top:1px solid #999;margin-top:24px;padding-top:12px;font-size:12px;color:#000}
  .print-footer img{width:84px;height:84px}
  .print-footer p{margin:0}
}
