/* Shared look of the delivery and restaurant sites. Loaded after the old pizza_files CSS, so it overrides
   their fixed 977/1030 px layout; the per-site accent comes from an inline :root block placed after this file. */

/* Fonts are self-hosted: loading them from Google's servers before consent would send visitors' IPs to Google. */
/* Czech needs both subsets: latin carries á é í ó ú ý, latin-ext carries č ď ě ň ř š ť ů ž. */
@font-face { font-family: "Fraunces"; src: url("rz-fraunces-800-latin.woff2") format("woff2"); font-weight: 700 900; font-display: swap; 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: "Fraunces"; src: url("rz-fraunces-800-latin-ext.woff2") format("woff2"); font-weight: 700 900; font-display: swap; 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: "Figtree"; src: url("rz-figtree-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; 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: "Figtree"; src: url("rz-figtree-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; 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; }

:root {
    --paper: #f8f1e5;
    --card: #fffcf6;
    --ink: #1f1a15;
    --muted: #6d6256;
    --line: #e4d7c3;
    --accent: #c4361c;
    --accent-dark: #962510;
    --accent-soft: #f7dfd3;
    --radius: 16px;
    --wrap: 1100px;
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --body: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body { height: auto; }

body, body#page1 {
    margin: 0;
    min-width: 0 !important;
    background: var(--paper) !important;
    color: var(--ink);
    font: 16px/1.55 var(--body);
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* Old wrappers: fluid instead of fixed widths, no textures. */
.extra, .main, .box-main, div#content, .wrapper, .indent, .footer, header,
#page1 .col-1, #page1 .col-2, .col-1, .col-2, .nav {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    float: none !important;
    box-sizing: border-box;
    background: none !important;
    box-shadow: none !important;
}
.extra, .main, .box-main { max-width: none; margin: 0; padding: 0; }
div#content { max-width: var(--wrap); margin: 0 auto; min-height: 0; }
.indent { padding: 8px 20px 40px !important; }
.slider { display: none; }

/* Photo band under the header: each site's own food photo (the old design used it as the page background).
   theme_head.php sets --hero only for sites that have one, so the band never shows empty. */
header::after {
    content: "";
    display: var(--hero-display, none);
    flex: 1 0 100%;
    order: 99;
    height: clamp(96px, 18vw, 200px);
    border-radius: var(--radius);
    background: var(--hero, none) center / cover no-repeat;
}

/* Header: wordmark left, city picker right. */
header {
    position: relative;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 18px 20px 14px !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    border-bottom: 2px solid var(--ink);
}
header > .clear, header > div.clear { display: none; }
.h1_top {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0;
}
.h1_top a {
    display: inline-block;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    background: none !important;
    font: 800 clamp(26px, 5vw, 38px)/1 var(--display);
    font-variation-settings: "SOFT" 100, "WONK" 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}
.h1_top a img { display: none; }
.h1_top a:empty::after, .h1_top a:has(img)::after { content: var(--brand, ""); }
.h1_top a::first-letter { color: var(--accent); }

header > div:not(.h1_top):not(.right):not(.clear):not(.nav-left-bg) { display: flex; align-items: center; gap: 10px; }
.city_top, .cities_top { float: none !important; display: inline-block; vertical-align: middle; line-height: 1; }
.city_top a {
    font: 700 15px/1 var(--body);
    color: var(--ink);
    background: none;
    padding: 0;
    text-decoration: none;
}
.city_top a::before { content: "📍 "; }
#next_city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 9px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--card) !important;
    color: var(--ink) !important;
    font: 600 14px/1 var(--body);
    text-decoration: none;
}
#next_city:hover { background: var(--ink) !important; color: var(--paper) !important; }

/* City picker panel. */
#abs_city {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    margin: 0 20px 16px;
    padding: 18px 20px !important;
    background: var(--card) !important;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 6px 6px 0 var(--ink) !important;
}
#abs_city h2 { font: 700 20px/1.2 var(--display); margin: 0 0 10px; }
#abs_city table, #abs_city tbody, #abs_city tr { display: block; width: 100%; }
#abs_city tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 16px; }
#abs_city table td { display: block; width: auto !important; padding: 0 !important; }
#abs_city a { display: inline-block; padding: 5px 0; color: var(--ink); }
.highCity, #abs_city .highCity a { font-weight: 700; }

