/* Grambker Stadtteilportal. The look of the Tiki site it replaces: headings in Alex Brush with a soft
   grey shadow, blue links, Lato for reading. Fonts are served from here (OFL, see ../fonts/). */

@font-face { font-family: "Alex Brush"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/alex-brush-latin-400-normal.615e0b8ce13a.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: "Alex Brush"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/alex-brush-latin-ext-400-normal.857b54756979.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-baskerville-latin-400-normal.054afe25df5f.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: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-baskerville-latin-ext-400-normal.e157e6669266.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-latin-400-normal.e1b3b5908c9c.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: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-latin-ext-400-normal.633f8feda218.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-latin-400-italic.efee2d080d7b.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: "Lato"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-latin-ext-400-italic.acf553fc81d4.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/lato-latin-700-normal.de69cf9e514d.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: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/lato-latin-ext-700-normal.33c906549bd6.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --gb-text: #212529;
  --gb-muted: #5f676f;
  /* primary: the Weser blue of the Tiki theme. Light for large things (titles, logo, the current section),
     dark for links in running text, which need 4.5:1 on white (the light blue has 3.9:1) */
  --gb-primary: #3c88bc;
  --gb-primary-dark: #2a6690;     /* 6.2:1 on white */
  --gb-primary-deep: #1f4e6e;     /* hover, 8.9:1 */
  /* secondary: brick red (Backstein), for highlights: the current picture, markers, supplements */
  --gb-secondary: #b5523b;        /* 5.0:1 on white, fine as text too */
  --gb-secondary-dark: #9c4430;   /* 6.4:1 */
  --gb-secondary-soft: #f6e4df;   /* backgrounds */
  /* third: reed gold (Reetgold), for surfaces, frames and markers only; 3.0:1 on white is too weak for text */
  --gb-tertiary: #c8892b;
  --gb-tertiary-dark: #a86d14;    /* 4.3:1: large or bold text at most */
  --gb-tertiary-soft: #fbf1dc;    /* backgrounds */
  --gb-link: var(--gb-primary-dark);
  --gb-link-hover: var(--gb-primary-deep);
  --gb-heading: #212529;
  --gb-shadow: #999;         /* text-shadow of the headings, as on the Tiki site */
  --gb-page: #fff;
  --gb-bg: #f4f0e8;          /* the page behind the content: warm paper instead of white */
  /* boxes, photos and the side column: round corners, a fine line and a soft warm shadow, the same soft
     shadow the script headings throw */
  --gb-radius: 16px;
  --gb-shadow-soft: 0 .12em .4em rgba(70, 55, 30, .10), 0 .7em 1.8em rgba(70, 55, 30, .09);
  --gb-paper: #f6f4ef;       /* a warm grey for captions and boxes */
  --gb-line: #e2ded5;
  --gb-green: #eaf4e1;       /* the info boxes of the old start page, calmer */
  --gb-yellow: var(--gb-tertiary-soft);
  --gb-script: "Alex Brush", "Segoe Script", cursive;
  --gb-sans: "Lato", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gb-gutter: clamp(16px, 3vw, 40px);
  --gb-footer: var(--gb-primary-dark);      /* the page blue, darker: white text on it reads at 6.2:1 */
  --gb-footer-soft: #d6e6f2; /* quieter text on the footer, 4.8:1 */
  --gb-print: #fff;          /* the white border of a photo, like a print */
  --gb-control: rgba(255, 255, 255, .88);   /* the buttons on the banner */
  --gb-dot: #9a958c;
  --gb-lightbox: rgba(244, 240, 232, .97);
  --gb-supplement-bg: #fdf6f3; --gb-supplement-line: #e8c4b9;
  --box-paper-bg: #fffdf8; --box-paper-line: #e2d9c6;
  --box-blue-bg: #eef5fa; --box-blue-line: #a9cbe3;
  --box-brick-bg: #f9eeea; --box-brick-line: #e0ac9e;
  --box-gold-bg: #fcf4e2; --box-gold-line: #e6c483; --box-gold-title: #7d520f;
  --box-green-bg: #eff6e7; --box-green-line: #b0d293; --box-green-title: #3f6428;
  color-scheme: light;
}

/* dark: warm dark paper instead of black, the same colours lighter. The script in the head of
   portal/page.html sets data-gb-theme before this file applies (no white flash). data-theme holds the
   choice (auto/light/dark) shared with the django CMS toolbar and the admin; data-gb-theme the result. */
