/* target-v2's own copy, edited by hand: make changes here. It began as Front-end/Tools/landing-integrate's output from the demo's css/main-page.css (uk- renamed tl-, every selector scoped to main, rem converted to px), and has since moved on: the delivery map's styles are gone, and the YouTube video section (15) is new. New rules follow the same conventions: tl- names, selectors under main, px instead of rem. The tool writes only to target-v1 and never touches this file. After a change, update main-page.css?v= in target-v2/index.html: the first 10 hex digits of the file's SHA-256. */
/* ==========================================================================
   main-page.css
   Teletál main landing page (main-page-v3-pre-integration.html)
   ==========================================================================

   Page-specific styles on top of UIkit 3.23. Everything that used to sit in
   inline \3c style> blocks and in css/uikit-primary-color.css lives here, so the
   HTML carries markup only.

   Load order in <head>:
     1. css/uikit.min.css    UIkit base, never edited
     2. Google Fonts         Raleway @font-face rules only
     3. css/main-page.css    this file. It must come after UIkit: most rules
                             here have the same specificity as the UIkit rule
                             they change, so the later file wins.

   Breakpoints (UIkit's): @s 640px, @m 960px, @l 1200px, @xl 1600px.
   "Below @s" means max-width: 639px.

   Naming:
     --tt-*           Design tokens. Same prefix as the live site's tokens
                      (--tt-blue, --tt-ink, ...).
     .tl-*-<suffix>   Page additions that read like UIkit modifiers
                      (.tl-badge-large). They are not part of UIkit; don't
                      look for them in its docs.
     .h-mobile-*      Small-screen sizes for headings.
     anything else    Page components (.hero-tablecloth, .rating-stars, ...).

   Contents:
      1. Tokens
      2. Brand colours (UIkit overrides)
      3. Typography
      4. Responsive headings
      5. Badges
      6. Sliders (dots, pause button)
      7. Hero
      8. Shortcuts band
      9. Promo cards
     10. Rating stars
     11. Stats
     12. Partner logos
     13. Plates slider
     14. Sticky call to action
     15. YouTube video
     16. Reduced motion
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */

/*
 * Brand red replaces UIkit's primary blue (#1e87f0) on links, primary
 * buttons, primary text and the primary section (see 2). The dark shade is
 * for hover and active states and for the sticky button's focus ring.
 *
 * The muted grey is the live site's --tt-muted. White on it reaches 6.05:1
 * (WCAG AA asks for 4.5:1 for normal text), so it carries white text and
 * logos: the badges (2) and the shortcuts band (8).
 */
main {
  --tt-red: #DA3832;
  --tt-red-dark: #ab1f1a;
  --tt-muted: #5f6368;
}


/* 2. Brand colours (UIkit overrides)
   ==========================================================================

   A cleaned-up copy of the overrides in css/uikit-primary-color.css, limited
   to the components this page uses. That file stays as it is, because the
   older page versions still link it.

   Left out on purpose:
   - Radio, checkbox, progress and divider colours. They never applied: the
     rule put -webkit- and -moz- pseudo-elements in one selector list, and a
     browser drops a whole rule when it doesn't know one selector. The
     divider override also set a background where UIkit draws a border.
   - .tl-form-danger: identical to UIkit's default.
   - Tabs, subnav, navbar dropdown, notification, alert, card, tile,
     background-primary, text-background, section-secondary: not used here.
   If one of these components is added later, give it its brand colour here.

   Integration note: the live site's theme makes links and primary buttons
   the brand blue #43aced. This section is what makes this page red. Keep it
   or drop it as a whole when the page moves into the site.
   ========================================================================== */

/* Links: brand red, the darker shade on hover (UIkit: #1e87f0 and #0f6ecd) */
main a,
main .tl-link {
  color: var(--tt-red);
}

main a:hover,
main .tl-link:hover,
main .tl-link-toggle:hover .tl-link {
  color: var(--tt-red-dark);
}

/*
 * Heading links stay heading-coloured and turn red on hover. The plate cards
 * use this: the whole card is a .tl-link-toggle and its title a
 * .tl-link-heading.
 */
main a.tl-link-heading:hover,
main .tl-link-heading a:hover,
main .tl-link-toggle:hover .tl-link-heading {
  color: var(--tt-red);
}

/* Primary buttons: the "Megnézem az étlapot" calls to action */
main .tl-button-primary {
  background-color: var(--tt-red);
  border-color: transparent;
}

