/* TrainLab | Kvalitetslyft V10 | 2026-11-03
 * Shared editorial polish. Functional search fields and booking logic are untouched.
 */
:root{
 --tlq-paper:#fffcf6;--tlq-white:#fff;--tlq-ink:#24332b;--tlq-green:#28543d;
 --tlq-green-hover:#1f4531;--tlq-muted:#586c5e;--tlq-border:#e4e0d8;
 --tlq-tint:#f4f5f0;--tlq-radius:17px;--tlq-content:1120px;
}
html{scroll-behavior:smooth}
body{color:var(--tlq-ink);-webkit-font-smoothing:antialiased}
html:not([lang="ar"]):not([dir="rtl"]) body{font-family:"DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body :where(h1,h2,h3){color:var(--tlq-ink);text-wrap:balance;letter-spacing:-.035em}
body :where(p,li){overflow-wrap:break-word}
body :where(a){text-underline-offset:3px}
body :where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--tlq-green)!important;outline-offset:3px}
body :where(button,a){-webkit-tap-highlight-color:transparent}
body :where(button,input,select,textarea){font-family:inherit}
body :where(img){max-width:100%;height:auto}
body :where(.tl-unified-header,.header){background:var(--tlq-paper);color:var(--tlq-ink);border-bottom:1px solid var(--tlq-border)}
body .tl-unified-header :where(a,.tl-unified-brand),
body .header :where(a,.logo){color:var(--tlq-ink)}
body :where(.tl-unified-brand,.logo){letter-spacing:-.055em;font-weight:800}
body .tl-unified-header :where(nav a,details a):hover,
body .header :where(nav a):hover{color:var(--tlq-green)}
body :where(footer,.footer){border-color:var(--tlq-border);color:var(--tlq-muted)}
body :where(footer,.footer) a{color:inherit}
/* Unified editorial scale without imposing widths on interactive traffic boards. */
body.tlq-editorial main{max-width:var(--tlq-content);margin-inline:auto;box-sizing:border-box}
body.tlq-editorial main h1{font-size:clamp(2.15rem,4vw,3.65rem);line-height:1.08;letter-spacing:-.052em}
body.tlq-editorial main h2{font-size:clamp(1.4rem,2.25vw,1.85rem);line-height:1.25;margin-top:1.75em;margin-bottom:.65em}
body.tlq-editorial main h3{line-height:1.25}
body.tlq-editorial main p{line-height:1.75}
body.tlq-editorial main :where(p,li){color:var(--tlq-ink)}
body.tlq-editorial main :where(.lead,.intro,.subtitle){color:var(--tlq-muted)}
body.tlq-editorial main :where(ul,ol){padding-inline-start:1.2em}
body.tlq-editorial main a:not(.tlq-feature):not(.action):not(.primary){text-decoration-thickness:1px}
body.tlq-editorial main :where(.source-list,.sources,.references){color:var(--tlq-muted);font-size:.92em}
/* Shared photographic feature strip for the guide hub and European routes. */
.tlq-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:26px 0 42px!important;max-width:var(--tlq-content)}
.tlq-feature{display:block;text-decoration:none!important;color:var(--tlq-ink)!important;background:#fff;border:1px solid var(--tlq-border);border-radius:15px;overflow:hidden;min-width:0;transition:border-color .15s ease,transform .15s ease}
.tlq-feature:hover{border-color:#9fb4a5;transform:translateY(-2px)}
.tlq-feature__image{aspect-ratio:1.45/1;width:100%;height:auto;display:block;object-fit:cover;background:#e9ece5}
.tlq-feature__body{display:block;padding:13px 16px 16px}
.tlq-feature__eyebrow{display:block;color:var(--tlq-muted);font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin-bottom:6px}
.tlq-feature__title{display:block;font-size:1.03rem;font-weight:700;line-height:1.25;letter-spacing:-.02em}
.tlq-feature__desc{display:block;color:var(--tlq-muted);font-size:.83rem;line-height:1.45;margin-top:7px}
/* Balanced station, route and operator pages. Keep timetable tables untouched. */
body.tlq-route main :where(.stats,.route-stats,.facts,.summary){border-color:var(--tlq-border)}
body.tlq-station main :where(.station-info,.station-guides,.station-links){max-width:850px}
body.tlq-editorial main :where(table){border-collapse:collapse;max-width:100%}
body.tlq-editorial main :where(th,td){border-color:var(--tlq-border)}
/* Inspiration articles: no loud floating panels, consistent editorial photography. */
body.tl-inspiration-page{background:var(--tlq-paper)!important;color:var(--tlq-ink)!important}
body.tl-inspiration-page main{max-width:var(--tlq-content);margin-inline:auto}
body.tl-inspiration-page :where(.hero-copy,.article){max-width:810px}
body.tl-inspiration-page .hero-copy h1{font-size:clamp(2.4rem,5.5vw,4.7rem);letter-spacing:-.06em}
body.tl-inspiration-page .hero-copy .lead{color:var(--tlq-muted);max-width:65ch}
body.tl-inspiration-page :where(.hero-photo,.photo-pair figure){overflow:hidden;border-radius:15px}
body.tl-inspiration-page :where(.hero-photo img,.photo-pair img){display:block;width:100%;object-fit:cover;background:#e9ece5}
body.tl-inspiration-page .hero-photo img{aspect-ratio:16/8.7}
body.tl-inspiration-page .photo-pair img{aspect-ratio:4/3}
body.tl-inspiration-page figcaption{font-size:.76rem;line-height:1.5;color:var(--tlq-muted);padding-top:7px}
body.tl-inspiration-page figcaption a{color:inherit}
body.tl-inspiration-page .article p{line-height:1.76}
body.tl-inspiration-page .article h2{letter-spacing:-.035em;line-height:1.22}
body.tl-inspiration-page .layout{gap:32px}
body.tl-inspiration-page .guide-booking-links{border-top:1px solid var(--tlq-border);margin-top:28px}
body.tl-inspiration-page .guide-booking-links a{color:var(--tlq-green);font-weight:650}
body.tl-inspiration-page :where(.booking,.aside){box-shadow:none!important}
/* Home form: suppress inset borders only when the outer date/time control exists. */
html body.trainlab-home #tl-home-trip-form .tl-trip-date-control,
html body.trainlab-home #tl-home-trip-form .tl-trip-time-control{border-radius:16px;box-shadow:none}
html body.trainlab-home #tl-home-trip-form .tl-trip-date-control.tlv9-date-active{
 overflow:hidden!important;border-radius:16px!important;background:#fff!important
}
html body.trainlab-home #tl-home-trip-form .tl-trip-date-control.tlv9-date-active #tlv9-date-button{
 border:0!important;box-shadow:none!important;background:transparent!important;max-width:100%!important
}
html body.trainlab-home #tl-home-trip-form .tl-trip-date-control.tlv9-date-active input#tl-home-date{
 width:1px!important;min-width:0!important;max-width:1px!important;opacity:0!important;pointer-events:none!important
}
/* Preserve usable click targets in analytics, with visible focus. */
html body #tl-analytics-banner:not([hidden]){z-index:2147483000!important;pointer-events:auto!important}
html body #tl-analytics-banner:not([hidden]) :where(button,a){pointer-events:auto!important;cursor:pointer!important}
html body #tl-analytics-banner:not([hidden]) button{min-height:44px}
/* Compact but comfortable inputs elsewhere. Avoid styling special ticket widgets blindly. */
body.tlq-editorial main :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){max-width:100%}
body.tlq-editorial main :where(.pill,.chip,.tag){border-color:var(--tlq-border)}
/* Allow readable links and unclipped calendars on narrow screens. */
@media(max-width:800px){
 .tlq-features{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:22px 0 30px!important}
 body.tl-inspiration-page .layout{display:block}
 body.tl-inspiration-page .aside{display:none}
}
@media(max-width:540px){
 body.tlq-editorial main h1{font-size:clamp(2rem,9vw,2.6rem)}
 .tlq-features{grid-template-columns:1fr;gap:10px}
 .tlq-feature{display:grid;grid-template-columns:minmax(112px,38%) minmax(0,1fr);min-height:115px}
 .tlq-feature__image{height:100%;min-height:115px;aspect-ratio:auto}
 .tlq-feature__body{padding:14px 13px}
 .tlq-feature__desc{font-size:.8rem}
 body.tl-inspiration-page .hero-photo img{aspect-ratio:1.4}
 body.tl-inspiration-page .photo-pair img{aspect-ratio:1.2}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tlq-feature{transition:none}.tlq-feature:hover{transform:none}}