:root[data-gb-theme="dark"] {
  color-scheme: dark;
  --gb-text: #e9e3d7;          /* 13.6:1 on the paper */
  --gb-muted: #b4ab9c;
  --gb-heading: #f2ede3;
  --gb-shadow: rgba(0, 0, 0, .85);
  --gb-primary: #6fa9d6;       /* titles, logo, current section: 6.9:1 */
  --gb-primary-dark: #8ec2e8;  /* links: 9.1:1 */
  --gb-primary-deep: #b8daf2;
  --gb-secondary: #e08b72;
  --gb-secondary-dark: #eba28c;
  --gb-secondary-soft: #4a2c23;
  --gb-tertiary: #d9a54e;
  --gb-tertiary-dark: #e6bb6f;
  --gb-tertiary-soft: #33291a;
  --gb-page: #26231f;          /* bars, cards, side column */
  --gb-bg: #1c1a17;
  --gb-paper: #2b2722;
  --gb-line: #3d3730;
  --gb-green: #222c1c;
  --gb-shadow-soft: 0 .12em .4em rgba(0, 0, 0, .35), 0 .7em 1.8em rgba(0, 0, 0, .35);
  --gb-footer: #17344a;        /* white on it: 12.9:1 */
  --gb-footer-soft: #c9dcea;
  --gb-print: #3a352e;
  --gb-control: rgba(38, 35, 31, .88);
  --gb-dot: #7d766b;
  --gb-lightbox: rgba(28, 26, 23, .97);
  --gb-supplement-bg: #2e2420; --gb-supplement-line: #5a3a30;
  --box-paper-bg: #2b2722; --box-paper-line: #443d34;
  --box-blue-bg: #1e2b35; --box-blue-line: #35546b;
  --box-brick-bg: #35231d; --box-brick-line: #6b3f33;
  --box-gold-bg: #33291a; --box-gold-line: #6d5428; --box-gold-title: #e6bb6f;
  --box-green-bg: #222c1c; --box-green-line: #46603a; --box-green-title: #a9d18e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--gb-bg); color: var(--gb-text); font: 400 1.05rem/1.6 var(--gb-sans); }
a { color: var(--gb-link); text-underline-offset: .15em; }
a:hover { color: var(--gb-link-hover); }
img { max-width: 100%; height: auto; }
.gb-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gb-skip { position: absolute; left: -999px; top: 0; padding: .5rem 1rem; background: var(--gb-page); z-index: 100; }
.gb-skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gb-primary); outline-offset: 2px; }
::selection { background: var(--gb-secondary-soft); color: var(--gb-text); }

/* -- script headings with their shadow -- */
.gb-title, .gb-main h1, .gb-main h2, .gb-brand__name {
  font-family: var(--gb-script); font-weight: 400; color: var(--gb-heading);
  text-shadow: .2em .2em .2em var(--gb-shadow); letter-spacing: .01em;
}
.gb-title::after { content: ""; display: block; width: 72px; height: 3px; margin-top: .55rem; background: var(--gb-secondary); }
.gb-title { margin: 0 0 1.4rem; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.15; }
.gb-main h2 { margin: 2.2rem 0 1rem; font-size: clamp(2rem, 4.5vw, 2.7rem); line-height: 1.2; text-shadow: .15em .15em .18em var(--gb-shadow); }
.gb-main h3 { margin: 1.8rem 0 .6rem; font-size: 1.25rem; line-height: 1.3; }
.gb-main h4 { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }

/* -- the bar on top: name, menu button and breadcrumbs stay while the page scrolls; it turns
      compact once the page moves (static/portal/js/grambke.js sets .is-compact and --gb-top-h) -- */
.gb-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--gb-page);
  border-bottom: 1px solid var(--gb-line); transition: box-shadow .25s ease;
}
/* the breadcrumbs below carry the shadow; the bar alone has it only on pages without them */
.gb-top.is-compact { box-shadow: 0 2px 14px rgba(0, 0, 0, .12); }
body:has(.gb-breadcrumb) .gb-top.is-compact { box-shadow: none; border-bottom-color: transparent; }
html.cms-toolbar-expanded .gb-top { top: 46px; }   /* below the toolbar of django CMS while editing */
/* keeps the room of the full bar, so the page does not jump when the bar turns compact */
.gb-top-spacer { height: var(--gb-top-full, 118px); }
.gb-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 12px var(--gb-gutter) 6px;
}
.gb-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.gb-brand__logo { width: 72px; height: auto; flex: none; transition: width .25s ease; }
.gb-brand__text { display: flex; flex-direction: column; min-width: 0; }
.gb-brand__name { white-space: nowrap; color: var(--gb-primary); font-size: clamp(1.7rem, 5vw, 2.9rem); line-height: 1.05; text-shadow: .2em .2em .2em var(--gb-shadow); transition: font-size .25s ease; }
.gb-brand:hover .gb-brand__name { color: var(--gb-primary-dark); }
.gb-brand__claim { color: var(--gb-text); font-size: clamp(1rem, 2.4vw, 1.35rem); line-height: 1.3; margin-top: .15rem; max-height: 2em; overflow: hidden; transition: max-height .25s ease, opacity .25s ease; }
/* "heute" plain, "gestern" in print, "vorgestern" in handwriting like the headings */
.gb-claim__today { font-family: var(--gb-sans); font-weight: 700; letter-spacing: .02em; }
.gb-claim__yesterday { font-family: "Libre Baskerville", Georgia, "Times New Roman", serif; font-size: .92em; }
.gb-claim__before { font-family: var(--gb-script); font-size: 1.45em; line-height: .8; text-shadow: .12em .12em .15em var(--gb-shadow); }
.gb-top.is-compact .gb-header { padding-top: 6px; padding-bottom: 2px; }
.gb-top.is-compact .gb-brand__logo { width: 44px; }
.gb-top.is-compact .gb-brand__name { font-size: clamp(1.6rem, 3.6vw, 2.1rem); text-shadow: .15em .15em .15em var(--gb-shadow); }
.gb-top.is-compact .gb-brand__claim { max-height: 0; opacity: 0; margin: 0; }
.gb-top.is-compact .gb-sections a { font-size: 1rem; padding: .2rem 0; }
@media (prefers-reduced-motion: reduce) { .gb-top, .gb-top * { transition: none !important; } }
.gb-menu-toggle { display: none; }