/* Restaurant-site navigation: cuisine chips. */
.nav-left-bg, .nav-right-bg { background: none !important; width: 100%; order: 3; }
.nav { position: static !important; top: auto !important; }
.nav ul#mainMenu, .nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}
.nav ul#mainMenu > li, .nav ul li { float: none !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.nav ul#mainMenu > li > a, .nav ul li a, .nav ul#secMenu li a {
    display: inline-block;
    padding: 7px 13px !important;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--card) !important;
    color: var(--ink) !important;
    font: 600 14px/1.1 var(--body) !important;
    text-decoration: none;
    text-transform: none !important;
    white-space: nowrap;
}
.nav ul#mainMenu > li > a:hover, .nav ul li a:hover { border-color: var(--accent); color: var(--accent-dark) !important; }
.nav ul#mainMenu > li.last { display: contents; }
.nav ul#mainMenu > li.last > i, #next_kuchyne { display: none !important; }
.nav ul#secMenu { display: contents !important; position: static !important; }

header .right { float: none !important; display: flex; align-items: center; order: 2; }
header .right form div { display: flex; gap: 6px; }
header .right input[type=text] {
    width: min(260px, 52vw);
    padding: 9px 14px !important;
    border: 1.5px solid var(--ink) !important;
    border-radius: 999px;
    background: var(--card);
    font: 15px var(--body) !important;
}
header .right input[type=submit] {
    padding: 9px 16px !important;
    border-radius: 999px;
    background: var(--ink) !important;
    font: 600 14px var(--body) !important;
    cursor: pointer;
}
#queries { display: none; }

/* Page title and district links. */
h1 {
    font: 800 clamp(30px, 6vw, 52px)/1.04 var(--display);
    font-variation-settings: "SOFT" 100;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 28px 0 12px;
}
h2, h3 { font-family: var(--display); color: var(--ink); }
.city_under_h1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 26px;
    font-size: 0;
}
.city_under_h1 > div { display: contents; float: none !important; }
.city_under_h1 br { display: none; }
.city_under_h1 a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font: 600 13px/1.2 var(--body);
    text-decoration: none;
}
.city_under_h1 a:hover { background: var(--accent); color: #fff; }

/* Two columns on desktop: list first, then the side text. */
.indent > .wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
}
.indent > .wrapper > * { min-width: 0; }
.indent > .wrapper > .col-2 { order: 2; }
.indent > .wrapper > .col-1 { order: 1; }
.indent > .wrapper > .clear { display: none; }
.right_text {
    padding: 18px 20px;
    margin-bottom: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--muted);
}
.right_text h3 { font-size: 19px; margin: 0 0 8px; }
.col-2 ul.list { list-style: none; margin: 0 0 16px; padding: 0; }
.col-2 ul.list li { background: none !important; padding: 0 !important; border-bottom: 1px dotted var(--line); }
.col-2 ul.list li a { display: block; padding: 10px 2px; color: var(--ink); text-decoration: none; font-weight: 600; }
.col-2 ul.list li a::after { content: " →"; color: var(--accent); }

/* One venue = one menu card. The old .in wrapper dissolves (display: contents), so its children sit
   on the card grid and the order button can span the whole card on a phone. */