main .tl-button-primary:hover,
main .tl-button-primary:active,
main .tl-button-primary.tl-active {
  background-color: var(--tt-red-dark);
}

/* Primary text: section headlines. The !important matches UIkit's own .tl-text-primary */
main .tl-text-primary {
  color: var(--tt-red) !important;
}

/*
 * Badges such as the week labels ("46. hét") and the diet codes ("Z6"):
 * the muted grey instead of UIkit's blue, so they stay neutral next to the
 * red and their white text is readable (6.05:1; the earlier 30% black gave
 * only 2.1:1). On dark backgrounds (.tl-light, e.g. the hero), UIkit's more
 * specific rule still makes them white with grey text.
 */
main .tl-badge {
  background: var(--tt-muted);
}

/* Primary section: the red call-to-action band near the bottom of the page */
main .tl-section-primary {
  background: var(--tt-red);
}

/* Text selection: a neutral dark highlight instead of UIkit's blue (#39f) */
main ::selection {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  text-shadow: none;
}


/* 3. Typography
   ========================================================================== */

/*
 * Raleway everywhere. UIkit repeats its font stack on headings, navbar items
 * and the logo, so setting it on html alone isn't enough; those selectors are
 * listed explicitly. The system fonts after Raleway are UIkit's own stack,
 * used until the web font arrives.
 */
main,
main h1,
main .tl-h1,
main h2,
main .tl-h2,
main h3,
main .tl-h3,
main h4,
main .tl-h4,
main h5,
main .tl-h5,
main h6,
main .tl-h6,
main [class*="tl-heading-"],
main .tl-navbar-nav > li > a,
main .tl-navbar-item,
main .tl-navbar-toggle,
main .tl-logo {
  font-family: "TL Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Raleway defaults to old-style figures; lining figures read better in prices and dates */
  font-variant-numeric: lining-nums;
}

/* Tighter heading leading to balance Raleway's wider letterforms (UIkit defaults in comments) */
main h1, main .tl-h1 { line-height: 1.15; }                                       /* 1.2 */
main h2, main .tl-h2 { line-height: 1.2; }                                        /* 1.3 */
main h3, main .tl-h3, main h4, main .tl-h4, main h5, main .tl-h5, main h6, main .tl-h6 { line-height: 1.25; }  /* 1.4 */
main .tl-heading-small { line-height: 1.1; }                                 /* 1.2 */
main .tl-heading-medium, main .tl-heading-large { line-height: 1.05; }            /* 1.1 */

/* Stronger headlines (UIkit default: 400). Subheadlines (.tl-heading-small) stay regular for contrast */
main h1, main .tl-h1, main h2, main .tl-h2, main .tl-heading-medium, main .tl-heading-large, main .tl-heading-xlarge, main .tl-heading-2xlarge, main .tl-heading-3xlarge {
  font-weight: 600;
}

main h3, main .tl-h3, main h4, main .tl-h4, main h5, main .tl-h5, main h6, main .tl-h6 { font-weight: 500; }

/*
 * Links within running text are underlined as well as red: colour alone
 * doesn't set them apart from the grey text around them for everyone (WCAG
 * 1.4.1). Buttons, the plate cards and the review sources aren't links
 * inside a paragraph, so they stay as they are.
 */
main p > a:not([class]) {
  text-decoration: underline;
}


/* 4. Responsive headings
   ========================================================================== */

/*
 * One element per heading, with a smaller size below @s, instead of
 * duplicate headings shown and hidden per breakpoint. These come after
 * section 3 on purpose: .h-mobile-text-large must win over
 * .tl-heading-small's line height on phones.
 */
@media (max-width: 639px) {
  main .h-mobile-small {
    font-size: 41.6px;
    line-height: 1.1;
  }

  main .h-mobile-medium {
    font-size: 46.2px;
  }

  main .h-mobile-text-large {
    font-size: 24px;
    line-height: 1.3;
  }
}


/* 5. Badges
   ========================================================================== */

/*
 * Large badge, for a badge inside headline text (the hero's week label).
 * UIkit's .tl-badge is fixed at 11px text and 18px height. This version is
 * em-based, so it scales with whatever text surrounds it.
 *
 * --badge-scale is the one setting to tune: the badge text size relative to
 * the surrounding text. Height and position follow from it automatically.
 */