/* right in the bar: a small row for login and the legal pages, below it the first level of pages,
   as on the ITI site */
.gb-header__right { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.gb-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1.1rem; font-size: .85rem; }
.gb-meta a { color: var(--gb-muted); text-decoration: none; }
.gb-meta a:hover { color: var(--gb-link); text-decoration: underline; }
.gb-top.is-compact .gb-meta { display: none; }
.gb-theme { display: inline-flex; align-items: center; gap: .3rem; padding: 0; border: 0; background: none; color: var(--gb-muted); font: inherit; cursor: pointer; }
.gb-theme:hover { color: var(--gb-link); text-decoration: underline; }
.gb-theme svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gb-theme .gb-theme__icon { display: none; }
:root[data-gb-mode="auto"] .gb-theme__icon--auto, :root[data-gb-mode="light"] .gb-theme__icon--light,
:root[data-gb-mode="dark"] .gb-theme__icon--dark { display: inline; }
.gb-nav__meta { display: none; }
.gb-sections { display: flex; justify-content: flex-end; }
.gb-sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem 1.6rem; }
.gb-sections a {
  display: block; padding: .35rem 0 .3rem; color: var(--gb-text); text-decoration: none;
  font-size: 1.08rem; font-weight: 700; letter-spacing: .01em; border-bottom: 3px solid transparent;
}
.gb-sections a:hover { color: var(--gb-primary-dark); border-bottom-color: var(--gb-line); }
.gb-sections .is-current a { color: var(--gb-primary-dark); border-bottom-color: var(--gb-secondary); }

