/* Fonts (SIL OFL 1.1, fonts/README.md): Barlow Semi Condensed 600 and 700 for
   headings, menu, buttons and tile titles; Source Sans 3 for body text (one
   variable file for 400 and 600, italic only for the footer quote). Each comes
   as a latin and a latin-ext file (Lithuanian letters); the browser loads a
   file only when the page uses characters in its range. The logo stays Arial. */
@font-face{font-family:"Barlow Semi Condensed";font-style:normal;font-weight:600;font-display:swap;
  src:url(/fonts/barlow-semi-condensed-600-latin-v1.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Semi Condensed";font-style:normal;font-weight:600;font-display:swap;
  src:url(/fonts/barlow-semi-condensed-600-latin-ext-v1.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Barlow Semi Condensed";font-style:normal;font-weight:700;font-display:swap;
  src:url(/fonts/barlow-semi-condensed-700-latin-v1.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Semi Condensed";font-style:normal;font-weight:700;font-display:swap;
  src:url(/fonts/barlow-semi-condensed-700-latin-ext-v1.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400 600;font-display:swap;
  src:url(/fonts/source-sans-3-normal-latin-v1.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400 600;font-display:swap;
  src:url(/fonts/source-sans-3-normal-latin-ext-v1.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:400;font-display:swap;
  src:url(/fonts/source-sans-3-italic-latin-v1.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:400;font-display:swap;
  src:url(/fonts/source-sans-3-italic-latin-ext-v1.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* One spacing scale for the whole site: 4 8 16 24 32 48 64 96.
   Three text sizes per page plus the H1: body, H2 and small UI text. */
:root{
  --bg:#FFFFFF;
  --text:#222624;
  --muted:#5F6662;        /* 5.9:1 on white, 5.4:1 on --tile */
  --line:#E2E5E1;
  --accent:#2F6F94;       /* UI blue: white text on it is 5.5:1 */
  --accent-hover:#245A7A;
  --brand:#68A4C4;        /* logo blue: logo, icon and the line above the footer */
  --tile:#F4F6F5;
  --tint:#EEF4F7;         /* --accent at about 8% on white */
  --photo:#C9CEC8;
  --photo-dark:#3B403C;
  --s1:4px;--s2:8px;--s3:16px;--s4:24px;--s5:32px;--s6:48px;--s7:64px;--s8:96px;
  --body:19px;--h2:26px;--small:16px;
  --sans:"Source Sans 3",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --head:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif;
}
@media (max-width:599px){:root{--body:18px;--h2:24px}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:var(--sans);font-size:var(--body);line-height:1.6;-webkit-font-smoothing:antialiased}
/* body text has 400 and 600 only */
b,strong{font-weight:600}
/* the footer stays at the bottom of the window on short pages */
body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
main{flex:1 0 auto}
.ui,nav,button,label,input,select,textarea,summary,.btn,footer{font-family:var(--sans)}
a{color:var(--accent)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
/* reading column: 60 to 75 characters per line */
.col{max-width:600px;margin:0 auto;padding:0 20px}
.wide{max-width:1140px;margin:0 auto;padding:0 20px}
h1,h2,h3{font-family:var(--head);font-weight:700;line-height:1.15;letter-spacing:0;text-wrap:balance}
h1{font-size:clamp(36px,5vw,50px);margin:0 0 var(--s4)}
/* a heading sits closer to what it introduces than to what is above it */
h2{font-size:var(--h2);margin:var(--s6) 0 var(--s3)}
h3{font-size:var(--body);font-weight:600;line-height:1.3;margin:var(--s5) 0 var(--s2)}
h1 + h2,h2:first-child,h3:first-child{margin-top:0}
p{margin:0 0 var(--s3)}
section{padding:var(--s7) 0;border-top:1px solid var(--line)}
.page-top,.tips-page,.about,.intro{border-top:0;padding-top:var(--s6)}
@media (max-width:599px){section{padding:var(--s6) 0}.page-top,.tips-page,.about,.intro{padding-top:var(--s5)}}

/* image placeholders in the templates (never served: the server replaces or removes them) */
.img{background:var(--photo);color:var(--muted);display:flex;align-items:flex-end;padding:14px 16px;
  font-family:var(--sans);font-size:13px;line-height:1.4;border-radius:2px}
.img b{display:block;color:var(--text)}

/* header */
/* the header stays at the top while scrolling; anchor links land below it */
html{scroll-padding-top:80px}
header{position:sticky;top:0;z-index:15;background:var(--bg);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);height:64px;position:relative}
/* logo: grey uppercase text, the first letter white on a blue square */
.name{display:inline-flex;align-items:center;min-height:44px;font-family:Arial,Helvetica,sans-serif;font-weight:700;font-size:24px;letter-spacing:-.01em;line-height:1;
  color:#6E6E6E;text-decoration:none;text-transform:uppercase;white-space:nowrap}
.name span{display:inline-block;width:1.1em;height:1.1em;line-height:1.1em;text-align:center;
  background:var(--brand);color:#fff;border-radius:2px;margin-right:.08em}
nav ul{display:flex;align-items:center;gap:var(--s4);list-style:none;margin:0;padding:0;font-family:var(--head);font-size:var(--body);font-weight:600}
nav li{display:flex}
/* every menu link is a 44 px tap target */
nav a{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);min-height:44px;min-width:44px;line-height:1;color:var(--text);text-decoration:none}
nav a:hover{color:var(--accent);text-decoration:underline}
nav a.quiet{color:var(--muted)}
nav a[aria-current]{color:var(--accent);text-decoration:underline;text-underline-offset:6px}
nav .icon{justify-content:center;min-width:44px}
nav .icon svg{display:block;flex:none}
.nav-wide .icon-text{display:none}
.nav-wide li:has(.icon) + li:has(.icon){margin-left:calc(-1 * var(--s4))}
/* tips dropdown: the list hangs below the header bar; the item fills the
   bar's height so the pointer can move into the list without closing it */
.nav-wide{align-self:stretch}
.nav-wide > ul{height:100%}
.nav-wide .has-sub{position:relative;align-self:stretch;align-items:center}
.sub-toggle{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;padding:0;border:0;background:none;
  font:inherit;line-height:1;color:var(--text);cursor:pointer}
.sub-toggle::after{content:"";width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor}
.sub-toggle:hover,.sub-toggle[aria-expanded="true"],.sub-toggle.is-current{color:var(--accent)}
.nav-wide .sub{position:absolute;top:100%;left:calc(-1 * var(--s3));z-index:20;display:block;min-width:220px;margin:0;padding:var(--s2) 0;
  background:#fff;border:1px solid var(--line)}
.nav-wide .sub[hidden]{display:none}
.nav-wide .sub li{display:block}
.nav-wide .sub a{display:flex;justify-content:flex-start;padding:0 var(--s3);white-space:nowrap}
/* narrow screens: the same links behind a menu button with three lines, an X
   while open (<details>, works without JS; the icons swap in CSS) */
.nav-narrow{display:none;border:0}
.nav-narrow summary{list-style:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin-right:-10px;padding:0;
  color:var(--text);border-radius:3px}
.nav-narrow summary::-webkit-details-marker{display:none}
.nav-narrow summary svg{display:block;flex:none}
.nav-narrow .i-close,.nav-narrow[open] .i-open{display:none}
.nav-narrow[open] .i-close{display:block}
.nav-narrow[open] summary{color:var(--accent)}
.nav-narrow nav{position:absolute;left:0;right:0;top:64px;z-index:10;background:var(--bg);
  border-bottom:1px solid var(--line);padding:var(--s2) 20px var(--s3)}
.nav-narrow ul{display:block;font-size:var(--body)}
.nav-narrow li a{display:flex;justify-content:flex-start}
.nav-narrow .icon{justify-content:flex-start}
/* tips categories: indented under "Naudinga" in the narrow menu, always shown */
.nav-narrow li.has-sub{display:block}
.nav-narrow .sub{padding-left:var(--s4)}
@media (max-width:960px){
  .nav-wide{display:none}
  .nav-narrow{display:block}
}

/* hero */
.hero{position:relative}
.hero .img{height:min(78vh,640px);background:var(--photo-dark);color:#B9BFBA;align-items:flex-start;border-radius:0}
.hero .img b{color:#E7EAE6}
.hero-text{position:absolute;left:0;right:0;bottom:0;padding:var(--s6) 0;
  background:linear-gradient(transparent,rgba(0,0,0,.45) 35%,rgba(0,0,0,.6))}
.hero h1{color:#fff;font-size:clamp(38px,5.6vw,62px);margin:0 0 var(--s4);max-width:22ch;text-wrap:pretty}
.hero h1:has(+ .hero-sub){margin-bottom:var(--s3)}
.hero-sub{max-width:45ch;margin:0 0 var(--s4)}
.hero p{color:#E9ECE8;font-size:var(--body);font-weight:400;line-height:1.45;margin:0 0 var(--s2);text-shadow:0 1px 2px rgba(0,0,0,.35)}
.hero-sub p:last-child{margin-bottom:0}
.btn{display:inline-flex;align-items:center;min-height:48px;background:var(--accent);color:#fff;text-decoration:none;font-family:var(--head);font-size:var(--body);font-weight:600;line-height:1;
  padding:0 var(--s4);border-radius:3px;border:0;cursor:pointer}
.btn:hover{background:var(--accent-hover)}
.hero .btn{background:#fff;color:var(--text)}
.hero .btn:hover{background:#E9ECE8}
/* /treniruotes and the articles: the lead paragraph under the H1, then a
   16:9 photo as wide as the reading column (to the screen edges on phones),
   24 px above and below it */
.lead{font-size:20px;line-height:1.5;margin:0 0 var(--s4)}
@media (min-width:600px){.lead{font-size:21px}}
.col-photo{margin:var(--s4) 0}
.col-photo + *{margin-top:0}
.col-photo picture{aspect-ratio:16/9}
@media (max-width:599px){.col-photo{margin-left:-20px;margin-right:-20px}.col-photo picture img{border-radius:0}}
/* /treniruotes: the button to the form right under what the price includes */
.list-cta{margin:var(--s4) 0 0}
/* how it works: a numbered list on every screen size, each number in a
   blue circle, the circles joined by a grey line */
.steps{list-style:none;padding:0;margin:0 0 var(--s5)}
.steps li{position:relative;padding-left:44px}
.steps li + li{margin-top:var(--s3)}
.steps li:not(:last-child)::before{content:"";position:absolute;left:13px;top:28px;bottom:calc(-1 * var(--s3));width:2px;background:#CBD1C8}
.step-n{position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;background:var(--accent);color:#fff;
  font-family:var(--head);font-weight:700;font-size:16px;line-height:28px;text-align:center}
.steps h3{margin:0;font-family:var(--head);font-size:19px;font-weight:700;line-height:28px}
.steps p{margin:0;font-size:16px;line-height:1.5;color:var(--muted)}

/* tiles (home page and /naudinga): 1 per row on phones, 3 per row from
   720 px; equal heights, the whole tile is one link. On top, the tile's
   photo (16:9, cropped at its focal point) or else its line icon. */
.tiles-section{border-top:0}
.tiles{display:grid;grid-template-columns:1fr;gap:var(--s4);list-style:none;margin:0;padding:0}
@media (min-width:720px){.tiles{grid-template-columns:repeat(3,1fr)}}
.tiles li{display:flex}
.tile{display:flex;flex-direction:column;width:100%;background:var(--tile);color:var(--text);text-decoration:none;border-radius:3px;overflow:hidden}
.tile picture{aspect-ratio:16/9}
.tile picture img{border-radius:0}
.tile-visual{display:flex;align-items:center;justify-content:center;flex:none;aspect-ratio:16/9;background:var(--tint);color:var(--accent)}
.tile-icon{display:block;width:56px;height:56px}
.tile h2{font-size:var(--h2);margin:var(--s4) var(--s4) var(--s2)}
.tile p{margin:0 var(--s4) var(--s4);color:var(--muted);font-size:var(--body)}
.tile-bar{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:auto;background:var(--accent);color:#fff;
  font-family:var(--head);font-size:var(--body);font-weight:600}
.tile:hover .tile-bar{background:var(--accent-hover)}
.tile:hover h2{text-decoration:underline}
.tile:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* price and "Į kainą įeina" */
.price-line{margin:var(--s4) 0 var(--s5)}
.price-line strong{font-size:var(--h2)}
/* a label followed by a list: 8px to the list, 8px between items, 24px after */
.list-title{margin:0 0 var(--s2)}
p:has(+ ul.plain),p:has(+ ol.plain){margin-bottom:var(--s2)}
ul.plain,ol.plain{padding-left:20px;margin:0 0 var(--s4)}
ul.plain li,ol.plain li{margin-bottom:var(--s2)}
ul.plain li:last-child,ol.plain li:last-child{margin-bottom:0}

/* /apie: a column per sport (1 on phones, 2 from 700 px, 3 from 1100 px),
   then the written works. One row per achievement, the years in grey after
   the text; a year range (2015-2019) never breaks at its hyphen */
.res{list-style:none;margin:0;padding:0;font-size:var(--small);line-height:1.5}
.res li + li{margin-top:6px}
.res-year{color:var(--muted)}
.res-year span{white-space:nowrap}
/* running results: distance, time (aligned on the right), place and year */
.res-times{display:grid;grid-template-columns:max-content max-content 1fr;gap:6px .3em}
.res-times li{display:grid;grid-column:1/-1;grid-template-columns:subgrid}
.res-times li + li{margin-top:0}
.res-time{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.about h1{margin-bottom:var(--s5)}
/* the intro between the H1 and the columns */
.about h1:has(+ .about-intro){margin-bottom:var(--s4)}
.about-intro{max-width:680px;font-size:19px;margin:0 0 var(--s5)}
.sports{display:grid;grid-template-columns:1fr;gap:var(--s6) var(--s5);align-items:start}
.works{margin-top:var(--s7)}
.works h2{margin-top:0}
@media (min-width:700px){.sports{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1100px){.sports{grid-template-columns:repeat(3,1fr)}}
.sport h2{margin:0 0 var(--s3)}
.sport picture{aspect-ratio:4/3;margin:0 0 var(--s4)}

/* athletes (/apie, and /treniruotes above the price): 2 a row on phones, 3
   from 700 px, 4 from 1100 px. A 4:5 photo, or the initials on grey, then the
   name and the result. No boxes, shadows or hover zoom */
.athletes{margin:var(--s7) auto}
.athletes h2{margin-top:0}
.athletes-intro{max-width:680px;margin:0 0 var(--s4)}
.athlete-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:var(--s4)}
@media (min-width:700px){.athlete-grid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1100px){.athlete-grid{grid-template-columns:repeat(4,1fr)}}
.athlete-grid picture,.athlete-initials{aspect-ratio:4/5;margin:0 0 var(--s3)}
.athlete-initials{display:flex;align-items:center;justify-content:center;background:var(--line);color:var(--accent);
  font-family:var(--head);font-size:44px;font-weight:700;line-height:1;border-radius:2px}
.athlete-grid h3{margin:0 0 var(--s1);font-size:18px;font-weight:600}
.athlete-grid p{margin:0;color:var(--muted);font-size:var(--small);line-height:1.4}
.athlete-grid a{color:inherit;text-decoration:underline}
.athlete-grid a:hover{color:var(--accent)}
@media (max-width:599px){.athletes{margin:var(--s6) auto}}
details{border-bottom:1px solid var(--line)}
summary{cursor:pointer;display:flex;align-items:center;min-height:44px;font-size:var(--small);font-weight:600;padding:var(--s2) 0;color:var(--accent)}

/* faq */
.faq details summary{color:var(--text);font-size:var(--body);font-weight:400;padding:var(--s3) 0}
.faq details p{color:var(--muted)}

/* draft text still to confirm */
.ph{background:#FFF1B8}

/* contact */
form{display:grid;gap:var(--s3);margin-top:var(--s2)}
label{display:grid;gap:var(--s2);font-size:var(--small);font-weight:600}
input,select,textarea{font:inherit;font-size:var(--body);font-weight:400;min-height:48px;padding:var(--s2) 12px;border:1px solid #8C938E;border-radius:3px;background:#fff;color:var(--text);width:100%}
textarea{min-height:120px;resize:vertical}
.row{display:grid;grid-template-columns:1fr 1fr;gap:var(--s3)}

footer{border-top:1px solid var(--brand);padding:var(--s6) 0 var(--s7);font-size:var(--small);color:var(--muted)}
footer blockquote{margin:0 0 var(--s4);font-size:var(--body);font-style:italic}
footer p{margin:0 0 var(--s2)}
/* one line on desktop, a little wider than the text column; wraps on phones */
.foot-links{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--s4);width:max-content;max-width:calc(100vw - 40px)}
footer a{display:inline-flex;align-items:center;min-height:44px}

@media (max-width:700px){
  .row{grid-template-columns:1fr}
}

/* real photos: the server swaps each placeholder slot for <picture> */
picture{display:block}
picture img{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px}
.hero picture img{height:min(78vh,640px);border-radius:0}
.hero-plain{background:var(--photo-dark)}
.hero-plain .hero-text{position:static;background:none;padding:var(--s8) 0 var(--s7)}

/* contact form */
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.hp[hidden]{display:none}
.aside{margin:var(--s4) 0 0;font-family:var(--sans);font-size:var(--small);color:var(--muted)}
.form-status:empty{display:none}
.form-msg{padding:12px var(--s3);border-radius:3px;font-family:var(--sans);font-size:var(--small);line-height:1.5}
.form-msg p{margin:0}
.form-msg ul{margin:var(--s2) 0 0;padding-left:20px}
.form-msg-ok{background:#E7F0F6;border-left:4px solid var(--accent)}
.form-msg-error{background:#FBEAE8;border-left:4px solid #A3261A}
[aria-invalid="true"]{border:2px solid #A3261A}
.btn[disabled]{opacity:.7;cursor:progress}

@media (max-width:599px){
  .hero-plain .hero-text{padding:var(--s7) 0 var(--s6)}
}

/* very narrow phones: logo and "Meniu" must fit side by side at 320 px */
@media (max-width:360px){
  .bar{gap:10px}
  .name{font-size:21px}
}

/* admin preview ("Peržiūra"): banner above unsaved content */
.preview-banner{padding:10px 20px;background:#FFF1B8;border-bottom:2px solid #E5C95A;
  font-family:var(--sans);font-size:var(--small);font-weight:600;text-align:center}

/* /naudinga (tiles) and the pages under it */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tips-intro{max-width:560px;margin-bottom:var(--s5)}
.crumbs{margin:0 0 var(--s2);color:var(--muted);font-family:var(--sans);font-size:var(--small)}
.crumbs a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);text-decoration:underline}
/* category pages: the tips as a grid of boxes (1 per row on phones, 2 from
   700 px, 3 from 1100 px), aligned to the top, each as tall as its text */
.tip-grid{display:grid;grid-template-columns:1fr;gap:var(--s4);align-items:start;margin-top:var(--s2)}
@media (min-width:700px){.tip-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1100px){.tip-grid{grid-template-columns:repeat(3,1fr)}}
.tip{background:var(--tile);padding:var(--s4);font-size:17px;line-height:1.55}
.tip picture{aspect-ratio:1/1;margin:calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s4)}
.tip picture img{border-radius:0}
.tip h2{font-size:var(--body);line-height:1.3;margin:0 0 var(--s2)}
.tip p{margin:0 0 var(--s2)}
.tip > :last-child{margin-bottom:0}
.tip ul.plain,.tip ol.plain{margin-bottom:var(--s2)}
.tip-text > :last-child{margin-bottom:0}
/* a long tip, folded by public/js/site.js: its first 3 lines, fading into
   the box, then "Rodyti daugiau" (the study box stays under it) */
.tip-text.is-folded{position:relative;max-height:calc(3 * 1.55em);overflow:hidden}
.tip-text.is-folded::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.55em;
  background:linear-gradient(to bottom,rgba(244,246,245,0),var(--tile));pointer-events:none}
.tip-more{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0;border:0;background:none;cursor:pointer;
  color:var(--accent);font-family:var(--head);font-size:var(--small);font-weight:600;text-decoration:underline}
.tip-more[hidden]{display:none}
.tip-more:hover{color:var(--accent-hover)}
.tip-more:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media print{.tip-text.is-folded{max-height:none}.tip-text.is-folded::after,.tip-more{display:none}}
/* "#" link to the tip: shown on hover and keyboard focus */
.permalink{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;vertical-align:middle;margin:-12px 0;
  color:var(--muted);text-decoration:none;font-family:var(--sans);font-size:var(--small);font-weight:400;opacity:0}
.tip:hover .permalink,.permalink:focus-visible{opacity:1}
/* the study behind a tip, in a light blue box at the bottom */
.tip-source{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--s2);margin:var(--s3) 0 0;padding:0 var(--s3);background:var(--tint);border-left:3px solid var(--accent);border-radius:2px;
  font-family:var(--sans);font-size:var(--small);font-weight:600;color:var(--text)}
.tip-source a{display:inline-flex;align-items:center;min-height:44px}
.tip-meta{margin:var(--s3) 0 0;color:var(--muted);font-family:var(--sans);font-size:var(--small)}
/* the other pages under /naudinga, in one row */
.tip-others{margin-top:var(--s6);padding-top:var(--s4);border-top:1px solid var(--line)}
.tip-others h2{font-size:var(--body);line-height:1.3;margin:0}
.tip-others ul{display:flex;flex-wrap:wrap;gap:0 var(--s4);margin:0;padding:0;list-style:none;font-size:var(--body)}
.tip-others li{display:flex}
.tip-others a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);text-decoration:underline}

/* articles under /naudinga */
.table-wrap{overflow-x:auto;margin:0 0 var(--s4)}
table{width:100%;border-collapse:collapse;font-family:var(--sans);font-size:var(--small)}
th,td{padding:0 var(--s2);text-align:left;vertical-align:middle;border-bottom:1px solid var(--line)}
th{padding-top:var(--s2);padding-bottom:var(--s2);font-weight:600}
th:first-child,td:first-child{padding-left:0}
td a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
/* phones: the four route columns fit without scrolling */
@media (max-width:599px){th,td{padding-left:6px;padding-right:6px}td a{overflow-wrap:anywhere}}