main .tl-badge-large {
  --badge-scale: 0.42; /* badge text size relative to the surrounding text */
  font-size: calc(var(--badge-scale) * 1em);
  /*
   * Height matches Raleway's cap height (0.71em of the surrounding text),
   * independent of the badge text size. It's divided by the scale because
   * em here means the badge's own, smaller font size.
   */
  min-width: calc(0.71em / var(--badge-scale));
  height: calc(0.71em / var(--badge-scale));
  padding: 0 0.5em;
  /*
   * UIkit's vertical-align: middle centres on the x-height, which sits low
   * next to capitals. Lift to Raleway's cap-height centre (0.08em of the
   * surrounding text). Re-measure this and the 0.71em above if the font
   * changes.
   */
  position: relative;
  top: calc(-0.08em / var(--badge-scale));
}


/* 6. Sliders (dots, pause button)
   ========================================================================== */

/*
 * Dots on light backgrounds. UIkit draws them as a 40% grey outline, too
 * faint to see (about 1.8:1; controls need 3:1). #767676 is the lightest
 * grey that reaches 4.5:1 on white. On dark backgrounds (.tl-light: the
 * hero, the shortcuts band), UIkit's more specific rules keep them white.
 */
main .tl-dotnav > * > * {
  border-color: #767676;
}

main .tl-dotnav > .tl-active > * {
  background-color: #767676;
}

/*
 * Pause/play button next to the dots of the autoplaying sliders (hero,
 * plates). js/main-page.js (section 2) wires it up and switches its label.
 * It takes the text colour around it: white-ish on the hero, grey on white.
 * 28px stays above the 24px minimum target size for touch.
 */
main .slider-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}

/*
 * Touch screens only. With a mouse, UIkit already stops a slider while the
 * pointer is over it, and reaching the button means hovering the slider: the
 * button would always sit next to a stopped slider and show the wrong icon.
 * Keyboard users are covered too: UIkit stops a slider while focus is inside
 * it. Touch screens have no hover, so there the button is the only way to
 * pause (WCAG 2.2.2), and its icon always matches what the slider does.
 */
@media (hover: hover) {
  main .slider-toggle {
    display: none;
  }
}

/* The pause icon shows while the slider plays, the play icon while it's paused (.is-paused) */
main .slider-toggle-play,
main .slider-toggle.is-paused .slider-toggle-pause {
  display: none;
}

main .slider-toggle.is-paused .slider-toggle-play {
  display: block;
}


/* 7. Hero
   ========================================================================== */

/*
 * Cover images for older Safari. UIkit 3.23 writes its cover rule as
 * [tl-cover]:where(img, video). Safari before 14 (iPads stuck on iOS 12 or
 * 13) doesn't know :where() and drops the whole rule, so the hero photos sit
 * in the page instead of filling their slides. These are the same
 * declarations without :where(); browsers that apply UIkit's rule see no
 * change.
 */
main img[tl-cover] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: cover;
  object-position: center;
}

/*
 * Hero text below @m: more room at the bottom (UIkit's overlay padding is
 * 30px), so the last lines clear the dots, the pause button and the
 * scroll-down icon at the bottom centre of the slide.
 */
@media (max-width: 959px) {
  main .hero-text {
    padding-bottom: 90px;
  }
}

/*
 * The "Tervezz előre!" note under the hero button: upright and slightly
 * larger than UIkit's small text (0.875rem), with a soft shadow, so it stays
 * readable on the photo.
 */