.pizza {
    position: relative;
    display: grid;
    grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "img name name name" "img addr info info2" "img cta cta cta" "ad ad ad ad";
    align-items: start;
    gap: 10px 18px;
    margin: 0 0 18px !important;
    padding: 20px 22px !important;
    background: var(--card) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    width: auto !important;
    height: auto !important;
}
.pizza > h2, .pizza > h3 { grid-area: name; margin: 0 !important; font: 700 clamp(20px, 3.4vw, 26px)/1.15 var(--display) !important; }
.pizza > h2 a, .pizza > h3 a { color: var(--ink) !important; text-decoration: none; }
.pizza > h2 a:hover, .pizza > h3 a:hover { color: var(--accent) !important; }
.pizza > img, .pizza > .img { grid-area: img; align-self: start; float: none !important; margin: 0 !important; }
.pizza > img, .pizza > .img, .pizza > .img img { width: 110px !important; height: 110px; }
.pizza > * { min-width: 0; }
.pizza > img, .pizza > .img img {
    object-fit: contain;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-sizing: border-box;
}
/* Restaurant sites show photos, the delivery sites show logos. */
.pizza > .img img { object-fit: cover; padding: 0; }
.pizza > .links_buttons { grid-area: ad; overflow: hidden; max-width: 100%; text-align: left; margin: 0 !important; }
.pizza > .links_buttons:not(:has(ins)) { display: none; }
.pizza > .clear { display: none; }
.pizza .in { display: contents !important; font-size: 15px; }
.pizza .in > div, .pizza .in .name, .pizza .in .info, .pizza .in .info2 {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
.pizza .in .clear { display: none; }
.pizza .in .name, .pizza .in .address { grid-area: addr; }
.pizza .in .info { grid-area: info; }
.pizza .in .info2 { grid-area: info2; }
.pizza .in .name > div { margin: 0 0 4px; }
.pizza .pizza_address, .pizza .pizza_address *, .pizza .in .address {
    font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.35; text-transform: none !important;
}
.pizza .info, .pizza .info2 { color: var(--muted); font-size: 14px; }
.pizza .info strong, .pizza .info2 > div:first-child { color: var(--ink); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pizza .pop { color: var(--accent-dark); border-bottom: 1px dashed currentColor; cursor: pointer; font-weight: 600; }
.pizza .in .button_dj, .pizza .in > a.genbutton { grid-area: cta; justify-self: start; margin: 6px 0 0 !important; }

/* The order button carries the money: one style everywhere. */
a.genbutton, a.genbutton2, a.genbuttonRed, .submit input {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--accent) !important;
    color: #fff !important;
    font: 700 15px/1 var(--body) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: 0 2px 0 var(--accent-dark) !important;
    transition: transform .12s ease, background-color .12s ease;
    width: auto !important;
    height: auto !important;
}
a.genbutton::after, a.genbutton2::after { content: "→"; font-weight: 400; }
a.genbutton:hover, a.genbutton2:hover { background: var(--accent-dark) !important; transform: translateY(-1px); }

/* Paging. */
.paging { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 20px; }
.paging a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 10px; box-sizing: border-box;
    border: 1.5px solid var(--line); border-radius: 999px;
    background: var(--card) !important; color: var(--ink) !important; font-weight: 700; text-decoration: none;
}
.paging a.activ { background: var(--ink) !important; border-color: var(--ink); color: var(--paper) !important; }

/* Long texts. */
.text_site, .pizza_popis, .podminky_rozvozu {
    max-width: 68ch;
    font-size: 16px;
    line-height: 1.65;
}
.text_site h2 { font-size: 26px; margin: 28px 0 10px; }

/* Tooltip of delivery terms. */
#ZHintDiv {
    max-width: min(450px, calc(100vw - 32px)) !important;
    background: var(--card) !important;
    border: 1.5px solid var(--ink) !important;
    border-radius: 12px;
    box-shadow: 5px 5px 0 var(--ink) !important;
    padding: 14px 16px !important;
    font: 14px/1.5 var(--body) !important;
    color: var(--ink) !important;
}

/* Footer. */
.footer {
    max-width: var(--wrap);
    margin: 20px auto 0 !important;
    padding: 22px 20px 90px !important;
    border-top: 2px solid var(--ink);
    color: var(--muted);
    font-size: 14px;
}
.footer .wrapper { padding: 0; }
.footer p, .footer .copy, .footer .mail { margin: 0 0 6px; float: none !important; }
.footer a { color: var(--ink); }

/* Ads: fixed-size units must never push the page wider than the phone. */
ins.adsbygoogle { max-width: 100% !important; overflow: hidden; }

@media (max-width: 860px) {
    .indent > .wrapper { display: flex; flex-direction: column; align-items: stretch; }
    .indent { padding: 4px 14px 32px !important; }
    .city_under_h1 { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 20px; padding: 0 14px 4px; }
    .city_under_h1::-webkit-scrollbar { display: none; }
    .city_under_h1 a { white-space: nowrap; }
    header { padding: 14px 14px 12px !important; }
    #abs_city { margin: 0 14px 14px; }
    .nav ul#mainMenu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px -14px 0; padding: 0 14px 4px; }
    .nav ul#mainMenu::-webkit-scrollbar { display: none; }
    header .right { width: 100%; }
    header .right form, header .right form div { width: 100%; }
    header .right input[type=text] { flex: 1; width: auto; }
    .col-2 { margin-top: 24px; }
    .pizza {
        grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "name name name" "img addr addr" "info info info2" "cta cta cta" "ad ad ad";
        padding: 16px !important;
        gap: 10px 14px;
    }
    .pizza > img, .pizza > .img, .pizza > .img img { width: 64px !important; height: 64px; }
    .pizza .in .button_dj, .pizza .in > a.genbutton { justify-self: stretch; }
    .pizza .button_dj a.genbutton { width: 100% !important; }
    .footer { padding-bottom: 110px !important; }
}

@media (max-width: 420px) {
    .city_top a::before { content: ""; }
}
