/* ==========================================================================
   hagabay26 — keeps the ORIGINAL hagabay.net branding (colours sampled from the live site 2026-11-04):
   white header with the title image + Ayelet HaShachar logo, sky-blue navigation (#38a6e8, active #0674c9) between dark-blue
   stripes (#1b379b), the blue banner, grey side boxes (#f0f0f0) with blue titles (#428bca), light footer (#f8f8f8).
   Loaded after Cassiopeia's CSS (Bootstrap 5), so core components only need the brand variables below.
   ========================================================================== */

:root {
    --hg-frame:        #1b379b;
    --hg-nav:          #38a6e8;
    --hg-nav-active:   #0674c9;
    --hg-link:         #428bca;
    --hg-link-hover:   #2a6496;
    --hg-side-active:  #3c7eb8;
    --hg-surface:      #f0f0f0;
    --hg-footer:       #f8f8f8;
    --hg-border:       #dddddd;
    --hg-text:         #333333;
    --hg-muted:        #666666;
    --hg-container:    1170px;
    --hg-gap:          24px;
    --hg-radius:       4px;
    --hg-font:         "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Cassiopeia / Bootstrap components follow the brand */
    --cassiopeia-color-primary: var(--hg-link);
    --cassiopeia-color-link:    var(--hg-link);
    --cassiopeia-color-hover:   var(--hg-link-hover);
    --link-color:               var(--hg-link);
    --link-color-rgb:           66, 139, 202;
    --link-hover-color:         var(--hg-link-hover);
}

html { scroll-behavior: smooth; }

body.hg-site {
    font-family: var(--hg-font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--hg-text);
    background: #fff;
    margin: 0;
}

.hg-site a { color: var(--hg-link); }
.hg-site a:hover, .hg-site a:focus-visible { color: var(--hg-link-hover); }
.hg-site :focus-visible { outline: 3px solid var(--hg-frame); outline-offset: 2px; }
.hg-site img { max-width: 100%; height: auto; }

.hg-container { width: 100%; max-width: var(--hg-container); margin-inline: auto; padding-inline: 15px; box-sizing: border-box; }

.hg-skip-link {
    position: absolute; inset-inline-start: 8px; top: -60px; z-index: 3000;
    background: var(--hg-frame); color: #fff !important; padding: 10px 16px; border-radius: 0 0 var(--hg-radius) var(--hg-radius);
}
.hg-skip-link:focus { top: 0; }