main .hero-note {
  font-size: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/*
 * Tablecloth image over the hero slider (bottom right, @m and up; on narrower
 * screens it would cover the text). It stays in place while the slides move,
 * and lets clicks and swipes through to the slider underneath.
 */
main .hero-tablecloth {
  pointer-events: none;
}

/* "Scroll down" mouse icon under the slider dots: white on the dark hero */
main .scroll-down {
  color: #fff;
}

/* The wheel inside the mouse icon fades in, slides down 3px and fades out, every 3 seconds */
main .scroll-down-wheel {
  animation: scroll-down-wheel 3s ease-in-out infinite;
}

@keyframes scroll-down-wheel {
  0% { opacity: 0; transform: translateY(0); }
  11% { opacity: 1; }
  55% { opacity: 1; }
  66% { opacity: 0; transform: translateY(3px); }
  100% { opacity: 0; transform: translateY(3px); }
}


/*
 * Hero height: the whole hero on the first screen
 *
 * The hero is as tall as its tallest slide (slide 1), and that height used to
 * follow the screen's width only. A phone held sideways is 640-930px wide but
 * only 300-430px tall, so it got the tablet layout (long kicker, bullets, a
 * 54px headline) and the hero ran two to three screens down. A laptop got the
 * 96px headline in a 600px column: four lines, and the hero ran 1.2-1.5
 * screens down. On both, the "Megnézem az étlapot" button was below the first
 * screen.
 *
 * The rules below fit the whole hero, kicker to deadline note, on the first
 * screen under the site header (50px tall on phones and tablets, 101px from
 * 1024px wide). The approach:
 *   - Every size is min(today's size, a share of the screen height). Where the
 *     screen is tall enough, today's size wins and nothing changes; where it's
 *     short, the share wins and the headline, subtitle, button and spacing
 *     shrink with the screen.
 *   - The screen height is measured in svh: the height with the browser's
 *     bars showing, so the hero fits even then. Every such value is written
 *     twice, first with vh: browsers that don't know svh (Safari before 15.4,
 *     Chrome before 108) skip the second declaration and use the first.
 *   - Portrait phones keep their content; only the sizes scale.
 *   - Landscape phones (landscape and at most 500px tall) get the same content
 *     as portrait phones: short kicker, no bullets. The text column takes the
 *     full width, so the headline takes one or two lines.
 *   - From @m (tablets in landscape, laptops, desktops) everything stays,
 *     bullets included. The headline and subtitle get the container's full
 *     900px instead of 600px, so the headline takes 2-3 lines instead of 4.
 *     The deadline note keeps its 600px, clear of the tablecloth. On screens
 *     up to 900px tall, the bullets go into two columns, 760px wide at most,
 *     which also keeps them clear of the tablecloth.
 *   - The tablecloth (from @m) shrinks with the screen height too.
 *   - On screens at most 700px tall, the scroll-down icon under the dots is
 *     left out: the space it needs is better spent on the text, and the next
 *     section already shows at the bottom of the screen.
 *
 * Checked on 19 Nov 2026 in headless Chrome at 29 screen sizes, from 568×320
 * to 1920×1080, including phones with their browser bars showing and laptops
 * with their browser window's frame: at every size the hero ends on the first
 * screen, no slide's text is cut off or runs into the dots or the scroll-down
 * icon, no text lies on the visible part of the tablecloth, and the button is
 * on the first screen. Where the hero already fitted (iPhone 14 portrait,
 * 430×932 phones, iPad portrait), every size is as it was.
 *
 * The selectors start with #cover-slider so they win over UIkit's width-based
 * sizes (.tl-heading-large, .tl-section-medium, .tl-width-2-3@s) and over
 * sections 4 and 7 above, whatever the order. UIkit's visibility classes
 * (.tl-hidden@s, .tl-visible@s, .tl-display-inline-block) use !important,
 * so the rules that override them need it too.
 */

/* Headline (the h1 on slide 1, an h2 on slides 2-4) and subtitle (the p in the hgroup). Their sizes
   before this change, per breakpoint: 46.2/24px below @s (section 4), 54.4/41.6px from @s, 64/52px
   from @m, 96/52px from @l (UIkit's heading sizes). Those stay the upper bounds */
main #cover-slider .hero-text hgroup h1,
main #cover-slider .hero-text hgroup h2 {
  font-size: min(46.2px, 6.5vh);
  font-size: min(46.2px, 6.5svh);
}

main #cover-slider .hero-text hgroup p {
  font-size: min(24px, 3.6vh);
  font-size: min(24px, 3.6svh);
}

@media (min-width: 640px) {
  main #cover-slider .hero-text hgroup h1,
  main #cover-slider .hero-text hgroup h2 {
    font-size: min(54.4px, 7vh);
    font-size: min(54.4px, 7svh);
  }

  main #cover-slider .hero-text hgroup p {
    font-size: min(41.6px, 4.5vh);
    font-size: min(41.6px, 4.5svh);
  }
}

@media (min-width: 960px) {
  main #cover-slider .hero-text hgroup h1,
  main #cover-slider .hero-text hgroup h2 {
    font-size: min(64px, 7.5vh);
    font-size: min(64px, 7.5svh);
  }

  main #cover-slider .hero-text hgroup p {
    font-size: min(52px, 4.5vh);
    font-size: min(52px, 4.5svh);
  }
}

@media (min-width: 1200px) {
  main #cover-slider .hero-text hgroup h1,
  main #cover-slider .hero-text hgroup h2 {
    font-size: min(96px, 7vh);
    font-size: min(96px, 7svh);
  }
}

/* The large button: UIkit's 53px line height, less on short screens (9% of the height: 49px on a
   548px-tall phone screen, 29px on a 320px-tall landscape one) */