/* -- banner (from ITI-web): whole pictures, a blurred copy of the same picture fills the sides -- */
.gb-banner {
  position: relative; height: clamp(280px, 38vw, 560px); overflow: hidden; background: #2b2b2b;
  opacity: var(--gb-banner-fade, 1);
}
.gb-banner__slides, .gb-banner__slide { position: absolute; inset: 0; margin: 0; }
.gb-banner__slide { opacity: 0; transition: opacity .9s ease; }
.gb-banner__slide.is-current { opacity: 1; z-index: 1; }
.gb-banner__backdrop { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(28px) saturate(.8) brightness(.75); }
.gb-banner__slide a { position: absolute; inset: 0; display: block; }
.gb-banner__slide img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.gb-banner__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 2.4rem calc(var(--gb-gutter) + 60px) .9rem var(--gb-gutter);
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .45) 60%, transparent);
  color: #fff; font-size: 1rem; line-height: 1.45; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  max-height: 45%; overflow: auto;
}
.gb-banner__source, .gb-picture__source { white-space: nowrap; opacity: .8; font-size: .9em; }
.gb-banner__source::before, .gb-picture__source::before { content: "· "; }
.gb-banner button {
  position: absolute; z-index: 2; padding: 0; cursor: pointer; color: var(--gb-text);
  background: var(--gb-control); border: 1px solid var(--gb-line); border-radius: 12px;
  box-shadow: var(--gb-shadow-soft); transition: background .15s ease, transform .15s ease;
}
.gb-banner button:hover, .gb-banner button:focus-visible { background: var(--gb-page); transform: translateY(-1px); }
.gb-banner button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gb-banner__prev, .gb-banner__next { top: calc(50% - 26px); width: 44px; height: 52px; }
.gb-banner__prev { left: 14px; }
.gb-banner__next { right: 14px; }
.gb-banner__prev svg, .gb-banner__next svg { padding: 13px 9px; }
.gb-banner__dots {
  position: absolute; z-index: 2; right: 14px; top: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  max-width: 60%; padding: 9px 12px; background: var(--gb-control);
  border: 1px solid var(--gb-line); border-radius: 999px; box-shadow: var(--gb-shadow-soft);
}
.gb-banner__dots button { position: static; width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--gb-dot); box-shadow: none; }
.gb-banner__dots button:hover { background: var(--gb-text); transform: none; }
.gb-banner__dots button[aria-current="true"] { background: var(--gb-secondary); transform: scale(1.25); }
.gb-banner__pause { right: 14px; bottom: 14px; width: 40px; height: 40px; }
.gb-banner__pause svg { padding: 11px; }
.gb-banner__pause .play { display: none; fill: currentColor; stroke: none; }
.gb-banner__pause.is-paused .play { display: inline; }
.gb-banner__pause.is-paused .pause { display: none; }
.gb-banner__slide figcaption { padding-right: calc(var(--gb-gutter) + 120px); }
/* with many pictures a counter "12 / 74" instead of a row of dots; in full screen the counter always */
.gb-banner__count {
  position: absolute; z-index: 2; right: 14px; top: 14px; margin: 0; padding: 5px 12px;
  background: var(--gb-control); color: var(--gb-text); border: 1px solid var(--gb-line); border-radius: 999px;
  box-shadow: var(--gb-shadow-soft); font-size: .88rem; font-variant-numeric: tabular-nums; display: none;
}
.gb-banner:has(.gb-banner__dots.is-many) .gb-banner__count, .gb-banner.is-full .gb-banner__count { display: block; }
.gb-banner__dots.is-many { display: none; }
.gb-banner.is-full .gb-banner__dots:not(.is-many) { top: 58px; }
.gb-banner__full { right: 62px; bottom: 14px; width: 40px; height: 40px; }
.gb-banner__full svg { padding: 10px; }
.gb-banner__full .compress { display: none; }
.gb-banner.is-full .gb-banner__full .compress { display: inline; }
.gb-banner.is-full .gb-banner__full .expand { display: none; }
.gb-banner:not(:has(.gb-banner__pause)) .gb-banner__full { right: 14px; }

/* the banner in full screen: a slide show of the page's pictures, whole, on a blurred copy of each,
   caption and controls on top */