/* Final navigation alignment for the original header and the inspiration guides. */
body .tl-unified-header{box-sizing:border-box}
body.tl-inspiration-page .header{padding:0 clamp(16px,3vw,34px)}
body.tl-inspiration-page .header .nav{max-width:var(--tlq-content);margin-inline:auto;min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px}
body.tl-inspiration-page .header .logo{font-weight:800;letter-spacing:-.055em;color:var(--tlq-ink);font-size:1.42rem}
body.tl-inspiration-page .header .toplinks{display:flex;align-items:center;gap:clamp(13px,2vw,29px)}
body.tl-inspiration-page .header .toplinks a{color:var(--tlq-muted);font-weight:650;font-size:.9rem;text-decoration:none}
body.tl-inspiration-page .header .toplinks a:hover{color:var(--tlq-green)}
body :where(.tl-unified-header nav a,.tl-unified-header details a):focus-visible{border-radius:7px;outline-offset:4px}
body:has(.dc-shell) .dc-editorial{max-width:1080px;margin-inline:auto}
body:has(.dc-shell) .dc-editorial :where(h2,h3){letter-spacing:-.03em}
body:has(.dc-shell) .dc-editorial :where(p,li){line-height:1.65}
@media(max-width:560px){body.tl-inspiration-page .header .nav{min-height:62px}body.tl-inspiration-page .header .toplinks{gap:13px}body.tl-inspiration-page .header .toplinks a{font-size:.78rem}}