main #cover-slider .hero-text .tl-button-large {
  line-height: min(53px, 9vh);
  line-height: min(53px, 9svh);
}

/* Space above the text: the slide's padding (UIkit's section-medium: 40px, 70px from @m) and the
   overlay's own 30px */
main #cover-slider .tl-slider-items > li {
  padding-top: min(40px, 4vh);
  padding-top: min(40px, 4svh);
}

main #cover-slider .hero-text {
  padding-top: min(30px, 3vh);
  padding-top: min(30px, 3svh);
}

@media (min-width: 960px) {
  main #cover-slider .tl-slider-items > li {
    padding-top: min(70px, 4.5vh);
    padding-top: min(70px, 4.5svh);
  }

  /* Headline and subtitle across the container's full width (900px); the bullets and the note keep
     the 600px they had, so they stay clear of the tablecloth at the bottom right */
  main #cover-slider .hero-text .tl-width-2-3\@s {
    width: 100%;
  }

  main #cover-slider .hero-text .tl-list,
  main #cover-slider .hero-text .hero-note {
    max-width: 600px;
  }

  /* The tablecloth shrinks with the screen too: 500px square where there's room, less on shorter
     screens, so the shorter hero still shows it beside the text rather than behind it */
  main .hero-tablecloth {
    width: auto;
    height: min(500px, 45vh);
    height: min(500px, 45svh);
  }
}

/* Tablets in landscape, laptops and desktops up to 900px tall: the bullets in two columns (three
   rows instead of five), at most 760px wide so the right column ends before the tablecloth, and no
   margin above the kicker. That 20px margin was never meant: it comes from UIkit's "* + p" rule,
   because the short kicker, hidden here, comes before the long one */
@media (min-width: 960px) and (max-height: 900px) {
  main #cover-slider .hero-text .tl-list {
    max-width: 760px;
    columns: 2;
    column-gap: 30px;
  }

  main #cover-slider .hero-text .tl-list > li {
    break-inside: avoid;
  }

  main #cover-slider .hero-text .tl-text-uppercase {
    margin-top: 0;
  }
}

/* Short screens, any orientation: no scroll-down icon, and below the text only the room the dots and
   the pause button need. Without the icon they take the bottom 53px of the hero; the 60px here
   (45px under the text plus the slide's 15px) leaves a small gap above them */
@media (max-height: 700px) {
  main #cover-slider .scroll-down {
    display: none !important;
  }

  main #cover-slider .tl-slider-items > li {
    padding-bottom: 15px;
  }

  main #cover-slider .hero-text {
    padding-bottom: 45px;
  }
}

/* Landscape phones (and any window this short and wide): the portrait phones' content, that is the
   short kicker instead of the long one and no bullets, in a full-width column, so the headline takes
   one or two lines. Less space above the text, slimmer side padding and a 14px deadline note */
@media (orientation: landscape) and (max-height: 500px) {
  main #cover-slider .hero-text .tl-visible\@s {
    display: none !important;
  }

  main #cover-slider .hero-text .tl-hidden\@s {
    display: block !important;
  }

  /* The short kicker's two lines fit on one in landscape */
  main #cover-slider .hero-text .tl-hidden\@s br {
    display: none;
  }

  main #cover-slider .hero-text .tl-width-2-3\@s {
    width: 100%;
  }

  main #cover-slider .tl-slider-items > li {
    padding-top: min(40px, 3vh);
    padding-top: min(40px, 3svh);
  }

  main #cover-slider .hero-text {
    padding-top: min(30px, 2vh);
    padding-top: min(30px, 2svh);
    padding-left: 20px;
    padding-right: 20px;
  }

  main #cover-slider .hero-text .hero-note {
    font-size: 14px;
  }

  main #cover-slider .hero-text hgroup h1,
  main #cover-slider .hero-text hgroup h2 {
    font-size: min(40px, 8vh);
    font-size: min(40px, 8svh);
  }

  main #cover-slider .hero-text hgroup p {
    font-size: min(24px, 5.5vh);
    font-size: min(24px, 5.5svh);
  }
}


/* 8. Shortcuts band
   ========================================================================== */

/*
 * The meal-line logos under the hero: white SVGs on the muted grey (6.05:1;
 * the earlier light grey gave only 2.0:1). The section also carries
 * .tl-light, so UIkit draws its dots light.
 *
 * --tl-inverse: light tells UIkit's inverse logic that this background is
 * dark. UIkit reads it from whatever is underneath an element floating over
 * the page (for example a sticky navbar passing this band) and gives that
 * element light colours.
 */
