/* ==========================================================================
   OLG Galgenen – Joomla 5/6 site template  (v1.2.0)
   Plain CSS, no framework. Colours are driven by CSS custom properties;
   --olg-primary and --olg-accent are injected from the template parameters.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --olg-primary: #0a2a4f;               /* club dark blue (template param) */
  --olg-accent: #3d8bd9;                /* bright blue accent (template param) */

  --olg-primary-950: color-mix(in srgb, var(--olg-primary) 60%, #000);
  --olg-primary-900: color-mix(in srgb, var(--olg-primary) 78%, #000);
  --olg-primary-700: color-mix(in srgb, var(--olg-primary) 88%, #fff);
  --olg-primary-600: color-mix(in srgb, var(--olg-primary) 76%, #fff);
  --olg-blue-200: color-mix(in srgb, var(--olg-primary) 22%, #fff);
  --olg-blue-100: color-mix(in srgb, var(--olg-primary) 10%, #fff);
  --olg-blue-50: color-mix(in srgb, var(--olg-primary) 4%, #fff);
  --olg-accent-dark: color-mix(in srgb, var(--olg-accent) 75%, #000);
  --olg-accent-light: color-mix(in srgb, var(--olg-accent) 45%, #fff);

  --olg-text: #15233a;
  --olg-muted: #56677f;
  --olg-border: color-mix(in srgb, var(--olg-primary) 16%, #fff);
  --olg-bg-soft: var(--olg-blue-50);

  --olg-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --olg-font-head: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --olg-radius: 10px;
  --olg-radius-sm: 6px;
  --olg-shadow: 0 6px 24px rgba(6, 26, 51, .10);
  --olg-shadow-lg: 0 18px 50px rgba(6, 26, 51, .30);

  --olg-container: 1240px;
  --olg-header-h: 76px;
  --olg-sidebar-w: 320px;
  --olg-col: clamp(250px, 30vw, 340px);   /* width of one menu stage */
  --olg-ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.olg-menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--olg-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--olg-text);
  background: var(--olg-bg-soft);
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--olg-accent-dark); text-underline-offset: .18em; }
a:hover { color: var(--olg-primary); }

:focus-visible { outline: 3px solid var(--olg-accent); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--olg-font-head);
  color: var(--olg-primary);
  line-height: 1.25;
  margin: 1.6em 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1rem; }

hr { border: 0; border-top: 1px solid var(--olg-border); margin: 2rem 0; }

blockquote {
  margin-left: 0;
  padding: .75rem 1.25rem;
  border-left: 4px solid var(--olg-accent);
  background: var(--olg-blue-50);
  border-radius: 0 var(--olg-radius-sm) var(--olg-radius-sm) 0;
}

.olg-container {
  width: 100%;
  max-width: var(--olg-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.olg-skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: .6rem 1rem;
  background: #fff;
  color: var(--olg-primary);
  border-radius: var(--olg-radius-sm);
  font-weight: 600;
}
.olg-skip:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.olg-header {
  position: relative;
  z-index: 100;
  color: #fff;
  background-color: var(--olg-primary);
  box-shadow: 0 2px 12px rgba(6, 26, 51, .25);
}
.has-contours .olg-header {
  background-image: url("../images/contours.svg");
  background-size: 900px auto;
  background-position: right -120px center;
  background-repeat: repeat-x;
}
.has-sticky-header .olg-header { position: sticky; top: 0; }

.olg-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
  min-height: var(--olg-header-h);
}

/* Menu button – top left */
.olg-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
  padding: .55rem .95rem .55rem .75rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.olg-menu-btn:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

.olg-burger { display: inline-grid; gap: 4px; width: 20px; }
.olg-burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--olg-ease), opacity .2s;
}
.olg-menu-btn[aria-expanded="true"] .olg-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.olg-menu-btn[aria-expanded="true"] .olg-burger span:nth-child(2) { opacity: 0; }
.olg-menu-btn[aria-expanded="true"] .olg-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Brand */
.olg-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}
.olg-brand:hover { color: #fff; }
.olg-brand__logo { width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.olg-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.olg-brand__name {
  font-family: var(--olg-font-head);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}
.olg-brand__tagline {
  font-size: .85rem;
  color: var(--olg-accent-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.olg-header__right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.olg-header__right a { color: #fff; }

/* --------------------------------------------------------------------------
   4. Banner / breadcrumbs
   -------------------------------------------------------------------------- */
.olg-banner {
  color: #fff;
  background-color: var(--olg-primary-900);
}
.olg-banner img { display: block; width: 100%; }

.olg-breadcrumbs {
  background: #fff;
  border-bottom: 1px solid var(--olg-border);
  font-size: .9rem;
}
.olg-breadcrumbs ol,
.olg-breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: .65rem 0;
}
.olg-breadcrumbs li { display: inline-flex; align-items: center; color: var(--olg-muted); }
.olg-breadcrumbs li + li::before {
  content: "";
  width: .45em;
  height: .45em;
  margin: 0 .6rem 0 .35rem;
  border-top: 2px solid var(--olg-blue-200);
  border-right: 2px solid var(--olg-blue-200);
  transform: rotate(45deg);
}
.olg-breadcrumbs a { color: var(--olg-primary); text-decoration: none; }
.olg-breadcrumbs a:hover { text-decoration: underline; }
.olg-breadcrumbs .float-start,
.olg-breadcrumbs .divider { display: none; }

/* --------------------------------------------------------------------------
   5. Main layout: content + right sidebar
   -------------------------------------------------------------------------- */
.olg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.has-sidebar .olg-layout { grid-template-columns: minmax(0, 1fr) var(--olg-sidebar-w); }

.olg-main {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--olg-border);
  border-radius: var(--olg-radius);
  box-shadow: var(--olg-shadow);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.olg-main:focus { outline: none; }
.olg-main-top { margin-bottom: 2rem; }
.olg-main-bottom { margin-top: 2rem; }

.olg-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }

@media (max-width: 960px) {
  .has-sidebar .olg-layout { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   6. Module boxes (chrome "olgbox")
   -------------------------------------------------------------------------- */
.olg-box {
  background: #fff;
  border: 1px solid var(--olg-border);
  border-radius: var(--olg-radius);
  box-shadow: var(--olg-shadow);
  overflow: hidden;
}
.olg-main-top .olg-box + .olg-box,
.olg-main-bottom .olg-box + .olg-box { margin-top: 1.5rem; }
.olg-box__title {
  margin: 0;
  padding: .8rem 1.15rem;
  font-size: 1.05rem;
  color: #fff;
  background: var(--olg-primary);
  border-bottom: 3px solid var(--olg-accent);
}
.olg-box__body { padding: 1.1rem 1.15rem; }
.olg-box__body > :last-child { margin-bottom: 0; }

/* Lists inside sidebar modules (latest news, menus, …) */
.olg-sidebar ul.mod-list,
.olg-sidebar ul.mod-menu,
.olg-sidebar ul.latestnews,
.olg-sidebar ul.mostread,
.olg-sidebar .mod-articlescategory ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.olg-sidebar ul.mod-list li,
.olg-sidebar ul.mod-menu li,
.olg-sidebar ul.latestnews li,
.olg-sidebar ul.mostread li {
  border-bottom: 1px solid var(--olg-blue-100);
}
.olg-sidebar ul.mod-list li:last-child,
.olg-sidebar ul.mod-menu li:last-child { border-bottom: 0; }
.olg-sidebar ul.mod-list a,
.olg-sidebar ul.mod-menu a,
.olg-sidebar ul.latestnews a,
.olg-sidebar ul.mostread a {
  display: block;
  padding: .5rem 0 .5rem 1.1rem;
  position: relative;
  color: var(--olg-text);
  text-decoration: none;
}
.olg-sidebar ul.mod-list a::before,
.olg-sidebar ul.mod-menu a::before,
.olg-sidebar ul.latestnews a::before,
.olg-sidebar ul.mostread a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, var(--olg-primary) 0 50%, var(--olg-accent) 50% 100%);
}
.olg-sidebar ul a:hover { color: var(--olg-accent-dark); }
.olg-sidebar .mod-menu__sub { padding-left: 1rem; list-style: none; }

/* --------------------------------------------------------------------------
   7. Content (com_content core markup)
   -------------------------------------------------------------------------- */
.page-header { margin-bottom: 1rem; }
.page-header h1, .page-header h2 { margin-top: 0; }
.page-header h2 a { color: inherit; text-decoration: none; }
.page-header h2 a:hover { color: var(--olg-accent-dark); }

.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin: 0 0 1.25rem;
  font-size: .875rem;
  color: var(--olg-muted);
}
.article-info dt { flex-basis: 100%; }
.article-info dd { margin: 0; }
.article-info-term { display: none; }

.blog-items { display: grid; gap: 1.5rem; }
.blog-items.columns-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.blog-items.columns-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.blog-item,
.blog-featured .blog-item {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--olg-border);
  border-left: 4px solid var(--olg-accent);
  border-radius: var(--olg-radius-sm);
  background: var(--olg-blue-50);
}
.blog-item .item-content > :last-child { margin-bottom: 0; }
.items-leading > div { margin-bottom: 1.5rem; }
.items-more { margin-top: 2rem; }

.item-image { margin: 0 0 1rem; }
.item-image img { border-radius: var(--olg-radius-sm); }
.float-start, .item-image.float-start { float: left; margin: 0 1.25rem 1rem 0; }
.float-end, .item-image.float-end { float: right; margin: 0 0 1rem 1.25rem; }
.float-none { float: none; }
.clearfix::after, .item-page::after, .blog-item::after { content: ""; display: table; clear: both; }

figure { margin: 0 0 1rem; }
figcaption { font-size: .875rem; color: var(--olg-muted); margin-top: .35rem; }

.readmore { margin-top: 1rem; }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags .btn, .tags a {
  display: inline-block;
  padding: .15rem .65rem;
  font-size: .8rem;
  border-radius: 999px;
  background: var(--olg-blue-100);
  color: var(--olg-primary);
  text-decoration: none;
}

/* Tables */
table, .table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.table-responsive { overflow-x: auto; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--olg-border); text-align: left; vertical-align: top; }
thead th, table th[scope="col"] { background: var(--olg-primary); color: #fff; font-weight: 600; border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--olg-blue-50); }
tbody tr:hover { background: var(--olg-blue-100); }

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .7rem;
  border: 1px solid var(--olg-border);
  border-radius: var(--olg-radius-sm);
  color: var(--olg-primary);
  background: #fff;
  text-decoration: none;
}
.page-link:hover { background: var(--olg-blue-100); }
.page-item.active .page-link { background: var(--olg-primary); border-color: var(--olg-primary); color: #fff; }
.page-item.disabled .page-link { color: var(--olg-blue-200); pointer-events: none; }
.counter { color: var(--olg-muted); font-size: .9rem; }
.pagenavigation .pagination { justify-content: space-between; }

/* --------------------------------------------------------------------------
   8. Buttons, forms, alerts, helpers (Bootstrap class names used by core)
   -------------------------------------------------------------------------- */
.btn,
button.btn,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  color: #fff;
  background: var(--olg-primary);
  border: 1px solid var(--olg-primary);
  border-radius: var(--olg-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover,
input[type="submit"]:hover { background: var(--olg-accent-dark); border-color: var(--olg-accent-dark); color: #fff; }
.btn-secondary, .btn-outline-primary, .btn-outline-secondary {
  background: #fff;
  color: var(--olg-primary);
  border-color: var(--olg-blue-200);
}
.btn-secondary:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover {
  background: var(--olg-blue-100);
  color: var(--olg-primary);
  border-color: var(--olg-primary);
}
.btn-sm { padding: .3rem .7rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.w-100 { width: 100%; }

label, .form-label { display: inline-block; margin-bottom: .3rem; font-weight: 600; font-size: .95rem; }
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
  display: block;
  width: 100%;
  padding: .55rem .8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--olg-text);
  background: #fff;
  border: 1px solid var(--olg-blue-200);
  border-radius: var(--olg-radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--olg-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--olg-accent) 25%, transparent);
}
.control-group, .mb-3, .form-group { margin-bottom: 1rem; }
.input-group { display: flex; align-items: stretch; }
.input-group > .form-control { flex: 1 1 auto; min-width: 0; border-radius: var(--olg-radius-sm) 0 0 var(--olg-radius-sm); }
.input-group > .btn,
.input-group > .input-group-text { border-radius: 0 var(--olg-radius-sm) var(--olg-radius-sm) 0; }
.input-group-text {
  display: flex;
  align-items: center;
  padding: 0 .75rem;
  background: var(--olg-blue-100);
  border: 1px solid var(--olg-blue-200);
  border-left: 0;
}
.form-check { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.form-check-input { width: 1.1rem; height: 1.1rem; accent-color: var(--olg-primary); }
.form-check-label { margin: 0; font-weight: 400; }
.invalid, .form-control-feedback { color: #b42318; }

.alert {
  padding: .9rem 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid var(--olg-blue-200);
  border-left: 4px solid var(--olg-accent);
  border-radius: var(--olg-radius-sm);
  background: var(--olg-blue-50);
}
.alert-warning { border-left-color: #d9a400; background: #fff9e6; }
.alert-danger, .alert-error { border-left-color: #b42318; background: #fdecea; }
.alert-success { border-left-color: #1f7a4d; background: #e9f7ef; }

.list-unstyled { list-style: none; padding-left: 0; }
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within),
.element-invisible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.d-none { display: none !important; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.small, small { font-size: .875em; }
.badge {
  display: inline-block;
  padding: .2em .55em;
  font-size: .78em;
  font-weight: 700;
  border-radius: 999px;
  background: var(--olg-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.olg-footer {
  margin-top: 1rem;
  color: var(--olg-blue-200);
  background-color: var(--olg-primary-900);
}
.has-contours .olg-footer {
  background-image: url("../images/contours.svg");
  background-size: 1000px auto;
  background-position: left -200px top -80px;
  background-repeat: no-repeat;
}
.olg-footer a { color: #fff; }
.olg-footer a:hover { color: var(--olg-accent-light); }
.olg-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-block: 2.75rem;
}
.olg-footer .olg-box { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.olg-footer .olg-box__title {
  padding: 0 0 .5rem;
  margin-bottom: .75rem;
  background: none;
  border-bottom: 2px solid var(--olg-accent);
  display: inline-block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.olg-footer .olg-box__body { padding: 0; }
.olg-footer ul { list-style: none; padding: 0; margin: 0; }
.olg-footer li { margin-bottom: .35rem; }
.olg-footer__bottom {
  background: var(--olg-primary-950);
  font-size: .875rem;
}
.olg-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-block: 1rem;
}
.olg-footer__bottom p { margin: 0; }
.olg-totop { text-decoration: none; }
.olg-totop::before { content: "\2191\00a0"; }

/* --------------------------------------------------------------------------
   10. Off-canvas menu panel with popping "stages"
   -------------------------------------------------------------------------- */
.olg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(4, 16, 32, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s;
}
.olg-backdrop.is-visible { opacity: 1; }

.olg-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  width: var(--olg-col);
  display: flex;
  flex-direction: column;
  color: #fff;
  background: var(--olg-primary-900);
  box-shadow: var(--olg-shadow-lg);
  /* The transform makes the panel the containing block for the
     position:fixed sub-menu stages (see .olg-nav__sub). */
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform .35s var(--olg-ease), visibility 0s linear .35s;
}
.olg-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .35s var(--olg-ease), visibility 0s;
}

.olg-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--olg-header-h);
  padding: 0 1rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  flex: 0 0 auto;
}
.olg-panel__title {
  font-family: var(--olg-font-head);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--olg-accent-light);
}
.olg-panel__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  cursor: pointer;
}
.olg-panel__close:hover { background: rgba(255, 255, 255, .12); }

.olg-panel__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.olg-panel__foot {
  flex: 0 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .95rem;
}
.olg-panel__foot a { color: #fff; }

/* Navigation lists */
.olg-nav__list { list-style: none; margin: 0; padding: 0; }
.olg-nav__list--root { padding-block: .5rem; }

.olg-nav__item { position: static; }
.olg-nav__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.olg-nav__link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1.5rem;
  font: inherit;
  font-size: 1.05rem;
  color: #fff;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.olg-nav__list--root > .olg-nav__item > .olg-nav__row > .olg-nav__link {
  font-family: var(--olg-font-head);
  font-size: 1.2rem;
  font-weight: 600;
  padding-block: .95rem;
}
.olg-nav__link:hover,
.olg-nav__link:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.olg-nav__link--static { cursor: default; color: var(--olg-blue-200); }

.olg-nav__item.is-active > .olg-nav__row > .olg-nav__link { color: var(--olg-accent-light); }
.olg-nav__item.is-current > .olg-nav__row > .olg-nav__link {
  border-left-color: var(--olg-accent);
  color: #fff;
  font-weight: 700;
}

/* Small arrow button next to a link */
.olg-nav__toggle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .07);
  cursor: pointer;
  transition: background .15s;
}
.olg-nav__toggle:hover { background: rgba(255, 255, 255, .1); }

/* Menu heading / separator with children: the whole row is the toggle.
   (Fix v1.2.0: keep it a full-width flex row with name left, arrow right.) */
.olg-nav__toggle.olg-nav__toggle--full {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  padding: .8rem 1.5rem;
  border-left: 4px solid transparent;
  text-align: left;
}
.olg-nav__list--root > .olg-nav__item > .olg-nav__row > .olg-nav__toggle--full { padding-block: .95rem; }

.olg-nav__chevron {
  flex: 0 0 auto;
  width: .6rem;
  height: .6rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.olg-nav__chevron--back { transform: rotate(-135deg); }

/* Open item highlighted in its stage */
.olg-nav__item.is-open > .olg-nav__row,
.olg-nav__item.is-open > .olg-nav__row > .olg-nav__link,
.olg-nav__item.is-open > .olg-nav__row > .olg-nav__toggle {
  background: var(--olg-accent-dark);
}
.olg-nav__item.is-open > .olg-nav__row > .olg-nav__link { color: #fff; }
.olg-nav__item.is-open > .olg-nav__row .olg-nav__chevron:not(.olg-nav__chevron--back) { transform: rotate(45deg) translate(2px, -2px); }

/* Stages: each sub list pops up as its own column next to the previous one.
   position:fixed + the transformed .olg-panel => columns are positioned
   relative to the panel and are not clipped by the scrolling parent list. */
.olg-nav__sub {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--olg-col);
  width: var(--olg-col);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--olg-primary);
  box-shadow: var(--olg-shadow-lg);
  border-left: 1px solid rgba(255, 255, 255, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-18px);
  pointer-events: none;
  transition: opacity .22s var(--olg-ease), transform .22s var(--olg-ease), visibility 0s linear .22s;
}
.olg-nav__sub[data-level="2"] { left: var(--olg-col); z-index: 2; }
.olg-nav__sub[data-level="3"] { left: calc(var(--olg-col) * 2); z-index: 3; background: var(--olg-primary-700); }
.olg-nav__sub[data-level="4"] { left: calc(var(--olg-col) * 3); z-index: 4; background: var(--olg-primary-600); }
.olg-nav__sub[data-level="5"] { left: calc(var(--olg-col) * 4); z-index: 5; background: var(--olg-primary-600); }

.olg-nav__item.is-open > .olg-nav__sub {
  opacity: 1;
  visibility: visible;
  /* must be "none": any transform would make the open stage the containing
     block of the next stage and clip it */
  transform: none;
  pointer-events: auto;
  transition: opacity .22s var(--olg-ease), transform .22s var(--olg-ease), visibility 0s;
}

/* Stage header: back button + parent title */
.olg-nav__head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--olg-header-h);
  padding: .5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .12);
}
.olg-nav__parent {
  font-family: var(--olg-font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
a.olg-nav__parent:hover { text-decoration: underline; color: #fff; }
.olg-nav__back {
  display: none;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  margin-bottom: .2rem;
  padding: .2rem 0;
  font: inherit;
  font-size: .85rem;
  color: var(--olg-accent-light);
  background: none;
  border: 0;
  cursor: pointer;
}
.olg-nav__back:hover { color: #fff; }
.olg-nav__back .olg-nav__chevron { width: .5rem; height: .5rem; }

/* Small screens: stages slide over each other (drill-down) */
@media (max-width: 720px) {
  :root { --olg-col: 100vw; }
  .olg-menu-btn__label { display: none; }
  .olg-menu-btn { padding: .6rem; border-radius: var(--olg-radius-sm); }
  .olg-brand__tagline { display: none; }
  .olg-brand__logo { width: 40px; height: 40px; }

  .olg-nav__sub,
  .olg-nav__sub[data-level] { left: 0; width: 100%; transform: translateX(30px); box-shadow: none; border-left: 0; }
  .olg-nav__item.is-open > .olg-nav__sub { transform: none; }
  .olg-nav__back { display: inline-flex; }
  /* Sub stages start below the panel header so the close button stays visible */
  .olg-nav__sub { top: var(--olg-header-h); }
  .olg-nav__head { min-height: 0; padding-block: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* --------------------------------------------------------------------------
   11. Error / offline / component pages
   -------------------------------------------------------------------------- */
.olg-error,
.olg-offline {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background-color: var(--olg-primary-900);
}
.has-contours .olg-error,
.has-contours .olg-offline {
  background-image: url("../images/contours.svg"), linear-gradient(135deg, var(--olg-primary), var(--olg-primary-950));
  background-size: 1100px auto, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.olg-error__card,
.olg-offline__card {
  width: 100%;
  max-width: 560px;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  background: #fff;
  border-radius: var(--olg-radius);
  box-shadow: var(--olg-shadow-lg);
}
.olg-error__brand,
.olg-offline__brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; color: var(--olg-primary); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.olg-error__brand img,
.olg-offline__brand img { width: 48px; height: 48px; }
.olg-error__code {
  font-family: var(--olg-font-head);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--olg-primary);
  margin: 0 0 .25rem;
}
.olg-error__debug { margin-top: 1.5rem; font-size: .8rem; overflow-x: auto; }

.olg-component { background: #fff; padding: 1.5rem; }

/* --------------------------------------------------------------------------
   12. Print
   -------------------------------------------------------------------------- */
@media print {
  .olg-header, .olg-panel, .olg-backdrop, .olg-sidebar, .olg-footer, .olg-breadcrumbs, .olg-skip { display: none !important; }
  body { background: #fff; color: #000; }
  .olg-main { border: 0; box-shadow: none; padding: 0; }
  .has-sidebar .olg-layout { grid-template-columns: 1fr; }
  a { color: #000; }
}