/* ----- top bar (only when phone / e-mail / text are filled in) ----- */
.hg-topbar { background: var(--hg-surface); color: var(--hg-muted); font-size: 13px; padding-block: 6px; border-bottom: 1px solid var(--hg-border); }
.hg-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ----- header: title image + partner logo (start), search (end) ----- */
.hg-header { background: #fff; position: relative; z-index: 1000; }
.hg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.hg-header__logo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hg-logo { display: inline-flex; flex-direction: column; text-decoration: none; }
.hg-logo__img { display: block; width: 366px; max-width: 100%; height: auto; }
.hg-logo__desc { font-size: 13px; color: var(--hg-muted); }
.hg-partner { display: inline-block; }
.hg-partner__img { display: block; width: 118px; height: auto; }

.hg-header__search { flex: 0 1 280px; }
.hg-header__search form, .hg-header__search .mod-search { margin: 0; }
.hg-header__search .input-group { flex-wrap: nowrap; }
.hg-header__search .form-control { border-radius: 0 var(--hg-radius) var(--hg-radius) 0; border: 1px solid #ccc; }
[dir="ltr"] .hg-header__search .form-control { border-radius: var(--hg-radius) 0 0 var(--hg-radius); }
.hg-header__search .btn { border-radius: var(--hg-radius) 0 0 var(--hg-radius); }
[dir="ltr"] .hg-header__search .btn { border-radius: 0 var(--hg-radius) var(--hg-radius) 0; }

.hg-header.is-stuck { position: fixed; top: 0; inset-inline: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.hg-header-spacer { display: none; }

/* ----- main navigation ----- */
.hg-nav { background: var(--hg-nav); border-top: 5px solid var(--hg-frame); position: relative; }
.hg-nav .hg-container { padding-inline: 0; }
.hg-menu, .hg-menu ul { list-style: none; margin: 0; padding: 0; }
.hg-menu { display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.hg-menu__item { position: relative; }
.hg-menu__item > a, .hg-menu__item > span:not(.hg-menu__caret), .hg-menu__item > .nav-header {
    display: flex; align-items: center; gap: 6px; padding: 13px 20px; color: #fff !important; font-weight: 700; font-size: 14px;
    text-decoration: none; white-space: nowrap; transition: background-color .2s;
}
.hg-menu__item:hover > a, .hg-menu__item > a:focus-visible { background: var(--hg-nav-active); color: #fff !important; }
.hg-menu__item.current > a, .hg-menu__item.active > a { background: var(--hg-nav-active); }
.hg-menu__item.deeper > a::after {
    content: ''; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; margin-inline-start: 4px; opacity: .85;
}
.hg-menu__caret { display: none; }
.hg-menu__sub {
    display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 220px; z-index: 1100;
    background: #fff; border: 1px solid var(--hg-border); border-top: 0; box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.hg-menu__item:hover > .hg-menu__sub, .hg-menu__item:focus-within > .hg-menu__sub { display: block; }
.hg-menu__sub .hg-menu__item > a { color: var(--hg-text) !important; font-weight: 400; padding: 9px 16px; border-bottom: 1px solid #eee; white-space: normal; }
.hg-menu__sub .hg-menu__item > a:hover, .hg-menu__sub .hg-menu__item.current > a { background: var(--hg-surface); color: var(--hg-nav-active) !important; }
.hg-menu__sub .hg-menu__sub { inset-inline-start: 100%; top: 0; }

.hg-header__toggle { display: none; background: var(--hg-nav); border: 0; border-radius: var(--hg-radius); width: 44px; height: 40px; cursor: pointer; padding: 0; }
.hg-hamburger { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.hg-hamburger span { display: block; width: 22px; height: 2px; background: #fff; }
.hg-overlay { display: none; }

/* ----- banner (original image, framed by the dark-blue stripe) ----- */
.hg-hero--banner .hg-container { padding-inline: 0; }
.hg-banner { display: block; width: 100%; height: auto; }
.hg-hero { border-bottom: 5px solid var(--hg-frame); }

/* ----- main ----- */
.hg-main { padding-block: 20px 36px; }
.hg-breadcrumbs { background: var(--hg-surface); border-radius: var(--hg-radius); padding: 8px 14px; margin-bottom: 20px; font-size: 14px; }
.hg-breadcrumbs .breadcrumb, .hg-breadcrumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; background: none; }

.hg-content-area { display: flex; align-items: flex-start; gap: var(--hg-gap); }
.hg-content { flex: 1 1 auto; min-width: 0; }
.hg-sidebar { flex: 0 0 260px; max-width: 260px; }

/* ----- side boxes: grey, blue title, active item in blue ----- */
.hg-panel { background: var(--hg-surface); border-radius: var(--hg-radius); margin-bottom: 20px; overflow: hidden; }
.hg-panel__header h3 { margin: 0; padding: 14px 16px 6px; color: var(--hg-link); font-size: 18px; font-weight: 500; }
.hg-panel__icon { display: none; }
.hg-panel__body { padding: 8px 16px 14px; }
.hg-panel__body ul { list-style: none; margin: 0; padding: 0; }
.hg-panel .mod-menu { margin: 0 -16px; }
.hg-panel .mod-menu li > a, .hg-panel .mod-menu li > span { display: block; padding: 8px 16px; font-size: 14px; text-decoration: none; }
.hg-panel .mod-menu li > a:hover { background: #e4e4e4; }
.hg-panel .mod-menu li.current > a, .hg-panel .mod-menu li.active > a { background: var(--hg-side-active); color: #fff; }
.hg-panel .mod-menu ul { padding-inline-start: 14px; }
.hg-panel img { border-radius: var(--hg-radius); }

/* ----- content cards (core blog markup of Joomla 4+) ----- */
.hg-content .blog-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0 0 24px; }
.hg-content .blog-item {
    background: #fff; border: 1px solid var(--hg-border); border-radius: var(--hg-radius); padding: 16px;
    display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start;
}
.hg-content .blog-item:not(:has(.item-image)) { display: block; }
.hg-content .blog-item .item-image, .hg-content .blog-item .item-image.left, .hg-content .blog-item .item-image.right { float: none; margin: 0; }
.hg-content .blog-item .item-image img { display: block; width: 150px; height: 150px; object-fit: cover; border-radius: var(--hg-radius); }
.hg-content .blog-item .item-image figcaption { display: none; }
.hg-content .item-title, .hg-content .item-page .page-header h1, .hg-content .item-page .page-header h2 {
    font-size: 22px; font-weight: 400; line-height: 1.35; margin: 0 0 8px; color: var(--hg-text);
}
.hg-content .item-title a { color: var(--hg-link); text-decoration: none; }
.hg-content .item-title a:hover, .hg-content .item-title a:focus-visible { color: var(--hg-link-hover); text-decoration: underline; }
.hg-content .article-info { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--hg-muted); }
.hg-content .article-info dd { margin: 0; }
.hg-content .article-info-term { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.hg-content .article-info a { color: inherit; text-decoration: none; }
.hg-content .article-info a:hover, .hg-content .article-info a:focus-visible { text-decoration: underline; }
.hg-content .article-info dd { display: inline-flex; align-items: center; gap: 4px; }
.hg-content .blog-item .page-header { margin: 0; }
.hg-content .hg-excerpt { margin: 0 0 10px; text-align: start; line-height: 1.6; }
.hg-content .readmore .btn, .hg-content p.readmore a.btn { background: none; border: 0; padding: 0; color: var(--hg-link); font-weight: 700; font-size: 14px; box-shadow: none; }
.hg-content .readmore .btn:hover { color: var(--hg-link-hover); text-decoration: underline; }

.hg-content .item-page { background: #fff; }
.hg-content .item-page .page-header h1 { font-size: 28px; }
.hg-content .item-page img { border-radius: var(--hg-radius); }

/* ----- forms, buttons, pagination (Bootstrap 5 markup) ----- */
.hg-site .btn-primary { background: var(--hg-link); border-color: #357ebd; color: #fff; }
.hg-site .btn-primary:hover, .hg-site .btn-primary:focus-visible { background: var(--hg-link-hover); border-color: #204d74; color: #fff; }
.hg-site .form-control, .hg-site .form-select { border-color: #ccc; border-radius: var(--hg-radius); }
.hg-site .form-control:focus, .hg-site .form-select:focus { border-color: var(--hg-nav); box-shadow: 0 0 0 .2rem rgba(56, 166, 232, .25); }
.hg-content .pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; list-style: none; padding: 0; margin: 24px 0; }
.hg-content .pagination .page-link { border: 1px solid var(--hg-border); color: var(--hg-link); border-radius: var(--hg-radius); }
.hg-content .pagination .page-item.active .page-link { background: var(--hg-link); border-color: var(--hg-link); color: #fff; }
.hg-content .alert { border-radius: var(--hg-radius); }

/* ----- showcase / bottom grids ----- */
.hg-section { padding-block: 28px; }
.hg-showcase { background: var(--hg-surface); }
.hg-grid { display: grid; gap: var(--hg-gap); }
.hg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ----- footer ----- */
.hg-footer { background: var(--hg-footer); border-top: 1px solid #e7e7e7; color: #555; }
.hg-footer__main { padding-block: 28px 12px; }
.hg-footer-module__title { color: var(--hg-link); font-size: 18px; font-weight: 500; margin: 0 0 10px; }
.hg-footer-module__body ul { list-style: none; margin: 0; padding: 0; }
.hg-footer-module__body li { padding: 3px 0; }
.hg-footer__bottom { border-top: 1px solid #e7e7e7; padding-block: 14px; font-size: 13px; text-align: center; }
.hg-footer__copyright p { margin: 0; }

/* ----- back to top ----- */
.hg-back-to-top {
    position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 1500; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--hg-nav-active); color: #fff; opacity: 0; visibility: hidden; transition: opacity .25s; cursor: pointer;
}
.hg-back-to-top.is-visible { opacity: .92; visibility: visible; }

/* ----- reveal on scroll (JS adds .hg-reveal / .is-visible) ----- */
.hg-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.hg-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hg-reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ----- responsive ----- */
@media (max-width: 991px) {
    .hg-content-area { flex-direction: column; }
    .hg-sidebar { flex: 1 1 auto; max-width: none; width: 100%; }
    .hg-content { order: -1; width: 100%; }
    .hg-grid--3, .hg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .hg-header__toggle { display: inline-flex; align-items: center; justify-content: center; }
    .hg-header__inner { flex-wrap: wrap; }
    .hg-logo__img { width: 240px; }
    .hg-partner__img { width: 80px; }
    .hg-header__search { order: 3; flex: 1 1 100%; }
    .hg-nav {
        position: fixed; top: 0; inset-inline-end: 0; width: min(300px, 82vw); height: 100vh; overflow-y: auto; z-index: 1600;
        transform: translateX(100%); transition: transform .3s; border-top: 0; padding-top: 12px;
    }
    [dir="rtl"] .hg-nav { transform: translateX(-100%); }
    .hg-nav.is-open { transform: translateX(0); }
    .hg-overlay.is-active { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1500; }
    .hg-nav .hg-container { padding-inline: 0; }
    .hg-menu { flex-direction: column; }
    .hg-menu__item > a { border-bottom: 1px solid rgba(255, 255, 255, .25); }
    .hg-menu__sub { position: static; display: block; box-shadow: none; border: 0; background: rgba(0, 0, 0, .12); min-width: 0; }
    .hg-menu__sub .hg-menu__item > a { color: #fff !important; background: none; border-bottom-color: rgba(255, 255, 255, .15); padding-inline-start: 34px; }
    .hg-content .blog-item { grid-template-columns: 1fr; }
    .hg-content .blog-item .item-image img { width: 100%; height: 180px; }
    .hg-grid--2, .hg-grid--3, .hg-grid--4 { grid-template-columns: minmax(0, 1fr); }
    .hg-hero--banner .hg-banner { min-height: 90px; object-fit: cover; }
}

@media print {
    .hg-header, .hg-nav, .hg-hero, .hg-sidebar, .hg-footer, .hg-back-to-top, .hg-breadcrumbs { display: none !important; }
    .hg-content { width: 100%; }
}

/* Page headings inside the content column: the Cassiopeia default (2.5rem) is far larger than the original site */
.hg-content h1, .hg-content .page-header h1 { font-size: 28px; font-weight: 400; line-height: 1.3; margin: 0 0 14px; }
.hg-content h2 { font-size: 22px; font-weight: 400; }

/* ==========================================================================
   Modern polish (2026-11-05) — same brand colours, softer / airier look: no underlined links, light page background,
   rounded shadowed cards, pill buttons, larger readable type.
   ========================================================================== */
:root {
    --hg-navy:   #16307f;
    --hg-bg:     #f3f6fb;
    --hg-ink:    #1f2937;
    --hg-soft:   #5b6677;
    --hg-radius: 12px;
    --hg-shadow: 0 1px 2px rgba(22, 48, 127, .06), 0 4px 14px rgba(22, 48, 127, .07);
    --hg-shadow-hover: 0 2px 4px rgba(22, 48, 127, .08), 0 10px 26px rgba(22, 48, 127, .14);
    --hg-font: "Segoe UI", "Heebo", "Assistant", Arial, sans-serif;
}
body.hg-site { font-size: 16px; line-height: 1.7; color: var(--hg-ink); }
.hg-site a { text-decoration: none; }
.hg-site .hg-content a:hover, .hg-site .hg-content a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.hg-main { background: var(--hg-bg); padding-block: 22px 48px; }

/* header + search */
.hg-header__inner { padding-block: 14px; }
.hg-header__search .form-control { border-radius: 0 999px 999px 0; padding-inline: 16px; border-color: #cfd8e6; background: #fff; }
.hg-header__search .btn { border-radius: 999px 0 0 999px; padding-inline: 18px; font-weight: 600; }
[dir="ltr"] .hg-header__search .form-control { border-radius: 999px 0 0 999px; }
[dir="ltr"] .hg-header__search .btn { border-radius: 0 999px 999px 0; }

/* navigation */
.hg-nav { border-top-width: 4px; box-shadow: 0 2px 8px rgba(22, 48, 127, .18); }
.hg-menu__item > a, .hg-menu__item > span:not(.hg-menu__caret), .hg-menu__item > .nav-header { font-size: 15px; padding: 14px 18px; box-shadow: inset 0 -3px 0 transparent; transition: background-color .2s, box-shadow .2s; }
.hg-menu__item:hover > a, .hg-menu__item > a:focus-visible { box-shadow: inset 0 -3px 0 #fff; }
.hg-menu__item.current > a, .hg-menu__item.active > a { box-shadow: inset 0 -3px 0 #fff; }
.hg-menu__sub { border-radius: 0 0 var(--hg-radius) var(--hg-radius); overflow: hidden; border: 0; }

/* breadcrumbs: no grey box */
.hg-breadcrumbs { background: none; padding: 0 2px; margin-bottom: 16px; font-size: 14px; color: var(--hg-soft); }
.hg-breadcrumbs a { color: var(--hg-link); }

/* article cards */
.hg-content .blog-items { gap: 20px; }
.hg-content .blog-item {
    border: 0; border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); padding: 20px; gap: 22px;
    grid-template-columns: 190px minmax(0, 1fr); transition: box-shadow .2s, transform .2s;
}
.hg-content .blog-item:hover { box-shadow: var(--hg-shadow-hover); transform: translateY(-2px); }
.hg-content .blog-item .item-image img { width: 190px; height: 140px; border-radius: 10px; }
.hg-content .blog-item .item-content { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hg-content .item-title, .hg-content .blog-item .page-header h2 { font-size: 24px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; color: var(--hg-navy); }
.hg-content .blog-item .page-header h2 a { color: var(--hg-navy); }
.hg-content .blog-item .page-header h2 a:hover, .hg-content .blog-item .page-header h2 a:focus-visible { color: var(--hg-link); }
.hg-content .article-info { font-size: 13.5px; color: var(--hg-soft); gap: 4px 18px; margin: 0 0 10px; }
.hg-content .article-info [class^="icon-"], .hg-content .article-info [class*=" icon-"] { color: #8a97ab; }
.hg-content .hg-excerpt { font-size: 16px; line-height: 1.75; color: var(--hg-ink); margin: 0 0 14px; }
.hg-content .readmore { margin: auto 0 0; }
.hg-content .readmore .btn, .hg-content p.readmore a.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border: 1.5px solid var(--hg-link); border-radius: 999px;
    color: var(--hg-link); font-weight: 600; font-size: 14.5px; transition: background-color .2s, color .2s;
}
.hg-content .readmore .btn:hover, .hg-content .readmore .btn:focus-visible { background: var(--hg-link); color: #fff; text-decoration: none; }
.hg-content .item-page { border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); padding: 24px 28px; }

/* side boxes: white cards */
.hg-panel { background: #fff; border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); }
.hg-panel__header h3 { color: var(--hg-navy); font-size: 17px; font-weight: 700; padding: 16px 18px 6px; }
.hg-panel__body { padding: 6px 10px 12px; }
.hg-panel .mod-menu { margin: 0; }
.hg-panel .mod-menu li > a, .hg-panel .mod-menu li > span { padding: 9px 12px; border-radius: 8px; font-size: 15px; color: var(--hg-ink); }
.hg-panel .mod-menu li > a:hover { background: #e8f1fb; color: var(--hg-link-hover); }
.hg-panel .mod-menu li.current > a, .hg-panel .mod-menu li.active > a { background: var(--hg-side-active); color: #fff; font-weight: 600; }

/* forms / buttons / pagination */
.hg-site .btn { border-radius: 999px; font-weight: 600; }
.hg-site .form-control, .hg-site .form-select { border-radius: 10px; }
.hg-content .pagination .page-link { border-radius: 10px; }

/* footer */
.hg-footer { background: #fff; }

@media (max-width: 767px) {
    .hg-content .blog-item { grid-template-columns: 1fr; padding: 16px; }
    .hg-content .blog-item .item-image img { width: 100%; height: 190px; }
    .hg-content .item-title, .hg-content .blog-item .page-header h2 { font-size: 21px; }
}
.hg-content .item-title a { color: var(--hg-navy); }
.hg-content .item-title a:hover, .hg-content .item-title a:focus-visible { color: var(--hg-link); }
.hg-content .item-content:has(> .item-title) { display: flex; flex-direction: column; align-items: flex-start; }
.hg-panel .mod-menu li > a, .hg-panel .mod-menu li > span { padding: 6px 12px; line-height: 1.5; }
.hg-panel .mod-menu > li > a, .hg-panel .mod-menu > li > span { font-weight: 700; color: var(--hg-navy); margin-top: 6px; }
.hg-panel .mod-menu li li > a, .hg-panel .mod-menu li li > span { font-weight: 400; color: var(--hg-ink); margin-top: 0; font-size: 14.5px; }
.hg-panel .mod-menu li.current > a, .hg-panel .mod-menu li.active > a { color: #fff; }
.hg-header__search .input-group > .form-control { border-radius: 0 999px 999px 0; }
.hg-header__search .input-group > .btn { border-radius: 999px 0 0 999px; }

/* mod_forum_latest (home): one row per topic, title on top, meta below */
.mod-forum-latest__item { padding: .6rem 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.mod-forum-latest__item:last-child { border-bottom: 0; }
.mod-forum-latest__title { display: block; font-weight: 600; }
.mod-forum-latest__meta { display: block; }
.mod-forum-latest__links a + a { margin-inline-start: .25rem; }

/* ==========================================================================
   Google AdSense slots (2026-11-05) — chrome "hgad". Heights are reserved so the page does not jump (CLS) when an ad loads.
   Positions: ad-top (full width), ad-infeed (after the 3rd article), ad-sidebar (sticky, desktop column), ad-bottom (after content).
   ========================================================================== */
.hg-ad { margin: 0 0 20px; text-align: center; background: #fff; border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); padding: 6px 8px 10px; overflow: hidden; clear: both; }
.hg-ad__label { display: block; font-size: 11px; line-height: 1.6; color: var(--hg-soft); letter-spacing: .02em; }
.hg-ad__slot { display: block; width: 100%; min-height: 250px; }
.hg-ad__slot .adsbygoogle { display: block; width: 100%; }
.hg-ad--top .hg-ad__slot    { min-height: 100px; }
.hg-ad--infeed .hg-ad__slot { min-height: 280px; }
.hg-ad--sidebar .hg-ad__slot { min-height: 600px; }
.hg-ad--bottom .hg-ad__slot { min-height: 300px; }
.hg-infeed-ad { grid-column: 1 / -1; }
.hg-infeed-ad .hg-ad { margin-bottom: 0; }
/* an unfilled slot collapses (AdSense sets data-ad-status="unfilled") */
.hg-ad:has(.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
/* keep the sticky sidebar ad under the sticky header */
.hg-sidebar__sticky { position: sticky; top: 90px; }
.hg-sidebar__sticky .hg-ad { margin-bottom: 0; }
@media (max-width: 991px) {
    .hg-sidebar__sticky { position: static; }
    .hg-ad--sidebar .hg-ad__slot { min-height: 280px; }
    .hg-ad--bottom .hg-ad__slot { min-height: 280px; }
}
@media (max-width: 767px) {
    .hg-ad { margin-inline: -4px; padding-inline: 4px; border-radius: 8px; }
    .hg-ad--infeed .hg-ad__slot { min-height: 250px; }
}
@media print { .hg-ad { display: none !important; } }

/* Home on phones: notice-board cards in 2 columns (not 4 tall cards), tighter panels */
@media (max-width: 575px) {
    .hg-site .com-noticeboard.mod-noticeboard .noticeboard-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hg-site .mod-noticeboard .noticeboard-card-title { font-size: 15px; }
    .hg-panel__body { padding-inline: 8px; }
    .hg-main { padding-block: 14px 32px; }
}

/* ----- legal links in footer ----- */
.hg-footer__legal { margin-top: 8px; }
.hg-footer__legal .mod-menu, .hg-footer__legal ul { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.hg-footer__legal a { color: inherit; text-decoration: underline; padding: 6px 2px; display: inline-block; }
.hg-footer__legal a:hover, .hg-footer__legal a:focus-visible { color: var(--hg-accent-dark); }

/* ----- tap targets >= 24px (WCAG 2.5.8) for list/sidebar links and menu toggles ----- */
.mod-articleslatest a, .mod-articlescategories a, .mod-forum-latest__links a, .mod-breadcrumbs__item a { display: inline-block; min-height: 24px; padding-block: 2px; }
.mod-menu__toggle-sub { min-width: 24px; min-height: 24px; }

/* Consent banner (GA4 + Facebook Pixel load only after "accept") */
.hg-consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 1080; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .9rem 1.25rem; background: #fff; color: #222; border-top: 3px solid var(--hg-frame, #1b379b); box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); font-size: 1rem; }
.hg-consent p { margin: 0; flex: 1 1 22rem; }
.hg-consent a { color: var(--hg-link-hover, #2a6496); text-decoration: underline; }
.hg-consent button { min-height: 44px; padding: .4rem 1.2rem; border-radius: 999px; border: 2px solid var(--hg-frame, #1b379b); font: inherit; cursor: pointer; }
.hg-consent__yes { background: var(--hg-frame, #1b379b); color: #fff; }
.hg-consent__no { background: #fff; color: var(--hg-frame, #1b379b); }
.hg-consent button:focus-visible, .hg-consent a:focus-visible { outline: 3px solid #fcbe28; outline-offset: 2px; }
@media print { .hg-consent { display: none !important; } }