main .shortcuts-band {
  --tl-inverse: light;
  background: var(--tt-muted);
}

/*
 * All seven logos in one row from @m, so the slider has nothing left to
 * move, even with autoplay on. Below @m it shows 3 (phones) or 4 (tablets)
 * at a time and moves on by itself every 3 seconds (autoplay in the markup;
 * off for reduced motion, see js/main-page.js). It can also be swiped.
 */
@media (min-width: 960px) {
  main .shortcuts-items > * {
    width: calc(100% / 7);
  }
}


/* 9. Promo cards
   ========================================================================== */

/*
 * Promo cards ("Promóciók"): image, title, text, then the button. The grid
 * stretches every card in a row to the same height (tl-grid-match on
 * .promo-row), and tl-margin-auto-top pushes each button to the bottom, so
 * the buttons line up.
 */
main .promo-card {
  display: flex;
  flex-direction: column;
}

/*
 * Margins don't collapse between flex items, so UIkit's heading and
 * paragraph margins would add up to large gaps. Set them here instead:
 * a small gap above and below the title, the usual one under the text.
 */
main .promo-card > h3 {
  margin: 15px 0 10px;
}

main .promo-card > p {
  margin: 0 0 20px;
}

/*
 * Below @s the cards form one horizontal row that scrolls and snaps card by
 * card, instead of six full-width cards stacked on top of each other. Each
 * card is 85% wide, so the next one peeks in and shows there's more. Plain
 * CSS: no JavaScript, and it works on old iPads too.
 *
 * The images' sizes attribute says calc(85vw - 30px) below @s to match this
 * width; update both together.
 */
@media (max-width: 639px) {
  main .promo-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  main .promo-row > * {
    flex: none;
    width: 85%;
    scroll-snap-align: start;
  }
}


/* 10. Rating stars
   ========================================================================== */

/*
 * Partial star rating, filled up to --rating (0-5). Five star characters are
 * painted with a gradient clipped to the text: currentColor up to the rating,
 * light grey after it. Set the value inline on the element, e.g.
 * style="--rating: 4.3;". The element also needs role="img" and an
 * aria-label that says the rating in words.
 */
main .rating-stars {
  display: inline-block;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, currentColor calc(var(--rating) / 5 * 100%), #d5d5d5 0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* 11. Stats
   ========================================================================== */

/*
 * "Egy napunk számokban": every figure has the same rows (label, number,
 * unit, caption), so the three numbers line up. "25 év" has no label; its
 * empty label row keeps the height of a line of text.
 */
main .stat-label {
  min-height: 1.5em;
}


/* 12. Partner logos
   ========================================================================== */

/*
 * Every partner logo gets the same box, at most 140px wide and 56px high,
 * and is scaled to fit it. Wide and tall logos then look about equally
 * heavy. 3 per row on phones, 5 from @s.
 */
main .partner-logo {
  display: block;
  width: 100%;
  max-width: 140px;
  height: 56px;
  margin: 0 auto;
  object-fit: contain;
}


/* 13. Plates slider
   ========================================================================== */

/*
 * Arrows of the plates slider below @m (wrapper .plates-slidenav). They are
 * centred on the square plate images, not on the whole slide (image + text).
 *
 * A slide is as wide as its image, so the image centre is half the slide
 * width. Below @s that's 1 per view at 100vw - 30px; from @s it's 3 per view
 * at 100vw / 3 - 40px. Both follow from the container padding and the grid
 * gutter. Recalculate if the grid changes.
 */
main .plates-slidenav > a {
  top: calc(50vw - 15px);
}

@media (min-width: 640px) {
  main .plates-slidenav > a {
    top: calc(100vw / 6 - 20px);
  }
}


/* 14. Sticky call to action
   ========================================================================== */

/*
 * The "Megnézem az étlapot" button in the CTA section (#sticky-cta) sticks to
 * the top of the screen while the visitor scrolls (tl-sticky), until the
 * final CTA button near the bottom of the page appears.
 *
 * .sticky-active is the class tl-sticky adds while the button sticks
 * (cls-active in its options). The shadow lifts it off the content
 * underneath.
 *
 * The hero's button gets the same treatment earlier on the page, up to this
 * button: see "Sticky hero button" at the end of this section.
 */
main .sticky-active {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  transition: box-shadow 1s ease;
}

/*
 * Sticky end marker: UIkit stops sticking when the button's bottom reaches
 * the marker (end: #sticky-cta-end).
 *
 * The marker is an empty span inside the final button (#final-cta-button).
 * It sits one viewport height above that button, minus the button height
 * (53px) and the sticky offset. That way the sticky button lets go the
 * moment the final button enters the viewport, and the two never show at
 * once.
 *
 * --sticky-cta-offset is the sticky offset: 20px, as in the markup. On the
 * live site the button sticks below the site's sticky navbar instead, and
 * Tools/landing-integrate/site-integration.js sets both to match.
 */
main #final-cta-button {
  position: relative;
}