.gb-banner.is-full { height: 100vh; height: 100dvh; width: 100vw; opacity: 1; background: #111; outline: none; }
.gb-banner.is-fullscreen { position: fixed; inset: 0; z-index: 1000; }
html.gb-banner-full { overflow: hidden; }
.gb-banner.is-full .gb-banner__backdrop { filter: blur(36px) saturate(.75) brightness(.55); }
.gb-banner.is-full .gb-banner__slide a { cursor: e-resize; }
.gb-banner.is-full .gb-banner__slide figcaption {
  padding: 3.5rem calc(var(--gb-gutter) + 130px) 1.4rem calc(var(--gb-gutter) + 8px);
  font-size: clamp(1rem, 1.6vw, 1.25rem); max-height: 40%;
}
.gb-banner.is-full .gb-banner__prev, .gb-banner.is-full .gb-banner__next { width: 54px; height: 66px; top: calc(50% - 33px); }
.gb-banner.is-full .gb-banner__dots:not(.is-many) { display: flex; max-width: 70%; }
@media (prefers-reduced-motion: reduce) { .gb-banner__slide { transition: none; } }

/* -- page: the tree on the left, the text beside it -- */
.gb-layout {
  display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  max-width: 1320px; margin: 0 auto; padding: 28px var(--gb-gutter) 56px;
}
.gb-main { min-width: 0; max-width: 900px; }
.gb-main::after { content: ""; display: block; clear: both; }
.gb-nav {
  padding: 1rem 1.1rem 1.1rem; background: var(--gb-page); border: 1px solid var(--gb-line);
  border-radius: var(--gb-radius); box-shadow: var(--gb-shadow-soft);
  font-size: .97rem; position: sticky; align-self: start;
  top: calc(var(--gb-top-h, 110px) + var(--gb-crumb-h, 40px) + 20px);
  max-height: calc(100vh - var(--gb-top-h, 110px) - var(--gb-crumb-h, 40px) - 40px); overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin;
}
html.cms-toolbar-expanded .gb-nav { top: calc(var(--gb-top-h, 110px) + var(--gb-crumb-h, 40px) + 66px); }
.gb-nav ul { list-style: none; margin: 0; padding: 0; }
.gb-nav__sections { display: none; }
.gb-nav__section {
  display: block; margin: 0 0 .5rem; color: var(--gb-primary); text-decoration: none;
  font: 400 2rem/1.15 var(--gb-script); text-shadow: .15em .15em .15em var(--gb-shadow);
}
.gb-nav__section:hover { color: var(--gb-primary-dark); }
/* a page outside the sections, or a section without pages below it, has no side column */
.gb-layout:not(:has(.gb-nav__tree li)) { grid-template-columns: minmax(0, 1fr); }
.gb-layout:not(:has(.gb-nav__tree li)) .gb-main { margin: 0 auto; }
.gb-nav:not(:has(.gb-nav__tree li)) { display: none; }
.gb-nav__tree > li { border-bottom: 1px solid var(--gb-line); }
.gb-nav__tree a { display: block; padding: .45rem .2rem; color: var(--gb-text); text-decoration: none; line-height: 1.3; }
.gb-nav__tree a:hover { color: var(--gb-link); }
.gb-nav__tree ul { padding: 0 0 .5rem .9rem; border-left: 2px solid var(--gb-line); margin-left: .2rem; }
.gb-nav__tree ul a { padding: .28rem .2rem; font-size: .93rem; }
.gb-nav__tree .is-current > a { color: var(--gb-primary-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--gb-secondary); padding-left: .6rem; }
/* the breadcrumbs close the head of the page below the banner and stay with the bar on top while the
   page scrolls; the soft shadow of the side column falls onto the paper below */
.gb-breadcrumb {
  position: sticky; top: calc(var(--gb-top-h, 70px) - 1px); z-index: 45;   /* 1px under the bar: no gap */
  background: var(--gb-page); border-bottom: 1px solid var(--gb-line); box-shadow: var(--gb-shadow-soft);
}
html.cms-toolbar-expanded .gb-breadcrumb { top: calc(var(--gb-top-h, 70px) + 45px); }
.gb-breadcrumb ol {
  max-width: 1320px; margin: 0 auto; padding: .6rem var(--gb-gutter); list-style: none;
  display: flex; flex-wrap: wrap; gap: .3rem; font-size: .92rem; color: var(--gb-muted);
}
.gb-breadcrumb ol:empty { display: none; }
.gb-breadcrumb li + li::before { content: "›"; margin-right: .3rem; }
.gb-breadcrumb a { color: var(--gb-muted); }

.gb-main p, .gb-main ul, .gb-main ol { margin: 0 0 1rem; }
.gb-main .gb-center { text-align: center; }   /* inscriptions, verses, Tiki's ::centred:: lines */
.gb-main table {
  border-collapse: separate; border-spacing: 0; margin: 1rem 0 1.4rem; width: 100%; font-size: .97rem;
  background: var(--gb-page); border: 1px solid var(--gb-line); border-radius: 12px; overflow: hidden;
}
.gb-main tr:last-child > td { border-bottom: 0; }
.gb-main th, .gb-main td { padding: .45rem .6rem; border-bottom: 1px solid var(--gb-line); text-align: left; vertical-align: top; }
.gb-main th { background: var(--gb-paper); }
.gb-box {
  --box-bg: var(--box-paper-bg); --box-line: var(--box-paper-line); --box-title: var(--gb-text);
  clear: both; margin: 1.6rem 0; padding: 1.1rem 1.4rem .4rem;
  background: var(--box-bg); border: 1px solid var(--box-line); border-radius: var(--gb-radius);
  box-shadow: var(--gb-shadow-soft);
}
.gb-box::after { content: ""; display: block; clear: both; }
.gb-box--blue { --box-bg: var(--box-blue-bg); --box-line: var(--box-blue-line); --box-title: var(--gb-primary-dark); }
.gb-box--brick { --box-bg: var(--box-brick-bg); --box-line: var(--box-brick-line); --box-title: var(--gb-secondary-dark); }
.gb-box--gold, .gb-box--yellow { --box-bg: var(--box-gold-bg); --box-line: var(--box-gold-line); --box-title: var(--box-gold-title); }
.gb-box--green { --box-bg: var(--box-green-bg); --box-line: var(--box-green-line); --box-title: var(--box-green-title); }
.gb-main .gb-box__title { margin: .1rem 0 .7rem; color: var(--box-title); font-size: clamp(1.7rem, 3.6vw, 2.2rem); }
.gb-box > :last-child, .gb-box > p:last-child { margin-bottom: .8rem; }
.gb-main .gb-box > :first-child { margin-top: .2rem; }
.gb-box .gb-picture img { background: var(--gb-print); }

/* -- pictures with their captions -- */
.gb-picture { margin: 1.4rem 0; }
.gb-picture a { display: block; cursor: zoom-in; }
.gb-picture img {
  display: block; width: 100%; padding: 7px; background: var(--gb-print);
  border: 1px solid var(--gb-line); border-radius: 12px; box-shadow: var(--gb-shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gb-picture a:hover img { transform: translateY(-2px); box-shadow: 0 .2em .5em rgba(70, 55, 30, .14), 0 1em 2.4em rgba(70, 55, 30, .14); }
.gb-picture figcaption { padding: .6rem .3rem 0; color: var(--gb-muted); font-size: .93rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .gb-picture img { transition: none; } }
.gb-picture--small { max-width: 300px; }
.gb-picture--medium { max-width: 500px; }
.gb-picture--large { max-width: 800px; }
.gb-picture--center { margin-left: auto; margin-right: auto; }
.gb-picture--left { float: left; clear: left; margin: .3rem 1.6rem 1rem 0; width: 45%; }
.gb-picture--right { float: right; clear: right; margin: .3rem 0 1rem 1.6rem; width: 45%; }
.gb-row { clear: both; margin: 1.8rem 0; }
.gb-main .gb-row h2 { margin-top: 0; }
/* a row of pictures is a wall of tiles of the same size; a click shows the whole picture with its whole
   caption (the lightbox, static/portal/js/grambke.js) */
.gb-row__items { display: grid; gap: 1.4rem 1.2rem; align-items: start; }
.gb-row--small .gb-row__items { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gb-row--medium .gb-row__items { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gb-row--large .gb-row__items { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gb-row .gb-picture { float: none; width: auto; max-width: none; margin: 0; }
.gb-row .gb-picture img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.gb-row .gb-picture figcaption {
  font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}

/* the CMS edit mode of a draft: a field for new pictures below the row, tiles to drag (portal/editing.py) */
.gb-row[data-row-edit] .gb-picture[draggable="true"] { cursor: grab; transition: opacity .15s; }
.gb-row .gb-picture.is-dragged { opacity: .35; outline: 2px dashed var(--gb-primary); outline-offset: 4px; border-radius: var(--gb-radius); }
.gb-row__drop {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-top: 1.2rem; padding: 1.3rem 1rem;
  border: 2px dashed var(--gb-line); border-radius: var(--gb-radius); background: var(--gb-paper);
  color: var(--gb-muted); text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.gb-row__drop strong { color: var(--gb-text); }
.gb-row__drop svg { width: 2rem; height: 2rem; fill: none; stroke: var(--gb-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gb-row__drop:hover, .gb-row__drop:focus-visible, .gb-row__drop.is-over {
  border-color: var(--gb-primary); background: color-mix(in srgb, var(--gb-primary) 10%, var(--gb-paper));
}
.gb-row__drop.is-busy { cursor: progress; opacity: .8; }
.gb-row__hint { font-size: .84rem; max-width: 40rem; }
.gb-row__status { font-size: .9rem; color: var(--gb-text); }
.gb-row__status:empty { display: none; }

/* step-by-step guides that fold out (assistant/connections.html) */
.gb-guide {
  margin: 1rem 0; padding: .2rem 1.2rem; background: var(--gb-paper); border: 1px solid var(--gb-line);
  border-radius: var(--gb-radius); box-shadow: var(--gb-shadow-soft);
}
.gb-guide summary { padding: .8rem 0; cursor: pointer; font-size: 1.08rem; }
.gb-guide[open] summary { border-bottom: 1px solid var(--gb-line); margin-bottom: .6rem; }
.gb-guide ol li, .gb-guide ul li { margin: .35rem 0; }
.gb-guide__more { font-size: .9rem; color: var(--gb-muted); }
.gb-guide kbd { padding: .05rem .35rem; border: 1px solid var(--gb-line); border-bottom-width: 2px; border-radius: .3rem; background: var(--gb-bg); font-family: inherit; font-size: .85em; }
.gb-code { white-space: pre-wrap; overflow-wrap: anywhere; padding: .7rem .9rem; border-radius: .5rem; background: var(--gb-bg); font-size: .85rem; }
.gb-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; }
.gb-copy code { padding: .35rem .6rem; border-radius: .4rem; background: var(--gb-bg); word-break: break-all; }
.gb-copy__button {
  padding: .35rem .9rem; border: 1px solid var(--gb-primary); border-radius: 999px; background: var(--gb-bg);
  color: var(--gb-link); font: inherit; font-size: .9rem; cursor: pointer;
}
.gb-copy__button:hover { background: var(--gb-primary); color: #fff; }

/* supplements and memories, from the comments of the Tiki site (PLAN.md 3.3) */
.gb-supplements { clear: both; margin-top: 2.6rem; padding-top: .4rem; border-top: 1px solid var(--gb-line); }
.gb-supplement {
  margin: 1rem 0; padding: .9rem 1.2rem .3rem; background: var(--gb-supplement-bg); border: 1px solid var(--gb-supplement-line);
  border-left: 4px solid var(--gb-secondary); border-radius: var(--gb-radius); box-shadow: var(--gb-shadow-soft);
}
.gb-supplement h3 { margin-top: .1rem; }
.gb-supplement__meta { font-size: .86rem; color: var(--gb-muted); margin-bottom: .3rem; }

/* -- maps (OpenStreetMap, loaded only on request) -- */
.gb-map { clear: both; margin: 1.6rem 0; }
.gb-map__ask, .gb-map__canvas {
  border: 1px solid var(--gb-line); border-radius: var(--gb-radius); box-shadow: var(--gb-shadow-soft);
}
.gb-map__ask { display: flex; flex-direction: column; justify-content: center; min-height: calc(var(--map-height) * .6);
  padding: 1.4rem 1.6rem; background: var(--box-blue-bg); text-align: center; }
.gb-map__ask[hidden], .gb-map__canvas[hidden] { display: none; }
.gb-map__ask p { margin: .4rem auto; max-width: 34em; }
.gb-map__load { padding: .55rem 1.3rem; margin-right: 1rem; font: inherit; font-weight: 700; cursor: pointer;
  color: #fff; background: var(--gb-primary-dark); border: 0; border-radius: 12px; box-shadow: var(--gb-shadow-soft); }
.gb-map__load:hover { background: var(--gb-primary-deep); }
:root[data-gb-theme="dark"] .gb-map__load { color: var(--gb-bg); }
.gb-map__canvas { height: var(--map-height); overflow: hidden; z-index: 0; }
.gb-map figcaption { padding: .5rem .3rem 0; color: var(--gb-muted); font-size: .82rem; }
:root[data-gb-theme="dark"] .gb-map .leaflet-tile-pane { filter: brightness(.72) contrast(1.08) saturate(.8); }
.gb-map__popup { font: .95rem/1.45 var(--gb-sans); }
.gb-map__thumbs { display: flex; gap: 6px; margin: .5rem 0 .3rem; }
.gb-map__thumbs img { width: 76px; height: 57px; object-fit: cover; border-radius: 6px; }

/* -- lightbox -- */
.gb-lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--gb-lightbox); color: var(--gb-text);      /* the paper of the page */
}
.gb-lightbox::backdrop { background: transparent; }
.gb-lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 80px 84px; }
/* the stage clips a zoomed picture, so it never runs over the caption and the buttons */
.gb-lightbox__stage {
  flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none; cursor: zoom-in; border-radius: 14px;
}
.gb-lightbox.is-zoomed .gb-lightbox__stage { cursor: grab; }
.gb-lightbox.is-zoomed .gb-lightbox__stage:active { cursor: grabbing; }
.gb-lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; user-select: none; -webkit-user-drag: none;
  padding: 10px; background: var(--gb-print); border: 1px solid var(--gb-line); border-radius: 14px; box-shadow: var(--gb-shadow-soft);
}
.gb-lightbox figcaption {
  flex: none; max-width: 900px; margin-top: 16px; padding: .7rem 1.2rem; font-size: 1rem; line-height: 1.5; text-align: center; max-height: 110px; overflow: auto;
  background: var(--gb-page); border: 1px solid var(--gb-line); border-radius: var(--gb-radius); box-shadow: var(--gb-shadow-soft);
}
.gb-lightbox figcaption:empty { display: none; }
.gb-lightbox button {
  position: absolute; padding: 0; cursor: pointer; color: var(--gb-text);
  background: var(--gb-page); border: 1px solid var(--gb-line); border-radius: 12px; box-shadow: var(--gb-shadow-soft);
  transition: transform .15s ease;
}
.gb-lightbox button:hover, .gb-lightbox button:focus-visible { transform: translateY(-1px); color: var(--gb-primary-dark); }
.gb-lightbox button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gb-lightbox__prev, .gb-lightbox__next { top: calc(50% - 30px); width: 48px; height: 60px; }
.gb-lightbox__prev { left: 16px; }
.gb-lightbox__next { right: 16px; }
.gb-lightbox__prev svg, .gb-lightbox__next svg { padding: 16px 11px; }
.gb-lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; }
.gb-lightbox__close svg { padding: 12px; }
.gb-lightbox.is-single .gb-lightbox__prev, .gb-lightbox.is-single .gb-lightbox__next { display: none; }
.gb-lightbox__zoom { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; }
.gb-lightbox__zoom button { position: static; width: 44px; height: 44px; }
.gb-lightbox__zoom svg { padding: 12px; }

/* -- footer: inverted, white on the dark page blue (6.2:1) -- */
.gb-footer { margin-top: 2rem; background: var(--gb-footer); color: #fff; font-size: .95rem; }
.gb-footer a { color: #fff; }
.gb-footer a:hover { color: var(--gb-footer-soft); }
.gb-footer :focus-visible { outline-color: #fff; }
.gb-footer__main {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(24px, 4vw, 56px);
  max-width: 1320px; margin: 0 auto; padding: 40px var(--gb-gutter) 28px;
}
.gb-footer__name {
  display: inline-block; margin-bottom: .5rem; text-decoration: none;
  font: 400 clamp(1.9rem, 4vw, 2.5rem)/1.1 var(--gb-script); text-shadow: .15em .15em .2em rgba(0, 0, 0, .45);
}
.gb-footer__brand p { margin: 0; max-width: 34em; color: var(--gb-footer-soft); line-height: 1.55; }
.gb-footer h2 { margin: .3rem 0 .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gb-footer-soft); }
.gb-footer ul { list-style: none; margin: 0; padding: 0; }
.gb-footer li a { display: inline-block; padding: .22rem 0; text-decoration: none; }
.gb-footer li a:hover, .gb-footer li.is-current a { text-decoration: underline; text-underline-offset: .2em; }
.gb-footer__bar { margin: 0; padding: 14px var(--gb-gutter) 18px; border-top: 1px solid rgba(255, 255, 255, .22); text-align: center; font-size: .82rem; color: var(--gb-footer-soft); }
@media (max-width: 800px) { .gb-footer__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .gb-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .gb-footer__main { grid-template-columns: minmax(0, 1fr); } }

/* -- phones -- */
@media (max-width: 800px) {
  .gb-layout { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .gb-nav {
    display: none; position: fixed; z-index: 49; left: 0; right: 0; top: var(--gb-top-h, 70px);
    max-height: calc(100vh - var(--gb-top-h, 70px)); overflow-y: auto; padding: 8px 16px 20px;
    background: var(--gb-page); border: 1px solid var(--gb-line); border-top: 0; border-radius: 0 0 var(--gb-radius) var(--gb-radius);
    box-shadow: var(--gb-shadow-soft);
  }
  html.cms-toolbar-expanded .gb-nav { top: calc(var(--gb-top-h, 70px) + 46px); }
  .gb-nav.is-open, .gb-nav.is-open:not(:has(.gb-nav__tree li)) { display: block; }
  .gb-sections, .gb-meta { display: none; }
  .gb-header__right { flex: 0; }
  .gb-nav__meta { display: block; margin-top: 1.2rem !important; padding-top: .6rem !important; border-top: 1px solid var(--gb-line); font-size: .92rem; }
  .gb-nav__meta a { display: block; padding: .35rem .2rem; color: var(--gb-muted); }
  .gb-nav__sections { display: block; margin-bottom: .8rem !important; }
  .gb-nav__sections a { display: block; padding: .55rem .2rem; border-bottom: 1px solid var(--gb-line); color: var(--gb-text); text-decoration: none; font-weight: 700; }
  .gb-nav__sections .is-current a { color: var(--gb-primary-dark); box-shadow: inset 3px 0 0 var(--gb-secondary); padding-left: .6rem; }
  .gb-nav__section { font-size: 1.7rem; }
  .gb-breadcrumb ol { padding-top: .45rem; padding-bottom: .45rem; font-size: .88rem; }
  /* a minimal head: small logo, the name on one line, no claim */
  .gb-header, .gb-top.is-compact .gb-header { padding: 6px var(--gb-gutter); gap: .6rem; }
  .gb-brand { gap: 8px; }
  .gb-brand__logo, .gb-top.is-compact .gb-brand__logo { width: 36px; }
  .gb-brand__name, .gb-top.is-compact .gb-brand__name { font-size: clamp(1.35rem, 6.4vw, 1.7rem); text-shadow: .15em .15em .15em var(--gb-shadow); }
  .gb-brand__claim { display: none; }
  .gb-banner__dots { display: none; }   /* the arrows are enough on a phone */
  .gb-menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; flex: none; padding: 11px;
    border: 1px solid var(--gb-line); border-radius: 12px; background: var(--gb-page); box-shadow: var(--gb-shadow-soft); cursor: pointer;
  }
  .gb-menu-toggle span:not(.gb-visually-hidden) { border-radius: 2px; }
  .gb-menu-toggle span:not(.gb-visually-hidden) { display: block; height: 2px; background: var(--gb-text); }
  .gb-banner { height: 58vw; min-height: 220px; }
  .gb-banner__slide figcaption { font-size: .9rem; padding-right: 50px; }
  .gb-picture--left, .gb-picture--right { float: none; width: auto; margin: 1.2rem 0; }
  .gb-lightbox figure { padding: 68px 12px 84px; }
  /* phones: back and forth at the outer edges, the zoom in the middle */
  .gb-lightbox__prev, .gb-lightbox__next { top: auto; bottom: 18px; width: 48px; height: 44px; }
  .gb-lightbox__prev { left: 12px; }
  .gb-lightbox__next { right: 12px; }
  .gb-lightbox__prev svg, .gb-lightbox__next svg { padding: 12px 16px; }
  .gb-banner__prev, .gb-banner__next { width: 38px; height: 46px; top: calc(50% - 23px); }
  .gb-banner__prev { left: 8px; }
  .gb-banner__next { right: 8px; }
}