main #sticky-cta-end {
  position: absolute;
  top: calc(53px + var(--sticky-cta-offset, 20px) - 100vh);
  left: 0;
  width: 0;
  height: 0;
}

/* A clear keyboard focus ring while sticky; the shadow would hide UIkit's default */
main .sticky-active:focus-visible {
  outline: 2px solid var(--tt-red-dark);
  outline-offset: 2px;
}

/*
 * Sticky hero button (#hero-sticky-cta)
 *
 * The hero's "Megnézem az étlapot" button does what #sticky-cta does, earlier
 * on the page: once the visitor scrolls it off the top, it sticks there, red
 * and centred, until the mid-CTA (#sticky-cta) comes into view. Then it lets
 * go and scrolls away upwards, and the mid-CTA takes over further down. The
 * two are never stuck at the same time.
 *
 * The hero's own buttons can't stick: they sit in the slider's slides, which
 * the slider moves with a CSS transform, and position: fixed inside a
 * transformed parent attaches to that parent instead of the screen. So a twin
 * button at the top of <main> does the sticking, with tl-sticky and the same
 * options and look as #sticky-cta (red, 300px wide, the shadow above, the
 * slide-in from the top):
 *   - start: #hero-cta, slide 1's button. UIkit starts when that element's
 *     bottom passes the sticky line. Slide 1 has the most text, so its button
 *     is the lowest of the four at every screen size, and the start doesn't
 *     move when the slides change. On slides 2-4 the visible button sits a
 *     little higher, so there's a short stretch of scrolling with neither
 *     button showing, as with #sticky-cta's own start (start: 200%).
 *   - end: #hero-sticky-cta-end, an empty marker just before #sticky-cta,
 *     shifted one screen up the same way as #sticky-cta-end above. The twin
 *     lets go the moment the mid-CTA's top reaches the bottom of the screen.
 *     The marker sits beside the mid-CTA rather than inside it, so it stays
 *     put when the mid-CTA sticks in its turn.
 *   - It always links to /etlap, the current menu, like the mid-CTA and the
 *     final button (the hero's slides 2-4 link to later weeks).
 *   - On the live site it sticks below the site's navbar, like #sticky-cta:
 *     Tools/landing-integrate/site-integration.js sets both offsets.
 *
 * Its wrapper has no height, so neither the twin nor the placeholder UIkit
 * leaves in its place ever moves the page. The wrapper is also what centres
 * it while it sticks: UIkit fixes it without setting left, so it keeps its
 * "static position", and for a fixed child of a flex container that is
 * worked out as if it were the container's only item, so justify-content:
 * center puts it in the middle of the screen. (text-align: center would not
 * do: there the static position is the middle of the line, so the button's
 * left edge would land in the middle.)
 *
 * Until it sticks, the twin is hidden. visibility: hidden also takes it out
 * of the keyboard's tab order. tl-sticky-fixed is UIkit's class for "stuck";
 * UIkit keeps it on after the end, while the twin scrolls away, so it stays
 * visible until it has left the screen.
 */
main .hero-sticky-cta {
  display: flex;
  justify-content: center;
  height: 0;
}

main #hero-sticky-cta:not(.tl-sticky-fixed) {
  visibility: hidden;
}

/* The end marker: in the line just above the mid-CTA, moved up by a screen height minus the button
   height and the sticky offset (see #sticky-cta-end above for the arithmetic) */
main #hero-sticky-cta-end {
  display: block;
  position: relative;
  top: calc(53px + var(--sticky-cta-offset, 20px) - 100vh);
  height: 0;
}

/*
 * Not on landscape phones (landscape and at most 500px tall): there the
 * site's navbar and a stuck button would cover about a third of the screen.
 * UIkit leaves an element that isn't displayed alone, so it never sticks.
 */
@media (orientation: landscape) and (max-height: 500px) {
  main .hero-sticky-cta {
    display: none;
  }
}


/* 15. YouTube video
   ==========================================================================

   The video section between the shortcuts band and the promo cards: one
   YouTube iframe ([data-video]) in .video-frame, centred in the 900px
   container. It may be a portrait video (a Short, 1080 × 1920) or a
   landscape one (1920 × 1080); the iframe's width and height attributes say
   which, and nothing else needs to change.

   Who does what:
     - tl-responsive (UIkit) gives the iframe the aspect ratio of its width
       and height attributes, and lets it shrink with the container.
     - js/main-page.js (section 4) copies the same ratio into --video-ratio
       on .video-frame, so the rules below can work out the widest frame
       that still fits the screen's height. It also loads the video, plays
       and pauses it (through UIkit's tl-video) and keeps YouTube from
       switching subtitles on by itself.
   ========================================================================== */

/*
 * The frame's height limit: the screen height with the browser's bars
 * showing (svh, written twice as in the hero, section 7: browsers without
 * svh use the vh line), minus 160px. The 160px keep the whole video clear
 * of what floats over the top of the screen while it plays: the site's
 * navbar with its logo (to 73px) and the sticky red button 20px below it
 * (53px tall, section 14). Never less than 240px, so on a landscape phone
 * the video doesn't shrink to a stamp. From @s it is also never more than
 * 640px (next rule).
 *
 * A frame that would be taller than that gets narrower instead: its width
 * is capped at the height limit times the video's width-to-height ratio.
 * A portrait video therefore stands centred, with white space at its sides
 * on wide screens; a landscape video simply takes the container's width,
 * because its cap is wider than the container on almost every screen.
 *
 * Until section 4 of js/main-page.js has run, the ratio falls back to
 * 16 / 9. The script runs right after the page is parsed, while this
 * section is still below the first screen, so the change is never seen.
 */
main .video-frame {
  --video-max-height: max(240px, calc(100vh - 160px));
  --video-max-height: max(240px, calc(100svh - 160px));
  max-width: calc(var(--video-max-height) * var(--video-ratio, 16 / 9));
  margin: 0 auto;
}

/*
 * From @s (tablets, laptops, desktops), never taller than 640px either: the
 * size a portrait video has on a phone (360 × 640 at 390px wide), which the
 * user found right there. The screen-height limit alone let it grow with
 * the window, to over 1100px on a tall desktop window, far too big for a
 * Short. Phones are left as they were. A landscape video is 506px tall at
 * most (the 900px container), so the cap never touches it.
 *
 * Before the landscape-phone block below, so that block still wins on
 * phones held sideways that are 640px or wider.
 */
@media (min-width: 640px) {
  main .video-frame {
    --video-max-height: min(640px, max(240px, calc(100vh - 160px)));
    --video-max-height: min(640px, max(240px, calc(100svh - 160px)));
  }
}

/*
 * Landscape phones (landscape and at most 500px tall) don't show the sticky
 * red button (section 14), so only the navbar and its logo (to 66px) need
 * clearing: 90px instead of 160px. On a 390px-tall screen a portrait video
 * gets 300px instead of the 240px minimum.
 */
@media (orientation: landscape) and (max-height: 500px) {
  main .video-frame {
    --video-max-height: max(240px, calc(100vh - 90px));
    --video-max-height: max(240px, calc(100svh - 90px));
  }
}

/*
 * The iframe fills the frame's width; its height follows from the ratio.
 * UIkit's tl-responsive sets the same aspect-ratio inline once UIkit runs;
 * this one holds the shape until then. Without it, an iframe is 150px tall
 * by default.
 *
 * The light grey is the empty frame's placeholder: the iframe has no src
 * until the video starts loading (section 4 of js/main-page.js), and
 * YouTube's black player covers the grey once it draws. Without
 * JavaScript, the grey frame stays empty, like the promo pictures that wait
 * for the first slide's photo.
 */
main .video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: var(--video-ratio, 16 / 9);
  background: #f8f8f8;
}


/* 16. Reduced motion
   ==========================================================================

   For visitors whose system asks for less motion. Kept last, so it sits
   after every animation it switches off.

   UIkit ships no reduced-motion rule of its own. Animations are shortened to
   an instant instead of removed, so UIkit still receives the animationend
   events it waits for (for example on the sticky button's slide-in).

   Slider and video autoplay are JavaScript, not CSS: js/main-page.js
   (sections 1 and 4) turns them off for the same visitors.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  main [class*="tl-animation-"],
  main .scroll-down-wheel {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
